How to Solve a Differential Equation Using Separation of Variables

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
You've done the calculus correctly, now you need to do a little algebra.

Hint: what's e^(-ln x)?
 
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
\displaystyle e^{-1/x-\ln(x)+C}=e^{-1/x}e^{-\ln|x|}e^C
\displaystyle =e^{-1/x}(1/x)e^C​
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?
 
bdh2991 said:
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?

e0 = 1
 
ok thanks for the help i didn't remember that you could rewrite the e functions that way...
 
Prove $$\int\limits_0^{\sqrt2/4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx = \frac{\pi^2}{8}.$$ Let $$I = \int\limits_0^{\sqrt 2 / 4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx. \tag{1}$$ The representation integral of ##\arcsin## is $$\arcsin u = \int\limits_{0}^{1} \frac{\mathrm dt}{\sqrt{1-t^2}}, \qquad 0 \leqslant u \leqslant 1.$$ Plugging identity above into ##(1)## with ##u...
Back
Top