Two Connected Tanks of Brine: The Equations for the Salt in Each, and When the Second Tank Holds the Most
Two tanks, A and B, each hold 40 liters of brine and are kept well stirred. Pure water flows into tank A at 6 liters per minute. Brine is pumped from A to B at 8 liters per minute and from B back to A at 2 liters per minute, and brine drains out of B at 6 liters per minute. At the start, tank A holds 20 kilograms of salt and tank B holds pure water. Let x and y be the kilograms of salt in A and in B, m minutes after the start. (a) Write down the pair of differential equations for x and y. (b) Find the greatest amount of salt that tank B holds, and when it holds it.
Each tank gains salt only in the brine that flows into it and loses salt only in the brine that flows out of it. Brine leaving a tank carries that tank's concentration, the salt divided by the 40 liters, so each flow moves its rate times a concentration. The two equations are coupled: the salt in B depends on how much arrives from A, and the salt in A depends on what comes back from B. Solving the second equation for x and substituting into the first leaves one second-order equation in y alone, which the auxiliary equation solves.
- First check that the volumes stay fixed. Tank A takes in 6 + 2 = 8 liters per minute and sends out 8; tank B takes in 8 and sends out 2 + 6 = 8. So each tank always holds 40 liters, and the concentrations are x40 and y40 kilograms per liter.
- (a) Salt enters A only in the 2 liters per minute from B, carrying 2 × y40 = 0.05y kilograms per minute, and leaves in the 8 liters per minute sent to B, carrying 8 × x40 = 0.2x. So dxdm = −0.2x + 0.05y. Salt enters B at 0.2x and leaves in 2 + 6 = 8 liters per minute, carrying 0.2y, so dydm = 0.2x − 0.2y.
- Eliminate x. The second equation gives x = 5dydm + y, so dxdm = 5d2ydm2 + dydm. Substituting both into the first equation gives 5d2ydm2 + dydm = −dydm − 0.2y + 0.05y, and dividing by 5 after collecting terms gives d2ydm2 + 0.4dydm + 0.03y = 0.
- The auxiliary equation λ2 + 0.4λ + 0.03 = 0 factorizes as (λ + 0.1)(λ + 0.3) = 0, so y = Ae−0.1m + Be−0.3m. At the start y = 0, so B = −A, and dydm = 0.2 × 20 − 0 = 4, so −0.1A + 0.3A = 4 and A = 20. Hence y = 20e−0.1m − 20e−0.3m.
- (b) The salt in B is greatest where dydm = −2e−0.1m + 6e−0.3m = 0, that is where e0.2m = 3, so m = 5ln 3 ≈ 5.49 minutes. Then e−0.1m = 1√3 and e−0.3m = 13√3, so y = 20√3 − 203√3 = 403√3 ≈ 7.70 kilograms.
- Check: x = 5dydm + y = 10e−0.1m + 10e−0.3m, which is 20 at the start, as it should be. At m = 5ln 3 it is 10√3 + 103√3 = 403√3, the same as y: tank B holds the most salt exactly when the two tanks are equally salty, because then salt flows into B as fast as it flows out.
answer(a) dxdm = −0.2x + 0.05y and dydm = 0.2x − 0.2y; (b) tank B holds the most salt, 403√3 ≈ 7.70 kilograms, after 5ln 3 ≈ 5.49 minutes
techniqueCoupled Differential Equations · Forming Differential Equations · The Auxiliary Equation
examsH2
Common pitfalls
- Using the 6 liters per minute that drain from B as the only flow out of B. Brine also leaves B in the 2 liters per minute pumped back to A, so B loses salt at 8 × y40 = 0.2y, not at 6 × y40 = 0.15y.
- Writing the rates in liters instead of kilograms of salt, as in dxdm = 2 − 8. The equations are about the salt, so each flow of brine must be multiplied by the concentration of the tank it leaves.
A Drug Injected Into the Blood and Carried Into the Tissues: The Amount in Each, and How the Dose Divides Between Them
A patient is given 100 milligrams of a drug by injection into the blood. The drug moves from the blood into the body's tissues at a rate of 0.2 per hour times the amount in the blood, and back from the tissues at 0.2 per hour times the amount in the tissues, and the kidneys remove it from the blood at 0.3 per hour times the amount in the blood. Let x and y be the milligrams in the blood and in the tissues h hours after the injection. (a) Find x and y as functions of h. (b) After how long do the tissues hold more of the drug than the blood, and what value does the ratio of the amount in the tissues to the amount in the blood approach as time goes on?
The blood loses drug in two ways, to the tissues and to the kidneys, and gains some back from the tissues; the tissues only exchange drug with the blood. That gives a linear system with a matrix of constant rates. Each eigenvalue of the matrix is a rate of decay, and its eigenvector is a split between blood and tissues that keeps its proportions while it decays. The dose is written as a combination of the two eigenvectors, and each part then decays at its own rate.
- The blood loses 0.2x + 0.3x = 0.5x milligrams per hour and gains 0.2y, and the tissues gain 0.2x and lose 0.2y. So dxdh = −0.5x + 0.2y and dydh = 0.2x − 0.2y, with matrix −0.50.20.2−0.2.
- The trace is −0.7 and the determinant is 0.1 − 0.04 = 0.06, so the characteristic polynomial is λ2 + 0.7λ + 0.06 = (λ + 0.1)(λ + 0.6), and the eigenvalues are −0.1 and −0.6. For −0.1: −0.4x + 0.2y = 0, so y = 2x and an eigenvector is 12. For −0.6: 0.1x + 0.2y = 0, so an eigenvector is 2−1.
- (a) The general solution is xy = c112e−0.1h + c22−1e−0.6h. At h = 0: c1 + 2c2 = 100 and 2c1 − c2 = 0, so c2 = 2c1, 5c1 = 100, c1 = 20 and c2 = 40. Hence x = 20e−0.1h + 80e−0.6h and y = 40e−0.1h − 40e−0.6h.
- (b) The tissues hold more when 40e−0.1h − 40e−0.6h > 20e−0.1h + 80e−0.6h, that is when 20e−0.1h > 120e−0.6h. Multiplying both sides by e0.6h20 gives e0.5h > 6, so h > 2ln 6 ≈ 3.58 hours.
- As time goes on, the e−0.6h terms shrink much faster than the e−0.1h terms, so yx approaches 4020 = 2. The drug settles into the split of the eigenvector 12, twice as much in the tissues as in the blood, while the whole amount decays at the slower rate.
- Check: at h = 2ln 6, e−0.1h = 6−0.2 ≈ 0.6988 and e−0.6h = 6−1.2 ≈ 0.1165, so x ≈ 13.98 + 9.32 and y ≈ 27.95 − 4.66, and both come to about 23.29 milligrams, equal as they should be. Both formulas also give amounts that are never negative, since y = 40e−0.1h(1 − e−0.5h).
answer(a) x = 20e−0.1h + 80e−0.6h and y = 40e−0.1h − 40e−0.6h milligrams; (b) after 2ln 6 ≈ 3.58 hours, and the ratio of the amount in the tissues to the amount in the blood approaches 2
techniqueSolving a Coupled System with Eigenvalues · Finding an Eigenvector · The Characteristic Polynomial
Common pitfalls
- Leaving the kidneys out of the blood's equation, or putting them into the tissues' equation. The kidneys remove the drug from the blood only, so the blood's own rate is −(0.2 + 0.3) = −0.5 while the tissues' own rate is −0.2.
- Taking the long-run ratio from the eigenvector of −0.6. That part of the solution decays six times as fast as the other and has almost vanished within a few hours; the proportions that last are those of the eigenvector of the eigenvalue closer to zero, −0.1.
A Heater in One Room of a Cold Cottage: The Temperatures the Two Rooms Settle To, and the Gap Between Them on the Way
A cottage has two rooms, A and B, side by side, and the air outside is at 5°C. A heater in room A would, on its own, raise A's temperature by 3°C per hour. Heat flowing between the rooms changes each room's temperature by 0.2°C per hour for every degree by which the other room is warmer, and heat lost to the outside lowers each room's temperature by 0.1°C per hour for every degree by which it is warmer than the outside. Let x and y be the temperatures of A and B, in °C, h hours after the heater is switched on, when both rooms are at 5°C. (a) Write down the differential equations for x and y, and find the temperatures the two rooms settle to. (b) How long after the heater is switched on is room A 3°C warmer than room B, and what are the two temperatures at that moment?
Each room's temperature changes at a rate made of its gains and its losses: the heater in A, the flow of heat between the rooms, and the loss to the outside. The settled temperatures are where both rates are zero. Measured from those settled temperatures, what is left is a linear system with no constant terms. Its matrix is symmetric, because the rooms exchange heat in the same way, and its eigenvectors are the average of the two rooms and their difference. Each of those settles on its own, at its own rate.
- Room A gains 3 from the heater and 0.2(y − x) from B, and loses 0.1(x − 5) to the outside, so dxdh = 3 + 0.2(y − x) − 0.1(x − 5) = −0.3x + 0.2y + 3.5. Room B has no heater, so dydh = 0.2(x − y) − 0.1(y − 5) = 0.2x − 0.3y + 0.5.
- (a) The rooms settle where both rates are zero: 0.3x − 0.2y = 3.5 and 0.2x − 0.3y = −0.5. Subtracting the second equation from the first gives 0.1x + 0.1y = 4, so x + y = 40, and adding them gives 0.5x − 0.5y = 3, so x − y = 6. Hence the rooms settle at x = 23°C and y = 17°C.
- Measure from the settled temperatures, with p = x − 23 and q = y − 17. Then dpdh = −0.3p + 0.2q and dqdh = 0.2p − 0.3q, with matrix −0.30.20.2−0.3. Its eigenvalues are −0.1, with eigenvector 11, and −0.5, with eigenvector 1−1: the average of the two rooms settles at the rate 0.1 and their difference at the rate 0.5.
- At the start p = 5 − 23 = −18 and q = 5 − 17 = −12, which is −1511 − 31−1. So x = 23 − 15e−0.1h − 3e−0.5h and y = 17 − 15e−0.1h + 3e−0.5h, and the gap between the rooms is x − y = 6 − 6e−0.5h.
- (b) The gap is 3°C when 6e−0.5h = 3, so e0.5h = 2 and h = 2ln 2 ≈ 1.39 hours. Then e−0.1h = 2−0.2 ≈ 0.8706 and e−0.5h = 0.5, so x ≈ 23 − 13.06 − 1.5 = 8.44°C and y ≈ 17 − 13.06 + 1.5 = 5.44°C.
- Check: at h = 0 the formulas give 5°C in both rooms, with dxdh = 1.5 + 1.5 = 3 and dydh = 1.5 − 1.5 = 0, the heater warming A alone. At h = 1.39 the gap is already half its final 6°C, while the average, 20 − 15e−0.1h ≈ 6.94°C, has risen only about an eighth of the way from 5°C to its final 20°C, because the average settles five times more slowly than the gap.
answer(a) dxdh = −0.3x + 0.2y + 3.5 and dydh = 0.2x − 0.3y + 0.5; the rooms settle at 23°C and 17°C; (b) after 2ln 2 ≈ 1.39 hours, when room A is at about 8.44°C and room B at about 5.44°C
techniqueCoupled Differential Equations · Solving a Coupled System with Eigenvalues · Phase Portraits and Equilibrium Types
Common pitfalls
- Finding room A's settled temperature from the heater and the outside alone, as 3 = 0.1(x − 5), which gives 35°C. Room A also loses heat to room B, and room B passes it on to the outside, so the two equations must be solved together.
- Assuming that the gap between the rooms changes at the same rate as their temperatures. The gap is the part of the solution along the eigenvector 1−1 and settles at the rate 0.5; the average settles at the rate 0.1. So the gap reaches half its final size after 1.39 hours, while both rooms are still cold.
Two Countries in an Arms Race: The Balance Point of Their Spending, and the Spending That Decides Where the Race Goes
In a model of an arms race between two countries, P and Q, their military spending is p and q billion dollars a year, t years from now, and dpdt = 2q − p − 14 and dqdt = 3p − 2q − 6. Each country raises its spending in response to the other's and cuts it back because of the cost of its own, and the negative constants stand for the goodwill of a treaty. (a) Find the balance point, where neither spending changes, and use the eigenvalues to decide whether spending that starts near it returns to it. (b) Country Q is spending 15 billion dollars a year. What must P be spending for the two to move to the balance point, and what happens if P spends more than that?
The balance point is where both rates are zero. Near it, the deviations from the balance obey a linear system with no constant terms, and the eigenvalues of its matrix decide what happens. Two negative eigenvalues pull every start back to the balance. Eigenvalues of opposite signs make a saddle: a deviation along the eigenvector of the negative eigenvalue decays, a deviation along the other grows, and any other start has some of the growing part.
- At the balance point both rates are zero: −p + 2q = 14 and 3p − 2q = 6. Adding the two equations gives 2p = 20, so p = 10, and then 2q = 14 + 10 = 24, so q = 12.
- Measure from the balance, with u = p − 10 and v = q − 12. Then dudt = 2(v + 12) − (u + 10) − 14 = −u + 2v and dvdt = 3(u + 10) − 2(v + 12) − 6 = 3u − 2v, with matrix −123−2.
- (a) The characteristic polynomial is λ2 + 3λ + (2 − 6) = λ2 + 3λ − 4 = (λ − 1)(λ + 4), so the eigenvalues are 1 and −4. They have opposite signs, so the balance point is a saddle: it is unstable, and spending that starts near it does not in general return to it.
- For the eigenvalue 1: −2u + 2v = 0, so an eigenvector is 11, along which both spendings grow together like et. For −4: 3u + 2v = 0, so an eigenvector is 2−3. Only a start whose deviation is a multiple of this one decays to the balance.
- (b) With q = 15, v = 3, so the deviation must be −1 × 2−3 = −23, which gives u = −2 and p = 8 billion dollars a year. Check: at (8, 15), dpdt = 30 − 8 − 14 = 8 and dqdt = 24 − 30 − 6 = −12, which points along 2−3, straight toward (10, 12).
- If P spends more, say 9, the deviation is −13 = 0.611 − 0.82−3. The first part grows like et with a positive coefficient, so both spendings rise without limit: the race escalates. Below 8 that coefficient is negative, and both spendings fall until the model stops applying at zero spending.
answer(a) the balance point is p = 10 and q = 12 billion dollars a year; the eigenvalues are 1 and −4, so it is a saddle, and spending that starts near it does not in general return to it; (b) P must spend 8 billion dollars a year; if P spends more, both spendings grow without limit and the race escalates
techniquePhase Portraits and Equilibrium Types · Solving a Coupled System with Eigenvalues · Finding an Eigenvector
Common pitfalls
- Finding the eigenvalues of the matrix while the constants −14 and −6 are still in the equations, and treating the origin as the balance. The constants move the balance to (10, 12), and the eigenvalues describe the deviations from that point, so the balance must be found first.
- Reading a saddle as a sign that the spending always escalates. It escalates only from starts on one side of the line through the balance along 2−3; from starts on the other side both countries cut back, and from a start on the line they reach the balance.
Two Species of Flour Beetle Sharing a Jar: The Balance Where Both Survive, and Where the Counts Go From Just Off It
Two species of flour beetle, X and Y, compete for the same flour in a jar. With x and y the numbers of each in hundreds, t weeks from now, a model gives dxdt = 0.05x(7 − x − 1.5y) and dydt = 0.05y(10 − 2x − y). (a) Find the balance at which both species are present, and use a linear approximation near it to classify it. (b) A count finds 430 of X and 190 of Y. In favor of which species are the numbers moving, and according to the linear approximation, how many of each will there be 10 weeks later?
Where both species are present and neither number changes, both brackets are zero. Close to that balance, write each number as its balance value plus a small deviation. Each rate is a population times its bracket, and the bracket is zero at the balance, so to first order only the change in the bracket counts, multiplied by the balance population; a product of two small deviations is dropped. That leaves a linear system whose eigenvalues classify the balance and whose eigenvectors show the directions in which the numbers move.
- Both brackets are zero where x + 1.5y = 7 and 2x + y = 10. The second gives y = 10 − 2x, and then x + 15 − 3x = 7, so x = 4 and y = 2: 400 of X and 200 of Y.
- Write x = 4 + u and y = 2 + v. The first bracket becomes −u − 1.5v and the second becomes −2u − v. Keeping only the terms of first order, dudt ≈ 0.05 × 4(−u − 1.5v) = −0.2u − 0.3v and dvdt ≈ 0.05 × 2(−2u − v) = −0.2u − 0.1v.
- (a) The matrix −0.2−0.3−0.2−0.1 has characteristic polynomial λ2 + 0.3λ + (0.02 − 0.06) = λ2 + 0.3λ − 0.04 = (λ − 0.1)(λ + 0.4). The eigenvalues 0.1 and −0.4 have opposite signs, so the balance is a saddle: it is unstable, and the two species cannot stay near it together.
- For 0.1: −0.3u − 0.3v = 0, so an eigenvector is 1−1, one species gaining what the other loses. For −0.4: 0.2u − 0.3v = 0, so an eigenvector is 32. The count gives u = 0.3 and v = −0.1, which is 0.181−1 + 0.0432.
- (b) The growing part, 0.18e0.1t1−1, has X rising and Y falling, so the numbers are moving in favor of X. After 10 weeks, u = 0.18e1 + 0.12e−4 ≈ 0.4893 + 0.0022 = 0.4915 and v = −0.18e1 + 0.08e−4 ≈ −0.4893 + 0.0015 = −0.4878, so there are about 449 of X and 151 of Y.
- Check: stepping the full equations forward numerically for 10 weeks from x = 4.3 and y = 1.9 gives about 447 of X and 156 of Y, close to the linear approximation. Carried on further, the full model ends with 700 of X and no Y at all.
answer(a) the balance is 400 of X and 200 of Y; near it the eigenvalues are 0.1 and −0.4, so it is a saddle and unstable; (b) the numbers are moving in favor of X, with about 449 of X and 151 of Y after 10 weeks
techniquePhase Portraits and Equilibrium Types · Solving a Coupled System with Eigenvalues
Common pitfalls
- Keeping the deviation u in front of the bracket, as in dudt ≈ 0.05u(−u − 1.5v), instead of the balance value 4. Every term is then a product of two small deviations, which the linear approximation drops, and nothing is left. The factor in front of the bracket is taken at its balance value because the bracket itself is already small.
- Deciding which species gains from which one is further above its balance. What decides it is the coefficient of the growing eigenvector. A count of 420 of X and 215 of Y puts X 20 above its balance and Y only 15 above, yet 0.20.15 = −0.011−1 + 0.0732, and the numbers move in favor of Y.
Snowshoe Hares and Lynx Near Their Balance: The Type of Equilibrium, and How Their Numbers Move Over the Years
In a northern forest, u is the number of snowshoe hares above their balance value, in thousands, and v is the number of lynx above theirs, in hundreds, t years from now. Near the balance, an ecologist's linear model is dudt = −0.2u − 2.5v and dvdt = 0.2u. (a) Find the eigenvalues, classify the balance, and say whether a peak in the hare numbers comes before or after the matching peak in the lynx numbers. (b) How many years pass from one peak in the hare numbers to the next, and by what factor is the height of a peak above the balance multiplied from one peak to the next?
The matrix of a linear model near a balance says how every small deviation changes. When its eigenvalues are complex, a ± bi, the solutions are e to the power at times sines and cosines of bt: the real part a says whether the swings grow or die away, and the imaginary part b is the rate of turning, in radians per year. The direction of turning comes from the rates of change at any one point.
- The matrix is −0.2−2.50.20. Its trace is −0.2 and its determinant is 0 − (−2.5)(0.2) = 0.5, so the characteristic polynomial is λ2 + 0.2λ + 0.5.
- (a) By the quadratic formula, λ = −0.2 ± √0.04 − 22 = −0.2 ± √−1.962 = −0.1 ± 0.7i. The real part, −0.1, is negative, so the swings die away, and the imaginary part makes the numbers turn round the balance: it is a stable spiral.
- For the direction, take the point u = 1, v = 0: a thousand extra hares and the usual number of lynx. There dudt = −0.2 and dvdt = 0.2, so the lynx begin to increase as the hares begin to fall. With hares across and lynx up, the path turns counterclockwise, so each peak in the hares comes before the matching peak in the lynx.
- (b) Every solution is e−0.1t times a combination of cos 0.7t and sin 0.7t, and those repeat each time 0.7t increases by 2π. So one peak in the hares follows another after 2π0.7 ≈ 8.98 years.
- Over those 8.98 years the factor e−0.1t is multiplied by e−0.1 × 2π/0.7 = e−2π/7 ≈ 0.41, so each peak's height above the balance is about 0.41 times the one before. Check: with λ = −0.1 + 0.7i, λ2 = 0.01 − 0.14i − 0.49 = −0.48 − 0.14i and 0.2λ = −0.02 + 0.14i, so λ2 + 0.2λ + 0.5 = −0.48 − 0.02 + 0.5 = 0.
answer(a) the eigenvalues are −0.1 ± 0.7i, so the balance is a stable spiral; it turns counterclockwise with hares across and lynx up, so each peak in the hares comes before the matching peak in the lynx; (b) 2π0.7 ≈ 8.98 years from one hare peak to the next, and each peak's height is e−2π/7 ≈ 0.41 times the one before
techniquePhase Portraits and Equilibrium Types · The Characteristic Polynomial
Common pitfalls
- Taking the time from one peak to the next as 2π0.1, from the real part. The real part sets how fast the swings shrink; the turning, and so the time from one peak to the next, comes from the imaginary part, 0.7.
- Giving the factor for one year, e−0.1 ≈ 0.90, as the factor from one peak to the next. The peaks are 8.98 years apart, so the factor is e−0.1 × 8.98 = e−2π/7 ≈ 0.41.
A Door on a Hydraulic Closer: Its Equation of Motion as Two First-Order Equations, and How Fast It Swings Shut
A door is fitted with a hydraulic closer. With x the door's angle from the closed position, in radians, s seconds after it is let go, its motion obeys d2xds2 + 5dxds + 4x = 0. The door is held open at 1.2 radians and let go from rest. (a) Write the equation as a pair of first-order equations, find the eigenvalues, and decide whether the door swings past the closed position. (b) Find the greatest speed at which the door swings shut, and how long after it is let go it reaches that speed.
Naming the angular velocity v = dx/ds turns one second-order equation into two first-order ones: the angle changes at the rate v, and the equation itself says how v changes. The eigenvalues of the matrix of that pair are the roots of the auxiliary equation. Real negative eigenvalues mean the motion dies away without oscillating, although a start with a large enough velocity can still cross zero once, so the particular solution must be checked. The two constants in the solution are fixed by the angle and the angular velocity at release.
- Let v = dxds, the angular velocity in radians per second. Then dxds = v and, from the equation, dvds = −4x − 5v. The matrix of this pair is 01−4−5.
- (a) Its characteristic polynomial is λ2 + 5λ + 4 = (λ + 1)(λ + 4), so the eigenvalues are −1 and −4. Both are real and negative, so the motion dies away without oscillating: the equilibrium x = 0, v = 0 is a stable node.
- For −1 the first row gives v = −x, so an eigenvector is 1−1; for −4 it gives v = −4x, so an eigenvector is 1−4. So x = c1e−s + c2e−4s and v = −c1e−s − 4c2e−4s. At release x = 1.2 and v = 0, so c1 + c2 = 1.2 and c1 + 4c2 = 0, which give c2 = −0.4 and c1 = 1.6.
- So x = 1.6e−s − 0.4e−4s = 0.4e−s(4 − e−3s). For s > 0, e−3s < 1, so the bracket stays above 3 and x stays positive: the angle shrinks toward 0 but never becomes negative, and the door does not swing past the closed position.
- (b) The door swings shut at the speed −v = 1.6e−s − 1.6e−4s. This is greatest where its derivative, −1.6e−s + 6.4e−4s, is zero, that is where e3s = 4, so s = ln 43 ≈ 0.462 seconds. Then e−s = 4−1/3 and e−4s = 14 × 4−1/3, so the greatest speed is 1.6 × 34 × 4−1/3 = 1.2 × 4−1/3 ≈ 0.756 radians per second.
- Check: at that moment dvds = −4x − 5v should be zero. There x = 1.6 × 4−1/3 − 0.1 × 4−1/3 = 1.5 × 4−1/3 ≈ 0.945 and v ≈ −0.756, and −4 × 0.945 + 5 × 0.756 = −3.78 + 3.78 = 0. A speed of 0.756 radians per second is about 43 degrees per second, a steady close for a door.
answer(a) dxds = v and dvds = −4x − 5v; the eigenvalues are −1 and −4, both real and negative, and x = 1.6e−s − 0.4e−4s stays positive, so the door does not swing past the closed position; (b) the greatest closing speed is 1.2 × 4−1/3 ≈ 0.756 radians per second, reached after ln 43 ≈ 0.462 seconds
techniqueA Second-Order Equation as a Coupled System · Phase Portraits and Equilibrium Types · Damped Oscillations
Common pitfalls
- Taking c1 = 1.2 and c2 = 0, as if only the angle at release mattered. The door starts from rest, and that condition, v = 0, is what fixes the second constant; with c2 = 0 the door would start with an angular velocity of −1.2 radians per second.
- Looking for the greatest speed where v = 0 or where x = 0. The speed is greatest where its own rate of change is zero, dvds = 0; the angular velocity is zero only at release, and x never reaches zero.
An Inductor and a Capacitor Joined in a Loop: The Circuit Equation as Two First-Order Equations, and the Current That Flows
A capacitor of 4 microfarads holds a charge of 20 microcoulombs. At the moment it is connected across a coil of inductance 0.25 henries, no current is flowing, and the resistance of the loop is small enough to leave out. With time m in milliseconds after the connection, q the charge on the capacitor in microcoulombs and I = dqdm the current in milliamperes, the circuit obeys Ld2qdm2 + qC = 0, with L in henries and C in microfarads. (a) Write this as a pair of first-order equations in q and I, find the eigenvalues, and describe what the charge does over time. (b) Find the greatest size of the current, and how long after the connection the current first reaches that size.
Naming the current I = dq/dm turns the second-order circuit equation into two first-order ones: the charge changes at the rate I, and the circuit equation says how I changes. With L = 0.25 and C = 4 in these units, the pair has a matrix whose eigenvalues are purely imaginary. A real part of zero means the swings neither grow nor die away, so the equilibrium is a center. The initial charge and current then fix the solution.
- Name the current: dqdm = I. Then d2qdm2 = dIdm, and the circuit equation gives 0.25dIdm = −q4, so dIdm = −q. The pair has matrix 01−10.
- (a) The characteristic polynomial is λ2 + 1, so the eigenvalues are ± i. Their real part is zero, so the swings neither grow nor die away: the equilibrium q = 0, I = 0 is a center, and the charge swings back and forth between the two plates forever, once every 2π ≈ 6.28 milliseconds.
- With eigenvalues ± i the solutions are combinations of cos m and sin m. At m = 0, q = 20 and I = dqdm = 0, so q = 20cos m and I = −20sin m.
- (b) The current is greatest in size when sin m = ± 1, so the greatest size of the current is 20 milliamperes. It first reaches that size at m = π2 ≈ 1.57 milliseconds, when the capacitor is empty, q = 20cosπ2 = 0. The minus sign in I = −20sin m says that it flows in the direction that discharges the capacitor.
- Check by energy: at the start the capacitor stores q22C = (20 × 10−6)22 × 4 × 10−6 = 5 × 10−5 joules, and at the greatest current the coil stores 12LI2 = 12 × 0.25 × 0.022 = 5 × 10−5 joules, the same. In a real circuit a little resistance gives the eigenvalues a small negative real part, and the swings slowly die away.
answer(a) dqdm = I and dIdm = −q; the eigenvalues are ± i, a center, so the charge swings between 20 and −20 microcoulombs forever, once every 2π ≈ 6.28 milliseconds; (b) 20 milliamperes, first after π2 ≈ 1.57 milliseconds
techniqueA Second-Order Equation as a Coupled System · Phase Portraits and Equilibrium Types · Simple Harmonic Motion
Common pitfalls
- Writing q = 20sin m, forgetting that the current, not the charge, starts at zero. That formula gives no charge at the start. The charge starts at its greatest value, 20, so it follows the cosine, and the current, its derivative, is −20sin m.
- Reading eigenvalues ± i as a sign that the charge dies away, because they are not positive. Only a negative real part makes the swings die away; with a real part of zero, as here, they keep the same size, and the circuit oscillates with no loss.
A Hospital's Technetium Generator: The Technetium Building Up From Decaying Molybdenum, and When to Draw It Off
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?
The molybdenum only decays, so its equation involves x alone and is solved first. The technetium is made at the rate at which the molybdenum decays and is lost at its own rate of decay, so its equation contains x. Once x is known, that becomes a first-order linear equation in y, solved by trying a multiple of the same exponential and adding the solution with right side zero. The matrix of the pair is triangular, so its eigenvalues are its diagonal entries, −a and −b, and the solution is built from those two exponentials.
- 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 first equation involves x alone, and with x = N at the start its solution is x = Ne−ah.
- 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) 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.
- (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.
- 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.
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
techniqueCoupled Differential Equations · Solving a Coupled System with Eigenvalues · The Integrating Factor
Common pitfalls
- 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.
An Enzyme That Turns Glucose Into Fructose and Back: Where the Syrup Settles, and How Long a Batch Takes to Reach 42 Percent Fructose
In making corn syrup, an enzyme turns glucose into fructose and fructose back into glucose. Glucose becomes fructose at a rate of 0.25 per hour times the fraction of the sugar that is glucose, and fructose becomes glucose at a rate of 0.25 per hour times the fraction that is fructose. Let x and y be the fractions of the sugar that are glucose and fructose h hours after a batch of pure glucose syrup meets the enzyme. (a) Write down the differential equations for x and y, find the eigenvalues, and say what they mean for the mix. (b) Syrup sold as 42 percent fructose is taken off the enzyme when y = 0.42. How long after the start is that?
Each sugar is lost at its own rate and gained at the other's, so the two rates of change are equal and opposite and the total never changes. The eigenvalues of the matrix are the rates at which the parts of the mix along the eigenvectors change. An eigenvalue of zero belongs to a part that does not change at all, so every mix along that eigenvector is at rest, and a negative eigenvalue belongs to a part that dies away. Splitting the starting mix along the two eigenvectors gives the whole solution.
- Glucose is lost at 0.25x and gained at 0.25y, and fructose the other way round, so dxdh = −0.25x + 0.25y and dydh = 0.25x − 0.25y. Adding the two equations gives ddh(x + y) = 0, so the total stays at x + y = 1.
- (a) The matrix −0.250.250.25−0.25 has trace −0.5 and determinant 0.0625 − 0.0625 = 0, so its characteristic polynomial is λ2 + 0.5λ = λ(λ + 0.5), and the eigenvalues are 0 and −0.5. For 0 an eigenvector is 11, and for −0.5 it is 1−1.
- The eigenvalue 0 means that any mix with x = y is at rest: there is a whole line of equilibria, not a single point. The eigenvalue −0.5 means that the difference between the glucose and the fructose dies away. So the syrup settles at the point of that line with total 1: half glucose and half fructose.
- The start, pure glucose, is 10 = 0.511 + 0.51−1. The first part stays and the second decays like e−0.5h, so x = 0.5 + 0.5e−0.5h and y = 0.5 − 0.5e−0.5h.
- (b) y = 0.42 when 0.5e−0.5h = 0.08, so e−0.5h = 0.16 and h = 2ln10.16 = 2ln 6.25 = 4ln 2.5 ≈ 3.67 hours. Check: e−0.5 × 3.665 ≈ 0.160, so y ≈ 0.5 − 0.080 = 0.420 and x ≈ 0.580, which add to 1.
answer(a) dxdh = −0.25x + 0.25y and dydh = 0.25x − 0.25y; the eigenvalues are 0, whose eigenvector gives a whole line of mixes at rest with equal glucose and fructose, and −0.5, for the difference between the two sugars, which dies away, so the syrup settles at half glucose and half fructose, 0.5 of each; (b) 4ln 2.5 ≈ 3.67 hours
techniqueSolving a Coupled System with Eigenvalues · Phase Portraits and Equilibrium Types · Finding an Eigenvector
Common pitfalls
- Reading the eigenvalue 0 as a sign that nothing changes. It says only that the part of the mix along 11, the total, stays fixed; the part along 1−1 still changes at the rate −0.5, and that is how pure glucose becomes a mix.
- Setting e−0.5h = 0.42, as if the fructose were the exponential itself. The fructose is 0.5 − 0.5e−0.5h, so the exponential must equal 0.5 − 0.420.5 = 0.16.