Linear Algebra, Interactive EditionXYZ Homework Edition

⇩ Download ▾

0.8 The Cross Product

The dot product works in every n\mathbb{R}^n and returns a number. The cross product is its opposite in both respects: it is defined only in 3\mathbb{R}^3, and it returns a vector. For 𝐮=(u1,u2,u3)\mathbf{u} = (u_1, u_2, u_3) and 𝐯=(v1,v2,v3)\mathbf{v} = (v_1, v_2, v_3),

𝐮 × 𝐯 = ( u 2 v 3 u 3 v 2 , u 3 v 1 u 1 v 3 , u 1 v 2 u 2 v 1 ) \mathbf{u} \times \mathbf{v} = (u_2 v_3 - u_3 v_2, \; u_3 v_1 - u_1 v_3, \; u_1 v_2 - u_2 v_1)

Each component is a 2×22 \times 2 determinant — the number adbcad - bc that Chapter 4 studies at length — built from the other two components of 𝐮\mathbf{u} and 𝐯\mathbf{v}: the first component uses the second and third, the second uses the third and first, the third uses the first and second. The middle sign is the one people get wrong; written as u3v1u1v3u_3 v_1 - u_1 v_3 it follows the same cyclic pattern as the others.

Rather than memorize the formula, watch what it produces. The figure fixes 𝐮=(2,1,0)\mathbf{u} = (2, 1, 0) in the floor, puts 𝐯=(1,2,c)\mathbf{v} = (1, 2, c) on a slider that lifts its tip out of the floor, and draws 𝐮×𝐯\mathbf{u} \times \mathbf{v} together with the parallelogram the two vectors span.

A translucent parallelogram with one corner at the origin, spanned by a thick shaded arrow u ending at (2, 1, 0) and a second thick arrow v ending at (1, 2, c), where c is set by a slider that starts at 0. A third, thicker arrow rises from the origin to (c, -2c, 3): the cross product u times v. At c = 0 the parallelogram lies flat on the floor and that arrow stands straight up, 3 units tall, and 3 is also the area of the parallelogram. Dragging c to 2 lifts the arrow v, tilting the parallelogram out of the floor; the cross-product arrow leans away to (2, -4, 3), staying perpendicular to both u and v, and grows to length the square root of 29, which is the new area. Dragging c to -2 leans it the other way, to (-2, 4, 3), with the same length. A hidden fourth arrow can be revealed: v times u, pointing to (-c, 2c, -3), below the floor and exactly opposite to the cross-product arrow at every slider value.Explore in 3D (opens in a new tab)
The two arrows spanning the translucent parallelogram are 𝐮=(2,1,0)\mathbf{u} = (2, 1, 0) and 𝐯=(1,2,c)\mathbf{v} = (1, 2, c); the third and thickest is the cross product 𝐮×𝐯=(c,2c,3)\mathbf{u} \times \mathbf{v} = (c, -2c, 3). A hidden fourth arrow is 𝐯×𝐮\mathbf{v} \times \mathbf{u}.

Explore the figure

  1. At the starting value c=0c = 0 both vectors lie in the floor, and the cross-product arrow stands straight up: (0,0,3)(0, 0, 3). Orbit to confirm it is perpendicular to the floor, and so to both vectors at once.
  2. Its length is 33. Now compute the area of the flat parallelogram: base |𝐮|=5|\mathbf{u}| = \sqrt{5} times the height of 𝐯\mathbf{v} above the line of 𝐮\mathbf{u}, which by Section 0.7 is the perpendicular part of 𝐯\mathbf{v}, of length 3/53/\sqrt{5}. The area is 33 — the same number.
  3. Drag cc to 22. The arrow 𝐯\mathbf{v} lifts off the floor, the parallelogram tilts, and the cross-product arrow leans away to (2,4,3)(2, -4, 3) to stay perpendicular to the tilted sheet. Orbit until you look along it: the parallelogram is seen face-on, which is what "perpendicular to the sheet" looks like. Its length is now 4+16+9=29\sqrt{4 + 16 + 9} = \sqrt{29}, and so is the area.
  4. Reveal the hidden object labeled 𝐯×𝐮\mathbf{v} \times \mathbf{u}. It is the cross-product arrow exactly reversed, (c,2c,3)(-c, 2c, -3), at every slider value: swapping the factors flips the sign.
  5. Drag cc to 2-2. The cross-product arrow leans the other way, to (2,4,3)(-2, 4, 3), but its third component is still 33: that component comes from the floor shadow of the parallelogram, which the slider never changes.

What the formula guarantees

Three properties hold for every pair of vectors, and each is a short computation with the components.

Orthogonality. Dot 𝐮\mathbf{u} with 𝐮×𝐯\mathbf{u} \times \mathbf{v}: u1(u2v3u3v2)+u2(u3v1u1v3)+u3(u1v2u2v1)u_1 (u_2 v_3 - u_3 v_2) + u_2 (u_3 v_1 - u_1 v_3) + u_3 (u_1 v_2 - u_2 v_1). Every product appears twice with opposite signs — u1u2v3u_1 u_2 v_3 from the first term cancels u2u1v3-u_2 u_1 v_3 from the second, and so on — so the sum is 00. The same happens with 𝐯\mathbf{v}. So 𝐮×𝐯\mathbf{u} \times \mathbf{v} is orthogonal to both 𝐮\mathbf{u} and 𝐯\mathbf{v}, which is why it stood perpendicular to the sheet in every position of the slider.

Anticommutativity. Swapping 𝐮\mathbf{u} and 𝐯\mathbf{v} swaps the two products in every component, so 𝐯×𝐮=(𝐮×𝐯)\mathbf{v} \times \mathbf{u} = -(\mathbf{u} \times \mathbf{v}). In particular 𝐮×𝐮=(𝐮×𝐮)\mathbf{u} \times \mathbf{u} = -(\mathbf{u} \times \mathbf{u}), which forces 𝐮×𝐮=0\mathbf{u} \times \mathbf{u} = \mathbf{0}: a vector crossed with itself, or with any multiple of itself, gives nothing, because two parallel vectors span no parallelogram. Which of the two perpendicular directions 𝐮×𝐯\mathbf{u} \times \mathbf{v} takes is fixed by the formula and remembered by the right-hand rule: curl the fingers of your right hand from 𝐮\mathbf{u} toward 𝐯\mathbf{v}, and the thumb points along 𝐮×𝐯\mathbf{u} \times \mathbf{v}. The standard unit vectors are the check: 𝐞1×𝐞2=(00,00,10)=𝐞3\mathbf{e}_1 \times \mathbf{e}_2 = (0 - 0, \; 0 - 0, \; 1 - 0) = \mathbf{e}_3.

Length. Multiply out |𝐮×𝐯|2|\mathbf{u} \times \mathbf{v}|^2 — three squared components, nine terms after expansion — and compare with |𝐮|2|𝐯|2(𝐮·𝐯)2|\mathbf{u}|^2 |\mathbf{v}|^2 - (\mathbf{u} \cdot \mathbf{v})^2, also expanded. They agree term by term, an identity worth verifying once with patience:

| 𝐮 × 𝐯 | 2 = | 𝐮 | 2 | 𝐯 | 2 ( 𝐮 · 𝐯 ) 2 |\mathbf{u} \times \mathbf{v}|^2 = |\mathbf{u}|^2 |\mathbf{v}|^2 - (\mathbf{u} \cdot \mathbf{v})^2

Now substitute the angle formula 𝐮·𝐯=|𝐮||𝐯|cosθ\mathbf{u} \cdot \mathbf{v} = |\mathbf{u}| \, |\mathbf{v}| \cos \theta: the right side becomes |𝐮|2|𝐯|2(1cos2θ)=|𝐮|2|𝐯|2sin2θ|\mathbf{u}|^2 |\mathbf{v}|^2 (1 - \cos^2 \theta) = |\mathbf{u}|^2 |\mathbf{v}|^2 \sin^2 \theta, and since sinθ0\sin \theta \ge 0 for angles between 00 and π\pi,

| 𝐮 × 𝐯 | = | 𝐮 | | 𝐯 | sin θ |\mathbf{u} \times \mathbf{v}| = |\mathbf{u}| \, |\mathbf{v}| \sin \theta

That is base times height: |𝐮||\mathbf{u}| is the base of the parallelogram spanned by the two vectors, and |𝐯|sinθ|\mathbf{v}| \sin \theta is its height. The length of the cross product is the area of the parallelogram — the fact step 2 checked by hand and step 3 checked again after the tilt.

cc
The first component of u x v on the slider ✓ Computed · mojocas 0.1.0 ✓ Agrees with the text The first component of u x v on the slider, computed exactly by mojocas 0.1.0, and confirmed to agree with the result stated in the text.

The 2×22 \times 2 determinant of the second and third components of 𝐮=(2,1,0)\mathbf{u} = (2, 1, 0) and 𝐯=(1,2,c)\mathbf{v} = (1, 2, c), computed by a computer algebra system: 1·c0·2=c1 \cdot c - 0 \cdot 2 = c, the first component of the cross-product arrow.

2·c2 \cdot c
The second component, before its sign ✓ Computed · mojocas 0.1.0 ✓ Agrees with the text The second component, before its sign, computed exactly by mojocas 0.1.0, and confirmed to agree with the result stated in the text.

The determinant of the first and third components, 2·c0·1=2c2 \cdot c - 0 \cdot 1 = 2c. The second component of the cross product is its negative, 2c-2c — the middle sign of the formula.

33
The third component ✓ Computed · mojocas 0.1.0 ✓ Agrees with the text The third component, computed exactly by mojocas 0.1.0, and confirmed to agree with the result stated in the text.

The determinant of the first and second components, 2·21·1=32 \cdot 2 - 1 \cdot 1 = 3: the third component, which the slider never touches, and the height of the cross-product arrow at c=0c = 0.

[c,2·c,3]\left[ c,\; -2 \cdot c,\; 3 \right]
The whole figure, in one card ✓ Computed · mojocas 0.1.0 ✓ Agrees with the text The whole figure, in one card, computed exactly by mojocas 0.1.0, and confirmed to agree with the result stated in the text.

The figure's two vectors with the slider left as the symbol cc, crossed by a computer algebra system: (c,2c,3)(c, -2c, 3). Every position of the slider at once, including the ones you do not drag to — and the third component really is free of cc, which is why the arrow's height never changes.

9+5·c2\sqrt{9 + 5 \cdot c^{2}}
Its length, which is the area ✓ Computed · mojocas 0.1.0 ✓ Agrees with the text Its length, which is the area, computed exactly by mojocas 0.1.0, and confirmed to agree with the result stated in the text.

The length of that cross product, still symbolic: 5c2+9\sqrt{5c^2 + 9}. It gives 33 at c=0c = 0 and 29\sqrt{29} at c=2c = 2 — the two areas the exploration measured — and it says what happens between and beyond them.

00
Perpendicular to u, at every slider value ✓ Computed · mojocas 0.1.0 ✓ Agrees with the text Perpendicular to u, at every slider value, computed exactly by mojocas 0.1.0, and confirmed to agree with the result stated in the text.

The orthogonality argument, checked rather than trusted: 𝐮\mathbf{u} dotted with 𝐮×𝐯\mathbf{u} \times \mathbf{v} is 2c2c+0=02c - 2c + 0 = 0 for every cc.

00
And to v ✓ Computed · mojocas 0.1.0 ✓ Agrees with the text And to v, computed exactly by mojocas 0.1.0, and confirmed to agree with the result stated in the text.

The same for 𝐯\mathbf{v}: c4c+3c=0c - 4c + 3c = 0, again for every cc. Two symbolic zeros are the whole content of "the cross product is perpendicular to both".

[2,7,4]\left[ 2,\; 7,\; 4 \right]
The worked example's cross product ✓ Computed · mojocas 0.1.0 ✓ Agrees with the text The worked example's cross product, computed exactly by mojocas 0.1.0, and confirmed to agree with the result stated in the text.

(1,2,3)×(2,0,1)=(2,7,4)(1, -2, 3) \times (2, 0, -1) = (2, 7, 4), computed rather than assembled by hand from the three 2×22 \times 2 determinants.

69\sqrt{69}
And the area it measures ✓ Computed · mojocas 0.1.0 ✓ Agrees with the text And the area it measures, computed exactly by mojocas 0.1.0, and confirmed to agree with the result stated in the text.

Its length, 69\sqrt{69}: the area of the parallelogram those two vectors span.

[6,3,2]\left[ 6,\; 3,\; 2 \right]
The triangle's normal ✓ Computed · mojocas 0.1.0 ✓ Agrees with the text The triangle's normal, computed exactly by mojocas 0.1.0, and confirmed to agree with the result stated in the text.

The two edges of the triangle example, crossed: (6,3,2)(6, 3, 2). Section 0.10 uses this vector again, as the normal of the plane through the three points.

77
Twice the triangle's area ✓ Computed · mojocas 0.1.0 ✓ Agrees with the text Twice the triangle's area, computed exactly by mojocas 0.1.0, and confirmed to agree with the result stated in the text.

Its length is exactly 77, the area of the parallelogram on the two edges — so the triangle, which is half of it, has area 7/27/2.

An original work of XYZ Homework, built around interactive XYZ 3D figures. Its chapter sequence is aligned to Interactive Linear Algebra (Margalit & Rabinoff, Georgia Tech, GNU FDL); this work is original, copies nothing from it, and is not affiliated with or endorsed by its authors. License: CC-BY-NC-SA-4.0.

These eBooks are a prerelease and are not yet certified conformant with WCAG 2.1 AA or ADA Title II. Every page is built against an automated accessibility gate, and the published editions will meet ADA Title II requirements when they release in late September 2026. If something is unusable, please tell us.