Need help with inital value problem: y'=-y^2 and y(0)=1/2

Pliuo

New member
Joined
Dec 12, 2015
Messages
3
Hi, I'm not really sure how to tackle this problem. Any help would be appreciated.

y'=-y^2 and y(0)=1/2

Find y(x)
 
Hi, I'm not really sure how to tackle this problem. Any help would be appreciated.

y'=-y^2 and y(0)=1/2

Find y(x)
Have you heard of "separation of variables" (here)? If so, I would suggest using this method. ;)
 
Think of seperation of variables :).

\(\displaystyle y' = -y^2 \quad|: (y^2)\)

\(\displaystyle \int \frac{1}{y^2}\;dy = \int-1\;dx\)
 
Ok so then,

dy/dx = -y^2

which equals

dy/(y^2) = -1dx

then integrate both sides to get

-1/y+c = -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?
 
Ok so this is what I got:

dy/dx = -y^2

which equals

1/y^2 dy = -1 dx

Integrate both sides to get

-1/y+c = -x+c

which equals

y = 1/(x-c) (constants combined)

Then solve for c

1/2 = 1/(0-c)

c = -2

and then y(x) = 1/(x+2)

Is that correct?
 
Everything looks fine to me in your workings. A further check of the answer reveals...

\(\displaystyle y\left(x\right)=\frac{1}{x+2}\)

\(\displaystyle y'\left(x\right)=-\frac{1}{\left(x+2\right)^2}=-\left(\frac{1}{x+2}\right)^2\)

\(\displaystyle y'\left(x\right)=-y^2\)

You get back to the original form, so everything checks out.
 
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? ;)
 
Top