Ok so then,
dy/dx = -y^2
which equals
dy/(y^2) = -1dx
then integrate both sides to get
-1/y+c = -x+c
Generally, I believe one puts the constant only on one side of the equation:
. . . . .\(\displaystyle -\dfrac{1}{y}\, =\, -x\, +\, C\)
which equals
y = 1/(x-c)
Then solve for c
1/2 = 1/(0-c)
c = -2
and solve for y(x) to get
y(x) = 1/(x+2)
Is that correct?
Check, by plugging this back into the original exercise.
. . . . .\(\displaystyle -y^2\, =\, \dfrac{-1}{(x\,+\, 2)^2}\)
. . . . .\(\displaystyle \dfrac{dy}{dx}\, =\, \dfrac{d((x\,+\, 2)^{-1})}{dx}\, =\, (-1)(1\, +\, 0)(x\, +\, 2)^{-2}\, =\, \dfrac{-1}{(x\, +\, 2)^2}\)
Do they match?
