Ito's formula??

$dX = \frac{1}{\tau}Xdt + \sqrt{2D}dW$ with $X(0) = x_0$
Derive ordinary differential equation for $g(t) = <{X_t}^2>$ and solve it.