How to Find a Solution for a Differential Equation Passing Through Given Points

KillerZ
Messages
116
Reaction score
0

Homework Statement



Find a solution of x\frac{dy}{dx} = y^{2} - y that passes through the indicated points.

a) (0,1)
b) (0,0)
c) (1/2 , 1/2)
d) (2, 1/4)

Homework Equations



x\frac{dy}{dx} = y^{2} - y

The Attempt at a Solution



x\frac{dy}{dx} = y^{2} - y

\frac{dy}{y^{2} - y} = \frac{dx}{x}

\int\frac{dy}{y^{2} - y} = \int\frac{dx}{x}

\int\frac{dy}{y(y - 1)} = ln|x| + c

I used partial fractions to solve the left:

\int\left(\frac{1}{y - 1} - \frac{1}{y}\right)dy = ln|x| + c

\int\frac{1}{y - 1}dy - \int\frac{1}{y}dy = ln|x| + c

\int\frac{1}{y - 1}dy - ln|y| = ln|x| + c

u = y - 1
du = dy

\int\frac{1}{u}du - ln|y| = ln|x| + c

ln|u| - ln|y| = ln|x| + c

ln|y - 1| - ln|y| = ln|x| + c

ln|\frac{y - 1}{y}| = ln|x| + c

\frac{y - 1}{y} = e^{ln|x| + c} = (e^{ln|x|})(e^{c})

\frac{y - 1}{y} = |x|(e^{c})

\frac{y - 1}{y} = \pm(e^{c})(x)

\frac{y - 1}{y} = c(x)

Now this is where I am confused:

a) (0, 1)

\frac{1 - 1}{1} = c(0)

0 = 0

Does this mean c = 0 or does it mean that there is no solution through the point (0, 1) or that there is a solution through the point as left = right?
 
Physics news on Phys.org
Hi KillerZ! :smile:
KillerZ said:
ln|\frac{y - 1}{y}| = ln|x| + c

\frac{y - 1}{y} = e^{ln|x| + c} = (e^{ln|x|})(e^{c})

Nooo :redface:

ln|(y-1)/xy| = c,

so … ? :smile:
 
I do not understand where the xy in ln|(y-1)/xy| came from.
 
lnA - lnB = ln(A/B) :wink:
 
So.

ln|y - 1| - ln|y| = ln|x| + c

ln|y - 1| - ln|y| - ln|x| = c

becomes ?

ln|\frac{y - 1}{yx}| = c
 
:-p go on … :smile:
 
ln|\frac{y - 1}{yx}| = c

\frac{y - 1}{yx} = e^{c}

replace e^c with c as it is just a constant

\frac{y - 1}{yx} = c
 
ah, looking back, I see you got there anyway …

ok, you were puzzled about getting it to go through (0,1).

You have c|x| = |(y-1)/y|, so for any non-zero value of c, limy->1|x| = 0 …

they all go through (0,1) ! :smile:
 
ok thank you.
 
Back
Top