Solution of First Order DE using Integrating Factors

Click For Summary

Discussion Overview

The discussion revolves around solving a first-order differential equation using integrating factors. Participants explore various methods to find an integrating factor for the equation and discuss the implications of the problem's wording.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • Vivek expresses difficulty in finding an integrating factor for the equation and notes that neither a function of x alone nor y alone seems to work.
  • Matthew suggests an alternative method involving a substitution, questioning the necessity of finding an integrating factor.
  • A later reply proposes that the problem may be misworded and should be treated as an Exact/Not Exact problem, detailing the steps to find an integrating factor and demonstrating that it is 1/x.
  • This reply also shows how to multiply the equation by the integrating factor and checks for exactness, leading to a derived solution involving a constant.
  • Another participant references an online ODE solver that confirms the integrating factor as 1/x and provides a possible solution set.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the necessity of finding an integrating factor, with some suggesting alternative methods. There are competing views on the approach to solving the differential equation, and the discussion remains unresolved regarding the best method to apply.

Contextual Notes

Some participants note the potential miswording of the problem, which may affect the interpretation of the requirement for an integrating factor. The discussion includes various assumptions about the methods and steps involved in solving the equation.

maverick280857
Messages
1,774
Reaction score
5
Hello everyone

I'm stuck with a problem from Simmons (not HW). The problem asks to solve the following equation by finding an integrating factor

[tex](xy-1)dx + (x^2 - xy)dy = 0[/tex]

I found by hit and trial that there can be no integrating factor that is a function of [itex]x[/itex] alone or [itex]y[/itex] alone. So how do I find an integrating factor for this equation? Any ideas?

Thanks
Vivek
 
Physics news on Phys.org
I'm not sure that integrating factors will be of any use here. But you can still solve it, i.e. by making the substitution

[tex]y = x + \sqrt{v}[/tex]

this will give you

[tex]1 + \frac{1}{2}\frac{v^{\prime}}{\sqrt{v}} = \frac{1 - x^2 - x \sqrt{v}}{-x \sqrt{v}} = (x - \frac{1}{x}) \frac{1}{\sqrt{v}} + 1[/tex]

which reduces to

[tex]v^{\prime} = 2(x - \frac{1}{x})[/tex]

leaving you

[tex]v(x) = x^2 - 2 \ln{x} + C[/tex]

where C is a constant. Feed this back into y to get

[tex]y(x) = x + \sqrt{x^2 - 2 \ln{x} + C}[/tex].
 
Last edited:
Thanks Matthew, interesting method.

I wonder why the questions asks to find an integrating factor though.
 
maverick280857 said:
Hello everyone

I'm stuck with a problem from Simmons (not HW). The problem asks to solve the following equation by finding an integrating factor

[tex](xy-1)dx + (x^2 - xy)dy = 0[/tex]

I found by hit and trial that there can be no integrating factor that is a function of [itex]x[/itex] alone or [itex]y[/itex] alone. So how do I find an integrating factor for this equation? Any ideas?

Thanks
Vivek

There is no obvious integrating factor, but there is one. If my understanding is correct, the problem you are given is worded wrong. You need to treat this problem as an Exact/Not Exact problem. Here's how you solve it:

[tex]M = (xy-1)[/tex]
[tex]N = (x^2 - xy)[/tex]

Now take the partial with respect to y of M, and the partial with respect to x of N:

[tex]M_y = x[/tex]
[tex]N_x = 2x - y[/tex]

Since

[tex]M_y[/tex] is not equal to [tex]N_x[/tex], this equation is NOT exact, so you must find an integrating factor that makes it exact.
Check if the integrating factor can be only a function on x:

[tex]\frac{M_y - N_x}{N}\mu = \frac{d\mu}{dx}[/tex]

Plugging in the corresponding values, you get:

[tex]\frac{x - 2x +y}{x^2-xy}\mu = \frac{d\mu}{dx}[/tex]

[tex]\frac{-x +y}{-x ( -x + y )}\mu = \frac{d\mu}{dx}[/tex]

[tex]-\frac{1}{x}\mu = \frac{d\mu}{dx}[/tex]

[tex]-\frac{1}{x}dx = \frac{d\mu}{\mu}[/tex]

[tex]-\ln(x) = \ln(mu)[/tex]

[tex]e^{-\ln(x)} = e^{\ln(\mu)}[/tex]

[tex]\mu = \frac{1}{x}[/tex]

Now multiply both sides of the equation by the integrating factor:

[tex](y-\frac{1}{x})dx + (x - y)dy = 0[/tex]

Now check again if the equation is exact ( it must be, but just to make sure ):

[tex]M = y-\frac{1}{x}[/tex]
[tex]N = x - y[/tex]


[tex]M_y = 1[/tex]
[tex]N_x = 1[/tex]

Now it's exact:

[tex](1)\psi(x,y) = y-\frac{1}{x}[/tex]
[tex](2) \psi(x,y) = x - y[/tex]

[tex]\int(1) dx[/tex]
[tex](3)\int y-\frac{1}{x} = xy - \ln{x} + h(y)[/tex]

Now differentiate [tex](3)[/tex]:

[tex](**)\frac{d}{dy}(y - \ln{x} + h(y)) = 1 + h\prime(y)[/tex]

Set [tex](2) = (**)[/tex] :

[tex]x - y = 1 + h\prime(y)[/tex]
[tex]h\prime(y) = x - y -1[/tex]

Since [tex]h\prime(y) = x - y -1[/tex],

[tex]h(y) = xy - \frac{1}{2}y^2 - y[/tex]

Now plug in [tex]h(y)[/tex] into [tex](3)[/tex]:

[tex]\psi(x,y) = xy - \ln{x} + xy - \frac{1}{2}y^2 - y[/tex]
[tex]\psi(x,y) = 2xy - \ln{x} + \frac{1}{2}y^2 - y[/tex]

So

[tex]xy - \ln{x} + xy - \frac{1}{2}y^2 - y = C[/tex]

is a constant solution. I tried separating y from everything, but it looks nasty. Here, i'll post it anyway:

[tex]y = \sqrt(-2\ln{x} + x^2 - 2x - 2 (C - 2)) + x - 2[/tex]

I hope I didn't mess up anywhere, it took sometime to type.
Hopefully this helps. Good Luck!
 
maverick280857 said:
Hello everyone

I'm stuck with a problem from Simmons (not HW). The problem asks to solve the following equation by finding an integrating factor

[tex](xy-1)dx + (x^2 - xy)dy = 0[/tex]


Thanks
Vivek

Answer given by the following online ODE solver at

http://www.fundp.ac.be/sciences/physique/administration/convode.html

i) integrating factor is 1/x
ii) possible solution set
{y=sqrt( - 2*log(x) - 2*cte + x ^2) + x, y=-sqrt( - 2*log(x) - 2*cte + x ^2) + x}
 
Last edited by a moderator:

Similar threads

  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K