2.4 Special Integrating Factors and Substitutions
Our toolbox already handles a good number of equation types. Still, an equation met in practice often fits none of them exactly, and then we have to bend it into a shape we know. Two ideas do most of that work.
- Repair the equation. If is not exact, multiply it by an integrating factor. We will find simple tests that tell us when a factor depending on alone, or on alone, exists, and a formula for it.
- Change the variables. A shift of the origin, or a new unknown, can turn an unfamiliar equation into a familiar one.
The condition for an integrating factor
Recall from Section 2.1 that is an integrating factor of when is exact, i.e.
Expand both sides with the product rule:
This is a partial differential equation for . Solving it in general is harder than the problem we started with. The trick is to guess the form of , so that the equation collapses to something easy.
Suppose is an integrating factor, so . Take any continuous function of one variable, not identically zero, and multiply once more by :
The right side is again a total differential, so is also an integrating factor. Every equation that has one integrating factor therefore has infinitely many. This is why we are free to look for a convenient one, such as a function of alone, and to drop constants of integration when we compute it.
Integrating factors that depend only on
Suppose . Then and . The condition becomes
Look at the two sides. The left side depends only on . So this can only work if the right side also depends only on . When it does, call it ; then gives , and
Conversely, if the right side really depends on , no integrating factor of the form exists.
Integrating factors that depend only on
Now suppose . Then and , and the condition becomes
The same reasoning applies with the roles of and exchanged. Notice that the numerator has the opposite order, , and the denominator is .
Let and be continuous with continuous partial derivatives , in a rectangle .
- If in and depends on only, then is an integrating factor of .
- If in and depends on only, then is an integrating factor of .
Both quotients start with "", the amount by which the equation fails to be exact. For divide by . For divide by and flip the sign. A quick check: for the linear equation the first quotient is , which gives back from Section 2.3.
- Compute . If it is zero, the equation is already exact.
- Form . If it simplifies to a function of only, take .
- Otherwise form . If it is a function of only, take .
- Multiply the equation by , verify exactness, and solve by the method of Section 2.1.
- Check curves where is zero or undefined against the original equation.
The exactness solver tries both quotients automatically when an equation is not exact. Enter polynomial and and see which test succeeds.
Worked examples: integrating factors
Solve .
Solution
- Exact? and . Not exact; .
- Try . A constant certainly "depends on only". So .
- Multiply. . Check:
- Potential. Here it is easier to integrate with respect to : Then , which equals when .
- Answer. .
- Check . is never zero, so no solutions are gained or lost.
Solve .
Solution
- Exact? , . Not exact.
- Try . contains . No factor exists.
- Try . . This depends on only, so
- Multiply. . Check: .
- Potential. . Then , so .
- Answer. .
- Check . on . In the original equation, gives , so it is a solution; it is the case .
Another route. The equation is linear in : . With from Section 2.3 you get , so . Same answer.
Integrating factors of the form
Sometimes neither quotient works, but the equation has polynomial coefficients. Then a factor is worth trying. Multiply, impose exactness, and compare coefficients of matching monomials. This produces linear equations for and . If they have a solution, you have found ; if not, try something else.
Why does comparing coefficients work? Multiplying a monomial by and then differentiating gives another monomial, times a number that depends linearly on or . So both and are sums of monomials with coefficients linear in and . Two such sums are equal for all and only if the coefficients of each monomial agree. When and each have two terms, as is typical, this gives two equations for two unknowns. A monomial that appears on only one side forces its coefficient to be zero, which is an extra condition and may make the system unsolvable.
Find an integrating factor of the form for , and solve.
Solution
- The simple tests fail. and . The quotients and each depend on both variables.
- Multiply by .
- Differentiate.
- Match coefficients. The monomials and appear on both sides:
- Solve. Subtracting the second equation from the first gives , so and then . The factor is .
- Exact equation. .
- Potential. , and forces .
- Answer. . (The lines and , where , solve the original equation and are contained in .)
Equations with linear numerator and denominator
Consider equations of the form
where the , , are constants. If , this is homogeneous (Section 2.2). The constants , spoil homogeneity. The cure depends on whether the two lines
intersect or are parallel.
Consider .
- Intersecting lines, . Let be the intersection point, i.e. the solution of , . The substitution , gives the homogeneous equation
- Parallel lines, , with . The substitution gives a separable equation in and .
Why the shift works
- Because and are constants, and , so .
- Substitute into the numerator:
- The denominator works the same way. The constants vanish, and what remains is homogeneous of degree zero.
Geometrically, we move the origin to the point where the two lines cross. In the new coordinates both lines pass through the origin, and lines through the origin are exactly what homogeneous equations "see".
Why works
- If , the pairs and are proportional: and for some constant (when , are not both zero).
- Then , so the equation reads .
- Differentiate : . Substituting, The right side depends on only, so the equation is separable.
If (and ), parallelism forces , and is a function of alone: just integrate. In practice, it is often quickest to let be the expression that appears in both numerator and denominator.
- Compute .
- If it is nonzero: solve for the intersection , put , , and solve the homogeneous equation with . Finally substitute , .
- If it is zero: put , derive , separate, integrate, and substitute back.
- In the parallel case, roots of the separated -equation give straight-line solutions; check them.
The solver below follows these steps for any choice of the six coefficients. Try both an intersecting and a parallel case.
Solve .
Solution
- Which case? . The lines intersect.
- Intersection. Solve and . From the first, ; then , so and .
- Shift. With , :
- Homogeneous substitution :
- Separate. . Since , there are no line solutions to lose.
- Integrate. Split the fraction: . So
- Combine the logarithms. . Hence
- Back to . In polar coordinates centred at this reads : the solution curves are spirals around the intersection point.
Solve .
Solution
- Which case? . The lines are parallel; the expression appears in both.
- Substitute . Then and :
- Separate (for ): .
- Divide the fraction. .
- Integrate. .
- Back to . , i.e. . Divide by 3:
- Line solution. The root gives the line , i.e. . Check: , and the right side equals . It is a solution not contained in the family.
Where did the line solution come from? In the parallel case the right side of the original equation is constant along every line . On one special line the slope given by the equation equals the slope of the line itself, . That line is then a solution curve. Algebraically, it is the root of the separated -equation, which we divided by. As always, dividing by an expression that can vanish means checking its zeros.
All the transformations in this chapter share one idea: find a combination of the variables that the equation "really" depends on, and make that combination the new unknown. For instance, depends only on ; with it becomes , which is separable (see Exercise 9).
Choosing a method: a checklist
You now know seven techniques. Faced with a new first-order equation, it pays to test them in a sensible order, from the quickest check to the most laborious one. One equation may fit several types; then choose the method with the easiest integrals.
- Separable? Can be written as ? If yes, separate, and remember the constant solutions .
- Linear in ? Can it be written as ? If yes, use .
- Linear in ? Sometimes works when the -form does not (Example 2.3.5).
- Exact? Write it as and compare with .
- Bernoulli? Is it ? Substitute .
- Homogeneous? Is ? Substitute .
- Integrating factor of one variable? Compute and .
- Linear fraction or another substitution? Look for an expression, such as , that the right side really depends on.
If none of these work, the equation may have no solution in terms of elementary functions. That is normal, not a failure. Chapter 8 shows how to obtain accurate approximate solutions in such cases, and the slope fields of Chapter 1 always give a qualitative picture.
Exercises
In Exercises 1–4, find an integrating factor depending on one variable only, and solve.
-
Answer
; , i.e. . -
Answer
; . -
Answer
; . -
Answer
; . - Find an integrating factor of the form for , and solve.
Answer
, so ; . -
Answer
Shift to ; . -
Answer
Shift to ; . -
Answer
With : ; also the line . -
Answer
. -
Answer
With : ; also the line .