I want to solve the following partial different equation.
Find $u(x, t)$, satisfying $u_t = u_{xx}$ , $u(x, 0) = x − x^2$ , $u(0, t) = T_0$ , $u_x (1, t) = 0$ and $|u|$ is bounded.
Using separation of variables, and eliminating solutions that diverge with time, one gets $u(x,t)=e^{ \lambda^2t}(A \cos(\lambda x)+B\sin(\lambda x))$
How do I proceed after this? The condition $u_x (1, t) = 0$ gives $ A=-B \tan(\lambda )$ which is giving me a contradiction for the condition $u(0, t) = T_0$ , as you get $-e^{ \lambda^2}B\tan(\lambda)=T_0$