Joe Lertola · Mathematical Handbook Big idea 2 of 12

Two ways to multiply arrows

From the handbook: Solid Analytic Geometry, vector algebra, §78–121, pages 120–161

The dot product measures how much two arrows agree; the cross product makes a new arrow standing up from them.

Vygodsky's Mathematical Handbook
The floor, from above. Drag the tips of a and b.
The same floor in space. Drag to turn it. The orange arrow is a × b, drawn at ⅓ height.
Arrow a
Arrow b
Angle between them

Dot product a · b

By coordinates
By lengths and angle

Cross product a × b

Length = area
Points

As shading

An arrow is a few numbers

A vector is an arrow: it has a length and a direction, but no fixed place. Slide it anywhere without turning it and it is the same vector. On a grid, a flat arrow is described by two numbers: how far it goes across (x) and how far it goes up (y). The book writes this with curly brackets. The blue arrow at the start is

a = {4, 1}

Read it as “a is the arrow four across and one up”. The pink one is b = {1, 3}. An arrow in space needs a third number for height, {x, y, z}, but everything below works the same way.

The length of an arrow is written with bars, |a|, and comes from Pythagoras: |a| = √(4² + 1²) = √17 ≈ 4.12, and |b| = √(1² + 3²) = √10 ≈ 3.16.

The dot product: how much two arrows agree

Shine a light straight down onto arrow a's line and look at the shadow b casts on it (the white segment in the left picture). The dot product is the length of a times the length of that shadow. The answer is a plain number, not an arrow. The book defines it as

a · b = |a| |b| cos θ

Read it as “a dot b equals the length of a times the length of b times the cosine of the angle between them”. θ (theta) is that angle. The cosine is the part that measures agreement: it is 1 when the arrows point the same way, 0 when they are at right angles, and −1 when they point opposite ways.

The surprise is that you don't need the angle at all. Multiply the matching numbers and add (§107):

a · b = ax bx + ay by

Read it as “across times across, plus up times up”. For our arrows: 4 × 1 + 1 × 3 = 7. Now we can find the angle: cos θ = 7 ÷ (4.12 × 3.16) ≈ 0.54, so θ ≈ 57.5°. Both routes give the same 7, which is what the two dot-product rows in the panel show.

The book's example (§104): arrows of length 2 and 1 at 120° give 2 × 1 × cos 120° = −1. A negative dot product means the arrows point more apart than together. Its physical example (§104a) is work: a force of 5 pulling at 45° to a path of 4 does 5 × 4 × cos 45° ≈ 14.1 units of work, because only the part of the force along the path counts.

The cross product: a new arrow standing up

The two arrows also span a parallelogram (the orange-tinted shape). The cross product a × b is a new arrow that stands straight up from the floor, at right angles to both, with a length equal to that parallelogram's area:

|a × b| = |a| |b| sin θ

Read it as “the length of a cross b equals the length of a times the length of b times the sine of the angle”. The sine is 0 when the arrows lie along each other (no area) and 1 at a right angle (the most area). By coordinates, for arrows on the floor (§114), the height is

ax by − ay bx

Read it as “across of a times up of b, minus up of a times across of b”. For our arrows: 4 × 3 − 1 × 1 = 11. The parallelogram has area 11, and the cross product is an arrow 11 long pointing up.

Up, or down? The book uses the right-hand rule (§110–111): curl the fingers of your right hand from a toward b the short way round, and your thumb points along a × b. Swap the order and it flips: b × a points down. In the numbers, that is the sign of 11 turning to −11. The book's example (§111): arrows of 80 cm and 50 cm at 30° give an area of 80 × 50 × sin 30° = 2000 cm².

Where an artist meets both every day

Every shaded polygon in LightWave, Blender or a TopoToImage hillshade uses both products. The cross product of two edges of a polygon gives its normal, the arrow standing straight out of the surface. The dot product of that normal with the direction to the light, both scaled to length 1, gives cos θ, and that number is how bright the surface is: 1 facing the light, 0 edge-on, and below 0 facing away (in shadow). The “As shading” swatch in the panel shows this brightness, treating a as the normal and b as the light.

Try this

  1. Swing b slowly around a. The dot product passes through zero at exactly a right angle, and the white shadow shrinks to a point there. Keep going and it turns negative.
  2. Watch the orange arrow in the right-hand picture as b crosses over a. It shrinks to nothing, then grows again pointing down. That is the right-hand rule changing its mind.
  3. Choose Same direction. The parallelogram is flat, so the cross product is zero, while the dot product is as big as it can be: just the two lengths multiplied.
  4. Choose Book §104 and check the book's answer of −1 in both dot-product rows.
  5. Make b longer without turning it. Both products grow in proportion, but the angle and the shading swatch don't change. Shading only cares about direction, which is why normals are scaled to length 1 first.

In the book

Vygodsky, Mathematical Handbook: Higher Mathematics, chapter “Solid Analytic Geometry”, vector algebra.

  • §78–89 What a vector is; adding, subtracting and scaling arrows. p. 120–128
  • §91–100 Projections, coordinates of a vector, and its length. p. 129–139
  • §104–104a The scalar (dot) product, with the 120° example and work done by a force (Figs. 150–151). p. 141–142
  • §107–109 The dot product by coordinates, perpendicular arrows, and the angle between two arrows. p. 145–147
  • §110–114 Right- and left-handed systems; the vector (cross) product, its properties and its coordinate formula (Fig. 155). p. 147–154
  • §116–121 The triple product: the volume of a box made from three arrows. p. 154–161