Linear diff eq - correctly done?

  • Thread starter Thread starter Asphyxiated
  • Start date Start date
  • Tags Tags
    Diff eq Linear
Asphyxiated
Messages
263
Reaction score
0

Homework Statement



Solve the linear differential equation:

xy'-2y=x^{2}


Homework Equations



If you have a linear differential equation of the form:

y'+P(x)y=Q(x)

then your integrating factor is:

I(x)=e^{\int P(x) dx}

The Attempt at a Solution



If we divide both sides by x then the equation is in standard form:

y' - \frac {2y}{x} = x

where

P(x)=-\frac{2}{x}

thus:

I(x)=e^{\int -\frac{2}{x} dx} = e^{-2\int\frac{1}{x}dx}= e^{-2ln|x|}=x^{-2}

so we then multiple both sides of the diff eq by I(x):

x^{-2}y'-2x^{-3}y=\frac{1}{x}

which is:

\frac {d}{dx}(x^{-2}y)=\frac{1}{x}

if we the integrate both sides:

x^{-2}y=ln|x|+c

therefore:

y= x^{2}ln|x|+cx^{2}
 
Physics news on Phys.org
Looks good to me.
 
Your solution is easy enough to check. Substitute your solution for y and take its derivative. When you evaluate xy' - 2y, you should get x2.
 
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