I've gotten to a point in this problem but I'm not certain how to continue...
$u_t=u_{xx}$, $0
Boundary conditions $u(0,t)=2$ and $u(\pi,t)=-1$
Initial condition $u(x, 0)=1$ for $0 First, I translated the BCs and got $u(0,t)=2=F(t)G(0)$ $u(\pi,t)=-1=F(t)G(\pi)$ I made the assumption that $u(x,t)=w(x,t)+v(x)$ which substituted into the PDE as $w_t=w_{xx}+v''$ and chose $v''=0$. Thus, $w(x,t)$ satisfies the following homogenous PDE: $w_t=w_{xx}$, $w(0,t)=0$ and $w(\pi,t)=0$ $v(0)=2$ and $ v(\pi)=-1$ imply $w(0,t)=0$ and $w(\pi, t)=0$ Using the initial condition, $u(x,0)=w(x,0)+v(x)$, we know $v(x)=Ax+B$, which I solved for (using $v(0)=2$ and $v(\pi)=-1$) and $v(x)=-3x/\pi+2$, so: $w(x, 0)=f(x)-(-3x/\pi +2)$ But now I'm stuck and have no idea which direction to go from here. Any advice is greatly appreciated.