Find the solution $u(x, t)$ to the 1-D heat equation
$$ u_t = c^2u_{xx}$$
with initial conditions
$$ u(x,0) = \begin{cases} \hfill 0 \hfill & \text{ if $x < 0$ } \\ \hfill u_0 \hfill & \text{ if $x > 0$} \end{cases} $$
The final answer should be expressed in terms of the error function, which is defined as:
$$ \frac 2 {\sqrt{\pi}} \int _{-\infty}^\infty e^{-w^2} \, dx$$
So far, I have taken the Fourier transform of the PDE and obtained
$$\frac {du}{dt} = -c^2w^2u$$
Then, I took the Fourier transform of the initial conditions and obtained
$$ \frac {u_0}{iw \sqrt{2\pi}}$$
After this part, I am not sure what do. Can someone clarify if what I have done is correct so far and tell me what I should do next?