I would like to know how to handle the following pde.
What makes it difficult for me to solve it is the fact that both boundary conditions for $x$ aren't zero.
Here's the equation:
$$u_{tt} - u_{xx} =0, \ \ t \ge 0, \ x \in [0, \pi] $$
$$u(0,x) = 1, \ \ u_t(0,x)=1+x, \ \ x \in [0, \pi ]$$
$$u_x(t,0) = u_x(t, \pi)=0, \ t \ge 0$$
Let $u(t,x) = T(t)X(x)$
So it all comes down to solving the following: $\frac{X''(x)}{X(x)} = \frac{T''(t)}{T(t)} = \lambda <0$ (otherwise the solutions are zero)
Next I get that $X_n(x) = A_n \cos (nx), \ \ n \in \mathbb{Z} $ (because $X'(0)=0$ and $X(0)=0$ )
and $T(t)=C \cos (\sqrt{ \lambda}t) + D \sin(\sqrt{ \lambda}t) $
$T(0)=C$
and $u(0,x) = T(0)X(x) = CX(x) = 1$
How can it be?
Could you tell me where I make a mistake and help me solve this?
Thank you!