Linear Algebra, Live
Strang §5.3 · Areas, volumes and cross products

Areas, volumes and the cross product from determinants

Slide 7 used determinants to solve equations. Now we go back to where slide 3 started: areas. A farmer walks around a triangular field with a GPS and writes down its three corners. One 2 by 2 determinant turns those corners into the field's area. In 3D, the three edges of a box give its volume with one 3 by 3 determinant. And 2 by 2 determinants also build a new product of two 3D vectors, the cross product u × v: an arrow that stands at a right angle to both u and v, as long as the area of their parallelogram.

Lesson 6 · slide 8Cross product
triangle area = ½ |det [edge₁ edge₂]|    box volume = |det [u v w]|    ‖u × v‖ = parallelogram area
Key ideas
  1. Area of the parallelogram spanned by u and v: |det [u v]|. The triangle is half of it.
  2. Use edge vectors (corner minus corner), not the corners themselves.
  3. Volume of the box with edges u, v, w: |det [u v w]|.
  4. The cross product u × v is perpendicular to both u and v, and its length is the parallelogram's area.

From corners to area

Subtract the first corner from the other two. That gives two edge vectors, the arrows along two sides of the triangle. Put them in the columns of a 2 by 2 matrix: they make a parallelogram with area |det| (slide 3). The triangle is half of it.

Corners 11, 42, 25
Edges: 42 − 11 = 31,   25 − 11 = 14
det 3114 = 12 − 1 = 11,   area = 11/2 = 5.5
The two edges 31 and 14 make a parallelogram of area 11. Cut it along its diagonal and each half is a copy of the field: area 5.5.

Using the corners themselves measures a different triangle, one with a corner at the origin. The lab asks you to fix that mistake.

Volume of a box

Three edge vectors u, v, w make a slanted box. Its volume is |det [u v w]|, with u, v, w as the columns (slide 3).

u = 100, v = 120, w = 013
det 110021003 = 1 · 2 · 3 = 6   (a triangular matrix: multiply the diagonal, slide 5)
Columns u and v lie on the floor and make a parallelogram of area 2. Column w rises 3 units above it, so the box holds 2 · 3 = 6.

Volume 0 means the three edges lie in one plane: the box is flat.

The cross product

For u and v in 3D, the cross product u × v is a new vector at a right angle to both. Write u and v as two rows. Component 1 is the det of columns 2 and 3. Component 2 is minus the det of columns 1 and 3. Component 3 is the det of columns 1 and 2:

u × v = (u₂v₃ − u₃v₂,   u₃v₁ − u₁v₃,   u₁v₂ − u₂v₁)
123 × 014 = 8 − 30 − 41 − 0 = 5−41
Check: 5−41 · 123 = 5 − 8 + 3 = 0 ✓   5−41 · 014 = 0 − 4 + 4 = 0 ✓

A zero dot product means a right angle (lesson 1), so u × v really stands at a right angle to both. Its length is the area of the parallelogram of u and v (take this on trust; the example below checks one case):

u = 200, v = 110:   u × v = 0·0 − 0·10·1 − 2·02·1 − 0·1 = 002
The parallelogram has base 2 and height 1, area 2, and u × v has length 2 ✓
u = 200 and v = 110 both lie on the floor. u × v = 002 points straight up, at a right angle to both, and its length 2 is the area of their parallelogram.

Its direction follows the right-hand rule: curl the fingers of your right hand from u to v, and your thumb points along u × v. Swapping flips it: v × u = −(u × v).

Keep reading with the full course

Finish lesson 6 and you will be able to: see a matrix as a move of the plane, and build one from where two arrows land.

Still locked here:

  • The rest of this explanation
  • 4 more examples with step-by-step solutions
  • Five extra members-only problems with worked solutions

$20 once, lifetime access. Lessons 1 to 3 stay free.

Examples

Example 1 · Torque on a joint

A force F = 130 N acts at r = 200 m from a joint.

Show solutionHide solution
τ = r × F = (0·0 − 0·3,   0·1 − 2·0,   2·3 − 0·1) = 006 N·m
The twist is about the z-axis, of size 6 N·m

Only the sideways part of the force (3 N, at a 2 m lever) twists the joint: 2 × 3 = 6.

Exercise Put the two edge vectors of the triangle (not its corners) into the columns of M. Edit the code and press Run.
slide_8.py Loading Python…
1
Output · Ctrl+Enter runs
Press Run to execute this slide's code. Ctrl+Enter works too.

Questions and comments

Stuck on something, or found a mistake? Ask here and I'll answer. You sign in with GitHub.

The full course

From Ax = b to PCA, by running it

Lessons 1 to 3 are free. Finish all eight and you will be able to:

You get: all 8 lessons with Python labs · every worked example and solution · 5 extra problems per lesson · your progress tracked · answers to your questions · every future update.

$20 once · lifetime access
Continue to checkout →

Already a member? Log in to the course