How to Solve a Differential Equation Using Separation of Variables

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
5 replies · 2K views
bdh2991
Messages
102
Reaction score
0

Homework Statement



use separation of variables to solve the differential equation x^2dy/dx=y-xy

with the initial condition of y(-1)=-1

Homework Equations


The Attempt at a Solution



after i separated and integrated i got the answer y=e^(-1/x-lnx+c)

the answer in the book is y=e^-(1+1/x)/x

i can't figure out how they got to that even after i plugged in -1 for x and y

some help would be greatly appreciated
 
Physics news on Phys.org
bdh2991 said:

Homework Statement



use separation of variables to solve the differential equation x^2dy/dx=y-xy

with the initial condition of y(-1)=-1

The Attempt at a Solution



after i separated and integrated i got the answer y=e^(-1/x-lnx+c)

the answer in the book is y=e^-(1+1/x)/x

i can't figure out how they got to that even after i plugged in -1 for x and y

some help would be greatly appreciated
[itex]\displaystyle e^{-1/x-\ln(x)+C}=e^{-1/x}e^{-\ln|x|}e^C[/itex]
[itex]\displaystyle =e^{-1/x}(1/x)e^C[/itex]​
Does that help?
 
well i think it would be x^-1 so then that would give me the x in the denominator then plugging in the initial values i should get c=1?
 
ok thanks for the help i didn't remember that you could rewrite the e functions that way...