I want to solve this problem but I'm stuck in the last step. I have followed all the steps below, but I don't know how to finish. Any Ideas?
We consider the standard wave equation with nonhomogeneous boundary conditions $$ \left\lbrace\begin{aligned} &u_{tt} - c^2 u_{xx} = 0 \quad\text{in}\quad (0,T)\times (0,1)\\ &u(t,0) = 0,\quad u(t,1) = f(t) \\ &u(0,x) = u_0(x),\quad u_t(0,x) = u_1(x) \end{aligned}\right. $$ which can be reduced to the following system after making the variables substitution $p=u_t - cu_x$, $q = u_t+cu_x$ $$ \begin{aligned} &\begin{pmatrix} p\\q\end{pmatrix}_t = \begin{pmatrix} {-c} & 0\\0 & c\end{pmatrix} \begin{pmatrix} p\\q\end{pmatrix}_x \quad\text{in}\quad (0,T)\times (0,1)\\ &(p+q)(t,0) = 0,\quad (p+q)(t,1) = f'(t) \\ &p(0,x) = p_0(x),\quad q(0,x) = q_0(x) \end{aligned} $$ As $p$ and $q$ are constant along their characteristics $x_p = ct + C_1$, $x_q = -ct + C_2$ we can write $$ \left\lbrace\begin{aligned} &p(t,x) = p_0(x-ct) \quad\text{for}\quad t\leq\tfrac{x}{c}\\ &q(t,x) = q_0(x+ct) \quad\text{for}\quad t\leq\tfrac{1-x}{c} \end{aligned}\right. $$ so, boundary conditions become $p(t,0) + q_0(ct) = 0$ and $q(t,1) + p_0(1-ct) = f'(t)$.