It's been forever since I've done a course in PDE's, so I'd really appreciate a step by step process for solving this

leads to a solution of the form

If , , and .

I want to say the due to the boundary condition, but I'm not sure.

I'm also not sure what the integral's should look like when I'm trying to find the fourier coefficents of u,f and g.

Thanks in advance.