\begin{equation} \frac{dx}{1} = \frac{dy}{3} = \frac{du}{u} \end{equation}
From $\frac{dx}{1} = \frac{dy}{3} $, $3x - y = C_1$
From $\frac{dx}{1} = \frac{du}{u}$, $\ln u = x + ln C_2 $
So $u = C_2e^x = \phi(3x - y)e^x $
Since $u|_{x=0} = y$,
$\phi(-y) = y $ which means $ \phi(z) = -z $
Therefore, $u = (y - 3x)e^x$