roam
- 1,265
- 12
Hello,
I was looking at the differential equation (x^2 + 1) \frac{dy}{dx} + xy = 0.
This solution to this equation has to be y = \frac{c}{\sqrt{x^2 +1}}
So, when do we usually need to use the method of integrating factor? Can we solve all linear equations (1st order) using this method?
Because in this example I used the method of separation of variables and I arrived at the correct answer!
(x^2 + 1) \frac{dy}{dx} + xy = 0
\frac{dy}{dx} + xy = \frac{1}{(x^2 + 1)}
\frac{1}{y} dy = \frac{1}{(x^2 + 1)} -xy dx
\frac{1}{y} = \frac{-x}{(x^2 + 1)}
\int \frac{1}{y} = \int \frac{-x}{(x^2 + 1)}
y = - \frac{1}{2} ln (x^2 + 1) + ln c = ln \frac{c}{\sqrt{x^2 +1}}
& it follows that y = \frac{c}{\sqrt{x^2 +1}}!
But how do we get the same answer using the method of integrationg factor?
(x^2 + 1) \frac{dy}{dx} + xy = 0.
Since it is in the form P(x) \frac{dy}{dx} + Q(x)y = R(x), we get it in the form \frac{dy}{dx} + p(x)y = q(x);
\frac{dy}{dx} + xy = \frac {1}{x^2 +1)};
\mu = e^{\int p(x) dx} so, since the p(x) is just x, then ∫x = 1/2x^2
yields => e^{\frac{x^2}{2}}
Multiplying both sides of the equation by the integrating factor;
\frac{d}{dx} + e^{\frac{x^2}{2}}y = \frac {1}{x^2 +1)} . e^{\frac{x^2}{2}}
Did I do it correctly so far? How do we do this question using an integrating factor?
Thanks.
I was looking at the differential equation (x^2 + 1) \frac{dy}{dx} + xy = 0.
This solution to this equation has to be y = \frac{c}{\sqrt{x^2 +1}}
So, when do we usually need to use the method of integrating factor? Can we solve all linear equations (1st order) using this method?
Because in this example I used the method of separation of variables and I arrived at the correct answer!
(x^2 + 1) \frac{dy}{dx} + xy = 0
\frac{dy}{dx} + xy = \frac{1}{(x^2 + 1)}
\frac{1}{y} dy = \frac{1}{(x^2 + 1)} -xy dx
\frac{1}{y} = \frac{-x}{(x^2 + 1)}
\int \frac{1}{y} = \int \frac{-x}{(x^2 + 1)}
y = - \frac{1}{2} ln (x^2 + 1) + ln c = ln \frac{c}{\sqrt{x^2 +1}}
& it follows that y = \frac{c}{\sqrt{x^2 +1}}!
But how do we get the same answer using the method of integrationg factor?
(x^2 + 1) \frac{dy}{dx} + xy = 0.
Since it is in the form P(x) \frac{dy}{dx} + Q(x)y = R(x), we get it in the form \frac{dy}{dx} + p(x)y = q(x);
\frac{dy}{dx} + xy = \frac {1}{x^2 +1)};
\mu = e^{\int p(x) dx} so, since the p(x) is just x, then ∫x = 1/2x^2
yields => e^{\frac{x^2}{2}}
Multiplying both sides of the equation by the integrating factor;
\frac{d}{dx} + e^{\frac{x^2}{2}}y = \frac {1}{x^2 +1)} . e^{\frac{x^2}{2}}
Did I do it correctly so far? How do we do this question using an integrating factor?
Thanks.
Last edited: