3.6.4 · D23D Geometry

Visual walkthrough — Direction cosines and direction ratios

1,723 words8 min readBack to topic

Step 1 — WHAT is a direction, really?

WHAT. Pin an arrow at the origin and let it point somewhere in the room. Call its tip . The arrow is the direction we want to describe with numbers.

WHY. Before we can talk about angles or cosines, we need one concrete object to measure. An arrow rooted at the origin is the simplest thing that "has a direction." Everything else (angles, cosines, ratios) will be read off this one arrow.

PICTURE. The lavender arrow below is . The three grey walls are the coordinate planes; the three axes are the edges where they meet.

Figure — Direction cosines and direction ratios

Step 2 — Drop the arrow onto each axis (the shadows)

WHAT. Shine a light straight down each axis and read off the shadow length. The shadow of on the -axis is just the number ; on the -axis it is ; on the -axis it is .

WHY. We want to know "how much does the arrow lean toward each axis?" A shadow is exactly that: the part of the arrow lying along that axis. Reading three shadows turns one arrow into three ordinary numbers we can compute with.

PICTURE. Each coloured segment is one shadow — coral on , mint on , butter on . Notice the arrow tip sits directly above the corner of the box whose edges are those three shadows.

Figure — Direction cosines and direction ratios


Step 3 — The box diagonal: Pythagoras in 3D

WHAT. The three shadows are the edges of a rectangular box, and is that box's main diagonal. Its length is

WHY. We need the arrow's true length to compare shadows fairly — a long arrow leaning gently can cast a longer -shadow than a short arrow leaning steeply. Pythagoras, applied twice, converts the three edge-lengths into the one diagonal length. This is the same length the parent note used to normalise.

PICTURE. Below, we first build the floor diagonal (right triangle on the floor), then stand it up against the height to get the space diagonal.

Figure — Direction cosines and direction ratios

Here = the shadow of the arrow on the floor (the -plane); = the vertical rise; and each squared term is the area of a Pythagorean square.


Step 4 — The direction angles

WHAT. Look at the angle the arrow opens up against each axis:

  • = angle between and the positive -axis,
  • = angle between and the positive -axis,
  • = angle between and the positive -axis.

WHY. Shadows depend on how long the arrow is; angles do not. Two arrows pointing the same way but of different lengths share the same . So angles capture pure direction, stripped of length — exactly what we're after.

PICTURE. Three right triangles share the same hypotenuse . In the -triangle, the side adjacent to is the shadow , and the hypotenuse is .

Figure — Direction cosines and direction ratios

Step 5 — Define the direction cosines and free them from length

WHAT. In the -triangle, "adjacent over hypotenuse" gives Call these — the direction cosines.

WHY. Dividing each shadow by the arrow length is the magic move: it cancels the length entirely. Scale the arrow by any factor and both top () and bottom () scale together, so don't change. The direction cosines are the arrow's identity, independent of how long you drew it.

PICTURE. Two arrows, same direction, different length — their triangles are similar, so the ratios match. The shadows differ; the cosines agree.

Figure — Direction cosines and direction ratios

Step 6 — Square, add, and watch it collapse to 1

WHAT. Square each cosine and add the three: All three share the same denominator . Their numerators are . Top equals bottom:

WHY. This is the whole payoff. The Pythagorean length from Step 3 is sitting in every denominator, and its ingredients are sitting in the numerators. Squaring the cosines rebuilds Pythagoras exactly, so the ratio can only be . Nothing arbitrary — it is forced.

PICTURE. Three shaded squares of areas stack to perfectly fill one unit square. Their total area is , no gaps, no overlap.

Figure — Direction cosines and direction ratios

Step 7 — Edge cases: axes, planes, and the forbidden zero arrow

WHAT. Check every extreme so no scenario surprises you.

  • Arrow along the -axis: . Then , . Check: . ✓
  • Arrow in the -plane (flat on the floor, ): so , and — it collapses to the familiar 2D identity .
  • Arrow pointing backward along : , . Direction cosines can be negative — sign tells you which way along the axis. Still . ✓
  • The zero arrow : the denominator , so are undefined. A point of length has no direction — that is exactly why direction ratios must be "not all zero."

WHY. The identity must survive at the boundaries or it isn't a law. It does: on an axis one cosine is and the rest are ; in a plane one drops out; only the degenerate zero arrow is excluded, and for an honest reason (no direction to measure).

PICTURE. Four mini-panels: on-axis (one cosine ), in-plane (), backward (), and the crossed-out zero arrow.

Figure — Direction cosines and direction ratios

The one-picture summary

WHAT. One figure carries the entire chain: arrow → three shadows → three similar right triangles → three cosines → squares that tile the unit square.

PICTURE. Follow the arrow left to right; each stage is the previous one divided by, then squared against, the arrow's length.

Figure — Direction cosines and direction ratios
Recall Feynman: the whole walkthrough in plain words

Point a laser in the room. Its beam casts three shadows — one on each axis — and those shadow lengths are the corners of an invisible box whose diagonal is the beam. Pythagoras (twice) says the beam's length is .

Now I don't care how bright or long the beam is — I only care which way it points. So I divide every shadow by the beam's length. That kills the length and leaves three pure "lean fractions": how much of the beam points toward , toward , toward . Those are the direction cosines .

When I square each fraction and add them, the beam-length I divided by comes back squared in every denominator, and sits on top — top equals bottom, so the answer is exactly . Three squared lean-numbers always tile one perfect unit square. Point the laser straight down an axis and one number is and the others ; lay it flat and one drops to ; point it backward and a number turns negative — but squared it's still . The only beam with no direction cosines is the one with no length at all.

Recall Quick self-test

Why is the denominator the same in ? ::: All three cosines divide by the same arrow length . What makes the numerators sum to the denominator? ::: The numerators are , and by Pythagoras their sum is = the shared denominator. Why can a direction cosine be negative but the identity still hold? ::: Sign shows forward/backward along an axis; squaring erases the sign so contributes the same. Which single arrow has undefined direction cosines? ::: The zero arrow — length , so we'd divide by zero; it has no direction.


Connections