DifferentialEquations
Chapter 7 · Section 7.2

7.2 Applications of Linear Systems

Systems of differential equations are not an artificial exercise; they are what you get whenever a device has two or more parts that influence each other. In this section we build three such models from basic physical laws and solve them with the operator method of Section 7.1. The three models are the coupled mass–spring system, the two-loop electric network, and two interconnected tanks. They look different, but the modelling steps are the same each time, and so is the mathematics behind them.

Modelling in a nutshell
  1. Choose the unknowns, one for each part of the device (a displacement for each mass, a current for each loop, an amount of salt for each tank), and fix a sign convention.
  2. Write one balance law per part: Newton's second law for each mass, Kirchhoff's voltage law for each loop, "rate in rate out" for each tank.
  3. Look for the coupling terms. They always involve the unknowns of two parts: the stretch of a spring between two masses, the current in a shared branch, the flow from one tank into the other.
  4. Write the system in operator form and compute . Its order tells you how many initial conditions the model needs.
  5. Solve, apply the initial conditions, and check the answer against physical common sense: steady states, conservation laws, signs.

Coupled masses and springs

Two bodies of masses and slide without friction on a horizontal track. The left body is attached to a wall by a spring of stiffness , the two bodies are joined by a spring of stiffness , and the right body is attached to a second wall by a spring of stiffness (Figure 7.2.1). In the equilibrium position no spring exerts a net force on either body.

Figure 7.2.1. Two masses coupled by three springs. The displacements , are measured from the equilibrium positions, positive to the right. Only the middle spring couples the motions.

Forces on each body

Let and be the displacements of the bodies from equilibrium, positive to the right. By Hooke's law a spring that is stretched by an amount pulls on each of its ends with force (a negative means compression and a push).

  • Left spring. It is stretched by and pulls body 1 to the left: force .
  • Middle spring. Its length changes by . If it is stretched and pulls body 1 to the right and body 2 to the left. So it exerts on body 1 and on body 2. These formulas stay correct when , because then the sign of flips the directions automatically.
  • Right spring. If body 2 moves right by , the right spring is compressed by and pushes body 2 to the left: force .

Newton's second law for each body gives the system

In operator form:

The operator determinant has order , so the general solution contains four constants. That matches the physics: we must give both initial positions and both initial velocities. If the middle spring is removed (), the system splits into two independent oscillators of Chapter 5.

Example 7.2.1 (Energy that moves back and forth)

Take kg, N/m and a weak coupling spring N/m. At body 1 is pulled cm to the right, body 2 is held at its equilibrium position, and both are released from rest. Find and (in cm).

Solution
  1. Equations. With the given numbers, : Because the equations are linear and homogeneous we may measure displacements in centimetres.
  2. Determinant. It is a difference of squares: The characteristic roots are and .
  3. Solve for . , so
  4. Shortcut for . The first equation contains no derivative of , so it gives directly: . On and the operator multiplies by ; on and by . Hence
  5. Initial positions. and , so .
  6. Initial velocities. and , so .
  7. Answer.
  8. Interpretation. The sum-to-product identities rewrite the answer as Each body oscillates fast (angular frequency ) inside a slowly varying envelope. The envelope of first vanishes when , that is at s. At that moment body 1 is almost at rest and body 2 swings with the full amplitude cm; then the motion moves back. See Figure 7.2.2.
Figure 7.2.2. Example 7.2.1. The weak middle spring slowly passes the motion from body 1 (top) to body 2 (bottom) and back. Dashed curves: the envelopes and .

Normal modes

The two frequencies in Example 7.2.1 have a simple meaning. If the bodies start with equal displacements, , the middle spring is never stretched, and each body simply oscillates on its outer spring with , i.e. . If they start with opposite displacements, , the middle spring is stretched by and adds the restoring force on body 1; then . These two special motions, in which both bodies move with one single frequency, are the normal modes of the system. Every other motion is a superposition of the two. You will see the same idea again in Section 7.4, where special solutions , play the role of normal modes.

Why engineers care

A multi-storey building, a car body on its suspension, or a turbine shaft with several discs behaves like a chain of masses and springs. Each normal mode has its own natural frequency, and a periodic force near any of them can cause resonance (Section 5.5). Finding normal frequencies is therefore a routine step in structural design.

A two-loop electric network

We now use Kirchhoff's laws from Section 5.6. The voltage drop across a resistor carrying current is ; across an inductor it is . Kirchhoff's voltage law says that around any closed loop the voltage drops add up to the applied voltage.

The network in Figure 7.2.3 has three branches between the junctions and : the left branch with a source and an inductor , the middle branch with a resistor , and the right branch with an inductor and a resistor . We use loop currents: circulates clockwise in the left loop and clockwise in the right loop. The middle branch belongs to both loops, so (by Kirchhoff's current law at ) it carries downward.

  • Left loop. Drops: across the inductor and across the shared resistor. They balance the source:
  • Right loop. Going clockwise we cross the middle branch upward, against the current , so its drop counts as . There is no source:

The outer loop gives the sum of these two equations, so it adds no new information. In operator form,

has order : we need the two initial currents, one per inductor. (Current through an inductor cannot jump, which is why these are the natural initial data.)

Example 7.2.2

In the network of Figure 7.2.3 let H, , and V (a battery). The switch is closed at , when no current flows. Find , and the current in the middle branch.

Solution
  1. Equations.
  2. Determinant.
  3. Which unknown first? The second equation contains no derivative of , so once is known it gives algebraically. So we solve for first.
  4. Equation for . By (7.1.3), , i.e. A constant particular solution is , so
  5. Find . The operator multiplies by , by , and the constant by :
  6. Initial conditions. and . From the first, . Substituting: , so , and .
  7. Answer.
  8. Check with physics. After a long time the currents are constant, inductors have no voltage drop, and the full V appears across both and . So the middle branch carries A, the right branch A, and the battery A. The limits of our formulas agree.
Figure 7.2.3. Left: the two-loop network; the middle branch carries . Right: the currents of Example 7.2.2 approach the steady values , and A. The fast term shapes only the first fraction of a second; the slow term sets the time scale.

Interconnected tanks

In Section 3.3 one tank of brine led to one first-order equation: the rate of change of the amount of salt equals the rate at which salt enters minus the rate at which it leaves. With two tanks connected by pipes, salt can travel in both directions and we get one such balance for each tank. The rate at which salt is carried by a pipe is

and if the tank is well stirred its concentration is (amount of salt)/(volume).

Figure 7.2.4. The tank system of Example 7.2.3. The volumes stay constant because each tank receives exactly as much liquid as it loses: A gains and loses L/min; B gains and loses L/min.
Example 7.2.3

Tank A holds L of brine containing kg of dissolved salt; tank B holds L of pure water. From : pure water flows into A at L/min, brine is pumped from A to B at L/min and from B back to A at L/min, and brine drains from B at L/min (Figure 7.2.4). Both tanks are kept well stirred. Find the amounts of salt in A and in B. When does B contain the most salt?

Solution
  1. Concentrations. The volumes stay at L and L, so the concentrations are and kg/L.
  2. Balance for A. Salt enters only through the pipe from B: kg/min. It leaves through the pipe to B: kg/min. The fresh water brings no salt. So
  3. Balance for B. Salt enters from A at and leaves through two pipes at a total of kg/min:
  4. Operator form without fractions. Multiply the first equation by and the second by :
  5. Determinant. The roots are and .
  6. Solve. . The first equation gives algebraically. On the factor is ; on it is :
  7. Initial conditions. and . The second gives ; then , so and .
  8. Answer.
  9. Maximum in B. gives , so min. Then kg.
  10. Check. Both amounts tend to , as they must when only fresh water enters. The slow exponential dominates after a few minutes; in that regime , so the concentrations approach the fixed ratio .
Figure 7.2.5. Salt in tanks A and B (Example 7.2.3). Tank B first fills with salt from A, peaks at min, and is then slowly flushed together with A.
One mathematics, three devices

All three models led to constant-coefficient linear systems, and in all three the characteristic roots carried the physics: purely imaginary roots for the undamped springs (oscillation), negative real roots for the circuit and the tanks (decay to a steady state). Sections 7.3 and 7.4 explain this connection in general for systems in normal form. Initial-value problems of this kind can also be solved with the Laplace transform (Section 9.5).

Exercises

  1. Two bodies of mass kg sit in a line on a frictionless horizontal track: a wall, a spring with N/m, body 1, a spring with N/m, body 2, and nothing to the right of body 2. (a) Show that , . (b) Find and the two normal frequencies. (c) Solve with , , both at rest. (d) Solve with , , both at rest.
    Answer (b) ; and . (c) , (a pure normal mode). (d) , .
  2. For the system of Example 7.2.1, find the motion when both bodies start at equilibrium, body 1 with velocity cm/s and body 2 at rest.
    Answer , .
  3. In Example 7.2.1 show that if and , then for all , and find .
    Answer , , : , .
  4. Repeat Example 7.2.2 with H, H, , , V and zero initial currents.
    Answer . , .
  5. In the network of Example 7.2.2 the currents have reached their steady values A, A. At the battery is replaced by a short circuit (). Find and .
    Answer , .
  6. Repeat Example 7.2.3, but now the water entering tank A carries kg of salt per litre and both tanks initially contain pure water. (a) Write the system. (b) Solve it. (c) Find the limiting amounts and explain them.
    Answer (a) , . (b) , . (c) kg and kg: both tanks end up at the inflow concentration kg/L.
  7. Tank A holds L and tank B L. A pump moves L/min from A to B and another L/min from B to A; nothing enters or leaves the pair. Initially A contains kg of salt and B is pure water. Find and and show that is constant.
    Answer , ; , ; .
  8. Tank A ( L) and tank B ( L) start with pure water. Brine with kg/L enters A at L/min; L/min flow from A to B, L/min from B back to A, and L/min drain from B. Write the system and find its constant (equilibrium) solution.
    Answer , ; equilibrium kg, kg.
  9. In Example 7.2.3 show that the total amount of salt satisfies , and check this with the solution found there.
    Answer Adding the equations, the exchange terms cancel and only the drain remains: . With the solution, .
  10. Rewrite the system of Example 7.2.1 as four first-order equations in , , , .
    Answer , , , .