MathematicsGrade 10–12

Dot product and cross product

The dot product tells you the angle between two vectors; the cross product gives a perpendicular vector and an area.

Loading simulation …

What is it about?

The dot product a⃗⋅b⃗=a1b1+a2b2+a3b3\vec a \cdot \vec b = a_1b_1 + a_2b_2 + a_3b_3 is a number. Since a⃗⋅b⃗=∣a⃗∣ ∣b⃗∣cos⁡φ\vec a \cdot \vec b = |\vec a|\,|\vec b| \cos\varphi, it gives the angle: (1,0,0)T⋅(1,1,0)T=1(1, 0, 0)^T \cdot (1, 1, 0)^T = 1, cos⁡φ=12\cos\varphi = \frac{1}{\sqrt2}, φ=45°\varphi = 45°. a⃗⋅b⃗=0\vec a \cdot \vec b = 0 means perpendicular; a⃗⋅b⃗∣a⃗∣\frac{\vec a \cdot \vec b}{|\vec a|} is the signed length of the projection of b⃗\vec b onto a⃗\vec a.

The cross product a⃗×b⃗=(a2b3−a3b2, a3b1−a1b3, a1b2−a2b1)T\vec a \times \vec b = (a_2b_3 - a_3b_2,\ a_3b_1 - a_1b_3,\ a_1b_2 - a_2b_1)^T is perpendicular to a⃗\vec a and b⃗\vec b (right-hand rule), e.g. (1,0,0)T×(0,1,0)T=(0,0,1)T(1, 0, 0)^T \times (0, 1, 0)^T = (0, 0, 1)^T. Its length ∣a⃗∣ ∣b⃗∣sin⁡φ|\vec a|\,|\vec b| \sin\varphi is the area of the parallelogram. For parallel vectors it is o⃗\vec o.

The triple product (a⃗×b⃗)⋅c⃗(\vec a \times \vec b) \cdot \vec c gives the volume (base times height); shearing keeps it (Cavalieri). A negative sign means a left-handed system.

Try it

  1. Turn φ\varphi from 0°0° to 180°180° and compare both curves. Rotate
  2. Watch the cross product step by step. Cross product
  3. Shear the parallelepiped upright. Cavalieri
  4. Find three perpendicular vectors. Discover

Tasks

Task 1: Angle

Find the angle between (1,2,0)T(1, 2, 0)^T and (−2,−1,2)T(-2, -1, 2)^T. Load task

Show solution

a⃗⋅b⃗=−4\vec a \cdot \vec b = -4, cos⁡φ=−435≈−0.596\cos\varphi = \frac{-4}{3\sqrt5} \approx -0.596, φ≈126.6°\varphi \approx 126.6°. Show in simulation

Task 2: Area

Compute (1,2,3)T×(4,5,6)T(1, 2, 3)^T \times (4, 5, 6)^T and the area of the parallelogram. Load task

Show solution

(12−15, 12−6, 5−8)T=(−3,6,−3)T(12 - 15,\ 12 - 6,\ 5 - 8)^T = (-3, 6, -3)^T, area 54≈7.35\sqrt{54} \approx 7.35. Show in simulation

Task 3: All solutions

Which c⃗\vec c give volume 1212 with a⃗=(2,0,0)T\vec a = (2, 0, 0)^T, b⃗=(0,3,0)T\vec b = (0, 3, 0)^T? Load task

Show solution

a⃗×b⃗=(0,0,6)T\vec a \times \vec b = (0, 0, 6)^T, so ∣6c3∣=12|6c_3| = 12: c3=±2c_3 = \pm 2, c1c_1, c2c_2 arbitrary – two planes. Show in simulation

Ideas for the classroom

  • Searching for perpendicular vectors in “Discover” first leads naturally to the normal form of a plane.
  • Common stumbling blocks: writing the dot product as a vector; sign errors in the middle component (check with (a⃗×b⃗)⋅a⃗=0(\vec a \times \vec b) \cdot \vec a = 0); forgetting 12\frac12 or 16\frac16.