Skip to content
Tutorials Center
My learning

Topics

Lesson 6 of 39 · Vectors and Curves in Space

The Cross Product

Learn the cross product of 3D vectors, its direction by the right-hand rule, areas of parallelograms and triangles, the triple product and torque, with Python.

The dot product turns two vectors into a number. The cross product turns two vectors in space into a new vector that is perpendicular to both. It only exists in three dimensions (in the form we use here), and it is the key tool for normals to planes, areas, volumes and rotation.

Definition

For a = ⟨a₁, a₂, a₃⟩ and b = ⟨b₁, b₂, b₃⟩:

Text
a × b = ⟨a₂b₃ - a₃b₂,  a₃b₁ - a₁b₃,  a₁b₂ - a₂b₁⟩

A memory aid is the determinant

Text
| i   j   k  |
| a₁  a₂  a₃ |
| b₁  b₂  b₃ |

expanded along the first row. The result a × b has three properties:

  1. It is orthogonal to both a and b.
  2. Its length is |a × b| = |a||b| sin θ, where θ is the angle between them.
  3. Its direction follows the right-hand rule: curl the fingers of your right hand from a toward b, and the thumb points along a × b.

Worked example: a = ⟨1, 2, 3⟩, b = ⟨4, 5, 6⟩:

Text
a × b = ⟨2·6 - 3·5, 3·4 - 1·6, 1·5 - 2·4⟩ = ⟨-3, 6, -3⟩

Check perpendicularity: a · (a × b) = -3 + 12 - 9 = 0 and b · (a × b) = -12 + 30 - 18 = 0.

Python Compute and check a cross product

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Algebra rules

  • b × a = -(a × b): order matters (anticommutative).
  • a × a = 0, and a × b = 0 exactly when the vectors are parallel (or one is zero).
  • a × (b + c) = a × b + a × c, and (ta) × b = t(a × b).
  • It is not associative: (a × b) × c ≠ a × (b × c) in general.
  • i × j = k, j × k = i, k × i = j.

Areas

|a × b| equals the area of the parallelogram spanned by a and b, because |b| sin θ is the height of the parallelogram when a is the base. A triangle with sides a and b has area ½|a × b|.

Worked example: triangle with vertices P(1, 0, 0), Q(0, 2, 0), R(0, 0, 3). Take PQ = ⟨-1, 2, 0⟩ and PR = ⟨-1, 0, 3⟩. Then PQ × PR = ⟨2·3 - 0, 0·(-1) - (-1)·3, (-1)·0 - 2·(-1)⟩ = ⟨6, 3, 2⟩. Its length is √(36 + 9 + 4) = 7, so the area is 7/2 = 3.5 square units.

Python Area of a triangle in space

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The scalar triple product and volume

The scalar triple product is a · (b × c). Its absolute value is the volume of the parallelepiped (a slanted box) with edges a, b, c. It equals the determinant of the matrix with those vectors as rows. If it is 0, the three vectors lie in one plane (they are coplanar).

Worked example: a = ⟨1, 0, 0⟩, b = ⟨1, 2, 0⟩, c = ⟨1, 1, 3⟩. b × c = ⟨6, -3, -1⟩, so a · (b × c) = 6: the volume is 6 cubic units.

Python Volume of a parallelepiped

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The sign of the triple product tells you whether a, b, c form a right-handed (positive) or left-handed (negative) set.

Torque

The torque of a force F applied at position r from the pivot is τ = r × F. Its length is |r||F| sin θ: only the part of the force perpendicular to the lever arm turns the object. With r = ⟨0.3, 0, 0⟩ m and F = ⟨0, 20, 0⟩ N, τ = ⟨0, 0, 6⟩ N·m, pointing along the axis of rotation.

Cross product facts

A vector Perpendicular to both
Right-hand rule Fingers a to b
Length |a||b| sin θ
1 / 2

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. What is ⟨1, 0, 0⟩ × ⟨0, 1, 0⟩?

    i × j = k by the right-hand rule.
  2. 2. If a × b = 0 for nonzero vectors, then a and b are

    |a × b| = |a||b| sin θ is zero only if sin θ = 0, meaning θ = 0 or 180°.
  3. 3. The area of the parallelogram spanned by a = ⟨2, 0, 0⟩ and b = ⟨0, 3, 0⟩ is

    a × b = ⟨0, 0, 6⟩, whose length is 6.
  4. 4. Which statement about the cross product is true?

    Swapping the factors reverses the direction, so the cross product is anticommutative.

Summary

  • a × b is a vector perpendicular to a and b, with length |a||b| sin θ and direction by the right-hand rule.
  • It is anticommutative and zero for parallel vectors.
  • |a × b| is a parallelogram area; |a · (b × c)| is a parallelepiped volume.
  • Torque is r × F.

Next: Lines and Planes in Space