Why Is My Solution Different from the Textbook's for This Linear ODE?

verd
Messages
144
Reaction score
0
Hey,

So I solved this one linear DE and the answer I got isn't the same as the one in the back of my textbook... And I'm not sure why. I thought I was doing this right. Could someone tell me what I'm doing wrong?

Here's what I'm given:

x^{2}y'+xy=1
\frac{dy}{dx}+\frac{x}{x^{2}}y=\frac{1}{x^{2}}
\frac{dy}{dx}+\frac{1}{x}y=\frac{1}{x^{2}}
integrating-factor-p=\frac{1}{x}
integrating-factor\rightarrow e^{\int p(x) dx}=e^{\int \frac{1}{x}dx}= e^{lnx}=x
(xy)'=\frac{1}{x^{2}}
xy=\int x^{-2}dx=\frac{-1}{x}+C
y=\frac{-1}{x^{2}}+\frac{C}{x}

That's what I get.

The answer in the textbook is:
y=x^{-1}lnx+Cx^{-1}

Which is similar but not the same... What'd I do wrong?
 
Physics news on Phys.org
When you get an integrating factor, multiply it through both sides to obtain

(xy)' = \frac{1}{x}
Then, Integrate to obtain
\int d(xy) = \int \frac{1}{x} dx
And this leads you to
y = \frac{ln(x)}{x} + Cx^{-1}

The step where you made the error was after the integrating factor, you did not also apply it to the right side of the equation, the x^{-2}.
 
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