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

Planes through three points, and matrices

A × B = −B × A and A × A = 0. The plane through three points is where a determinant vanishes, or equivalently where P₁P is perpendicular to the normal vector N = P₁P₂ × P₁P₃. Linear changes of coordinates are written with matrices, U = AX; entries of a product are dot products of rows with columns, (AB)X = A(BX) means first B then A, and AB ≠ BA. The identity I does nothing, the rotation R by 90° has R² = −I, and the inverse A⁻¹, found by minors, cofactors, transpose and division by det A, solves AX = B as X = A⁻¹B.

You need this first

Full reading path (3 pages)
  1. Vectors (8.01)
  2. Vectors and the dot product (18.02)
  3. Determinants and the cross product (18.02)
On this page · 8 sections
  1. Rules for the cross product
  2. The plane through three points
  3. Matrices and linear changes of coordinates
  4. Multiplying matrices
  5. What a product means
  6. The identity and a rotation
  7. The inverse matrix
  8. Summary

The first part of this lecture finishes the cross product with its rules and its main use, the equation of a plane. The second introduces matrices, which describe linear changes of coordinates (transcript, pp. 1–4).

Rules for the cross product#

The cross product does not commute. Swapping A⃗\vec A and B⃗\vec B leaves the parallelogram, its area and its plane unchanged, but the right-hand rule now gives the opposite direction; in the formula, every component changes sign, for example a2b3−a3b2a_2b_3 - a_3b_2 (transcript, p. 1; notes, p. 1):

Order matters, and A⃗×A⃗=0\vec A \times \vec A = 0
B⃗×A⃗=− A⃗×B⃗,A⃗×A⃗=0⃗\vec B \times \vec A = -\,\vec A \times \vec B, \qquad \vec A \times \vec A = \vec 0
In words

vector capital B cross vector capital A equals minus vector capital A cross vector capital B, vector capital A cross vector capital A equals vector 0

Source: 18.02 lecture summaries, Week 2 (Prof. Auroux), Lecture 3, pp. 1–2, Lecture 3, p. 1

The parallelogram formed by A⃗\vec A and A⃗\vec A is flat, with area zero, so A⃗×A⃗\vec A \times \vec A is the zero vector (p. 1).

The plane through three points#

Three points P1P_1, P2P_2, P3P_3 that are not on one line determine a plane. The equation of the plane is a condition on the coordinates of a point P=(x,y,z)P = (x, y, z) that holds exactly when PP is in it (transcript, p. 1).

First way: the vectors P1P⃗\vec{P_1P}, P1P2⃗\vec{P_1P_2}, P1P3⃗\vec{P_1P_3} form a parallelepiped. If PP is off the plane, it has some volume; if PP is in the plane, it is squashed flat. So (p. 1; notes, p. 1):

The plane as a flat box
det⁡(P1P⃗, P1P2⃗, P1P3⃗)=0\det\big(\vec{P_1P},\ \vec{P_1P_2},\ \vec{P_1P_3}\big) = 0
In words

the determinant of ( vector P one P, vector P one P two, vector P one P three ) equals 0

Second way: a normal vector N⃗\vec N is a vector perpendicular to the plane. PP is in the plane exactly when P1P⃗\vec{P_1P} is perpendicular to N⃗\vec N, that is when their dot product is zero. And the cross product of two vectors in the plane is perpendicular to both (p. 1; notes, p. 1):

The plane through its normal vector
P1P⃗⋅N⃗=0,N⃗=P1P2⃗×P1P3⃗\vec{P_1P} \cdot \vec N = 0, \qquad \vec N = \vec{P_1P_2} \times \vec{P_1P_3}
In words

vector P one P dot vector capital N equals 0, vector capital N equals vector P one P two times vector P one P three

Taking the points in another order gives −N⃗-\vec N or another multiple, and that is fine: a plane has infinitely many normal vectors, all multiples of each other (p. 1). The two ways give the same formula: P1P⃗⋅(P1P2⃗×P1P3⃗)\vec{P_1P} \cdot (\vec{P_1P_2} \times \vec{P_1P_3}) is the triple product, which equals the determinant for every PP, and is zero only when PP is in the plane (p. 2).

Matrices and linear changes of coordinates#

Many quantities are related by linear formulas, or can be approximated by them. A typical case is a change of coordinates: a point with coordinates x1,x2,x3x_1, x_2, x_3 in one system has coordinates u1,u2,u3u_1, u_2, u_3 in another, better suited to the problem, and if the two systems share an origin the relation is linear (transcript, p. 2; notes, p. 1). The lecture's made-up example is u1=2x1+3x2+3x3u_1 = 2x_1 + 3x_2 + 3x_3, u2=2x1+4x2+5x3u_2 = 2x_1 + 4x_2 + 5x_3, u3=x1+x2+2x3u_3 = x_1 + x_2 + 2x_3, which a matrix (a table of numbers) writes as one product (p. 2; notes, p. 1):

A linear relation as a matrix product
[233245112][x1x2x3]=[u1u2u3],AX=U\begin{bmatrix} 2 & 3 & 3 \\ 2 & 4 & 5 \\ 1 & 1 & 2 \end{bmatrix}\begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix} = \begin{bmatrix} u_1 \\ u_2 \\ u_3 \end{bmatrix}, \qquad AX = U
In words

2 3 3; 2 4 5; 1 1 2 x one; x two; x three equals u one; u two; u three, capital A capital X equals capital U

Source: 18.02 lecture summaries, Week 2 (Prof. Auroux), Lecture 3, pp. 1–2, Lecture 3, p. 1

Each entry of the product is the dot product of a row of AA with the column XX: the first row gives 2x1+3x2+3x3=u12x_1 + 3x_2 + 3x_3 = u_1, and so on (p. 2). Here AA is a 3 × 3 matrix (three rows, three columns) and XX a column vector, a 3 × 1 matrix (p. 2).

Multiplying matrices#

The same rule multiplies any two matrices: the entry of ABAB in row ii, column jj is the dot product of row ii of AA with column jj of BB (transcript, p. 2; notes, p. 1). A 3 × 4 matrix times a 4 × 2 matrix gives a 3 × 2 matrix. In the lecture's example, a first row 1,2,3,41, 2, 3, 4 of AA and a second column 0,3,0,20, 3, 0, 2 of BB give the entry 0+6+0+8=140 + 6 + 0 + 8 = 14 in the first row, second column of ABAB (p. 2).

A way to remember it: write AA on the left and BB above; each entry of ABAB is the dot product of the row to its left and the column above it. This also shows the size of the answer: as tall as AA, as wide as BB (p. 2). And it shows the condition for the product to exist (p. 2; notes, p. 1):

When AB makes sense
width of A=height of B\text{width of } A = \text{height of } B
In words

width of capital A equals height of capital B

What a product means#

If BB transforms XX into BXBX and AA then transforms the result, the product ABAB does both at once, first BB, then AA: right to left, as f(g(x))f(g(x)) applies gg first (transcript, p. 3; notes, p. 1):

Composing transformations
(AB)X=A(BX)(AB)X = A(BX)
In words

( capital A capital B ) capital X equals capital A ( capital B capital X )

This is associativity, which the matrix product has and the cross product does not (p. 3). But in general AB≠BAAB \ne BA: as the lecture puts it, converting oranges to bananas and then to carrots is not the same as the reverse, and one of the two products may not even have matching sizes (p. 3).

The identity and a rotation#

The identity matrix II does nothing: IX=XIX = X for every XX. (Not the zero matrix, which sends everything to zero.) In size n×nn \times n it has 1 on the diagonal and 0 elsewhere; for example its first row is i^=⟨1,0,0⟩\hat i = \langle 1, 0, 0\rangle, whose dot product with XX is x1x_1 (transcript, p. 3; notes, p. 1).

A rotation of the plane by 90° counterclockwise is the matrix (p. 3; notes, p. 1):

Rotation by 90°
R=[0−110],R[xy]=[−yx]R = \begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix}, \qquad R\begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} -y \\ x \end{bmatrix}
In words

capital R equals 0 minus 1; 1 0, capital R x; y equals minus y; x

Source: 18.02 lecture summaries, Week 2 (Prof. Auroux), Lecture 3, pp. 1–2, Lecture 3, p. 1

It sends i^\hat i to j^\hat j and j^\hat j to −i^-\hat i, and (x,y)(x, y) to (−y,x)(-y, x), the rotation formula from the last lecture. Its columns are the images of i^\hat i and j^\hat j (p. 3). Matrices make such calculations easy: R2=−IR^2 = -I, because two quarter turns make a half turn, which sends (x,y)(x, y) to (−x,−y)(-x, -y); and R4=IR^4 = I (p. 3).

The inverse matrix#

If U=AXU = AX gives the new coordinates from the old, the reverse relation, XX from UU, is again linear and given by a matrix, the inverse of AA (transcript, p. 3; notes, p. 1):

The inverse matrix
AA−1=A−1A=IA A^{-1} = A^{-1} A = I
In words

capital A capital A to the power minus 1 equals capital A to the power minus 1 capital A equals capital I

Only a square matrix can have an inverse (p. 3). The inverse solves linear systems: multiply AX=BAX = B on the left by A−1A^{-1} (pp. 3–4):

Solving a linear system
AX=B⟹X=A−1AX=A−1BAX = B \quad\Longrightarrow\quad X = A^{-1}AX = A^{-1}B
In words

capital A capital X equals capital B which gives capital X equals capital A to the power minus 1 capital A capital X equals capital A to the power minus 1 capital B

Source: 18.02 Lecture 3 transcript, pp. 3–4

A−1A^{-1} must go on the left, where it cancels AA; XAXA is not even defined when XX is a column vector (p. 4).

The cofactor method. For small matrices (3 × 3, 4 × 4; computer software uses other methods for large ones) the inverse is the adjoint matrix divided by the determinant (p. 4; notes, p. 2):

Inverse by cofactors
A−1=1det⁡A adj⁡(A)A^{-1} = \frac{1}{\det A}\,\operatorname{adj}(A)
In words

capital A to the power minus 1 equals 1 over the quantity the determinant of capital A, a d j ( capital A )

The adjoint is found in three steps (p. 4; notes, p. 2):

  1. Minors: for each entry, delete its row and column and take the 2 × 2 determinant that is left. For the lecture's matrix AA the top-left minor is 4⋅2−5⋅1=34 \cdot 2 - 5 \cdot 1 = 3.
  2. Cofactors: change the sign of the minors in the places marked minus on a checkerboard of signs starting with plus in the top-left corner (the same minus as on the middle term of a cross product).
  3. Transpose: write the rows as columns.

Then divide by det⁡A\det A. For the lecture's AA, det⁡A=3\det A = 3, and the result is (p. 4; notes, p. 2):

The lecture's inverse
A−1=13[3−3311−4−212]A^{-1} = \frac{1}{3}\begin{bmatrix} 3 & -3 & 3 \\ 1 & 1 & -4 \\ -2 & 1 & 2 \end{bmatrix}
In words

capital A to the power minus 1 equals one third 3 minus 3 3; 1 1 minus 4; minus 2 1 2

Source: 18.02 lecture summaries, Week 2 (Prof. Auroux), Lecture 3, pp. 1–2, Lecture 3, p. 2

It gives the old coordinates x1,x2,x3x_1, x_2, x_3 from the new ones (p. 4).

Worked example

A plane, and a system solved by the inverse

(a) Find the equation of the plane through P1=(1,0,0)P_1 = (1, 0, 0), P2=(0,2,0)P_2 = (0, 2, 0) and P3=(0,0,3)P_3 = (0, 0, 3). (b) Invert M=[120011101]M = \begin{bmatrix} 1 & 2 & 0 \\ 0 & 1 & 1 \\ 1 & 0 & 1 \end{bmatrix} and solve MX=⟨3,3,3⟩MX = \langle 3, 3, 3\rangle.

(a) A normal vector

P1P2⃗=⟨−1,2,0⟩\vec{P_1P_2} = \langle -1, 2, 0\rangle and P1P3⃗=⟨−1,0,3⟩\vec{P_1P_3} = \langle -1, 0, 3\rangle, so N⃗=⟨2⋅3−0⋅0, −((−1)⋅3−0⋅(−1)), (−1)⋅0−2⋅(−1)⟩=⟨6,3,2⟩\vec N = \langle 2 \cdot 3 - 0 \cdot 0,\ -((-1) \cdot 3 - 0 \cdot (-1)),\ (-1) \cdot 0 - 2 \cdot (-1)\rangle = \langle 6, 3, 2\rangle. Then P1P⃗⋅N⃗=6(x−1)+3y+2z=0\vec{P_1P} \cdot \vec N = 6(x - 1) + 3y + 2z = 0, that is 6x+3y+2z=66x + 3y + 2z = 6. Check: P2P_2 gives 3⋅2=63 \cdot 2 = 6 and P3P_3 gives 2⋅3=62 \cdot 3 = 6.

(b) Minors, cofactors, transpose

The minors are [1−1−121−2211]\begin{bmatrix} 1 & -1 & -1 \\ 2 & 1 & -2 \\ 2 & 1 & 1 \end{bmatrix}; the checkerboard gives the cofactors [11−1−2122−11]\begin{bmatrix} 1 & 1 & -1 \\ -2 & 1 & 2 \\ 2 & -1 & 1 \end{bmatrix}; transposing gives adj⁡(M)=[1−2211−1−121]\operatorname{adj}(M) = \begin{bmatrix} 1 & -2 & 2 \\ 1 & 1 & -1 \\ -1 & 2 & 1 \end{bmatrix}. Expanding along the first row, det⁡M=1⋅1−2⋅(−1)+0=3\det M = 1 \cdot 1 - 2 \cdot (-1) + 0 = 3, so M−1=13adj⁡(M)M^{-1} = \frac{1}{3}\operatorname{adj}(M). Check: the first row of MM times the first column of the adjoint is 1+2+0=31 + 2 + 0 = 3, and times the second column −2+2+0=0-2 + 2 + 0 = 0.

(b) The solution

X=M−1⟨3,3,3⟩X = M^{-1}\langle 3, 3, 3\rangle: each entry is a row of the adjoint times ⟨3,3,3⟩\langle 3, 3, 3\rangle, divided by 3, which is the row's sum: X=⟨1,1,2⟩X = \langle 1, 1, 2\rangle. Check: M⟨1,1,2⟩=⟨1+2, 1+2, 1+2⟩=⟨3,3,3⟩M\langle 1, 1, 2\rangle = \langle 1 + 2,\ 1 + 2,\ 1 + 2\rangle = \langle 3, 3, 3\rangle.

Summary#

  • B⃗×A⃗=−A⃗×B⃗\vec B \times \vec A = -\vec A \times \vec B and A⃗×A⃗=0⃗\vec A \times \vec A = \vec 0.
  • The plane through P1P_1, P2P_2, P3P_3: P1P⃗⋅N⃗=0\vec{P_1P} \cdot \vec N = 0 with the normal vector N⃗=P1P2⃗×P1P3⃗\vec N = \vec{P_1P_2} \times \vec{P_1P_3}, the same condition as det⁡(P1P⃗,P1P2⃗,P1P3⃗)=0\det(\vec{P_1P}, \vec{P_1P_2}, \vec{P_1P_3}) = 0.
  • A linear change of coordinates is a matrix product U=AXU = AX. Entries of ABAB are dot products of rows of AA with columns of BB, defined when the width of AA equals the height of BB.
  • (AB)X=A(BX)(AB)X = A(BX): first BB, then AA. In general AB≠BAAB \ne BA.
  • IX=XIX = X; the rotation RR by 90° has R2=−IR^2 = -I.
  • A−1=1det⁡Aadj⁡(A)A^{-1} = \frac{1}{\det A}\operatorname{adj}(A) (minors, cofactors, transpose), and AX=BAX = B gives X=A−1BX = A^{-1}B.

Symbols on this page

Show the 39 symbols used here
≠\neq not equal.
Is not equal to. Say it: “is not equal to”.
⇒\Rightarrow implies.
Implies: what follows is a consequence of what came before. Say it: “which gives”.
×\times times.
Times (multiplication). Between two vectors: the cross product. Say it: “times”.
⋅\cdot dot.
Times (multiplication). Between two vectors: the dot product. Say it: “times”.
⟨\langle angle brackets.
The average (mean value) of what is inside, ⟨…⟩. Say it: “the average of”.
det⁡\det determinant.
Determinant of a matrix. Say it: “the determinant of”.
v⃗\vec v vector arrow.
A vector: a quantity with a size and a direction. Say it: “vector”.
zz z.
The z coordinate. Say it: “z”.
xx x.
The x coordinate. Say it: “x”.
yy y.
The y coordinate. Say it: “y”.
ii i.
The row number of an entry in a matrix product. Say it: “i”.
jj j.
The column number of an entry in a matrix product. Say it: “j”.
nn n.
The size of a square matrix, n rows and n columns. Say it: “n”.
ff f.
A function, applied after g in f(g(x)). Say it: “f”.
gg g.
A function, applied first in f(g(x)). Say it: “g”.
PP P.
A point (x, y, z) that may or may not be in the plane. Say it: “P”.
AA A.
A vector (in the cross-product rules), then a square matrix, such as the lecture's 3 × 3 example. Say it: “capital A”.
BB B.
A second vector (in the cross-product rules), then a second matrix, or the known vector in AX = B. Say it: “capital B”.
NN N.
A normal vector: a vector perpendicular to the plane. Say it: “capital N”.
MM M.
In the worked example, the 3 × 3 matrix to invert. Say it: “capital M”.
RR R.
The matrix of rotation by 90° counterclockwise in the plane. Say it: “capital R”.
a2a_{2} a two.
The second component of the vector A. Say it: “a two”.
x1x_{1} x 1.
The first coordinate of a point in the old coordinate system. Say it: “x one”.
x2x_{2} x 2.
The second coordinate in the old coordinate system. Say it: “x two”.
UU U.
The column vector of new coordinates (u₁, u₂, u₃). Say it: “capital U”.
XX X.
A column vector, such as the old coordinates (x₁, x₂, x₃), or the unknown in AX = B. Say it: “capital X”.
a3a_{3} a 3.
The third component of the vector A. Say it: “a three”.
i^\hat{i} i hat.
Unit vector in the x direction: length 1, pointing towards increasing x. Say it: “i hat”.
j^\hat{j} j hat.
Unit vector in the y direction: length 1, pointing towards increasing y. Say it: “j hat”.
x3x_{3} x three.
The third coordinate in the old coordinate system. Say it: “x three”.
II I.
The identity matrix: ones on the diagonal, zeros elsewhere; IX = X. Say it: “capital I”.
u1u_{1} u one.
The first coordinate of the point in the new coordinate system. Say it: “u one”.
u2u_{2} u two.
The second coordinate in the new coordinate system. Say it: “u two”.
b2b_{2} b 2.
The second component of the vector B. Say it: “b two”.
b3b_{3} b 3.
The third component of the vector B. Say it: “b three”.
P1P_{1} P 1.
The first of three given points in the plane. Say it: “P one”.
P2P_{2} P 2.
The second of three given points in the plane. Say it: “P two”.
P3P_{3} P 3.
The third of three given points in the plane. Say it: “P three”.
u3u_{3} u 3.
The third coordinate in the new coordinate system. Say it: “u three”.

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

matrix.
A rectangular table of numbers, which acts on vectors to give new ones and so describes a linear change of coordinates.
normal vector.
A vector at right angles to a plane or surface; it fixes which way the plane faces.
identity matrix.
The square matrix with ones down its main diagonal and zeros elsewhere; it leaves every vector unchanged.
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.
cofactor.
A minor of a matrix with a plus or minus sign attached, following a checkerboard of signs that starts with plus in the top-left corner.
adjoint matrix.
The transpose of the matrix of cofactors; dividing it by the determinant gives the inverse matrix.
minor.
The determinant left after deleting one row and one column of a square matrix.
transpose.
The matrix made by writing the rows of a matrix as columns, flipping it across its main diagonal.

Also used

cross product.
A way of multiplying two vectors that gives a third vector, at right angles to both, as long as the area of their parallelogram. Explained in Torque and the cross product.
linear.
Of a relation or equation: using only first powers of the unknowns, so doubling the cause doubles the effect and effects simply add. Explained in Solving and rearranging formulas.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
commute.
Of two operations or matrices: to give the same result whichever is done first. Explained in Symmetry and infinitely many oscillators.
right-hand rule.
A way to find a direction with the right hand: curl the fingers from the first vector to the second; the thumb gives the result. Explained in Magnetic fields and magnetic force.
zero vector.
The vector whose components are all zero; adding it to any vector changes nothing. Explained in Transposes, permutations and vector spaces.
vector.
A quantity with both a size and a direction, such as a velocity or a force, drawn as an arrow. Explained in Vectors.
parallelepiped.
A slanted box: a solid with six faces, each a parallelogram, with opposite faces equal and parallel. Explained in Determinants and the cross product.
perpendicular.
At right angles to a line, a surface or another direction. Explained in Inclined planes.
dot product.
A way of multiplying two vectors that gives a number: multiply matching components and add, or lengths times the cosine of the angle between them. Explained in Vectors and the dot product.
triple product.
The number A · (B × C) made from three vectors: the volume of the box they span, with a sign; it equals their determinant. Explained in Determinants and the cross product.
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.
associative.
Of an operation: giving the same result however the steps are grouped, as in (a + b) + c = a + (b + c). Explained in Vectors.
diagonal.
In a square matrix, the entries running from the top left corner to the bottom right; a diagonal matrix has zeros everywhere else.
special relativity.
Einstein's 1905 theory of space and time for observers in steady motion, built on the speed of light being the same for all of them. Explained in The postulates of special relativity.
event.
A single point in space and time: a place together with a moment.
Lorentz transformation.
The rule of special relativity that converts the time and place of an event between two observers moving steadily relative to each other. Explained in Deriving the Lorentz transformation.
spacetime interval.
The one combination of the time and distance between two events that all observers in steady motion agree on. Explained in The spacetime interval.

Academic

transcript.
A written record of exactly what was said in a recorded lecture, word for word.
approximation.
Close to, but not exactly, the true value; an approximation is such a value or formula, chosen because it is simpler.

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

34 more cosmology pages that build on this

Pages that build on this

Practise

Check your understanding

  1. B⃗×A⃗\vec B \times \vec A equals…
  2. A is a 2 × 3 matrix and B is 3 × 4. Which product makes sense, and what size is it?
  3. (AB)X(AB)X means…
  4. If AX=BAX = B with AA invertible, then X=X =
0 of 4 answered

Flashcards

1 / 3