Solve the following differential equation:

$x = py - y^2$

where  $p = \frac{dy}{dx}$

$x = py - p^2 \implies p^2 - py + x = 0 \implies p = \frac{y \pm \sqrt{y^2 - 4x}}{2}$