The integrating factor
Multiply dy/dx + Py = Q by the integrating factor: the left side becomes d/dx (y · I.F.).
Make it a product rule
Example 14: dy/dx − y = cos x is not separable. But d/dx (y · g(x)) = g dy/dx + y g′ looks a lot like its left side.
Multiplying dy/dx − y by which function makes it the derivative of (that function × y)?
What this lesson covers
The idea
Multiply dy/dx + Py = Q by I.F. = e^(∫P dx); the left side becomes d/dx (y · I.F.), so the solution is y · I.F. = ∫ (Q × I.F.) dx + C. For dx/dy + P₁x = Q₁, I.F. = e^(∫P₁ dy) and x · I.F. = ∫ (Q₁ × I.F.) dy + C.
Make it a product rule
Example 14: dy/dx − y = cos x is not separable. But d/dx (y · g(x)) = g dy/dx + y g′ looks a lot like its left side.
Multiplying dy/dx − y by which function makes it the derivative of (that function × y)?
- e⁻ˣ
- eˣ
- x
Curves of a linear equation
Example 18: dy/dx − xy = x. With the integrating factor its general solution is y = −1 + C e^(½x²). Place the point and read C.
Integrating factor
For dy/dx + Py = Q, multiply by the integrating factor I.F. = e^(∫P dx). The left side becomes d/dx (y · I.F.), so y · I.F. = ∫ (Q × I.F.) dx + C. For dx/dy + P₁x = Q₁: I.F. = e^(∫P₁ dy) and x · I.F. = ∫ (Q₁ × I.F.) dy + C.
Why: we want g dy/dx + Pgy = d/dx (yg) = g dy/dx + y g′. That needs g′ = Pg, so g = e^(∫P dx).
Example 15: dy/dx + (2/x) y = x. I.F. = e^(2 log x) = x², so y x² = ∫ x³ dx = x⁴/4 + C, and y = x²/4 + C x⁻².
Example 18: P = −x, Q = x, I.F. = e^(−½x²). Then y e^(−½x²) = −e^(−½x²) + C, so y = −1 + C e^(½x²), and (0, 1) gives C = 2.
Notes
dy/dx + Py = Q: I.F. = e^(∫P dx), then y · I.F. = ∫ (Q × I.F.) dx + C. dx/dy + P₁x = Q₁: I.F. = e^(∫P₁ dy), then x · I.F. = ∫ (Q₁ × I.F.) dy + C.
Check yourself
Exercise 9.5, Q18: the integrating factor of x dy/dx − y = 2x² is …
Exercise 9.5, Q19: the integrating factor of (1 − y²) dx/dy + yx = ay (−1 < y < 1) is …
Example 15: x dy/dx + 2y = x², with I.F. = x². Then y x² = x⁴/k + C. Find k.
Answer: 4
∫ x³ dx = x⁴/4, so k = 4 and y = x²/4 + C x⁻².
Exercise 9.5, Q16: the curve through the origin with slope x + y at (x, y) is y = eˣ − x − 1. What is y at x = 1? (decimals are fine)
Answer: 0.718
y = e − 2 ≈ 0.718. (dy/dx − y = x, I.F. = e⁻ˣ, y = −x − 1 + Ceˣ, and the origin gives C = 1.)
- x. With P = −1/x, e^(∫P dx) = e^(−log x) = 1/x, not x.
- e⁻ˣ. P is −1/x, not −1: divide the equation by x first.
- 1/x — correct. Yes! dy/dx − y/x = 2x, so P = −1/x and I.F. = e^(−log x) = 1/x.
- e⁻ʸ. The I.F. of dy/dx + Py = Q is a function of x.
- 1/√(1 − y²) — correct. Yes! P₁ = y/(1 − y²), ∫P₁ dy = −½ log(1 − y²), and e to that is 1/√(1 − y²).
- 1/(1 − y²). ∫ y/(1 − y²) dy = −½ log(1 − y²): the ½ makes a square root.
- 1/√(y² − 1). For −1 < y < 1, y² − 1 is negative: the root is not real.
- √(1 − y²). e^(−½ log(1 − y²)) = (1 − y²)^(−½): it is 1 over the root.