STEP-BY-STEP ANSWER:
Step 1: Choose ψ(x) to satisfy the nonhomogeneous boundary conditions. For example, if u(0,t)=u0 and u(L,t)=u1, set ψ(x)=u0+(x/L)(u1−u0).
Step 2: Define v(x,t)=u(x,t)−ψ(x) so that v(x,t) obeys homogeneous boundary conditions.
Step 3: Substitute u(x,t)=v(x,t)+ψ(x) into the original PDE. The steady-state function ψ(x) is chosen so that the extra terms cancel the nonhomogeneous part.
Step 4: Solve the resulting homogeneous PDE for v(x,t) using separation of variables and expand the initial condition in terms of the eigenfunctions.
Step 5: Express the final solution u(x,t)=v(x,t)+ψ(x) as the sum of the steady state and the transient response.
Final Answer: