How can I solve this linear equation with an integrating factor?

  • Context: Undergrad 
  • Thread starter Thread starter Math Is Hard
  • Start date Start date
  • Tags Tags
    Linear
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
4 replies · 2K views
Messages
4,663
Reaction score
36
My teacher gave us this problem in class and then when she went to show us how to solve, she got stuck too!

[tex]1+xy = xy'[/tex]

after some rearranging and dividing we have

[tex]y' - y = 1/x[/tex]

we used an integrating factor of [tex]e^ {-x}[/tex]

and got the result of [tex](e^ {-x}y)' = e^ {-x}/x[/tex]

integrating gives [tex](e^ {-x}y) = {\int e^ {-x}/x \dx}[/tex]

and that's about where we got stuck. Integration by parts just took us in a loop.
Any help is appreciated. Thanks!
 
Physics news on Phys.org
Math Is Hard said:
My teacher gave us this problem in class and then when she went to show us how to solve, she got stuck too!

[tex]1+xy = xy'[/tex]

after some rearranging and dividing we have

[tex]y' - y = 1/x[/tex]

we used an integrating factor of [tex]e^ {-x}[/tex]

and got the result of [tex](e^ {-x}y)' = e^ {-x}/x[/tex]

integrating gives [tex](e^ {-x}y) = {\int e^ {-x}/x \dx}[/tex]

and that's about where we got stuck. Integration by parts just took us in a loop.
Any help is appreciated. Thanks!

I think you/she got stuck there because the integral of [tex]{e^ {-x}/x \dx}[/tex] has no analytic form - it diverges at x=0
 
Last edited:
Thanks, Gokul.

so as far as the solution for y , do you just throw up your hands and say "OK, divergent, can't be solved since the integral won't converge" or can you express y as something like this and call that the solution?

[tex]y = {e^ {x}\int e^ {-x}/x \dx}[/tex]
 
Gokul43201 said:
I think you/she got stuck there because the integral of [tex]{e^ {-x}/x \dx}[/tex] has no analytic form - it diverges at x=0

You are correct about both of those statements, but I think I should clarify by saying that one has nothing to do with the other. The integral of exp(-x2) has no analytic form, and it doesn't diverge anywhere. Conversely, the integral of tan(x) does have an analytic form, and it diverges at (2n+1)π/2, for any integer n.

Math Is Hard,

Yes, you can leave an integral as part of a solution.