Finding the integrating factor (ODEs)

Click For Summary

Homework Help Overview

The discussion revolves around finding an integrating factor for a first-order ordinary differential equation (ODE) presented in the form y·dx + (2xy - e^{-2y})·dy = 0. Participants explore the conditions under which an integrating factor can be a function of either x or y, and the implications of these choices on solving the equation.

Discussion Character

  • Exploratory, Assumption checking, Problem interpretation

Approaches and Questions Raised

  • Participants discuss the necessity of taking the derivative of the integrating factor with respect to y and question the implications of having an integrating factor that is a function of both variables. There is an exploration of the conditions under which an integrating factor can be purely a function of x or y, and the tests for exactness are examined.

Discussion Status

The discussion is ongoing, with participants sharing insights and corrections regarding the conditions for finding an integrating factor. Some participants express confusion about the professor's assertion that the integrating factor is a function of y only, while others suggest that this may not hold true based on the tests discussed. Clarifications have been made regarding the necessary conditions for integrating factors.

Contextual Notes

There are indications of potential typos in the problem statement or the conditions for the integrating factor, which participants are attempting to clarify. The original poster expresses uncertainty about their approach and seeks further guidance on integrating factors that are not separable.

Novark
Messages
14
Reaction score
0
Finding the integrating factor (ODEs) [Solved]

Working on this problem, I can't figure out why we take the derivative of \mu with respect to y, and what to do when our integrating factor is a function of both x and y. In the case below, it ended up being separable, but what can you do if it's not?

Homework Statement



Find an integrating factor and solve the given equation.

y{\cdot}dx + (2xy - e^{-2y}){\cdot}dy = 0

Homework Equations



\frac{d\mu}{dy} = \frac{M_y - N_x}{N}{\cdot}\mu

The Attempt at a Solution



M(x,y) = y
N(x,y) = (2xy - e^{-2y})

So,

M_y = 1
N_x = 2y

\frac{d\mu}{dy} = \frac{1 - 2y}{(2xy - e^{-2y})}{\cdot}\mu \Rightarrow<br /> \frac{d\mu}{\mu} = \frac{1 - 2y}{(2xy - e^{-2y})}{\cdot}dy

ln(\mu) = \int{\frac{1 - 2y}{(2xy - e^{-2y})}}{\cdot}dy

If someone could refresh me on the methods to integrate the above, that would also be much appreciated. What I really want to know, however, is why we choose \mu with respect to y instead of x, and how to find our integrating factor when \mu is not separable.

Thanks in advance :-)
 
Last edited:
Physics news on Phys.org
First, you need to realize that, just as an equation may not be exact, it may also not have an integrating factor that is a pure function of just x or y. Say you start with:

M(x,y)dx + N(x,y)dy = 0

Of course your first test would be to see if Nx = My. If so, it is exact and you proceed with exact methods. But what if it isn't exact. Maybe, if we are lucky, we can find an integrating factor of the form μ(x) or μ(y) that will make it exact. So let's try it:

μ(x)M(x,y)dx + μ(x)N(x,y)dy = 0

Let's try the exactness test on this. We need

(μ(x)N(x,y))x = (μ(x)M(x,y))y

μ'(x)N(x,y) + μ(x)Nx(x,y) = μ(x)My(x,y)

\mu&#039;(x) = \frac {\mu(x)(M_y(x,y) - N_x(x,y))}{N(x,y)}

We can only hope to find μ(x) as a pure function of x if there are no y's on the right hand side. So before we even try to find such a μ(x), we should test the given equation to see if

\frac {M_y(x,y) - N_x(x,y)}{N(x,y)}

is a pure function of x.

Trying the same thing for a pure function of y we get:

μ(y)M(x,y)dx + μ(y)N(x,y)dy = 0

Testing for exactness:

μ(y)Nx(x,y) = μ(y)My(x,y) + μ'(y)M(x,y)

\mu&#039;(y) = \frac {\mu(y)(N_x(x,y) - M_y(x,y))}{M(x,y)}

For this to work there needs to be no x on the right side, so:

\frac {M_y(x,y) - N_x(x,y)}{M(x,y)}

must be a pure function of y.

In your example, neither of the two tests work, which explains why you didn't get a pure function of y to integrate and your method failed.
 
Last edited:
Thanks for the reply LC - I understand what you're saying.

In this case, however - my professor said that the integrating factor \mu is a function of y only.

How should I proceed with finding my function \mu by integrating with respect to y, and how will this affect the rest of the problem?
 
Last edited:
The above test shows that a pure function of y can't be an integrating factor. Maybe the problem has a typo or something.
 
I just checked the answer at the back of the book, it gives the following answers:

{\mu}(y) = \frac{e^{2y}}{y}

xe^{2y}-ln|y| = c

y = 0

I've written the question down correctly, too. Do I have an error in my math anywhere? I've checked it over, and I think it is correct...

Any ideas?
 
Hmmm, that looks correct. Unless I have a mistake, apparently the condition above is sufficient but not necessary. I'll have to think about it some more tomorrow. Interesting.
 
Still no luck in figuring this one out...

Anyone have any ideas?
 
Novark said:
Still no luck in figuring this one out...

Anyone have any ideas?

Hello Novark. I finally had time this morning to get back to this. There was a typo in my post in the test for an integrating factor just a function of y. I have edited and corrected it. To test for an integrating factor a pure function of y you need:

\frac {N_x(x,y) - M_y(x,y)}{M(x,y)}

to be a function of y only. I had mis-typed the denominator as N(x,y). You will see that your equation does indeed satisfy this criteria which is why you could find a function of y for an integrating factor.

(At least I tried to edit that post to fix the denominator. It looks corrected when I try to edit it but it is still displaying wrong at the moment)
 
Last edited:
Makes perfect sense now!

Thanks again LC!
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
24
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
Replies
9
Views
2K
  • · Replies 20 ·
Replies
20
Views
2K
Replies
2
Views
1K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K