An equation that will not separate
A first-order linear equation has the form , where P and Q are functions of x alone. An example is .
Separating the variables needs every y on one side with dy and every x on the other with dx. Here , and the right side is a difference, not a product of a function of x and a function of y. The y and the x will not come apart, so another method is needed.
Make the left side one derivative
The left side looks almost like the product rule. For a function I of x, the product rule gives .
Multiply the equation through by I and its left side becomes . That is exactly when the second terms agree, that is when I' = I P.
Finding the factor
The condition I' = I P is itself a separable equation. Divide by I to get I'/I = P, and integrate both sides: . So . This I is called the integrating factor.
No constant is needed in . Adding a constant k multiplies I by , and multiplying the whole equation by a constant does not change its solutions, so the simplest choice will do.
Multiply through and integrate
Multiply every term by I: . The left side is now the single derivative , so the equation reads .
Integrate both sides: . Then divide by I to find y. There is one constant, and it arrives when the right side is integrated, before the division.
The equation must be in this form first, with standing alone. For , divide every term by x to get , and only then read off .
An example
Solve for x > 0. Here , so , and the integrating factor is .
Multiply through by : . The left side is , so , and dividing by gives .
Check it. With , and . Adding them, the c terms cancel and the sum is x, as the equation says.
A known value fixes c. If y = 1 when x = 1, then , so and . At x = 2 this gives .
Three solutions of . The gold curve is , the one through (1, 1). The dashed curves have c = 0, which is , and c = −1. Each value of c gives a different curve, and all of them come close to as x grows, because shrinks.
A second example: the factor
Solve . Here P = 1, so and the integrating factor is .
Multiply through: , and the left side is . Integrating by parts gives , so . Divide by : .
If y = 1 when x = 0, then 1 = −1 + c, so c = 2 and . Check at x = 1: , about 0.736, and , about 0.264. Their sum is 1, which is x.
As x grows, shrinks toward 0 whatever c is, so every solution comes closer and closer to the line y = x − 1.
every dash has gradient x − y, and the curve through the probe is tangent to each dash it crosses: one equation, a whole family of solutions
Put the probe on (0, 1) and read the solution it selects
The equation , rearranged as : each dash has gradient x − y at its point. The gold curve is the solution through the probe, at (0, 0) the curve . Drag the probe to (0, 1) and it picks , which starts with gradient −1 and runs alongside the line y = x − 1. Each position of the probe sets the constant c and picks one curve of the family.
The usual mistakes
Building the factor from Q. The integrating factor is , made from the coefficient of y. Q only appears on the right after the multiplication.
Leaving out the exponential. on its own does not make the left side a product rule; does.
Multiplying only the left side by I. Every term is multiplied, so the right side becomes I Q.
Adding the constant after dividing by I. For the first example that gives , and then , which is not x unless c = 0. The constant is added at the integration, so it is divided by as well.
A hospital’s technetium generator
In the application below, the number of technetium atoms y satisfies a linear equation of this form, with the time h in hours in place of x. P is the constant b, the technetium’s decay constant, and Q is , the rate at which it is made. The model method tries a multiple of for y.
The integrating factor reaches the same answer. Here , and multiplying through makes the left side the derivative of , so , where . Dividing by gives , the model method’s solution.
Worked example: A Hospital's Technetium Generator: The Technetium Building Up From Decaying Molybdenum, and When to Draw It Off
Question A hospital's generator holds molybdenum-99, which decays with a half-life of 66 hours into technetium-99m, which itself decays with a half-life of 6 hours. Assume that every molybdenum atom that decays becomes a technetium-99m atom. Just after the technetium is drawn off, the generator holds N molybdenum atoms and no technetium. Let x and y be the numbers of molybdenum and technetium atoms h hours later, and let a = ln 266 and b = ln 26 be the two decay constants, per hour. (a) Write down the differential equations for x and y, and solve them. (b) The technetium is next drawn off when there is most of it. How many hours after the last draw is that, and how do the activities of the two isotopes, ax and by decays per hour, compare at that moment?
1.Each isotope decays at its decay constant times the number of its atoms. The molybdenum only decays, so dxdh = −ax. The technetium gains one atom for each molybdenum atom that decays and loses its own atoms as they decay, so dydh = ax − by.
The molybdenum only decays; the technetium is made as the molybdenum decays and decays itself. 2.The first equation involves x alone, and with x = N at the start its solution is x = Ne−ah.
The first equation involves x alone: x = Ne−ah. The curve is its activity, ax, as a percentage of aN. 3.Substituting gives dydh + by = aNe−ah. Try y = Ke−ah: then −aK + bK = aN, so K = aNb − a. Since b − a = ln 2(16 − 166) = 10ln 266, this is K = N10. Adding Ce−bh, the solution with right side zero, and using y = 0 at the start gives C = −N10.
A multiple of e−ah fits the technetium equation when K = aNb − a = N10. 4.(a) So x = Ne−ah and y = N10(e−ah − e−bh). This is zero at the start and positive afterward, because b > a makes e−bh the smaller of the two exponentials.
(a) y = N10(e−ah − e−bh) starts at zero; its activity, by, is the second curve. 5.(b) The technetium is greatest where dydh = N10(−ae−ah + be−bh) = 0, that is where e(b − a)h = ba = 11. So h = ln 11b − a = 6.6ln 11ln 2 ≈ 22.8 hours.
(b) The technetium is greatest where e(b − a)h = 11, at h = 6.6ln 11ln 2 ≈ 22.8 hours. 6.At that moment dydh = ax − by = 0, so ax = by: the two activities are equal. Check: e−ah = 2−22.83/66 ≈ 0.7866 and e−bh = 2−22.83/6 ≈ 0.0715, so y ≈ N10(0.7866 − 0.0715) ≈ 0.0715N. Then ax ≈ 0.01050 × 0.7866N ≈ 0.00826N and by ≈ 0.1155 × 0.0715N ≈ 0.00826N decays per hour, equal. Hospitals draw the technetium off about once a day, close to this time.
There dydh = ax − by = 0, so the two activity curves cross exactly at the peak.
Answer: (a) dxdh = −ax and dydh = ax − by, with x = Ne−ah and y = N10(e−ah − e−bh); (b) after 6.6ln 11ln 2 ≈ 22.8 hours, when the two activities are equal
Common mistakes
- Writing the technetium's equation as dydh = −by, as if it only decayed. The technetium is also being made, one atom for each molybdenum atom that decays, and without that term a generator that starts with no technetium would never hold any.
- Solving ae−ah = be−bh by setting the exponents equal, −ah = −bh, which gives h = 0. The two sides also differ in their constants: taking logarithms gives ln a − ah = ln b − bh, so (b − a)h = lnba, and ba = 666 = 11.
More coupled differential equations problems, worked step by step →