3.3.18.2 Integrating factor that depends on only
Let
Comparing (1),(2) then
The compatibility condition is then this implies
Assuming then and the above simplifies to
Let . If which depends only on then we can solve the above.
Let then the ode
is now exact.
3.3.18.2.1 Example 1
Solve
Comparing to
Shows that . We see that . Hence not exact. Lets try
Since does not depend on then we can use this for an integrating factor.
Hence the ode now becomes
Where
And
Now ode (A1) is exact. Now we follow the main method for solving an exact ode on the above. Let
Since has both and , in it and has only in it, then in this case we start differently than before. We start with (2) and not (1) as it makes things simpler when integrating.
Integrating (2) w.r.t. gives
But , hence the above becomes
Taking derivative of (3) w.r.t. gives
But . Hence the above becomes
To solve for we now integrate the above w.r.t. which gives
No need to add constant of integration, as that will be absorbed anyway. Substituting the above back into (3) gives
, hence the solution is
Lets now see what happens if after Eq (2), we started with and not as we always do. Integrating (1) w.r.t. gives
Taking derivative w.r.t. the above becomes
But , hence the above becomes
Integrating w.r.t. gives
Substituting this into (5) gives the solution as (after combining constants)
Which is same answer as (4A). So starting with or gives same result. But if depends on and depends on only one of these, it can be simpler to pick . Same for the other way around. If depends on only one, and depends on both , then it will be easier to start with . But in both cases, same result should be obtained.
3.3.18.2.2 Example 2
This is same example as above but with initial conditions to show how to handle IC when unable to do the integration.
The solution found in above example is
At the above becomes
Substituting this value of in the solution gives
Or