I have the following PDE: $$u_y + u^2 u_x = 0 \\ u(x, 0) = \sqrt{x}$$
I tried to solve it with lagrange's method: $$\tag 1 \frac{du}{dt} = 0 \quad \implies \quad \phi_1 = u$$ Second eq: $$\tag 2 \frac{dx}{u^2} = \frac{dy}{1}$$ since $u=\phi_1 = \text{Constant}$ I thought I can integrate it as a constant: $$\int \frac{dx}{u^2} = \frac{x}{u^2} $$ With this approach I get $$\tag 3 \phi_2 = \frac{x}{u^2} - y \quad \implies \quad u = \sqrt{\frac{x}{y+\phi_2}}$$ which doesn't get me much closer to the solution: $u(x, y) = \sqrt{\frac{x}{y+1}}$
Edit:
Perhaps I can say: $u(x,0) = \sqrt{x} \quad \implies \quad \phi_2 = 1$
Which then will give the correct solution? Any help\hints would be appreciated!