"Solve the wave equation: \begin{cases} u_{tt}(x,t)=c^2u_{xx}(x,t), 0<x<\pi, t>0 \\ u(0,t)=t, u(\pi,t)=(1+\pi)t,\\ u(x,0)=0,\\ u_{t}(x,0)=\sin(x)+x+1 \end{cases} Hint: Consider $u_s(x,t)$ a linear function in $x$, such that $u_s(0,t)=t$, and $u_s(\pi,t)=(1+\pi)t$. Solve a new problem for $v(x,t)=u(x,t)-u_s(x,t)$."
Following the hint, I have $v(x,t)$ homogeneous wave equation with homog BCs. I suppose I can solve that but how do I deduce $u(x,t)$ from that?
I tried to find problems like this on the net so I can get a feel of how to solve wave equation with inhomo BCs but I had no luck.