I need some help on solving this heat PDE :
Question : Consider a bar length L. The face at x=0 is insulated so that the heat flow across is zero, and the face at x=L is held at temperature u=0. The temperature distribution is governed by heat equation
$$ {\partial u \over \partial t} - k {\partial ^2 u \over \partial x^2} =0$$
Show that the normal modes of u(x,t) are
$$\large U_n(x,t)=B_n\cos[(2n-1)\pi x/2L]e^{[-(2n-1)^2\pi^2k^2t]/4L^2}$$
Given BCs are : u(0,t)=0 and u(L,t)=0
I already solve this PDE
and I got my answer in this form :
$$\large U_n(x,t)=B_n\sin[n\pi x/2L] e^{[-(n)^2\pi^2k^2t]/4L^2}$$
How am I need to change my answer into the form they asking ??? Anyone willing to help me ?