I am trying to find solutions to the following PDE:
$$\frac{\partial T}{\partial t} = K\frac{\partial^{2} T}{\partial x^{2}},$$ With boundary condition: $T(0,t)=T_{0}\cos(\omega t)$, where $\omega = \frac{2K}{a^{2}}$.
I am trying to solve this by separation of variables into $T(x,t) = X(x)F(t)$ so we have:
$$X(x)\frac{\partial F}{\partial t}=KF(t)\frac{\partial^{2} X}{\partial x^{2}}$$
Thus we have the following two conditions:
$$\frac{\partial F}{\partial t}=-\lambda K F(t) \land \frac{\partial ^{2} X}{\partial x^{2}}=-\lambda X(x)$$
Solving these (and taking into account that $\lambda$ can be arbitrary), we have:
$$F(t)=\sum_{\lambda} \alpha_{\lambda} \exp(-\lambda K t) \land X(x)=\sum_{\lambda}\left(A_{\lambda}\cos(\sqrt{\lambda}x)+B_{\lambda}\sin(\sqrt{\lambda}x)\right)$$
We have boundary condition:
$$T(0,t)=T_{0}\cos(\omega t)$$
However, I am having trouble now computing the coefficients $\alpha_{\lambda}$, $A_{\lambda}$ and $B_{\lambda}$.
The question in it's full form is given by:
The temperature $T$ in a one-dimensional bar whose sides are perfectly insulated obeys the heat flow equation: $$\frac{\partial T(x,t)}{\partial t}=K\frac{\partial^{2}T(x,t)}{\partial x^{2}}$$ where $K$ is a constant. The bar extends from $x=0$ to $x=\infty$. The temperature at the end $x=0$ oscillates in time according to $T(x=0,t)=T_{0}\cos(\omega t)$. By looking for solutions that are separated in $x$ and $t$ ($T = X(x)F(t)$) find the solution for all $x \geq 0$ and $t$, which matches the boundary condition at $x=0$. Sketch $T$ versus $x$ for $\omega t = \pi/2$, given that $\frac{\omega}{2K}=\frac{1}{a^{2}}$.