Use the method of Separation of Variables to solve $$u_t-ku_{xx}=2x^2t\;\;0<x<1,t>0\\ u(0,x)=\cos(\frac{3 \pi x}{2})\;\;0<x<1\\ u(t,0)=1,u(t,1)=\frac{3 \pi}{2}\;\;t>0$$
my attemt:
suppose i take $u(x,t)=X(x)T(t)$
then $u''_x=X''T, u'_t=XT'$
then given equation reduced to $XT'-kX''T=2x^2t$
can any help me with this problem..and please tell me how to slove non-homogenous PDE equation or suggest me some good book for PDE with non homogenous that contains problem ..please

$$u_t-ku_{xx}=2x^2t$$ You cannot directly use the separation of variables as you did because the PDE is not homogeneous.
HINT :
First, one have to change of function $u(t,x)$ to another function $v(t,x)$ such as the PDE becomes homogeneous. So, we look for a particular solution $y(t,x)$ so that : $$u(t,x)=v(t,x)+y(t,x) \quad\text{with}\quad \begin{cases}y_t-ky_{xx}=2x^2t \\v_t-kv_{xx}=0\end{cases}$$ Doesn't matter the particular solution $y(t,x)$ is. So, we can look for one as simple as possible, for example a polynomial easy to guess(or to determine by identification method) : $$y(t,x)=x^2t^2+\frac{2k}{3}t^3$$ Then, the method of separation of variables $v(t,x)=T(t)X(x)$ can be used.