Home/Laboratories/Dot & Cross Product Lab
Interactive experiment — complete Chapter 2 · Force and Motion

Dot & Cross Product Lab

Set two vectors by magnitude and angle, and see A·B and |A×B| with their geometric meaning drawn: a projection length for the dot product, a shaded parallelogram for the cross product, and the right-hand-rule direction badge.

Learn the physics first

There are two ways to multiply vectors, and they answer different questions. The dot (scalar) product A·B = AB cos θ measures alignment: it is largest when the vectors point the same way, zero when they are perpendicular, and negative when they oppose. In this lab A is a force (N) and B a displacement (m), so A·B is the work in joules — only the force component along the motion counts.

The cross (vector) product A×B = AB sin θ measures turning and area: its magnitude is the area of the parallelogram the two vectors span (drawn shaded), and its direction is perpendicular to both, fixed by the right-hand rule — fingers along A, curl toward B, thumb gives A×B. With A a force and B a position vector, A×B is the torque; the same construction returns in magnetism as the force on a moving charge.

Dot productA·B = AxBx + AyBy = |A||B| cos θ  (J, for force × displacement)
Cross product magnitude|A×B| = |A||B| sin θ  (area of the parallelogram, N·m)
Cross product directionright-hand rule; here (A×B)z = AxBy − AyBx
Perpendicularity testA·B = 0 ⇔ A ⊥ B  (and then |A×B| = |A||B| is maximal)

Model assumptions. A is a force in newtons and B a displacement in metres, both in a flat 2D plane; the cross product therefore points purely along ±z (out of or into the screen), shown by the circle badge. Angles in degrees from +x. Grid: 1 square = 1 N for A, 1 m for B.

Experiment

Ready
Drag the white arrowheads

The two multiplications

—

—

A×B points out of the screen (+z)

Controls

Run draws the projection, then grows the parallelogram, then reveals the direction badge.

Live measurements

Dot product A·B
—
|A×B|
—
Angle between
—
A on B (projection)
—
B on A (projection)
—

A·B is the work done by force A over displacement B; |A×B| is the parallelogram area (torque magnitude).

Try this. Rotate B toward 90°: the dot product slides to exactly 0 J (perpendicular force does no work) while the shaded area reaches its maximum |A||B|. Then drag B past A (B’s angle smaller than A’s) and watch the direction badge flip — A×B = −B×A. Finally set the angle to 0°: the area collapses to zero because parallel vectors span no parallelogram.

Understand

Predict before you run

With the defaults A = 5 N at 0° and B = 4 m at 60° (or your current settings), predict the work A·B = |A||B| cos θ.

J

Experiment completion

Verify (2,3)·(4,1) = 11 by hand and with the lab, find the angle where the dot product vanishes, then pass the quiz.

Where to go next