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

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.

You need this first

Full reading path (40 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)
  37. Introduction to first-order systems (18.03)
  38. Linear systems with constant coefficients: eigenvalues and eigenvectors (18.03)
  39. Repeated and complex eigenvalues (18.03)
  40. Sketching the solutions of 2 × 2 linear systems (18.03)
On this page · 5 sections
  1. Theory
  2. The fundamental matrix
  3. Inhomogeneous systems
  4. Variation of parameters
  5. Summary

The topic is inhomogeneous systems; the subtext is that thinking in matrices makes things easier (transcript, p. 1). First some theory, for a 2×22 \times 2 system x⃗ ′=Ax⃗\vec x\,' = A\vec x with a constant matrix, as on the previous pages (p. 1).

Theory#

Theorem A (transcript, pp. 1–3). The general solution is

General solution of the homogeneous system
x⃗=c1x⃗1+c2x⃗2\vec x = c_1\vec x_1 + c_2\vec x_2
In words

vector x equals c one vector x one plus c two vector x two

where x⃗1\vec x_1, x⃗2\vec x_2 are two linearly independent solutions: neither is a constant multiple of the other (p. 2). As for second-order equations, the easy part is that these are all solutions, by linearity and superposition; the hard part is that there are no others (pp. 2–3).

Theorem B (pp. 3–4). The Wronskian of two solutions is the determinant of the square matrix whose columns they are (p. 3):

Wronskian of two solutions
W(x⃗1,x⃗2)=det⁡(x⃗1,x⃗2)W(\vec x_1, \vec x_2) = \det(\vec x_1, \vec x_2)
In words

W( vector x one, vector x two ) equals the determinant of ( vector x one, vector x two )

It is a function of tt, and like the earlier Wronskian, of which it is a generalization (a homework problem), it has only two possibilities: it is identically zero, if x⃗1\vec x_1 and x⃗2\vec x_2 are dependent, or never zero, if they are independent (pp. 3–4).

The fundamental matrix#

Those who work with systems usually put the solutions together in one matrix (transcript, p. 4). The fundamental matrix for AA is the matrix whose columns are two independent solutions (p. 5):

Fundamental matrix
X=(x⃗1x⃗2)X = \begin{pmatrix} \vec x_1 & \vec x_2 \end{pmatrix}
In words

capital X equals vector x one vector x two

It has two properties (pp. 5–7):

  1. det⁡X≠0\det X \ne 0 for every tt: its determinant is the Wronskian of independent solutions.
  2. It satisfies a matrix differential equation, whose unknown is a whole matrix (p. 6):
Matrix differential equation
X′=AXX' = AX
In words

capital X prime equals capital A capital X

A matrix is differentiated entry by entry, so X′=(x⃗1 ′    x⃗2 ′)X' = (\vec x_1\,'\;\;\vec x_2\,'); and by the rule of matrix multiplication AX=(Ax⃗1    Ax⃗2)AX = (A\vec x_1\;\;A\vec x_2). The equation says, in one breath, that both columns solve the system (pp. 6–7).

Inhomogeneous systems#

Add given functions of tt to the right (transcript, pp. 7–8):

Inhomogeneous system
x⃗ ′=Ax⃗+r⃗(t)\vec x\,' = A\vec x + \vec r(t)
In words

vector x prime equals capital A vector x plus vector r (t)

Theorem C (p. 8). The general solution is x⃗=x⃗c+x⃗p\vec x = \vec x_c + \vec x_p: the complementary solution, which solves x⃗ ′=Ax⃗\vec x\,' = A\vec x, plus one particular solution, by linearity and superposition. For single equations most of the work was in finding x⃗p\vec x_p, by special methods for special inputs (pp. 8–9). For systems it turns out to be easy, and for any input: even a single equation with input tan⁡t\tan t, which neither the Laplace transform nor Fourier series can handle, can be solved this way once it is turned into a system (a homework problem, p. 9).

Where such a system comes from (pp. 9–12). Two one-litre tanks exchange liquid: 3 L/h flows from the first to the second and 2 L/h back, 2 L/h leaves the second, and to keep both tanks full, 1 L/h enters each from outside. The water entering the first carries salt at concentration 5e−t5e^{-t}; that entering the second is pure (p. 10). With xx and yy the amounts of salt, which equal the concentrations in one-litre tanks, inflow minus outflow gives (pp. 11–12)

Two tanks with salt coming in
(xy)′=(−323−4)(xy)+(5e−t0)\begin{pmatrix} x \\ y \end{pmatrix}' = \begin{pmatrix} -3 & 2 \\ 3 & -4 \end{pmatrix}\begin{pmatrix} x \\ y \end{pmatrix} + \begin{pmatrix} 5e^{-t} \\ 0 \end{pmatrix}
In words

x; y prime equals minus 3 2; 3 minus 4 x; y plus 5 e to the power minus t; 0

The outside pipes make the system inhomogeneous (p. 12).

Variation of parameters#

The method, from about two centuries ago (the lecture guesses Lagrange), takes the general solution c1x⃗1+c2x⃗2c_1\vec x_1 + c_2\vec x_2 of the homogeneous system and lets the constants vary: look for a particular solution v1(t)x⃗1+v2(t)x⃗2v_1(t)\vec x_1 + v_2(t)\vec x_2 (transcript, pp. 12–13). The first step is to write it with the fundamental matrix, with the column vector v⃗\vec v on the right (pp. 13–14):

Trial particular solution
x⃗p=Xv⃗,v⃗=(v1(t)v2(t))\vec x_p = X\vec v, \qquad \vec v = \begin{pmatrix} v_1(t) \\ v_2(t) \end{pmatrix}
In words

vector x sub p equals capital X vector v, vector v equals v one (t); v two (t)

(Written on the left, the product would mean something else, p. 14.) Substitute into x⃗ ′=Ax⃗+r⃗\vec x\,' = A\vec x + \vec r, differentiating the product of matrices by the ordinary product rule, keeping the order (pp. 14–15):

Substitution
X′v⃗+Xv⃗ ′=AXv⃗+r⃗X'\vec v + X\vec v\,' = AX\vec v + \vec r
In words

capital X prime vector v plus capital X vector v prime equals capital A capital X vector v plus vector r

Since X′=AXX' = AX, the first terms cancel, leaving Xv⃗ ′=r⃗X\vec v\,' = \vec r (p. 15). (The lecture first writes Xv⃗=r⃗X\vec v = \vec r and adds the prime.) XX has an inverse because its determinant is never zero; multiplying on the left by X−1X^{-1} and integrating each entry (pp. 15–16):

Variation of parameters
v⃗ ′=X−1r⃗,x⃗p=X∫X−1r⃗ dt\vec v\,' = X^{-1}\vec r, \qquad \vec x_p = X\int X^{-1}\vec r\,dt
In words

vector v prime equals capital X to the power minus 1 vector r, vector x sub p equals capital X the integral of capital X to the power minus 1 vector r d t

Inverting a 2×22 \times 2 matrix is quick: swap the diagonal entries, change the signs of the others, divide by the determinant (p. 16). If the integral cannot be done, leave it as an integral. No integration constants are needed: they are already in x⃗c\vec x_c (p. 16). The lecture leaves the tank problem for recitation (p. 16).

Worked example

Variation of parameters in action

Solve x′=yx' = y, y′=x+e2ty' = x + e^{2t}: find a fundamental matrix, its Wronskian, and a particular solution.

Fundamental matrix

A=(0110)A = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix} has eigenvalues ±1\pm 1 with eigenvectors (1,1)(1, 1) and (1,−1)(1, -1), so X=(ete−tet−e−t)X = \begin{pmatrix} e^t & e^{-t} \\ e^t & -e^{-t} \end{pmatrix}. Its determinant is −1−1=−2-1 - 1 = -2, never zero.

Solve for v

X−1=12(e−te−tet−et)X^{-1} = \frac{1}{2}\begin{pmatrix} e^{-t} & e^{-t} \\ e^t & -e^t \end{pmatrix}, so with r⃗=(0,e2t)\vec r = (0, e^{2t}), v⃗ ′=X−1r⃗=12(et,−e3t)\vec v\,' = X^{-1}\vec r = \frac{1}{2}(e^t, -e^{3t}) and v⃗=(12et,−16e3t)\vec v = (\frac{1}{2}e^t, -\frac{1}{6}e^{3t}).

Particular solution

x⃗p=Xv⃗=(12e2t−16e2t,  12e2t+16e2t)=(13e2t,23e2t)\vec x_p = X\vec v = \left(\frac{1}{2}e^{2t} - \frac{1}{6}e^{2t},\; \frac{1}{2}e^{2t} + \frac{1}{6}e^{2t}\right) = \left(\frac{1}{3}e^{2t}, \frac{2}{3}e^{2t}\right). Check: x′=23e2t=yx' = \frac{2}{3}e^{2t} = y, and y′=43e2t=13e2t+e2ty' = \frac{4}{3}e^{2t} = \frac{1}{3}e^{2t} + e^{2t}. The general solution adds c1(1,1)et+c2(1,−1)e−tc_1(1, 1)e^t + c_2(1, -1)e^{-t}.

Summary#

  • The general solution of x⃗ ′=Ax⃗\vec x\,' = A\vec x is c1x⃗1+c2x⃗2c_1\vec x_1 + c_2\vec x_2 with independent solutions; their Wronskian is never zero.
  • The fundamental matrix X=(x⃗1  x⃗2)X = (\vec x_1\;\vec x_2) has det⁡X≠0\det X \ne 0 and X′=AXX' = AX.
  • x⃗ ′=Ax⃗+r⃗\vec x\,' = A\vec x + \vec r: general solution x⃗c+x⃗p\vec x_c + \vec x_p.
  • Variation of parameters: x⃗p=Xv⃗\vec x_p = X\vec v gives Xv⃗ ′=r⃗X\vec v\,' = \vec r, so x⃗p=X∫X−1r⃗ dt\vec x_p = X\int X^{-1}\vec r\,dt, for any input.

Symbols on this page

Show the 29 symbols used here
≠\neq not equal.
Is not equal to. Say it: “is not equal to”.
±\pm plus or minus.
Plus or minus: both signs, or an uncertainty (67.3 ± 1.2). Say it: “plus or minus”.
×\times times.
Times (multiplication). Between two vectors: the cross product. Say it: “times”.
∫\int integral.
Integral: the sum of infinitely many small pieces, such as the area under a curve. Say it: “the integral of”.
det⁡\det determinant.
Determinant of a matrix. Say it: “the determinant of”.
tan⁡\tan tangent.
Tangent of an angle, sin/cos. Say it: “tan”.
v⃗\vec v vector arrow.
A vector: a quantity with a size and a direction. Say it: “vector”.
xx x.
The solution vector; in the tank example, the amount of salt in the first tank. Say it: “x”.
yy y.
The amount of salt in the second tank; in the worked example, the second unknown. Say it: “y”.
tt t.
Time. Say it: “t”.
dd d.
The d of dt. Say it: “d”.
ee e.
Euler's number, 2.718… Say it: “e”.
vv v.
The vector of varying parameters v(t) in x_p = Xv. Say it: “v”.
rr r.
The input vector r(t) that makes the system inhomogeneous. Say it: “r”.
AA A.
The constant matrix of the system. Say it: “capital A”.
y′y' y prime.
The derivative of y. Say it: “y prime”.
x1x_{1} x 1.
A first solution of the homogeneous system. Say it: “x one”.
x2x_{2} x 2.
A second solution, independent of x₁. Say it: “x two”.
x′x' x prime.
The derivative of x. Say it: “x prime”.
WW W.
The Wronskian det(x₁, x₂). Say it: “W”.
xcx_{c} x c.
The complementary solution, the general solution of x′ = Ax. Say it: “x c”.
XX X.
The fundamental matrix, whose columns are two independent solutions. Say it: “capital X”.
v′v' v prime.
The derivative of v. Say it: “v prime”.
v1v_{1} v one.
The first varying parameter. Say it: “v one”.
v2v_{2} v two.
The second varying parameter. Say it: “v two”.
c1c_{1} c one.
The first arbitrary constant. Say it: “c one”.
c2c_{2} c two.
The second arbitrary constant. Say it: “c two”.
xpx_{p} x sub p.
A particular solution of the inhomogeneous system. Say it: “x sub p”.
X′X' X prime.
The derivative of the fundamental matrix, entry by entry. Say it: “capital X 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 31 words used here

New here

linearly independent.
Of several functions or vectors: none of them can be written as a combination of the others.
identically zero.
Equal to zero for every value of the variable, not just at some points.
fundamental matrix.
A matrix whose columns are independent solutions of a linear system, so every solution is it times a constant vector.

Also used

matrix.
A rectangular table of numbers, which acts on vectors to give new ones and so describes a linear change of coordinates. Explained in Planes through three points, and matrices.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
theorem.
A statement that has been proved true, step by step, from definitions and earlier results. Explained in Limits and continuity.
general solution.
The whole family of solutions of a differential equation, written with free constants that starting values or boundary conditions then fix. Explained in Differential equations and separation of variables.
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.
superposition.
Adding effects: the total force, field or wave from several sources is the sum of what each would give alone. Explained in Superposition and standing waves.
Wronskian.
For two solutions y₁ and y₂ of a linear equation, the quantity y₁y₂′ − y₂y₁′; it is never zero exactly when they are independent. Explained in Linear operators, the Wronskian and normalized solutions.
determinant.
A single number worked out from a square array of numbers (a matrix), which measures how the matrix stretches areas or volumes. Explained in Determinants and the cross product.
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.
complementary solution.
The general solution of the homogeneous equation, which is added to one particular solution to give every solution of the full equation. Explained in Inhomogeneous equations, particular solutions and stability.
particular solution.
Any one solution of the full equation, input term included; adding the complementary solution gives all the others. Explained in Inhomogeneous equations, particular solutions and stability.
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.
Fourier series.
A way of writing a repeating function as a sum of sines and cosines whose frequencies are whole-number multiples of one frequency. Explained in Normal modes of a string and Fourier series.
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.
differentiation.
Finding a derivative: working out how fast a function changes. Explained in The derivative: slope of the tangent line and rate of change.
product rule.
The rule for the derivative of a product of two functions: (fg)′ = f′g + fg′. Explained in Circular motion: tangential acceleration and angular acceleration.
inverse.
The thing that undoes another: a matrix times its inverse gives the identity matrix, as a function followed by its inverse gives back the start. Explained in Planes through three points, and matrices.
integration.
Finding an integral: adding up very many small pieces, or finding an antiderivative. Explained in Differentials and antiderivatives.
diagonal.
In a square matrix, the entries running from the top left corner to the bottom right; a diagonal matrix has zeros everywhere else. Explained in The four fundamental subspaces.
integral.
A sum of very many very small pieces, such as the area under a graph; it undoes taking a derivative. Explained in Rates of change and area under a graph.
eigenvalue.
A number λ for which a matrix turns some non-zero vector into λ times that vector, only stretching or shrinking it. Explained in Linear systems with constant coefficients: eigenvalues and eigenvectors.
eigenvector.
A non-zero vector that a matrix only stretches or shrinks without turning: multiplying it by the matrix gives a number times the same vector. Explained in Linear systems with constant coefficients: eigenvalues and eigenvectors.
variation of parameters.
A method for an inhomogeneous linear equation that takes the homogeneous solutions and replaces their constants by unknown functions.

Academic

homogeneous.
Of a linear equation: with zero on the right-hand side, so that zero is a solution; its solutions form the homogeneous solution.
transcript.
A written record of exactly what was said in a recorded lecture, word for word.
theory.
An organised body of ideas, laws and methods about a subject: a tested explanation of nature, or a branch or method of mathematics.
satisfy.
To make an equation or condition true.
recitation.
At MIT, a small class led by a teacher or assistant, where students go over problems and questions from the main lectures.

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

Check your understanding

  1. The fundamental matrix XX of x⃗′=Ax⃗\vec x' = A\vec x satisfies…
  2. In variation of parameters, where must the unknown vector v⃗\vec v go?
  3. What is the particular solution given by variation of parameters?
0 of 3 answered

Flashcards

1 / 3