Solving a Coupled System with Eigenvalues

One exponential per eigenvalue, added together.

Guess a straight-line solution

Take the pair dx/dt = x + y, dy/dt = 4x + y, written dX/dt = M X with M = (1 1; 4 1). For one equation, dx/dt = kx, the solution is e^(kt) times a constant. So try the same shape here: X = e^(λt) v, a fixed column v multiplied by one exponential.

Such a solution keeps one direction, the direction of v, and only changes its length, at the single rate λ. Its derivative is dX/dt = λ e^(λt) v.

The guess needs an eigenvector

Put the guess into both sides. The left is λ e^(λt) v. The right is M e^(λt) v, and since e^(λt) is a number it can be taken out: e^(λt) M v. The exponential is never 0, so dividing by it leaves M v = λ v.

That is the eigenvector equation. The guess works exactly when v is an eigenvector of M and λ is its eigenvalue: a direction M only stretches, by the factor λ. Along that direction the rate of X is λ times X, so X grows or shrinks like e^(λt) and never turns.

The eigenvalues

v must not be the zero column, so M − λI must send some non-zero column to 0, which means det(M − λI) = 0. Here M − λI has rows (1 − λ, 1) and (4, 1 − λ), and its determinant is (1 − λ)² − 4 = λ² − 2λ − 3 = (λ − 3)(λ + 1). So λ = 3 or λ = −1.

Two checks: the eigenvalues add to the diagonal total, 1 + 1 = 2 = 3 + (−1), and multiply to the determinant, 1 × 1 − 1 × 4 = −3 = 3 × (−1).

The eigenvectors

For λ = 3, M − 3I = (−2 1; 4 −2). Its first row says −2x + y = 0, so y = 2x, and the second row says the same. Take v₁ = (1, 2). Check: M sends (1; 2) to (1 + 2; 4 + 2) = (3; 6), which is 3 times (1; 2).

For λ = −1, M + I = (2 1; 4 2). Its rows say 2x + y = 0, so y = −2x. Take v₂ = (1, −2). Check: M sends (1; −2) to (1 − 2; 4 − 2) = (−1; 2), which is −1 times (1; −2).

So e^(3t)(1, 2) and e^(−t)(1, −2) are both solutions. The first runs out along the line y = 2x, tripling its rate as it goes; the second runs in along y = −2x toward the origin.

The general solution

The equation is linear: M(X₁ + X₂) = M X₁ + M X₂, and the derivative of a sum is the sum of the derivatives. So two solutions added are a solution, and so is any multiple of one. Every solution of this pair is X = A e^(3t)(1, 2) + B e^(−t)(1, −2), with one constant for each term.

Written out, x = A e^(3t) + B e^(−t) and y = 2A e^(3t) − 2B e^(−t). Substitute back: dx/dt = 3A e^(3t) − B e^(−t), and x + y = 3A e^(3t) − B e^(−t), the same. dy/dt = 6A e^(3t) + 2B e^(−t), and 4x + y = 6A e^(3t) + 2B e^(−t), the same.

The starting values fix A and B

At t = 0 both exponentials are 1, so X(0) = A(1, 2) + B(1, −2). With X(0) = (2, 0) this says A + B = 2 and 2A − 2B = 0. The second gives A = B, and the first then gives A = B = 1. So x = e^(3t) + e^(−t) and y = 2e^(3t) − 2e^(−t).

Check it at t = 0.5: x = e^1.5 + e^(−0.5) ≈ 5.088 and y ≈ 7.750. A difference quotient gives dx/dt ≈ 12.839 there, and x + y ≈ 12.839 too.

A different start gives different constants. From X(0) = (1, 6): A + B = 1 and 2A − 2B = 6, so A − B = 3, A = 2 and B = −1. A start on an eigenvector needs only one term: from (1, −2), A = 0 and B = 1, and the point runs straight in along y = −2x, halving its distance every ln 2 ≈ 0.693 units of time.

The long run

As t grows, e^(3t) grows without limit and e^(−t) shrinks to 0. So once B e^(−t)(1, −2) is small, X is almost A e^(3t)(1, 2), and the point lines up along (1, 2). On the path from (2, 0), y/x is 0.924 at t = 0.25, 1.523 at t = 0.5, 1.928 at t = 1 and 1.999 at t = 2, closing on 2.

What decides it is the larger eigenvalue, 3, not the larger size: with eigenvalues 3 and −5, the e^(−5t) term dies faster still and e^(3t) wins all the same. The one exception is a start with A = 0, on the eigenvector of the other eigenvalue.

xy

The eigenvector lines y = 2x (λ = 3) and y = −2x (λ = −1). The gold path is the solution through (2, 0), with A = B = 1: it comes in from below beside y = −2x, passes (2, 0) at t = 0 and (2.896, 2.676) at t = 0.25, and turns toward the direction of y = 2x as it leaves the frame at (4.283, 5.965), where y/x is already 1.39.

A second pair

Take x' = y and y' = x, so M = (0 1; 1 0). Its characteristic polynomial is λ² − 1, so λ = 1 with eigenvector (1, 1) and λ = −1 with eigenvector (1, −1). The eigenvalues multiply to −1, which is det M = 0 × 0 − 1 × 1.

The general solution is A e^t(1, 1) + B e^(−t)(1, −1). From X(0) = (3, 1): A + B = 3 and A − B = 1, so A = 2 and B = 1, giving x = 2eᵗ + e^(−t) and y = 2eᵗ − e^(−t). Check: the derivative of x is 2eᵗ − e^(−t), which is y, and the derivative of y is 2eᵗ + e^(−t), which is x.

The usual mistakes

Pairing an exponential with the wrong direction. e^(3t) goes with the eigenvector of 3: A e^(3t)(1, −2) + B e^(−t)(1, 2) does not solve the pair.

Leaving out the vectors. A e^(3t) + B e^(−t) is one function; the solution has two, x and y, and the eigenvectors say how they are related.

Fitting the constants to an eigenvector instead of to the start. From (2, 0), A = B = 1, not A = 2 and B = 0: that would need the start to lie on y = 2x.

Choosing the dominant term by size. In the long run the term with the larger eigenvalue wins; a large negative eigenvalue makes its term vanish fastest.

A drug in the body, and an enzyme

In the applications below, a dose divides between the blood and the tissues, and the eigenvector of the eigenvalue nearer zero gives the split that lasts. In the second, one eigenvalue is 0, so one combination of the two sugars never changes while the other dies away.

Worked example: A Drug Injected Into the Blood and Carried Into the Tissues: The Amount in Each, and How the Dose Divides Between Them

Question 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?

  1. 1.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.

    10203002550blood, mgtissues, mg100 mg dosex' = −0.5x + 0.2y, y' = 0.2x − 0.2y
    10203002550blood, mgtissues, mg100 mg dosex' = −0.5x + 0.2y, y' = 0.2x − 0.2y
    The blood loses 0.2x + 0.3x an hour and gains 0.2y; the tissues gain 0.2x and lose 0.2y. The dose starts on the blood axis.
  2. 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.

    10203002550blood, mgtissues, mg(1, 2)100 mg dosex' = −0.5x + 0.2y, y' = 0.2x − 0.2yeigenvalues −0.1 and −0.6eigenvectors (1, 2) and (2, −1)
    10203002550blood, mgtissues, mg(1, 2)100 mg dosex' = −0.5x + 0.2y, y' = 0.2x − 0.2yeigenvalues −0.1 and −0.6eigenvectors (1, 2) and (2, −1)
    The eigenvalues are −0.1 and −0.6. The dashed line is the eigenvector 12 of the slower one.
  3. 3.(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.

    10203002550blood, mgtissues, mg(1, 2)100 mg dosex' = −0.5x + 0.2y, y' = 0.2x − 0.2yeigenvalues −0.1 and −0.6eigenvectors (1, 2) and (2, −1)(a) x = 20e−0.1h+ 80e−0.6hy = 40e−0.1h− 40e−0.6h
    10203002550blood, mgtissues, mg(1, 2)100 mg dosex' = −0.5x + 0.2y, y' = 0.2x − 0.2yeigenvalues −0.1 and −0.6eigenvectors (1, 2) and (2, −1)(a) x = 20e−0.1h+ 80e−0.6hy = 40e−0.1h− 40e−0.6h
    (a) Fitting c1 = 20 and c2 = 40 to the dose gives the path of the drug, drawn from (100, 0) toward the origin.
  4. 4.(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.

    10203002550blood, mgtissues, mg(1, 2)y = x100 mg doseh = 3.58x' = −0.5x + 0.2y, y' = 0.2x − 0.2yeigenvalues −0.1 and −0.6eigenvectors (1, 2) and (2, −1)(a) x = 20e−0.1h+ 80e−0.6hy = 40e−0.1h− 40e−0.6h(b) y > x when e0.5h> 6: h > 2 ln 6 = 3.58
    10203002550blood, mgtissues, mg(1, 2)y = x100 mg doseh = 3.58x' = −0.5x + 0.2y, y' = 0.2x − 0.2yeigenvalues −0.1 and −0.6eigenvectors (1, 2) and (2, −1)(a) x = 20e−0.1h+ 80e−0.6hy = 40e−0.1h− 40e−0.6h(b) y > x when e0.5h> 6: h > 2 ln 6 = 3.58
    (b) The path crosses y = x at h = 2ln 6 ≈ 3.58 hours; after that the tissues hold more.
  5. 5.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.

    10203002550blood, mgtissues, mgy = 2xy = x100 mg doseh = 3.58x' = −0.5x + 0.2y, y' = 0.2x − 0.2yeigenvalues −0.1 and −0.6eigenvectors (1, 2) and (2, −1)(a) x = 20e−0.1h+ 80e−0.6hy = 40e−0.1h− 40e−0.6h(b) y > x when e0.5h> 6: h > 2 ln 6 = 3.58in the long run y/x approaches 2
    10203002550blood, mgtissues, mgy = 2xy = x100 mg doseh = 3.58x' = −0.5x + 0.2y, y' = 0.2x − 0.2yeigenvalues −0.1 and −0.6eigenvectors (1, 2) and (2, −1)(a) x = 20e−0.1h+ 80e−0.6hy = 40e−0.1h− 40e−0.6h(b) y > x when e0.5h> 6: h > 2 ln 6 = 3.58in the long run y/x approaches 2
    The e−0.6h terms die away first, so the path runs in along the eigenvector: yx → 2.
  6. 6.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).

    10203002550blood, mgtissues, mgy = 2xy = x100 mg dose23.29 mg eachx' = −0.5x + 0.2y, y' = 0.2x − 0.2yeigenvalues −0.1 and −0.6eigenvectors (1, 2) and (2, −1)(a) x = 20e−0.1h+ 80e−0.6hy = 40e−0.1h− 40e−0.6h(b) y > x when e0.5h> 6: h > 2 ln 6 = 3.58in the long run y/x approaches 2check: x = y = 23.29 mg at h = 3.58
    10203002550blood, mgtissues, mgy = 2xy = x100 mg dose23.29 mg eachx' = −0.5x + 0.2y, y' = 0.2x − 0.2yeigenvalues −0.1 and −0.6eigenvectors (1, 2) and (2, −1)(a) x = 20e−0.1h+ 80e−0.6hy = 40e−0.1h− 40e−0.6h(b) y > x when e0.5h> 6: h > 2 ln 6 = 3.58in the long run y/x approaches 2check: x = y = 23.29 mg at h = 3.58
    Check: at h = 2ln 6 both amounts come to about 23.29 milligrams.

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

Common mistakes

  • 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.

More coupled differential equations problems, worked step by step →

Worked example: An Enzyme That Turns Glucose Into Fructose and Back: Where the Syrup Settles, and How Long a Batch Takes to Reach 42 Percent Fructose

Question 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?

  1. 1.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.

    0.510.51glucosefructosepure glucosex' = −0.25x + 0.25y, y' = 0.25x − 0.25y
    0.510.51glucosefructosepure glucosex' = −0.25x + 0.25y, y' = 0.25x − 0.25y
    The two rates are equal and opposite, so x + y never changes: every path runs along a line x + y = constant.
  2. 2.(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.

    0.510.51glucosefructosetotal 1pure glucosex' = −0.25x + 0.25y, y' = 0.25x − 0.25y(a) eigenvalues 0 and −0.5
    0.510.51glucosefructosetotal 1pure glucosex' = −0.25x + 0.25y, y' = 0.25x − 0.25y(a) eigenvalues 0 and −0.5
    (a) The eigenvalues are 0, with eigenvector 11, and −0.5, with eigenvector 1−1.
  3. 3.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.

    0.510.51glucosefructoseat resttotal 1pure glucosex' = −0.25x + 0.25y, y' = 0.25x − 0.25y(a) eigenvalues 0 and −0.50: every mix with x = y is at rest
    0.510.51glucosefructoseat resttotal 1pure glucosex' = −0.25x + 0.25y, y' = 0.25x − 0.25y(a) eigenvalues 0 and −0.50: every mix with x = y is at rest
    The eigenvalue 0 makes the whole line x = y a line of equilibria; the difference between the sugars dies away at the rate 0.5.
  4. 4.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.

    0.510.51glucosefructoseat resttotal 1half and halfpure glucosex' = −0.25x + 0.25y, y' = 0.25x − 0.25y(a) eigenvalues 0 and −0.50: every mix with x = y is at resty = 0.5 − 0.5e−0.5h
    0.510.51glucosefructoseat resttotal 1half and halfpure glucosex' = −0.25x + 0.25y, y' = 0.25x − 0.25y(a) eigenvalues 0 and −0.50: every mix with x = y is at resty = 0.5 − 0.5e−0.5h
    From pure glucose the mix runs along x + y = 1 to the point of that line where the total is 1: half and half.
  5. 5.(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.

    0.510.51glucosefructoseat resttotal 1half and halfpure glucose42% at 3.67 hoursx' = −0.25x + 0.25y, y' = 0.25x − 0.25y(a) eigenvalues 0 and −0.50: every mix with x = y is at resty = 0.5 − 0.5e−0.5h(b) e−0.5h= 0.16, so h = 4 ln 2.5 = 3.67 hours
    0.510.51glucosefructoseat resttotal 1half and halfpure glucose42% at 3.67 hoursx' = −0.25x + 0.25y, y' = 0.25x − 0.25y(a) eigenvalues 0 and −0.50: every mix with x = y is at resty = 0.5 − 0.5e−0.5h(b) e−0.5h= 0.16, so h = 4 ln 2.5 = 3.67 hours
    (b) The fructose reaches 0.42 when e−0.5h = 0.16, at h = 4ln 2.5 ≈ 3.67 hours.

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

Common mistakes

  • 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.

More coupled differential equations problems, worked step by step →

Practice Solving a Coupled System with Eigenvalues in the app