I am working a few problems in my textbook for practice and I came across this problem:
$y' = \frac{x}{y+2}$
Proceeding as usual:
$\frac{dy}{dx} = \frac{x}{y+2}$
Separating the equation:
$(y+2)dy = xdx$
Taking the integral of both sides:
$\frac{1}{2}y^2 + 2y = \frac{1}{2}x^2 + C$
Simplifying slightly:
$y^2 + 4y = x^2 + 2C$
Now, after finding the worked solution for this problem (I was lost at how to resolve this):
$y^2 + 4y - 2C -x^2 = 0$
From this point the solution seems to treat both 2C and x^2 as part of the constant term of a quadratic equation:
$\frac{-4 \pm \sqrt{16 + 8C + 4x^2}}{2}$
$-2 \pm \sqrt{8+4C+x^2}$
Which is then simplified with a variable:
$-2 \pm \sqrt{x^2 + E}$
My question for this is what allowed the two terms (one of them being the independent variable) to be moved over and treated like a constant together with the constant C? Perhaps I am just getting lost in notation but in a quadratic equation:
$Ax^2 + Bx + C = 0$
The C is implied to be just a constant. What am I missing here?