Curious Question on Inhomogeneous Boundary Conditions of a PDE

53 Views Asked by At

I am given the PDE, $\ u_t=u_{xx},$ with boundary conditions $u(0,t)=A, \ u(1,t)=B$ and $u(x,0)=f(x)$. I have found the solution of this PDE is $$u(x,t)=A+(B-A)x+\sum_{n=1}^{\infty}B_ne^{n^2\pi^2 t}\sin(n\pi x),$$ where $$B_n=2\int_{0}^{1}\left(f(x)-(B-A)x-A\right)\sin(n\pi x) \ dx.$$ I found this by letting $u(x,t)=U(x)+v(x,t)$. For my solution, $v(x,t)$ solves the PDE in the case where the boundary conditions are homogeneous, e.g. $v(0,t)=0, \ u(1,t)=0$. My question is, why isn't $v(x,0)=0$ necessary to solve for $v(x,t)$? If this were the case, then $$T'-n^2\pi^2T=0\implies T_n(t)=C_1e^{n^2\pi^2 t}\implies C_1=0.$$