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

Determinants and the cross product

The dot product with a unit vector gives the component of a vector along a direction. Areas need a sine, and rotating a vector by 90° turns that sine into a cosine: the result is the determinant a₁b₂ − a₂b₁, plus or minus the area of a parallelogram. In space, a 3 × 3 determinant is plus or minus the volume of a parallelepiped, and the cross product A × B is a vector whose length is the area of the parallelogram and whose direction is perpendicular to it, by the right-hand rule. Volume = A · (B × C) = det(A, B, C).

You need this first

Full reading path (2 pages)
  1. Vectors (8.01)
  2. Vectors and the dot product (18.02)
On this page · 6 sections
  1. Components along a direction
  2. Area and the 2 × 2 determinant
  3. Determinants in space
  4. The cross product
  5. Volume and the triple product
  6. Summary

The last lecture gave the dot product, a way to find lengths and angles. This one finds areas and volumes, with two new tools: the determinant and the cross product (transcript, pp. 1, 3).

Components along a direction#

One more use of the dot product. Take a direction in space, given by a unit vector u^\hat u. The component of A⃗\vec A along u^\hat u is the length of the projection of A⃗\vec A onto that direction: ∣A⃗∣cos⁡θ|\vec A|\cos\theta, by the right angle in the picture. Since ∣u^∣=1|\hat u| = 1, this is a dot product (transcript, pp. 1–2; notes, p. 2):

Component along a unit vector
component of A⃗ along u^=∣A⃗∣cos⁡θ=∣A⃗∣ ∣u^∣cos⁡θ=A⃗⋅u^\text{component of } \vec A \text{ along } \hat u = |\vec A|\cos\theta = |\vec A|\,|\hat u|\cos\theta = \vec A \cdot \hat u
In words

component of vector capital A along u hat equals the absolute value of vector capital A cos theta equals the absolute value of vector capital A the absolute value of u hat cos theta equals vector capital A dot u hat

Source: 18.02 Lecture 2 transcript, pp. 1–2

With u^=i^=⟨1,0,0⟩\hat u = \hat i = \langle 1, 0, 0\rangle this gives the first component, the xx component; with k^\hat k it gives the zz component (p. 2). But any unit vector works. For a swinging pendulum, the useful directions are not xx and yy but the unit vector T⃗\vec T tangent to the circle and the unit vector N⃗\vec N normal to it. The component of the weight along T⃗\vec T makes the mass swing back and forth; the component along N⃗\vec N is what the lecture calls responsible for the tension in the string (pp. 2–3). (For a swinging mass the tension also has to supply the force that keeps it on its circle, so it is not just that component.)

Area and the 2 × 2 determinant#

To find the area of a polygon, cut it into triangles (p. 3). A triangle in the plane with sides A⃗\vec A and B⃗\vec B has area one half base times height: the base is ∣A⃗∣|\vec A|, the height ∣B⃗∣sin⁡θ|\vec B|\sin\theta (p. 4). The dot product gives a cosine, not a sine, and finding the sine from sin⁡2θ+cos⁡2θ=1\sin^2\theta + \cos^2\theta = 1 gives an ugly formula (p. 4; notes, p. 2).

The trick is a complementary angle. Rotate A⃗\vec A by 90° counterclockwise to get A⃗′\vec A', with the same length. The angle θ′\theta' between A⃗′\vec A' and B⃗\vec B is π/2−θ\pi/2 - \theta, so cos⁡θ′=sin⁡θ\cos\theta' = \sin\theta and (p. 4):

Turning a sine into a cosine
∣A⃗∣ ∣B⃗∣sin⁡θ=∣A⃗′∣ ∣B⃗∣cos⁡θ′=A⃗′⋅B⃗|\vec A|\,|\vec B|\sin\theta = |\vec A'|\,|\vec B|\cos\theta' = \vec A' \cdot \vec B
In words

the absolute value of vector capital A the absolute value of vector capital B sine theta equals the absolute value of vector capital A prime the absolute value of vector capital B cos theta prime equals vector capital A prime dot vector capital B

Source: 18.02 Lecture 2 transcript, pp. 4–5

Which vector is A⃗′\vec A'? Turn the box with sides a1a_1 and a2a_2 on its side: the new xx component is a2a_2, pointing left, and the new yy component is a1a_1, so A⃗′=⟨−a2,a1⟩\vec A' = \langle -a_2, a_1\rangle (clockwise would give ⟨a2,−a1⟩\langle a_2, -a_1\rangle) (p. 5). Then A⃗′⋅B⃗=−a2b1+a1b2\vec A' \cdot \vec B = -a_2b_1 + a_1b_2, which is the determinant of A⃗\vec A and B⃗\vec B (p. 5; notes, p. 2):

The 2 × 2 determinant
det⁡(A⃗,B⃗)=∣a1a2b1b2∣=a1b2−a2b1\det(\vec A, \vec B) = \begin{vmatrix} a_1 & a_2 \\ b_1 & b_2 \end{vmatrix} = a_1b_2 - a_2b_1
In words

the determinant of ( vector capital A, vector capital B ) equals a one a two; b one b two equals a one b two minus a two b one

The determinant is the area of the parallelogram with sides A⃗\vec A and B⃗\vec B; the triangle is half of it (p. 6). But an area is positive, and the determinant can have either sign: it is positive or negative according to whether B⃗\vec B lies counterclockwise or clockwise from A⃗\vec A (p. 6; notes, p. 2). So the honest statement is that the determinant is plus or minus the area, and the area is its absolute value (pp. 6–7).

Determinants in space#

In space, three vectors A⃗\vec A, B⃗\vec B, C⃗\vec C have a 3 × 3 determinant, defined by expansion along the first row: each entry of the first row times the 2 × 2 determinant left after deleting that entry's row and column, with a minus sign on the middle term (transcript, p. 8; notes, p. 2):

The 3 × 3 determinant
∣a1a2a3b1b2b3c1c2c3∣=a1∣b2b3c2c3∣−a2∣b1b3c1c3∣+a3∣b1b2c1c2∣\begin{vmatrix} a_1 & a_2 & a_3 \\ b_1 & b_2 & b_3 \\ c_1 & c_2 & c_3 \end{vmatrix} = a_1\begin{vmatrix} b_2 & b_3 \\ c_2 & c_3 \end{vmatrix} - a_2\begin{vmatrix} b_1 & b_3 \\ c_1 & c_3 \end{vmatrix} + a_3\begin{vmatrix} b_1 & b_2 \\ c_1 & c_2 \end{vmatrix}
In words

a one a two a three; b one b two b three; c one c two c three equals a one b two b three; c two c three minus a two b one b three; c one c three plus a three b one b two; c one c two

Written out, that is six products. Why the minus sign? Without it the next theorem fails; the deeper reason is orientation: swapping two coordinate axes turns a right-handed system into a left-handed one, its mirror image (p. 9). The 2 × 2 determinant follows the same pattern, a1a_1 times b2b_2 minus a2a_2 times b1b_1, and the signs alternate in larger determinants too (more of this in 18.06, Linear Algebra) (pp. 8–9).

The theorem (p. 9; notes, p. 2):

Determinant and volume
det⁡(A⃗,B⃗,C⃗)=± volume of the parallelepiped with sides A⃗,B⃗,C⃗\det(\vec A, \vec B, \vec C) = \pm\,\text{volume of the parallelepiped with sides } \vec A, \vec B, \vec C
In words

the determinant of ( vector capital A, vector capital B, vector capital C ) equals plus or minus volume of the parallelepiped with sides vector capital A, vector capital B, vector capital C

A parallelepiped is a box whose six faces are parallelograms (p. 9).

The cross product#

The cross product is defined only for two vectors in three-dimensional space, and it gives a vector, not a number like the dot product (transcript, p. 10; notes, p. 2). Its definition borrows the look of a determinant, with the unit vectors in the first row (pp. 10–11):

Cross product
A⃗×B⃗=∣i^j^k^a1a2a3b1b2b3∣=∣a2a3b2b3∣i^−∣a1a3b1b3∣j^+∣a1a2b1b2∣k^\vec A \times \vec B = \begin{vmatrix} \hat i & \hat j & \hat k \\ a_1 & a_2 & a_3 \\ b_1 & b_2 & b_3 \end{vmatrix} = \begin{vmatrix} a_2 & a_3 \\ b_2 & b_3 \end{vmatrix}\hat i - \begin{vmatrix} a_1 & a_3 \\ b_1 & b_3 \end{vmatrix}\hat j + \begin{vmatrix} a_1 & a_2 \\ b_1 & b_2 \end{vmatrix}\hat k
In words

vector capital A cross vector capital B equals i hat j hat k hat; a one a two a three; b one b two b three equals a two a three; b two b three i hat minus a one a three; b one b three j hat plus a one a two; b one b two k hat

Source: 18.02 Lecture 2 transcript, pp. 10–11

A determinant should contain numbers, so the first form is only a way to remember the second; the expansion is the actual definition (pp. 10–11). (Write the × clearly, so it is not mistaken for a dot.)

Geometrically, a vector has a length and a direction, and both are remarkable (p. 11; notes, p. 2):

  • Length: ∣A⃗×B⃗∣|\vec A \times \vec B| is the area of the parallelogram in space with sides A⃗\vec A and B⃗\vec B. No plus or minus this time, since a length is never negative. For a parallelogram given by coordinates, this is the simplest way to find its area (p. 11).
  • Direction: perpendicular to the plane of the parallelogram. Of the two perpendicular directions, the right-hand rule picks one: point your right hand along A⃗\vec A, curl the fingers towards B⃗\vec B, and the thumb points along A⃗×B⃗\vec A \times \vec B (pp. 11–12).

Example: i^×j^\hat i \times \hat j. The unit square in the xyxy-plane has area 1, the perpendicular direction is vertical, and the right hand gives up, so i^×j^=k^\hat i \times \hat j = \hat k (p. 12). From the definition, with i^=⟨1,0,0⟩\hat i = \langle 1, 0, 0\rangle and j^=⟨0,1,0⟩\hat j = \langle 0, 1, 0\rangle, the i^\hat i and j^\hat j coefficients are 0⋅0−0⋅1=00 \cdot 0 - 0 \cdot 1 = 0 and −(1⋅0−0⋅0)=0-(1 \cdot 0 - 0 \cdot 0) = 0, and the k^\hat k coefficient is 1⋅1−0⋅0=11 \cdot 1 - 0 \cdot 0 = 1: again k^\hat k (pp. 12–13). For simple vectors the picture is quicker; for complicated ones, calculate (p. 13). (8.01 uses the cross product for torque.)

Volume and the triple product#

The volume of a parallelepiped is the area of its base times its height (transcript, p. 14). Take the base to be the parallelogram with sides B⃗\vec B and C⃗\vec C: its area is ∣B⃗×C⃗∣|\vec B \times \vec C|. The height is the component of A⃗\vec A perpendicular to the base, A⃗⋅n^\vec A \cdot \hat n, where n^\hat n is a unit vector perpendicular to the base; the cross product gives that direction, and dividing by its length makes it a unit vector (pp. 14–15; notes, p. 2):

Base times height
volume=∣B⃗×C⃗∣ (A⃗⋅n^),n^=B⃗×C⃗∣B⃗×C⃗∣\text{volume} = |\vec B \times \vec C|\,(\vec A \cdot \hat n), \qquad \hat n = \frac{\vec B \times \vec C}{|\vec B \times \vec C|}
In words

volume equals the absolute value of vector capital B cross vector capital C ( vector capital A dot n hat ), n hat equals vector capital B cross vector capital C over the absolute value of vector capital B cross vector capital C

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

The lengths cancel, leaving the triple product (p. 15). Like the determinant it can be negative, when A⃗\vec A lies on the other side of the base from n^\hat n, so it is plus or minus the volume:

The triple product
A⃗⋅(B⃗×C⃗)=det⁡(A⃗,B⃗,C⃗)\vec A \cdot (\vec B \times \vec C) = \det(\vec A, \vec B, \vec C)
In words

vector capital A dot ( vector capital B cross vector capital C ) equals the determinant of ( vector capital A, vector capital B, vector capital C )

The order matters: A⃗⋅B⃗\vec A \cdot \vec B is a number and cannot be crossed with anything, so the cross product is done first (p. 15). The identity can also be checked by components: the first component of B⃗×C⃗\vec B \times \vec C is ∣b2b3c2c3∣\begin{vmatrix} b_2 & b_3 \\ c_2 & c_3 \end{vmatrix}, the coefficient of a1a_1 in the determinant, and likewise for the others (p. 15). So the geometric route to volume still needs a determinant to compute it (p. 9).

Worked example

An area, a cross product and a volume

(a) Find the area of the triangle in the plane with sides A⃗=⟨3,1⟩\vec A = \langle 3, 1\rangle and B⃗=⟨1,2⟩\vec B = \langle 1, 2\rangle. (b) Find P⃗×Q⃗\vec P \times \vec Q for P⃗=⟨1,0,2⟩\vec P = \langle 1, 0, 2\rangle and Q⃗=⟨0,3,1⟩\vec Q = \langle 0, 3, 1\rangle, check that it is perpendicular to both, and find the area of the parallelogram they span. (c) Find the volume of the parallelepiped with sides P⃗\vec P, Q⃗\vec Q and R⃗=⟨1,1,1⟩\vec R = \langle 1, 1, 1\rangle.

(a) A 2 × 2 determinant

det⁡(A⃗,B⃗)=3⋅2−1⋅1=5\det(\vec A, \vec B) = 3 \cdot 2 - 1 \cdot 1 = 5, positive because B⃗\vec B is counterclockwise from A⃗\vec A. The parallelogram has area 5, the triangle 5/2=2.55/2 = 2.5.

(b) The cross product

The i^\hat i coefficient is 0⋅1−2⋅3=−60 \cdot 1 - 2 \cdot 3 = -6, the j^\hat j coefficient is −(1⋅1−2⋅0)=−1-(1 \cdot 1 - 2 \cdot 0) = -1, the k^\hat k coefficient is 1⋅3−0⋅0=31 \cdot 3 - 0 \cdot 0 = 3: P⃗×Q⃗=⟨−6,−1,3⟩\vec P \times \vec Q = \langle -6, -1, 3\rangle. Check: P⃗⋅⟨−6,−1,3⟩=−6+0+6=0\vec P \cdot \langle -6, -1, 3\rangle = -6 + 0 + 6 = 0 and Q⃗⋅⟨−6,−1,3⟩=0−3+3=0\vec Q \cdot \langle -6, -1, 3\rangle = 0 - 3 + 3 = 0, so it is perpendicular to both. The parallelogram has area 36+1+9=46≈6.78\sqrt{36 + 1 + 9} = \sqrt{46} \approx 6.78.

(c) The triple product

Q⃗×R⃗=⟨3−1, −(0−1), 0−3⟩=⟨2,1,−3⟩\vec Q \times \vec R = \langle 3 - 1,\ -(0 - 1),\ 0 - 3\rangle = \langle 2, 1, -3\rangle, so P⃗⋅(Q⃗×R⃗)=2+0−6=−4\vec P \cdot (\vec Q \times \vec R) = 2 + 0 - 6 = -4. The determinant by expansion agrees: 1(3−1)−0+2(0−3)=−41(3 - 1) - 0 + 2(0 - 3) = -4. The volume is ∣−4∣=4|-4| = 4; the minus sign says P⃗\vec P, Q⃗\vec Q, R⃗\vec R form a left-handed set.

Summary#

  • A⃗⋅u^\vec A \cdot \hat u is the component of A⃗\vec A along the unit vector u^\hat u.
  • Rotating ⟨a1,a2⟩\langle a_1, a_2\rangle by 90° counterclockwise gives ⟨−a2,a1⟩\langle -a_2, a_1\rangle, and with it the determinant a1b2−a2b1a_1b_2 - a_2b_1: plus or minus the area of the parallelogram with sides A⃗\vec A, B⃗\vec B.
  • A 3 × 3 determinant, expanded along the first row with signs +,−,++, -, +, is plus or minus the volume of the parallelepiped with sides A⃗\vec A, B⃗\vec B, C⃗\vec C.
  • The cross product A⃗×B⃗\vec A \times \vec B of two vectors in space is a vector: its length is the area of the parallelogram, its direction perpendicular to it by the right-hand rule; i^×j^=k^\hat i \times \hat j = \hat k.
  • Volume = A⃗⋅(B⃗×C⃗)=det⁡(A⃗,B⃗,C⃗)\vec A \cdot (\vec B \times \vec C) = \det(\vec A, \vec B, \vec C), up to sign.

Symbols on this page

Show the 41 symbols used here
θ\theta theta.
An angle. Say it: “theta” (sounds like “thay-ta or thee-ta”).
π\pi pi.
The ratio of a circle's circumference to its diameter, π ≈ 3.14159. Say it: “pi”.
≈\approx approximately equal.
Is approximately equal to. Say it: “is approximately”.
±\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”.
⋅\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”.
sin⁡\sin sine.
Sine of an angle. Say it: “sine”.
cos⁡\cos cosine.
Cosine of an angle. Say it: “cos”.
v⃗\vec v vector arrow.
A vector: a quantity with a size and a direction. Say it: “vector”.
ı^\hat\imath hat.
A unit vector: a vector of length 1 that only gives a direction (î, r̂). Say it: “hat”.
aa a.
In the cosmology note, the scale factor of the universe. Say it: “a”.
zz z.
The z coordinate. Say it: “z”.
TT T.
For the pendulum, the unit vector tangent to its circular path. Say it: “capital T”.
xx x.
The x coordinate. Say it: “x”.
yy y.
The y coordinate. Say it: “y”.
tt t.
In the cosmology note, time. Unit: s. Say it: “t”.
PP P.
In the worked example, the vector ⟨1, 0, 2⟩. Say it: “P”.
QQ Q.
In the worked example, the vector ⟨0, 3, 1⟩. Say it: “Q”.
AA A.
A vector (its length without the arrow, |A|). Say it: “capital A”.
BB B.
A second vector. Say it: “capital B”.
CC C.
A third vector, one side of the parallelepiped. Say it: “capital C”.
NN N.
For the pendulum, the unit vector normal (perpendicular) to its path, along the string. Say it: “capital N”.
RR R.
In the worked example, the vector ⟨1, 1, 1⟩. Say it: “capital R”.
a1a_{1} a one.
The first (x) component of the vector A. Say it: “a one”.
a2a_{2} a two.
The second (y) component of the vector A. Say it: “a two”.
uu u.
With a hat, û: a unit vector giving a direction. Say it: “u”.
θ′\theta' theta prime.
The angle between A′ and B, π/2 − θ. Say it: “theta prime”.
A′A' A prime.
The vector A rotated by 90° counterclockwise. Say it: “capital A prime”.
a3a_{3} a 3.
The third (z) 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”.
k^\hat{k} k hat.
Unit vector in the z direction: length 1, pointing towards increasing z. Say it: “k hat”.
n^\hat{n} n hat.
A unit vector perpendicular to the base of the parallelepiped. Say it: “n hat”.
c1c_{1} c one.
The first (x) component of the vector C. Say it: “c one”.
c2c_{2} c two.
The second (y) component of the vector C. Say it: “c two”.
b1b_{1} b 1.
The first (x) component of the vector B. Say it: “b one”.
b2b_{2} b 2.
The second (y) component of the vector B. Say it: “b two”.
b3b_{3} b 3.
The third (z) component of the vector B. Say it: “b three”.
c3c_{3} c 3.
The third (z) component of the vector C. Say it: “c 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 24 words used here

New here

determinant.
A single number worked out from a square array of numbers (a matrix), which measures how the matrix stretches areas or volumes.
parallelepiped.
A slanted box: a solid with six faces, each a parallelogram, with opposite faces equal and parallel.
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.

Also used

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.
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.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
unit vector.
A vector of length one, used only to point in a direction. Explained in Newton's law of gravitation.
projection.
The shadow of a vector on a line or plane: the nearest point to it there, found by dropping a perpendicular. Explained in Projections onto 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.
weight.
The pull of gravity on a body, a force equal to its mass times the gravitational acceleration, measured in newtons.
tension.
The pulling force carried along a stretched rope, string or cable, felt at each point as the pull between its two sides. Explained in What is a force?.
vector.
A quantity with both a size and a direction, such as a velocity or a force, drawn as an arrow. Explained in Vectors.
theorem.
A statement that has been proved true, step by step, from definitions and earlier results. Explained in Limits and continuity.
right-handed.
Of a set of axes: arranged so that curling the right hand from x to y makes the thumb point along z. Explained in Torque and the cross product.
left-handed.
Of a set of axes or a turning: the mirror image of the usual right-handed one, matching the curled fingers of a left hand.
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.
perpendicular.
At right angles to a line, a surface or another direction. Explained in Inclined planes.
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.
torque.
The turning effect of a force about a point or axis: the force times its distance from the axis, measured at right angles. Explained in Torque and balance.
galaxy.
A huge system of stars, gas and dust, from thousands to over a trillion stars, held together by gravity inside a dark matter halo. Explained in Towards the universe: weighing the Sun and the Galaxy with orbits.
scale factor.
The number a(t) that tells how much distances in the universe have stretched: when it doubles, every distance between galaxies doubles. Explained in Towards the universe: an expanding gas cools.
density.
How much of something (mass, charge, energy, particles or probability) there is in each unit of volume, area, length or other variable. Explained in Density and pressure.

Academic

transcript.
A written record of exactly what was said in a recorded lecture, word for word.
likewise.
In the same way; similarly.

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

33 more cosmology pages that build on this

Pages that build on this

Practise

Check your understanding

  1. The determinant ∣2113∣\begin{vmatrix} 2 & 1 \\ 1 & 3 \end{vmatrix} is…
  2. Rotating ⟨a1,a2⟩\langle a_1, a_2\rangle by 90° counterclockwise gives…
  3. j^×i^=\hat j \times \hat i =
  4. The length ∣A⃗×B⃗∣|\vec A \times \vec B| is…
0 of 4 answered

Flashcards

1 / 3