Find u0:
The x-boundary conditions are inhomogeneous:
![]()
Try finding a u0 satisfying these boundary conditions:
![]()
u0 = A(t) + B(t) x
![]()

Identify the problem for the remainder:
Substitute u=u0+v into the boundary conditions:
![]()
![]()
Substitute u=u0+v into the PDE
:
![]()

Substitute u=u0+v into the IC u(x,0)=f(x):
![]()

The problem for v is therefor:
