When you have a forced equation problem you can use Duhamel's principle

Duhamel's principle - Wikipedia, the free encyclopedia

So we need to solve the associated problem

such that

Separating variables as usual gives

imposing boundary conditions gives

Now using the initial condition gives

So phi has the form

So now by Duhamel's Principle the final solution is