BetaFree coursewareRewritten from MIT OpenCourseWareCC BY-NC-SA 4.0
Open CosmologyPhysics & cosmology, from high school to a graduate year

Introduction to first-order systems

A first-order system has several dependent variables, x′ = f(x, y, t) and y′ = g(x, y, t), to be solved together. It is linear if x and y enter linearly (x′ = ax + by + r₁(t), …), with constant coefficients if a, b, c, d are constants, and homogeneous if r₁ = r₂ = 0. The number of arbitrary constants is the total order, so a 2 × 2 first-order system takes the two starting values x(t₀) and y(t₀). Systems arise whenever there are two of something: two tanks, two loops, or an egg with a yolk and a white. For a hard-boiled egg dropped into ice water, T₁′ = −2T₁ + 2T₂, T₂′ = 2T₁ − 5T₂; eliminating T₂ gives T₁″ + 7T₁′ + 6T₁ = 0, and with T₁(0) = 40, T₂(0) = 45 the solution is T₁ = 50e^(−t) − 10e^(−6t), T₂ = 25e^(−t) + 20e^(−6t). An autonomous system is a velocity field in the plane, and its solutions are the parametrized curves that follow it.

You need this first

Full reading path (36 pages)
  1. The derivative: slope of the tangent line and rate of change (18.01)
  2. Limits and continuity (18.01)
  3. Derivatives of sine and cosine, and the product and quotient rules (18.01)
  4. The chain rule and higher derivatives (18.01)
  5. Implicit differentiation and the derivatives of inverse functions (18.01)
  6. Exponentials and logarithms: the number e and its derivatives (18.01)
  7. Linear and quadratic approximations (18.01)
  8. Curve sketching with the first and second derivative (18.01)
  9. Sketching strategy and maximum–minimum problems (18.01)
  10. More max–min, and related rates (18.01)
  11. A ring on a string, and Newton's method (18.01)
  12. The mean value theorem and inequalities (18.01)
  13. Differentials and antiderivatives (18.01)
  14. Differential equations and separation of variables (18.01)
  15. Direction fields, isoclines and integral curves (18.03)
  16. Euler's method and better numerical methods (18.03)
  17. First-order linear equations and integrating factors (18.03)
  18. Substitutions: scaling, Bernoulli and homogeneous equations (18.03)
  19. Autonomous equations, critical points and stability (18.03)
  20. Complex numbers and complex exponentials (18.03)
  21. Constant coefficients: steady state, superposition and sinusoidal input (18.03)
  22. Combining sine and cosine; models for first-order linear equations (18.03)
  23. Second-order linear equations with constant coefficients (18.03)
  24. Complex characteristic roots and damped oscillations (18.03)
  25. Linear operators, the Wronskian and normalized solutions (18.03)
  26. Inhomogeneous equations, particular solutions and stability (18.03)
  27. Particular solutions: the exponential input theorem (18.03)
  28. Resonance and beats (18.03)
  29. Introduction to Fourier series (18.03)
  30. Fourier series: even and odd functions, convergence and other periods (18.03)
  31. Particular solutions via Fourier series, and how we hear (18.03)
  32. Introduction to the Laplace transform (18.03)
  33. Laplace transforms of derivatives and solving initial value problems (18.03)
  34. The convolution formula (18.03)
  35. The unit step and discontinuous inputs (18.03)
  36. Impulse inputs, the delta function and the weight function (18.03)
On this page · 6 sections
  1. Vocabulary
  2. Where systems come from
  3. The egg
  4. Solving by elimination
  5. Autonomous systems and velocity fields
  6. Summary

For the rest of the term the subject is systems of differential equations: several equations, solved simultaneously, like systems of linear equations (transcript, p. 1). They follow the Laplace transform lectures.

Vocabulary#

With one independent variable tt and two dependent variables xx and yy, a first-order system has the form (transcript, p. 1)

First-order system
x′=f(x,y;t),y′=g(x,y;t)x' = f(x, y; t), \qquad y' = g(x, y; t)
In words

x prime equals f(x, y; t), y prime equals g(x, y; t)

It is linear if xx and yy occur linearly, although tt may appear in any way (pp. 1–2):

Linear system
x′=ax+by+r1(t),y′=cx+dy+r2(t)x' = ax + by + r_1(t), \qquad y' = cx + dy + r_2(t)
In words

x prime equals a x plus b y plus r one (t), y prime equals c x plus d y plus r two (t)

If aa, bb, cc, dd are constants it has constant coefficients; they may also be functions of tt (p. 2). It is homogeneous if r1r_1 and r2r_2 are identically zero, which is where the study begins (p. 2).

Initial conditions (pp. 2–3). The number of arbitrary constants in the solution is the total order of the system: two for two first-order equations, three if one of them is second order. So a 2×22 \times 2 first-order system needs two conditions, and they are the natural ones: the starting values x(t0)x(t_0) and y(t0)y(t_0), with no velocities required (p. 3).

Where systems come from#

The same models as for single equations, mixing, decay, heat conduction, diffusion, give systems whenever there are two of something that used to be one (transcript, pp. 3–4): two tanks, one feeding the other, or an electrical circuit with two loops. Add a third loop and the system has three equations; put a coil in one loop and that equation becomes second order, so the system has total order four (p. 4).

The egg#

An egg sits in a water bath at temperature Te(t)T_e(t) (transcript, p. 5). A real egg has a yolk, at temperature T1T_1, inside a white at temperature T2T_2, with different conductivities through the yolk's membrane and through the shell (p. 5). By Newton's law, the yolk gets heat only from the white, and the white from both the yolk and the bath (pp. 5–6). Written in standard form, with the variables in the same order on both sides, a habit that prevents many mistakes (p. 6):

The egg system
T1′=−a T1+a T2,T2′=a T1−(a+b) T2+b Te(t)T_1' = -a\,T_1 + a\,T_2, \qquad T_2' = a\,T_1 - (a + b)\,T_2 + b\,T_e(t)
In words

capital T one prime equals minus a capital T one plus a capital T two, capital T two prime equals a capital T one minus the quantity a plus b, capital T two plus b capital T sub e (t)

To coddle an egg, put it in boiling water and turn off the heat, so TeT_e starts at 100 °C and decays exponentially (p. 7). To avoid the inhomogeneous term, take instead a hard-boiled egg dropped into an ice bath, Te=0T_e = 0, with the "nice numbers" a=2a = 2, b=3b = 3 (pp. 7–8):

Egg in an ice bath
T1′=−2T1+2T2,T2′=2T1−5T2T_1' = -2T_1 + 2T_2, \qquad T_2' = 2T_1 - 5T_2
In words

capital T one prime equals minus 2 capital T one plus 2 capital T two, capital T two prime equals 2 capital T one minus 5 capital T two

Solving by elimination#

The method that always works, and that you can rebuild in forty years without remembering anything, is to eliminate a variable (transcript, p. 8). From the first equation (p. 9),

T₂ in terms of T₁
T2=T1′+2T12T_2 = \frac{T_1' + 2T_1}{2}
In words

capital T two equals the quantity capital T one prime plus 2 capital T one, all over 2

Substitute it into the second equation, carefully on paper, and multiply out (pp. 9–11):

Eliminated equation
T1′′+7T1′+6T1=0T_1'' + 7T_1' + 6T_1 = 0
In words

capital T one prime prime plus 7 capital T one prime plus 6 capital T one equals 0

Two first-order equations become one second-order equation: in general the order of the single equation is the sum of the orders. You trade one complexity for another, the "law of conservation of mathematical difficulty" (p. 10). The coefficients must be positive, because the system must be stable: an egg in ice water cools to 0 (p. 11). The characteristic equation r2+7r+6=(r+1)(r+6)=0r^2 + 7r + 6 = (r + 1)(r + 6) = 0 gives (pp. 11–12)

Yolk temperature
T1=c1e−t+c2e−6tT_1 = c_1e^{-t} + c_2e^{-6t}
In words

capital T one equals c one e to the power minus t plus c two e to the power minus 6 t

Do not find T2T_2 by eliminating T1T_1 and solving again: that is extra work and brings two more, unrelated arbitrary constants, while the system's solution has only two (p. 12). Use the relation already found instead (pp. 12–13):

White temperature
T2=T1′+2T12=12c1e−t−2c2e−6tT_2 = \frac{T_1' + 2T_1}{2} = \frac{1}{2}c_1e^{-t} - 2c_2e^{-6t}
In words

capital T two equals the quantity capital T one prime plus 2 capital T one, all over 2 equals one half c one e to the power minus t minus 2 c two e to the power minus 6 t

Initial values (pp. 12–14). Say the yolk is at 40 °C and the white at 45 °C. Then c1+c2=40c_1 + c_2 = 40 and 12c1−2c2=45\frac{1}{2}c_1 - 2c_2 = 45; doubling the second and subtracting gives c2=−10c_2 = -10, c1=50c_1 = 50 (p. 13):

Solution
T1=50e−t−10e−6t,T2=25e−t+20e−6tT_1 = 50e^{-t} - 10e^{-6t}, \qquad T_2 = 25e^{-t} + 20e^{-6t}
In words

capital T one equals 50 e to the power minus t minus 10 e to the power minus 6 t, capital T two equals 25 e to the power minus t plus 20 e to the power minus 6 t

The egg in the ice bath, computed from T1=50e−t−10e−6tT_1 = 50e^{-t} - 10e^{-6t} and T2=25e−t+20e−6tT_2 = 25e^{-t} + 20e^{-6t}: the white cools fast at first and soon falls below the yolk (before the curves cross, the yolk warms by under 0.2 °C, too little to see), and both tend to 0.

Autonomous systems and velocity fields#

As on the first day of the course, the geometric meaning matters as much as the algorithms, since systems are mostly solved by computer (transcript, p. 14). For a picture, there must be no tt on the right (p. 14):

Autonomous system
x′=f(x,y),y′=g(x,y)x' = f(x, y), \qquad y' = g(x, y)
In words

x prime equals f(x, y), y prime equals g(x, y)

It may be thoroughly nonlinear, but it is autonomous (pp. 14–15). A solution is a pair of functions x(t)x(t), y(t)y(t): a parametrized curve, travelled in a certain direction, and through every point passes one (pp. 15–16). (x′,y′)(x', y') is its velocity vector, tangent to the curve; the picture of the curves shows the direction of motion but not its speed (p. 16). So the system assigns a velocity vector to every point of the plane: it is a velocity field, and a solution is a parametrized curve with the right velocity everywhere (pp. 16–17). Its connection with the direction fields of the first lecture comes later (p. 17).

Worked example

A coupled system

Solve x′=−3x+yx' = -3x + y, y′=x−3yy' = x - 3y with x(0)=2x(0) = 2, y(0)=0y(0) = 0 by elimination.

Eliminate y

From the first equation y=x′+3xy = x' + 3x, so y′=x′′+3x′y' = x'' + 3x'. Substituting into the second: x′′+3x′=x−3(x′+3x)x'' + 3x' = x - 3(x' + 3x), that is x′′+6x′+8x=0x'' + 6x' + 8x = 0.

Solve for x, then y

r2+6r+8=(r+2)(r+4)r^2 + 6r + 8 = (r + 2)(r + 4), so x=c1e−2t+c2e−4tx = c_1e^{-2t} + c_2e^{-4t} and y=x′+3x=c1e−2t−c2e−4ty = x' + 3x = c_1e^{-2t} - c_2e^{-4t}, with the same two constants.

Initial values

c1+c2=2c_1 + c_2 = 2 and c1−c2=0c_1 - c_2 = 0, so c1=c2=1c_1 = c_2 = 1: x=e−2t+e−4tx = e^{-2t} + e^{-4t}, y=e−2t−e−4ty = e^{-2t} - e^{-4t}. Both tend to 0, as they must for a stable system with positive coefficients 66 and 88.

Summary#

  • A first-order system: x′=f(x,y,t)x' = f(x, y, t), y′=g(x,y,t)y' = g(x, y, t); linear, constant-coefficient and homogeneous as for single equations. It needs as many initial values as its total order.
  • Systems arise when there are two of something: two tanks, two loops, a yolk and a white.
  • Eliminate one variable to get a second-order equation; find the other variable from the first, with the same constants.
  • An autonomous system is a velocity field; its solutions are parametrized curves following it.

Symbols on this page

Show the 23 symbols used here
×\times times.
Times (multiplication). Between two vectors: the cross product. Say it: “times”.
aa a.
A coefficient of a linear system; in the egg, the conductivity through the yolk's membrane. Unit: 1/s. Say it: “a”.
cc c.
A coefficient of a linear system. Say it: “c”.
t0t_{0} today.
Today: the present time, about 13.8 billion years after the Big Bang in the real universe (simple models on some pages give other ages). Unit: s (usually billions of years). Say it: “t nought”.
xx x.
The first dependent variable; in the example, the amount in the first tank. Say it: “x”.
yy y.
The second dependent variable. Say it: “y”.
tt t.
The independent variable, time. Say it: “t”.
dd d.
A coefficient of a linear system. Say it: “d”.
ee e.
Euler's number, 2.718… Say it: “e”.
ff f.
The right-hand side f(x, y; t) of the first equation. Say it: “f”.
gg g.
The right-hand side g(x, y; t) of the second equation. Say it: “g”.
rr r.
A root of the characteristic equation. Say it: “r”.
bb b.
A coefficient of a linear system; in the egg, the conductivity through the shell. Unit: 1/s. Say it: “b”.
y′y' y prime.
The derivative dy/dt. Say it: “y prime”.
r1r_{1} r one.
The inhomogeneous term r₁(t) of the first equation. Say it: “r one”.
r2r_{2} r two.
The inhomogeneous term r₂(t) of the second equation. Say it: “r two”.
T1T_{1} T one.
The temperature of the yolk. Unit: °C. Say it: “capital T one”.
T2T_{2} T two.
The temperature of the white. Unit: °C. Say it: “capital T two”.
x′x' x prime.
The derivative dx/dt. Say it: “x prime”.
c1c_{1} c one.
The first arbitrary constant. Say it: “c one”.
c2c_{2} c two.
The second arbitrary constant. Say it: “c two”.
TeT_{e} T sub e.
The temperature of the water bath. Unit: °C. Say it: “capital T sub e”.
x′′x'' x double prime.
The second derivative of x. Say it: “x double prime”.

Tap or click a symbol in a formula to see the same explanation. All symbols: symbols and notation.

Words on this page

Show the 28 words used here

New here

first-order system.
A set of equations each giving the rate of change of one unknown in terms of all of them, with first derivatives only.
initial condition.
The state of a system at the starting time, such as its position and speed, which picks out one solution of its equation.
velocity field.
The arrows that a system of differential equations attaches to each point of the plane: the velocity a solution must have there.

Also used

differential equation.
An equation that links an unknown function to its derivatives; solving it means finding the function. Explained in Circular motion dynamics: worked problems.
linear.
The property that sums and multiples of solutions are again solutions, so the responses to separate inputs simply add. Explained in First-order linear equations and integrating factors.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
Laplace transform.
A way of turning a function of time into a function of a new variable s, which changes differential equations into algebra. Explained in Introduction to the Laplace transform.
constant coefficients.
Of a linear differential equation: the numbers multiplying the unknown and its derivatives do not change with time. Explained in Constant coefficients: steady state, superposition and sinusoidal input.
identically zero.
Equal to zero for every value of the variable, not just at some points. Explained in Fundamental matrices and inhomogeneous systems.
velocity.
How fast and in which direction something moves: the change in position in each unit of time. Explained in Speed and velocity.
heat conduction.
The flow of heat through a material from hot to cold by collisions between its particles, with no flow of the material itself. Explained in Viscosity, heat conduction and the Boltzmann equation for metals.
diffusion.
The slow spreading of a substance or of heat through a still medium, by random motion, from where there is more to less. Explained in The divergence theorem, its proof and the diffusion equation.
conductivity.
How easily something flows through a material: electric current, for electrical conductivity, or heat, for thermal conductivity. Explained in Current, resistance and DC circuits.
heat.
Energy that passes between bodies because their temperatures differ, rather than by one doing mechanical work on the other. Explained in Temperature and thermal energy.
conserved.
Keeping the same total value as time passes, as energy and momentum do when nothing outside changes them. Explained in Conservation of energy.
stable.
Of a state or motion: a small disturbance stays small or dies away, so the system remains close to it. Explained in Torque and balance.
characteristic equation.
An algebraic equation whose roots give the basic solutions: the rates r in e^(rt) for a constant-coefficient equation, or a matrix's eigenvalues.
nonlinear.
Not linear: containing squares, products or other functions of the unknowns, so effects do not simply add. Explained in Resistive forces: drag and terminal velocity.
autonomous.
Of a differential equation: one in which time does not appear on its own, so the rule for change is the same at every time. Explained in Autonomous equations, critical points and stability.
vector.
A list of numbers written as a column, or more generally anything that can be added and multiplied by numbers. Explained in Orthogonal vectors and subspaces.
tangent.
A straight line that touches a curve at a point and runs in the same direction as the curve there. Explained in Angles, radians and trigonometry.
direction field.
A picture of a differential equation: at many points, a short line with the slope the equation gives there. Explained in Direction fields, isoclines and integral curves.
elimination.
Solving equations by subtracting multiples of one from another until each unknown can be found in turn. Explained in The geometry of linear equations.

Academic

transcript.
A written record of exactly what was said in a recorded lecture, word for word.
homogeneous.
Of a linear equation: with zero on the right-hand side, so that zero is a solution; its solutions form the homogeneous solution.
arbitrary.
Free to be chosen as one likes; any choice gives a correct result.
model.
A simplified description of a real system, usually in equations, that keeps what matters and leaves out the rest.
on paper.
In theory or in a calculation, as opposed to in a real experiment or in reality.

Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).

Where this leads

In cosmology

Pages that build on this

Practise

Check your understanding

  1. How many initial conditions does the system x′=−3x+yx' = -3x + y, y′=x−3yy' = x - 3y need?
  2. Eliminating one variable from a system of two first-order equations gives…
  3. After finding T1T_1, how should T2T_2 be found?
0 of 3 answered

Flashcards

1 / 3