I need to solve the following differential equations.
$u(x, t)\;;x\in(0,2)\;;t>0$
$u_{tt} = u_{xx} + u$
Boundary conditions:
$u(x,0) = 0$
$u_t(x,0) = 0$
$u(0, t) = 2t$
$u(2, t) = 0$
I have tried to separate variables: $u(x,t) = X(x)T(t)$.
$XT'' = X''T + XT$
$\frac{T''}{T} = \frac{X''}{X} + 1 = \lambda$
But whatever lambda I choose ($<0;=0;>0$), $T$ is equal to $0$ due to boundary conditions:
$T = ax + b$
$0 = T(0)X(x) = bX(x)$
$0 = T'(0)X(x) = aX(x)$
$a = b = 0$ if $\exists x\;X(x)\neq0$
$T = ae^{kt} + be^{-kt}$
$0 = T(0)X(x) = (a+b)bX(x)$
$0 = T'(0)X(x) = k(a-b)X(x)$
$a = b = 0$ if $\exists x\;X(x)\neq0$
$T = a\sin{kt} + b\cos{kt}$
$0 = T(0)X(x) = bX(x)$
$0 = T'(0)X(x) = kaX(x)$
$a = b = 0$ if $\exists x\;X(x)\neq0$
What is wrong? Is separation of variables not a valid way for solving equations of such type? How could it be solved then?