Solve the following IVP$$ \begin{cases} xuu_x+yuu_y=xy\\ u(x,\sqrt{x})=0\\ \end{cases}$$
By Lagrange we get:
$$\frac{dx}{xu}=\frac{dy}{yu}=\frac{du}{xy}$$
$$\frac{dx}{xu}=\frac{dy}{yu}\to \frac{dx}{x}=\frac{dy}{y}\implies\phi_1=\frac{x}{y}=c_1$$
$$\frac{dx}{xu}=\frac{du}{xy}\to\frac{dx}{u}=\frac{du}{y}\implies\phi_2=2yx-u^2=c_2$$
So the genral sloution is: $$F\left(\frac{x}{y},2yx-u^2\right)=0$$
As $\phi_1$ is not a function of $u$ it can be writing as
$$F\left(\frac{x}{y}\right)=2yx-u^2\implies u^2=2yx-F\left(\frac{x}{y}\right)$$
Using initial condition we get $$ 0=2x\sqrt{x}-F\left(\frac{x}{\sqrt{x}}\right)\implies F\left(\frac{x}{\sqrt{x}}\right)=2x\sqrt{x} $$
So the solution is $$u^2=2yx-2x\sqrt{x}$$
Or I got it wrong somewhere?
As
$$ x \frac{\partial u^2}{\partial x}+y\frac{\partial u^2}{\partial y}=2x y $$
we have
$$ \frac 1y\frac{\partial u^2}{\partial x}+\frac 1x\frac{\partial u^2}{\partial y}=2 $$
now calling $v = u^2$ we have
$$ \frac 1y\frac{\partial v}{\partial x}+\frac 1x\frac{\partial v}{\partial y}=2 $$
with general solution
$$ v = x y+\phi\left(\frac yx\right) $$
but considering the conditions $v(x,\sqrt{x})=0$ we have
$$ \phi\left(\frac yx\right) =-\left(\frac xy\right)^3 $$
and then
$$ v = x y-\frac{x^3}{y^3} $$
hence
$$ u = \sqrt{ x y-\frac{x^3}{y^3}} $$