Integrating Factor for Solving ODE with Linear Coefficients

iRaid
Messages
558
Reaction score
8
Problem:
xy'+2y=3x
Attempt:
Divide by x...
y'+\frac{2y}{x}=3
I think I find the integrating factor by doing:
e^{\int \frac{2}{x}dx}

Not sure if that's right but if it is then the solution to the integral is just 2x.

Any help is appreciated
 
Physics news on Phys.org
You will need to add in the constant of integration to the right side before you do any simplification.
 
iRaid said:
Problem:
xy'+2y=3x
Attempt:
Divide by x...
y'+\frac{2y}{x}=3
I think I find the integrating factor by doing:
e^{\int \frac{2}{x}dx}

Not sure if that's right but if it is then the solution to the integral is just 2x.

Any help is appreciated
Yes, the integrating factor is e^{\int (2/x)dx} but then the integral is 2 ln(x) so the integrating factor is e^{2ln(x)}= e^{ln(x^2)}= x^2, not 2x.

Multiplying the equation by that gives x^2y'+ 2xy= (x^2y)'= 3x^2
 
Last edited by a moderator:
Yeah I figured it out ends up:
x^{2}y'+2xy=3x^{2}
Take integral/derivative of integrating factor:
\int \frac{d}{dx} x^{2}y=\int 3x^{2}dx
Simplifies to:
x^{2}y=x^{3}+C \implies y=\frac{x^{3}+C}{x^{2}}
(can be simplified a little more too)

Thanks for the help.
 
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