You should get rid of the inhomogeneous boundary condition before you attempt the transform. Essentially you can do this by the ansatz ##u(x,t) = v(x,t) + h(x)## where ##h(x)## is the stationary solution for your inhomogeneous boundary conditions. You will then get an ODE for ##v(x,t)## that you can solve using either the eigenfunctions proposed in #13 or by the extension proposed in #19.
So first step: What is the stationary solution?
If you have problems with this, you can also start by solving the problem for ##U_1=0## and deal with this in the end. In that case, do you understand the odd extension around ##x=L##?