18.03 Differential Equations
Ordinary differential equations: first-order equations, linear equations with constant coefficients, oscillations and resonance, Fourier series, Laplace transforms, linear systems and non-linear systems.
Based on MIT OpenCourseWare, Spring 2010 · Prof. Arthur Mattuck, Prof. Haynes Miller · Course on OCW
Lectures 32 of 32 with pages so far
- Direction fields, isoclines and integral curves
Most first-order differential equations y′ = f(x, y) cannot be solved with elementary functions, so 18.03 starts with the geometric view. At each point of the plane draw a short line element of slope f(x, y): the direction field. A function solves the equation exactly when its graph is an integral curve, a curve tangent to the field everywhere. By hand, draw the field with isoclines, the curves f(x, y) = C on which every line element has slope C. Integral curves cannot cross, and by the existence and uniqueness theorem they cannot even touch, as long as f and ∂f/∂y are continuous. Where f is undefined, as for xy′ = y − 1 on the y-axis, existence or uniqueness can fail.
- Lecture 1 The Geometrical View of y'= f(x,y) MIT ↗ (opens in a new tab)
- Euler's method and better numerical methods
Most differential equations are solved numerically. Euler's method follows the direction field in straight steps: from (xₙ, yₙ) go a step h along the line element of slope Aₙ = f(xₙ, yₙ), so xₙ₊₁ = xₙ + h and yₙ₊₁ = yₙ + hAₙ. Done by hand, keep a table. Where the solution curve is convex Euler's answer is too low, where concave too high, and y″ can be found from the equation itself without solving it. The error is roughly proportional to h: Euler is a first-order method, so halving the step halves the error. Heun's method (improved Euler, RK2) averages the slope at the start and at the Euler endpoint; its error goes as h². The standard Runge–Kutta method RK4 uses four slopes and has error ∝ h⁴. A pitfall: solutions can blow up at places the equation does not reveal, as y′ = y² shows.
- Lecture 2 Euler's Numerical Method for y'=f(x,y) MIT ↗ (opens in a new tab)
- First-order linear equations and integrating factors
A first-order linear equation is linear in y and y′: a(x)y′ + b(x)y = c(x), homogeneous if the right side is zero. Its standard linear form is y′ + p(x)y = q(x), and the sign of p matters. Such equations model conduction (Newton's law of cooling, dT/dt = k(T_e − T)), diffusion, mixing, radioactive decay and bank interest. They can always be solved: multiply both sides by the integrating factor u = e^(∫p dx), which turns the left side into (uy)′, then integrate. With constant k the temperature is T = e^(−kt)∫k T_e e^(kt) dt + Ce^(−kt): a steady-state part plus a transient that dies away because k > 0, so in the long run the initial condition does not matter.
- Lecture 3 Solving First-order Linear ODEs MIT ↗ (opens in a new tab)
- Substitutions: scaling, Bernoulli and homogeneous equations
Only two kinds of first-order equation can always be solved, separable and linear; most others that can be solved are reduced to these by a change of variables. Scaling, x₁ = x/a and y₁ = y/b, changes units, makes variables dimensionless and lumps constants, as for the radiation cooling law dT/dt = k(M⁴ − T⁴). A Bernoulli equation y′ = p(x)y + q(x)yⁿ becomes linear for v = y^(1−n). A homogeneous equation y′ = F(y/x), one unchanged by zooming both axes, becomes separable by the inverse substitution y = zx. A boat keeping a 45° angle to a lighthouse beam obeys y′ = (x + y)/(x − y), and its path is an exponential spiral r = Ce^θ.
- Lecture 4 First-order Substitution Methods MIT ↗ (opens in a new tab)
- Autonomous equations, critical points and stability
An autonomous equation dy/dt = f(y) has no t on the right. Its horizontal lines are isoclines, so integral curves are translates of one another. The zeros of f are critical points: each gives a constant solution, a barrier no other solution crosses. Where f > 0 solutions rise, where f < 0 they fall, so a sketch of f(y) with arrows on the y-axis shows everything without solving. A critical point is stable if solutions approach it, unstable if they leave, and semi-stable if both happen on different sides. Examples: a bank account with embezzlement, dy/dt = ry − w; the logistic equation dy/dt = ay − by², whose solutions approach a/b; and logistic growth with constant harvesting h, which survives only while h is at most the maximum rate a²/4b.
- Lecture 5 First-order Autonomous ODEs MIT ↗ (opens in a new tab)
- Complex numbers and complex exponentials
Complex numbers are divided by multiplying top and bottom by the conjugate of the denominator, since z z̄ = a² + b² is real. In polar form a + bi = r(cos θ + i sin θ), and Euler defined e^(iθ) = cos θ + i sin θ. The definition is justified because it behaves like an exponential: e^(iθ₁)e^(iθ₂) = e^(i(θ₁+θ₂)) is exactly the addition formulas for sine and cosine, and d/dt e^(it) = i e^(it) with value 1 at t = 0. So every complex number is re^(iθ), and multiplying multiplies moduli and adds arguments. This makes integrals such as ∫e^(−x) cos x dx easy by complexifying, and puts the n-th roots of 1 at equally spaced points e^(2πik/n) on the unit circle.
- Lecture 6 Complex Numbers and Complex Exponentials MIT ↗ (opens in a new tab)
- Constant coefficients: steady state, superposition and sinusoidal input
For y′ + ky = kq_e(t) with k > 0, the solution is a steady-state part plus a transient Ce^(−kt) that dies away, so all solutions approach one another. The physical input q_e (a water-bath temperature, say) drives the response y, and because the equation is linear, responses to added inputs add. For the input cos ωt, complexify: solve ỹ′ + kỹ = ke^(iωt), whose solution is e^(iωt)/(1 + iω/k), and take the real part. In polar form the response is A cos(ωt − φ), with amplitude A = 1/√(1 + (ω/k)²) and phase lag φ = arctan(ω/k). Better conduction (larger k) raises the amplitude towards 1 and shrinks the lag.
- Lecture 7 First-order Linear with Constant Coefficients MIT ↗ (opens in a new tab)
- Combining sine and cosine; models for first-order linear equations
Going Cartesian, the response to cos ωt comes out as a combination of cos ωt and sin ωt; the identity a cos θ + b sin θ = c cos(θ − φ), where a and b are the sides of a right triangle with hypotenuse c and angle φ, turns it into a single oscillation with an amplitude and a phase lag. The identity has a backwards high-school proof, an 18.02 proof by the dot product and an 18.03 proof by complex numbers. First-order linear equations come in three kinds: y′ + ky = kq_e(t), y′ + ky = q(t) and y′ + p(t)y = q(t). A mixing tank fits the first kind once it is written for the concentration, with k = r/V the fractional rate of outflow; an RC circuit and a radioactive decay chain fit the second. When k < 0, as in population growth, the same method works but nothing is transient: the initial value matters for ever.
- Lecture 8 Continuation MIT ↗ (opens in a new tab)
- Second-order linear equations with constant coefficients
The homogeneous equation y″ + Ay′ + By = 0 with constant A and B has the general solution c₁y₁ + c₂y₂, built from any two independent solutions; the initial values fix c₁ and c₂. A spring–mass–dashpot system, mx″ + cx′ + kx = 0, is the standard model. Trying y = e^(rt) gives the characteristic equation r² + Ar + B = 0. Distinct real roots give c₁e^(r₁t) + c₂e^(r₂t), the overdamped case. Complex roots a ± bi give a complex solution whose real and imaginary parts are real solutions (because A and B are real): e^(at)(c₁ cos bt + c₂ sin bt), the underdamped case. A double root −a gives only e^(−at); substituting y = e^(−at)u gives u″ = 0, so the second solution is te^(−at): the critically damped case.
- Lecture 9 Solving Second-order Linear ODE's with Constant Coefficients MIT ↗ (opens in a new tab)
- Complex characteristic roots and damped oscillations
For complex roots a ± bi, the second root gives nothing new. The general solution can also be written C₁e^((a+bi)t) + C₂e^((a−bi)t) with complex constants; it is real exactly when changing i to −i leaves it unchanged, which forces C₂ = C̄₁. Euler's formula read backwards, cos α = (e^(iα) + e^(−iα))/2 and sin α = (e^(iα) − e^(−iα))/2i, turns that form back into sines and cosines. Writing the spring equation as y″ + 2py′ + ω₀²y = 0, the roots are −p ± √(p² − ω₀²). With no damping, the motion is a pure oscillation of angular frequency ω₀. With damping p < ω₀, the solution is Ae^(−pt) cos(ω₁t − φ): an oscillation inside an exponential envelope, crossing the axis every π/ω₁, with pseudo-frequency ω₁ = √(ω₀² − p²), which falls as the damping grows.
- Lecture 10 Continuation: Complex Characteristic Roots MIT ↗ (opens in a new tab)
- Linear operators, the Wronskian and normalized solutions
For the linear homogeneous equation y″ + p(x)y′ + q(x)y = 0, why is c₁y₁ + c₂y₂ the general solution? Writing the equation as Ly = 0, with the linear operator L = D² + pD + q, the superposition principle follows from linearity alone: L(c₁y₁ + c₂y₂) = c₁Ly₁ + c₂Ly₂ = 0. Initial values y(x₀) = a, y′(x₀) = b can be met when the Wronskian W(y₁, y₂) = y₁y₂′ − y₂y₁′ is nonzero at x₀; for two solutions it is either identically zero or never zero. Normalized solutions Y₁, Y₂, with Y₁(0) = 1, Y₁′(0) = 0 and Y₂(0) = 0, Y₂′(0) = 1, solve any initial value problem at once as aY₁ + bY₂ (for y″ − y = 0 they are cosh x and sinh x). The existence and uniqueness theorem then shows that every solution is of this form.
- Lecture 11 Theory of General Second-order Linear Homogeneous ODEs MIT ↗ (opens in a new tab)
- Inhomogeneous equations, particular solutions and stability
The inhomogeneous equation y″ + p(x)y′ + q(x)y = f(x) has an input f (signal, driving or forcing term) and a response y. Its models are a spring–mass–dashpot pushed by an external force and an RLC circuit driven by an electromotive force. Writing it as Ly = f, every solution is y = y_p + y_c: any one particular solution plus the complementary solution c₁y₁ + c₂y₂ of the associated homogeneous equation. The proof uses only the linearity of L. The first-order solution formula fits the same pattern. For constant coefficients the equation is stable when c₁y₁ + c₂y₂ tends to 0 for every c₁ and c₂; then y_c is a transient and y_p the steady-state solution. Case by case, this happens exactly when all the characteristic roots have negative real parts.
- Lecture 12 Continuation: General Theory for Inhomogeneous ODEs MIT ↗ (opens in a new tab)
- Particular solutions: the exponential input theorem
The most important inputs, e^(ax), cos ωx, sin ωx and decaying oscillations e^(ax) sin ωx, are all real or imaginary parts of one complex exponential e^(αx). Writing the equation as p(D)y = f(x), the substitution rule p(D)e^(αx) = p(α)e^(αx) gives the exponential input theorem: if p(α) ≠ 0, a particular solution of p(D)y = e^(αx) is e^(αx)/p(α). For 10e^(−x) sin x this gives (5/3)e^(−x)(cos x + sin x) after complexifying. When p(α) = 0, the exponential shift rule p(D)(e^(ax)u) = e^(ax)p(D + a)u shows that xe^(ax)/p′(a) works for a simple root, and x²e^(ax)/p″(a) for a double root.
- Lecture 13 Finding Particular Solutions to Inhomogeneous ODEs MIT ↗ (opens in a new tab)
- Resonance and beats
Driving an undamped oscillator y″ + ω₀²y = cos ω₁t gives the particular solution cos ω₁t/(ω₀² − ω₁²): a pure oscillation at the driving frequency, with a large amplitude when ω₁ is close to the natural frequency ω₀. When ω₁ = ω₀, iω₀ is a simple root of the characteristic polynomial and the exponential input theorem gives t sin ω₀t/(2ω₀), an oscillation whose amplitude grows linearly: resonance. This is the limit, by L'Hôpital's rule, of the particular solution (cos ω₁t − cos ω₀t)/(ω₀² − ω₁²). By the identity cos B − cos A = 2 sin((A − B)/2) sin((A + B)/2), that solution is a fast oscillation inside a slowly varying envelope: beats, used to tune instruments. With damping, the input frequency giving the largest response is √(ω₀² − 2p²), a little below the pseudo-frequency.
- Lecture 14 Interpretation of the Exceptional Case: Resonance MIT ↗ (opens in a new tab)
- Introduction to Fourier series
A reasonable function with period 2π can be written as a Fourier series c₀ + Σ(aₙ cos nt + bₙ sin nt). Since the responses to cos nt and sin nt are known, superposition then gives the response to any periodic input. The coefficients come from the orthogonality relations: any two distinct functions among sin nt and cos mt have ∫ from −π to π of their product equal to 0, while ∫ sin²nt = ∫ cos²nt = π for n ≥ 1. These follow from the differential equation u″ + n²u = 0 by integrating by parts. Multiplying the series by cos nt and integrating gives aₙ = (1/π)∫f cos nt dt, and likewise bₙ; the constant term is (1/2π)∫f dt, or a₀/2. The square wave, −1 then +1, has the series (4/π)(sin t + sin 3t/3 + sin 5t/5 + …).
- Lecture 15 Introduction to Fourier Series MIT ↗ (opens in a new tab)
- Fourier series: even and odd functions, convergence and other periods
A function has only one Fourier series, and that settles the shortcuts: an even function has only cosine terms, an odd one only sine terms, and their coefficients can be computed over half the interval, aₙ = (2/π)∫₀^π f cos nt dt or bₙ = (2/π)∫₀^π f sin nt dt. The sawtooth f(t) = t on (−π, π) has the series 2Σ(−1)ⁿ⁺¹ sin(nt)/n. Unlike a Taylor series, a Fourier series approximates over the whole interval, not near one point. It converges to f where f is continuous and to the midpoint of each jump. For period 2L, use cos(nπt/L) and sin(nπt/L) with π replaced by L in the formulas. A function on a finite interval can be extended to an even or odd periodic function and then expanded.
- Lecture 16 Continuation: More General Periods MIT ↗ (opens in a new tab)
- Particular solutions via Fourier series, and how we hear
Shifting and stretching a known series saves work: the square wave that is 0 then 1, with period 2, is 1/2 + (2/π)Σ sin(nπt)/n over odd n. For the undamped equation x″ + ω₀²x = f(t), each input term a cos ωₙt or b sin ωₙt has the response divided by ω₀² − ωₙ², so by superposition the Fourier series of the input gives the series of a particular solution at once. With ω₀ = 10, the term with frequency 3π ≈ 9.42 dominates the response: the system resonates with a frequency hidden in the input, one only Fourier analysis reveals. This is how the ear separates a chord: hair cells in the cochlea, each tuned to its own natural frequency, resonate with the frequencies present. The book's method, substituting a series with unknown coefficients and matching terms, gives the same answer.
- Lecture 17 Finding Particular Solutions via Fourier Series MIT ↗ (opens in a new tab)
- Introduction to the Laplace transform
The Laplace transform is the continuous analogue of a power series: summing a(n)xⁿ over n becomes integrating f(t)xᵗ over t, and writing x = e^(−s) gives F(s) = ∫₀^∞ f(t)e^(−st) dt. It is a transform, not an operator: a function of t goes in and a function of s comes out. It is linear. L(1) = 1/s, but only for s > 0. The exponential shift formula L(e^(at)f(t)) = F(s − a) gives L(e^(at)) = 1/(s − a), and with complex a, L(cos at) = s/(s² + a²) and L(sin at) = a/(s² + a²). Integrating by parts gives L(tⁿ) = n!/s^(n+1). Inverting a transform, the hardest step in solving equations, usually needs partial fractions: 1/(s(s + 3)) comes from 1/3 − (1/3)e^(−3t).
- Lecture 19 Introduction to the Laplace Transform MIT ↗ (opens in a new tab)
- Laplace transforms of derivatives and solving initial value problems
The Laplace integral converges when f is of exponential type: |f(t)| ≤ ce^(kt) for all t ≥ 0. Sine and every power tⁿ qualify; 1/t does not (its integral diverges at 0), nor does e^(t²), which grows too fast. Integrating by parts gives L(f′) = sF(s) − f(0), and applying this twice, L(f″) = s²F(s) − sf(0) − f′(0), so the initial values enter the transform. To solve an initial value problem, transform the equation and the initial conditions, solve the resulting algebraic equation for Y(s), a rational function, and find the inverse transform by partial fractions. For y″ − y = e^(−t), y(0) = 1, y′(0) = 0, this gives y = (3/4)e^t + (1/4)e^(−t) − (1/2)te^(−t), with the constants already built in.
- Lecture 20 Derivative Formulas MIT ↗ (opens in a new tab)
- The convolution formula
There is no simple formula for the Laplace transform of a product fg (and Mattuck says there never will be), but there is one for the product of transforms: F(s)G(s) is the transform of the convolution (f ∗ g)(t) = ∫₀ᵗ f(u)g(t − u) du, the continuous analogue of multiplying power series. Convolution is commutative, because FG = GF, even though the formula does not look symmetric. Examples: t² ∗ t = t⁴/12, checked through 2/s³ · 1/s² = 2/s⁵, and f ∗ 1 = ∫₀ᵗ f(u) du. The proof is a change of variables in a double integral, t = u + v, with Jacobian 1 and new limits 0 ≤ u ≤ t. Convolution is used for its own sake: if waste is dumped at rate f(t) and decays at rate k, the amount present at time t is f ∗ e^(−kt).
- Lecture 21 Convolution Formula MIT ↗ (opens in a new tab)
- The unit step and discontinuous inputs
The Laplace transform handles jumps well. The unit step u(t) is 0 for t < 0 and 1 for t > 0; u(t − a) jumps at a, and the unit box u(t − a) − u(t − b) is 1 between a and b, so multiplying a function by it keeps only that piece. Because the transform ignores negative t, u(t) and 1 have the same transform 1/s; to make inverse transforms unique, the inverse of F(s) is taken to be u(t)f(t). There is no formula for the transform of f(t − a) alone, but the t-axis translation formula gives L(u(t − a)f(t − a)) = e^(−as)F(s), or, in the form needed in practice, L(u(t − a)f(t)) = e^(−as)L(f(t + a)). An exponential factor e^(−as) in a transform marks a switch-on point t = a, where the function or one of its derivatives may jump: the inverse of (1 + e^(−πs))/(s² + 1) is sin t up to π and 0 afterwards.
- Lecture 22 Using Laplace Transform to Solve ODEs with Discontinuous Inputs MIT ↗ (opens in a new tab)
- Impulse inputs, the delta function and the weight function
The impulse of a force over a time interval is its integral; a constant force 1/h acting from 0 to h is a unit impulse, the box (1/h)(u(t) − u(t − h)), with transform (1 − e^(−hs))/(hs). As h → 0 the transform tends to 1, and the limit of the boxes, infinitely high and infinitely narrow, is Dirac's delta function δ(t): not really a function, but declared to have transform 1 and total integral 1. It acts as the identity for convolution, f ∗ δ = f, and behaves like the derivative of the unit step. A spring released from 1 and kicked with impulse A at t = π/2, y″ + y = Aδ(t − π/2), moves as cos t and then as (1 − A) cos t, so A = 1 stops it dead. For y″ + ay′ + by = f(t) starting at rest, Y = F(s)W(s) with the transfer function W(s) = 1/(s² + as + b), so y = f ∗ w, where the weight function w(t) is the response to a unit kick at time 0.
- Lecture 23 Use with Impulse Inputs MIT ↗ (opens in a new tab)
- 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.
- Lecture 24 Introduction to First-order Systems of ODEs MIT ↗ (opens in a new tab)
- Linear systems with constant coefficients: eigenvalues and eigenvectors
The egg system x′ = −2x + 2y, y′ = 2x − 5y becomes, in matrix form, x′ = Ax with A = [−2 2; 2 −5], and its solution c₁(1, ½)e^(−t) + c₂(1, −2)e^(−6t) is a sum of constant vectors times a single exponential each. So try x = αe^(λt) with the same λ in every component. Substituting cancels the exponential and leaves the algebraic system (A − λI)α = 0, which has a nonzero solution exactly when det(A − λI) = 0. For a 2 × 2 matrix this characteristic equation is λ² − (tr A)λ + det A = 0; its roots are the eigenvalues, and for each the nonzero solutions α are the eigenvectors. For the egg, λ = −1 with α = (2, 1) and λ = −6 with α = (1, −2), and superposition gives the general solution, the same as by elimination.
- Lecture 25 Homogeneous Linear Systems with Constant Coefficients MIT ↗ (opens in a new tab)
- Repeated and complex eigenvalues
Three identical fish-tank compartments, each exchanging heat with the other two, give x′ = Ax with A having −2 on the diagonal and 1 elsewhere. Its characteristic equation λ³ + 6λ² + 9λ = 0 has the roots 0 and −3, a double root. λ = 0 gives the constant solution (1, 1, 1), all compartments at one temperature. For λ = −3 every equation reduces to a₁ + a₂ + a₃ = 0, which has two independent solutions, so the repeated eigenvalue still yields two solutions: it is complete. An eigenvalue that is repeated but has too few independent eigenvectors is called defective (or incomplete). A real symmetric matrix never has defective eigenvalues. For complex eigenvalues, find a complex eigenvector, form αe^((a+bi)t), and take real and imaginary parts: for x′ = x + 2y, y′ = −x − y the eigenvalues are ±i and the solutions go round ellipses.
- Lecture 26 Continuation: Repeated Real Eigenvalues MIT ↗ (opens in a new tab)
- Sketching the solutions of 2 × 2 linear systems
Two states compete for tourists: x′ = −x + by, y′ = cx − 3y, where x and y are departures from their normal advertising budgets. To sketch the solution curves without computing them, start from the normal modes: each eigenvector gives straight-line solutions, travelled towards the origin if its eigenvalue is negative and away if positive. Then fill in by continuity, using dominance: as t → ∞ the term with the less negative (or larger) eigenvalue dominates, and as t → −∞ the other one does. With b = 2, c = 0 the eigenvalues −3, −1 give a nodal sink, asymptotically stable (both positive would give a nodal source). With b = 3, c = 5 the eigenvalues −6, 2 give a saddle, unstable: an advertising war. With b = −1, c = 2 the eigenvalues −2 ± i give a spiral sink, whose direction of turning is read off one velocity vector.
- Lecture 27 Sketching Solutions of 2x2 Homogeneous Linear System with Constant Coefficients MIT ↗ (opens in a new tab)
- Fundamental matrices and inhomogeneous systems
For the homogeneous system x′ = Ax, the general solution is c₁x₁ + c₂x₂ for any two linearly independent solutions. Their Wronskian, the determinant with columns x₁ and x₂, is either zero for all t (dependent solutions) or never zero (independent ones). Putting two independent solutions side by side gives the fundamental matrix X, which has nonzero determinant and satisfies the matrix equation X′ = AX. An inhomogeneous system x′ = Ax + r(t), such as two tanks with salt coming in from outside, has general solution x_c + x_p. Variation of parameters finds x_p for any input: write x_p = Xv with v(t) unknown, substitute, use X′ = AX, and get Xv′ = r, so x_p = X∫X⁻¹r dt.
- Lecture 28 Matrix Methods for Inhomogeneous Systems MIT ↗ (opens in a new tab)
- The matrix exponential
The general solution of x′ = Ax can be written Xc, with X a fundamental matrix and c a constant vector; every fundamental matrix is XC with C a constant matrix of nonzero determinant. The eigenvalue method is an algorithm, but papers want a formula. For one equation x′ = ax the answer is e^(at), and the power series e^(at) = 1 + at + a²t²/2! + … differentiates to a e^(at). The same series defines the matrix exponential e^(At) = I + At + A²t²/2! + …, which satisfies X′ = AX and equals I at t = 0: a fundamental matrix with no eigenvalues needed. For x′ = y, y′ = x it gives cosh t and sinh t. The initial value problem x(0) = x₀ is solved by x = e^(At)x₀, with x₀ on the right. The exponential law e^(A+B) = e^A e^B holds only when A and B commute; it still gives (e^A)⁻¹ = e^(−A). In practice, e^(At) = X(t)X(0)⁻¹ for any fundamental matrix X.
- Lecture 29 Matrix Exponentials MIT ↗ (opens in a new tab)
- Decoupling linear systems
A third language for x′ = Ax, used by many engineers: find new variables u, v in which the system decouples into u′ = k₁u, v′ = k₂v, two separate first-order equations. For an old ice-cube tray, two compartments of cross-sections 1 and 2 joined by a hole, x′ = −2x + 2y, y′ = x − y; physical insight suggests u = x + 2y, the total water, and v = x − y, the height difference, which give u′ = 0 and v′ = −3v. In general a system can be decoupled when its eigenvalues are real and complete (for example when A is real and symmetric): take as new basis the eigenvectors, x = Eu with E the matrix of eigenvectors. Because AE = EΛ, with Λ the diagonal matrix of eigenvalues, the system becomes u′ = Λu. The new variables are u = E⁻¹x, the decoupling matrix D = E⁻¹.
- Lecture 30 Decoupling Linear Systems with Constant Coefficients MIT ↗ (opens in a new tab)
- Nonlinear autonomous systems and the pendulum
Nonlinear autonomous systems x′ = f(x, y), y′ = g(x, y) rarely have formulas for their solutions, but their trajectories can be sketched. Step 1: find the critical points, where f = g = 0; each is a constant solution. Step 2: linearize at each one, using the Jacobian matrix of partial derivatives evaluated there, and sketch the linear system's trajectories. Step 3: join the local pictures into a global one. For a lightly damped rigid pendulum, θ″ + cθ′ + k sin θ = 0 with c = 1, k = 2, the system θ′ = ω, ω′ = −2 sin θ − ω has critical points (nπ, 0). Hanging down (θ = 0, 2π, …) the linearization is a clockwise spiral sink; pointing straight up (θ = ±π, …) it is a saddle. Together they show a pendulum swinging down to rest, or going over the top several times before settling.
- Lecture 31 Non-linear Autonomous Systems MIT ↗ (opens in a new tab)
- Limit cycles
Besides sitting at a critical point or running off to infinity, a trajectory of an autonomous system can be closed: it repeats itself, describing periodic behaviour. The concentric circles of x′ = y, y′ = −x are closed trajectories but not interesting ones. A limit cycle is a closed trajectory that is isolated and stable: nearby trajectories, inside and outside, spiral towards it without reaching it, as breathing returns to its natural rhythm after a disturbance. Finding limit cycles is hard and mostly done by computer search guided by the physical problem. Ruling them out is easier. Bendixson's criterion: if the divergence f_x + g_y is never zero in a region D, there are no closed trajectories in D; the proof is a contradiction via the flux form of Green's theorem. The critical point criterion: a closed trajectory must surround a critical point, so a region with none has no closed trajectories. How many limit cycles a quadratic system can have is still unsolved.
- Lecture 32 Limit Cycles MIT ↗ (opens in a new tab)
- Nonlinear systems and first-order equations: Volterra's predator–prey model
Eliminating t from an autonomous system dx/dt = f, dy/dt = g gives the first-order equation dy/dx = g/f. Velocity fields become direction fields and trajectories become integral curves: information about speed and direction is lost, but the equation may be solvable. For sharks x and food fish y, x′ = −ax + bxy, y′ = cy − dxy, the critical points are (0, 0), a saddle, and (c/d, a/b). With all constants 1 the linearization there is a centre, a borderline case that cannot decide between centre and spirals. Volterra's way out: dy/dx separates, giving xe^(−x)·ye^(−y) = C, the contour curves of a function with a single peak at (1, 1). So the trajectories are closed, populations cycle clockwise, and (1, 1) is a true centre. Fishing at rate k moves the equilibrium to ((c − k)/d, (a + k)/b): fewer sharks, more food fish: Volterra's principle, which the lecture also sees at work when ponds were sprayed with DDT.
- Lecture 33 Relation Between Non-linear Systems and First-order ODEs MIT ↗ (opens in a new tab)
- Problem set Problem Set 1: a virus-slowed herd, the isoclines of y′ = y² − x, Euler's method on y′ = 2x and a trust fund
Four problems on first-order equations. You model a herd of oryx whose growth rate fades away and find its limiting size, study the direction field of y′ = y² − x with its isoclines, its separatrix and its critical points, run Euler's method on y′ = 2x for any number of steps, and set up a trust fund that pays a nephew a fixed sum, first for ever and then for twenty years.
Practises lectures 1, 2, 3
- Problem set Problem Set 2: a decay chain on Tatooine, complex numbers, complex exponentials and a sinusoidal input
Four problems on first-order equations and complex numbers. You follow a chain of radioactive decays through three elements, find the time at which the middle element peaks, work with complex numbers in rectangular, polar and exponential form, solve equations such as e^z = −2, and use complex exponentials to find the steady response of a first-order equation to a sinusoidal input.
Practises lectures 3, 6, 7, 8
- Problem set Problem Set 3: hunting oryx, linearizing near equilibrium, a saloon door and its damping
Four problems on first-order autonomous equations and on the damped spring. You study a logistic population of oryx that is hunted at a constant rate, find when equilibria exist and which are stable, sketch the five kinds of solution and linearize near the stable population; then you follow the swing of a saloon door in the three cases of damping, with real roots (does the door swing through the frame?), a double root and complex roots (how fast does it oscillate?).
Practises lectures 5, 9, 10
- Problem set Problem Set 4: forced oscillations, complex gain and practical resonance
Four problems on second-order linear equations with an input. You find particular solutions with the exponential response formula, solve a driven spring from rest, find the complex gain of a spring driven through its top end, locate the peak of its gain and the point where its phase lag is 45 degrees, and see why the phase lag at 90 degrees does not depend on the damping.
Practises lectures 8, 10, 12, 13, 14
- Problem set Problem Set 5: a series RLC circuit, the damping ratio and Fourier series
Four problems on second-order equations and Fourier series. You find when the current in a series RLC circuit is in phase with a sinusoidal voltage and at which frequency it is largest, work out the damping ratio from the number of cycles in which an oscillation halves, compute the Fourier coefficients of a square wave and see why they give the best fit, and build new Fourier series from the square wave's by shifting, stretching and integrating.
Practises lectures 10, 12, 13, 14, 15, 16, 17
- Problem set Problem Set 6: a triangle wave on a spring, steps and delta functions, impulse and step responses, and convolution
Four problems on periodic inputs, jumps and kicks. You drive an undamped spring with a triangle wave and find when a periodic solution exists, when it is the only one and what happens near resonance; write functions with jumps in terms of the unit step and find their generalized derivatives with delta functions; find the unit impulse response and the unit step response of a second-order operator, and the operators that have three given impulse responses; and compute convolutions, checking that they solve their differential equations with rest initial conditions.
Practises lectures 17, 21, 22, 23
- Problem set Problem Set 7: rules of the Laplace transform, and impulse, step and ramp responses found with it
Three problems on the Laplace transform, and one optional problem. You find the transform of f(at) by a change of variable, prove the convolution formula with a double integral and transform a box function; find the unit impulse response and the unit step response of a first-order operator in the frequency domain, and its response to a ramp in three ways; and find the unit impulse responses of a second-order and a fourth-order operator by partial fractions.
Practises lectures 19, 20, 21, 22, 23
- Problem set Problem Set 8: pole diagrams, companion matrices and the phase plane, eigenvalues and eigenlines
Three problems. You read the long-term behaviour of a function from the pole diagram of its Laplace transform, and find the equation, the poles and the worst driving frequency of a system from its unit impulse response; turn two damped oscillators into first-order systems with companion matrices and follow their solutions as curves in the phase plane; and find eigenvalues, eigenvectors and eigenlines of two matrices, one of them a saddle.
Practises lectures 23, 24, 25
- Problem set Problem Set 9: complex and repeated eigenvalues, phase portraits in the trace-determinant plane, and the matrix exponential
Three problems on first-order linear systems. You solve a model of weasels and voles with complex eigenvalues and follow its spiral, and study a matrix with a repeated eigenvalue that is complete for one value of its entry and defective for all others; let one entry of a matrix vary and name all nine phase portraits it passes through, from the trace and the determinant; and compute matrix exponentials for the matrix of a complex number, for a companion matrix, and from two given normal modes.
Practises lectures 26, 27, 29
Note: Lecture 18 was an exam and has no lecture video.