Ordinary differential equation:

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 3K views
Edwardo_Elric
Messages
101
Reaction score
0

Homework Statement


Obtain the general solution:
[tex](1 - x)y' = y^2[/tex]


Homework Equations





The Attempt at a Solution


[tex](1 - x)\frac{dy}{dx} = y^2[/tex]

[tex](1 - x)dy = y^2dx[/tex]

[tex]\frac{dy}{y^2} = \frac{dx}{(1-x)}[/tex]
integrating both sides:

i used ln on the constant at the right side
[tex]-\frac{1}{y} = \ln(1 - x) + \ln{c}[/tex]

so my answer is:
[tex]-1 = y\ln{(c(1 - x))}[/tex]

the answer seems to be different at the back of my book w/c is
[tex]1 = y\ln{(c(1 - x))}[/tex] <<< no negative as before

can you tell me what's wrong with my soln?
 
Physics news on Phys.org
Edwardo_Elric said:

Homework Statement


Obtain the general solution:
[tex](1 - x)y' = y^2[/tex]


Homework Equations





The Attempt at a Solution


[tex](1 - x)\frac{dy}{dx} = y^2[/tex]

[tex](1 - x)dy = y^2dx[/tex]

[tex]\frac{dy}{y^2} = \frac{dx}{(1-x)}[/tex]
integrating both sides:

i used ln on the constant at the right side
[tex]-\frac{1}{y} = \ln(1 - x) + \ln{c}[/tex]
Here is the problem. What do you get if you differentiate ln(1-x)? (Don't forget to use the chain rule!)

so my answer is:
[tex]-1 = y\ln{(c(1 - x))}[/tex]

the answer seems to be different at the back of my book w/c is
[tex]1 = y\ln{(c(1 - x))}[/tex] <<< no negative as before

can you tell me what's wrong with my soln?
 
oh yeah! forgot about that thanks a lot :D