Integrating Factor for Solving ODE with Linear Coefficients

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 2K views
iRaid
Messages
558
Reaction score
8
Problem:
[tex]xy'+2y=3x[/tex]
Attempt:
Divide by x...
[tex]y'+\frac{2y}{x}=3[/tex]
I think I find the integrating factor by doing:
[tex]e^{\int \frac{2}{x}dx}[/tex]

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
iRaid said:
Problem:
[tex]xy'+2y=3x[/tex]
Attempt:
Divide by x...
[tex]y'+\frac{2y}{x}=3[/tex]
I think I find the integrating factor by doing:
[tex]e^{\int \frac{2}{x}dx}[/tex]

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 [itex]e^{\int (2/x)dx}[/itex] but then the integral is 2 ln(x) so the integrating factor is [itex]e^{2ln(x)}= e^{ln(x^2)}= x^2[/itex], not 2x.

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

Thanks for the help.