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.
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top