Ⅴ Vectors, Space & Complex Numbers · Stage 29 — Spatial Vectors & Solid Geometry · 29.4 Angles with VectorsAll lessons →
Stage 29 · Spatial Vectors & Solid Geometry

Angles with Vectors

Every spatial angle becomes one cosine you can compute from coordinates.

Ages 14–18 · Reasoning, one step at a time
The lesson on one picture: a line with its direction d meets a plane with its normal n. The angle the line makes with the plane is read straight off d and n — and so is the angle between two lines, and the angle between two planes. Every spatial angle is one cosine away from the coordinates.

Angles in space have a reputation. Find the angle between two pipes that pass without touching; the angle a ramp makes with the floor; the angle along the spine of an open book. The picture is hard to draw and harder to measure — but every one of these collapses to a single number once you reach for vectors. Hand a line its direction vector d and a plane its normal vector n, and the dot product a·b = |a||b|cos θ from Stage 27 turns each angle into a cosine you compute from coordinates. The three formulas below are really one idea wearing three coats — and the only thing that ever trips a careful student is a sign or an absolute value.

We lean on three tools you already own: the direction vector of a line and the normal vector of a plane from 29.3; the coordinate dot product a·b = x₁x₂ + y₁y₂ + z₁z₂ and length |a| = √(x²+y²+z²) from 29.2; and the rule cos θ = (a·b)/(|a||b|) that reads an angle off two vectors. Set axes at a square corner, write coordinates, and every spatial angle becomes arithmetic.

29.4.1 The angle between two skew lines

Two lines in space need not meet. Skew lines run past each other — different directions, no crossing point, like a highway over a side street. There is no vertex to stand at, so the “angle between them” is defined by sliding one line over until it meets the other and measuring there. With vectors you skip the sliding entirely: the angle between two lines is just the angle between their direction vectors d₁ and d₂.

One subtlety. A direction vector can point either way along its line — d or −d name the same line — so the raw dot product might hand you an obtuse number. The angle between two lines is taken to be the acute one (0° < θ ≤ 90°), so we clamp it with an absolute value:

cos θ = |d₁·d₂||d₁| |d₂|
The angle between two lines, from their direction vectors. The bars |·| on top force the acute angle: flip either d and the answer cannot change.

Worked example, in a cube of edge 2 (set up with cubeNamed so the numbers are real). Take the space diagonal AC₁= C₁ − A = (2, 2, 2) and the face diagonal AB₁= B₁ − A = (2, 0, 2). Then d₁·d₂ = 2·2 + 2·0 + 2·2 = 8, |d₁| = √12 ≈ 3.46, |d₂| = √8 ≈ 2.83, so

cos θ = |8| / (√12 · √8) = 8 / √96 ≈ 0.82,   θ = arccos(0.82) ≈ 35.26°.

The two diagonals AC₁→ and AB₁→ drawn from the corner A of a real cube. The arc is the angle between their directions — computed from the dot product, then drawn, never measured off the page.
Key idea

The angle between two lines is the angle between their direction vectors, taken acute: cos θ = |d₁·d₂| / (|d₁||d₂|). It needs no crossing point, so it works for skew lines exactly as it does for intersecting ones.

Watch (red)

Drop the absolute value and you may report an obtuse “angle.” Reversing a direction vector to −d flips the sign of d₁·d₂ but cannot change the lines — the |·| is what keeps the answer honest and acute.

29.4.2 The angle between a line and a plane

Now tilt a line into a plane — a ramp meeting the floor. The line–plane angle θ is the angle between the line and its shadow on the plane, the smallest angle the line makes with any line in the plane. The plane carries a normal n sticking straight up. Here is the trick: the angle between the line's direction d and the normal n is the complement of θ — when the line lies flat in the plane it is 90° from the normal, and when the line stands straight up it is 0° from the normal.

The line–plane angle θ (between the line and its shadow) and the angle 90° − θ the line makes with the normal n. They are complements, which is why a cosine of one is a sine of the other.

Because cos(90° − θ) = sin θ, the cosine formula for the angle with n becomes a sine formula for the angle with the plane:

sin θ = |d·n||d| |n|
The line–plane angle. Again the bars force the acute answer, and the function is sin, not cos — a swap worth circling.

Two readings check the formula. If d·n = 0, the line is perpendicular to the normal, hence parallel to the plane: sin θ = 0, θ = 0°. If dn, the line is perpendicular to the plane: sin θ = 1, θ = 90°. Worked example: the space diagonal AC₁= (2, 2, 2) against the base, whose normal is n = (0, 0, 1). Then d·n = 2, |d| = √12, |n| = 1, so sin θ = 2/√12 ≈ 0.58 and θ ≈ 35.26° — the tilt of a cube's diagonal off its floor.

Try it Tilt a line over a flat plane — watch sin θ = |d·n|/(|d||n|)
The plane is the floor, with normal n = (0, 0, 1). Dial the line's direction d = (run, 0, rise). Flat means θ = 0° (parallel); straight up means θ = 90° (perpendicular).
run dx 2
rise dz 1
Watch (red)

The line–plane angle uses sin, not cos — because the easy quantity, d·n, measures the angle to the normal, and the line–plane angle is its complement. Reach for cos here and you will report the angle to the flagpole, not to the floor.

29.4.3 The dihedral angle, described by normals

A dihedral angle is the opening between two half-planes that share an edge — the spine of an open book, the ridge of a roof, the crease where two walls meet. To measure it the old way you stand on the edge and draw a ray in each face perpendicular to the edge; the angle between those rays is the dihedral. That works, but finding two perpendicular rays in space is fiddly.

Vectors offer a shortcut. Each face has a normal vectorn₁ for the first face, n₂ for the second. The angle between n₁ and n₂ is locked to the dihedral angle: it equals the dihedral angle or its supplement, depending on which way each normal points. So compute

cos θ = ± n₁·n₂|n₁| |n₂|
The dihedral angle from the two faces' normals. Note: no absolute value here — the sign, and the choice between θ and 180° − θ, comes from reading the figure.

Why the ±? A normal can point “out” of a face or “in.” If both normals point outward (or both inward), the angle between them is the supplement of the dihedral; if one points out and the other in, it is the dihedral itself. The arithmetic gives you a number; the picture tells you whether to keep it or subtract from 180°. That is the whole art of this section: compute the normals' angle, then look at the figure and decide θ or 180° − θ.

29.4.4 Finding a dihedral angle with normals

Let's make the supplement subtlety concrete with an open book hinged at the x-axis. Worked example along the spine: a cube of edge 2, the dihedral along edge AB between the base ABCD and the slanted plane ABC₁D₁ that lifts the far edge up to the top. The base normal is n₁ = (0, 0, 1). For the slant, span it with AB= (2, 0, 0) and AD₁= (0, 2, 2) and cross them: n₂ = AB→ × AD₁→ = (0, −4, 4). Then

cos(angle of normals) = (0·0 + 0·(−4) + 1·4) / (1 · √32) = 4/√32 ≈ 0.71, so the normals are 45° apart.

Read the figure: the slant rises gently off the base, so the dihedral is acute — here it is the 45° the normals report. But change which way a normal points and the same arithmetic would read 135°; only the picture distinguishes them. The widget below makes this unmistakable.

Try it Open the book — see the dihedral and the normals' angle move apart
Two half-planes hinge at the x-axis; raise the right one with its rise. The readout shows the true dihedral (the opening you see) and the angle between the two upward normals — watch them stay supplementary.
roof rise 2
Example

At rise 2 the open book reads a dihedral of 135°, while the two normals (both aimed upward) sit only 45° apart — exactly 180° − 135°. The dot product alone would have whispered “45°.” The figure is what tells you the book is open wide, not nearly shut.

Watch (red)

The dihedral angle is the normals' angle or its supplement — never blindly report arccos of n₁·n₂. There is no absolute value in the dihedral formula precisely because the sign and the supplement carry real information. Always glance at the picture: is the opening acute or obtuse?

29.4.5 One routine for every angle

Three formulas, one habit. Whatever the angle, you set coordinates and reach for the matching cosine:

The angle is between…Use the vectors…FormulaNote
two lines (incl. skew)directions d₁, d₂cos θ = |d₁·d₂| / (|d₁||d₂|)acute — keep |·|
a line and a planedirection d, normal nsin θ = |d·n| / (|d||n|)sin, not cos
two planes (dihedral)normals n₁, n₂cos θ = ± n₁·n₂ / (|n₁||n₂|)θ or 180° − θ: read the figure

Full worked routine, the angle between the base diagonal and the space diagonal in our cube. (i) Set axes at corner A. (ii) Write coordinates: the base diagonal direction is AC= (2, 2, 0); the space diagonal is A₁C= C − A₁ = (2, 2, −2) (it runs from the top corner A₁ to the opposite bottom corner C, so |A₁C→| = √12 = 2√3). (iii) These are line directions, so use the skew-line formula. (iv) d₁·d₂ = 2·2 + 2·2 + 0·(−2) = 8, |d₁| = √8, |d₂| = √12. (v) cos θ = 8/(√8·√12) = 8/√96 ≈ 0.82, so θ ≈ 35.26°. The same five steps — axes, coordinates, vectors, formula, answer — solve any angle in any solid.

Key idea

You never guess a spatial angle again. Find the right d's and n's, pick the row of the table that matches, and plug in. The hard geometry has become a dot product and a square root.

What to carry forward

Three angles, three formulas, one mindset: turn the geometry into vectors, then read the angle off a dot product.

AngleFormulaFunctionCaution
line & line (skew or not)cos θ = |d₁·d₂| / (|d₁||d₂|)coskeep |·| → acute
line & planesin θ = |d·n| / (|d||n|)sinit's the complement of the angle to n
plane & plane (dihedral)cos θ = ± n₁·n₂ / (|n₁||n₂|)cosθ or 180° − θ — read the figure

Special readings worth memorizing: for a line and plane, d·n = 0 ⇒ θ = 0° (line ∥ plane) and d ∥ n ⇒ θ = 90° (line ⊥ plane). The skew and line–plane formulas always take the absolute value; the dihedral formula never does — that is the cleanest way to remember which is which. Next, in 29.5, the same normal vector that gave us angles will give us distances: a point's distance to a plane is the length of its shadow on n.

Exercises

  1. Two lines have direction vectors d₁ = (1, 2, 2) and d₂ = (2, 2, 1). Find the angle between the lines.
    Answer
    d₁·d₂ = 1·2 + 2·2 + 2·1 = 8; |d₁| = √9 = 3, |d₂| = √9 = 3. So cos θ = |8|/(3·3) = 8/9 ≈ 0.889, and θ ≈ 27.27°. (The dot product was already positive, so the |·| changed nothing here.)
  2. A line has direction d = (1, 1, 1); a plane has normal n = (0, 0, 1). Find the angle the line makes with the plane.
    Answer
    Line–plane uses sin: d·n = 1, |d| = √3, |n| = 1. So sin θ = |1|/(√3·1) = 1/√3 ≈ 0.577, giving θ ≈ 35.26°. (Use sin, not cos — the easy quantity d·n measures the angle to the normal.)
  3. Two planes have normals n₁ = (1, 0, 0) and n₂ = (1, 0, 1). The figure shows the planes opening to a wide, obtuse crease. Find the dihedral angle.
    Answer
    n₁·n₂ = 1, |n₁| = 1, |n₂| = √2, so cos(normals' angle) = 1/√2 ⇒ the normals are 45° apart. The crease is obtuse, so the dihedral is the supplement: 180° − 45° = 135°. (Read the figure to choose between 45° and 135°.)
  4. In a cube of edge 2 with corner A at the origin, find the angle between the space diagonal AC₁= (2, 2, 2) and the edge AB= (2, 0, 0).
    Answer
    AC₁→·AB→ = 2·2 + 2·0 + 2·0 = 4; |AC₁→| = √12, |AB→| = 2. cos θ = |4|/(√12·2) = 4/(2√12) = 2/√12 ≈ 0.577, so θ ≈ 54.74° — the famous angle a cube's long diagonal makes with an edge.
  5. Why does the line–plane formula use sin while the skew-line formula uses cos? Explain in one or two sentences, using the word complement.
    Answer
    The dot product d·n directly measures the angle between the line and the plane's normal. The line–plane angle θ is the complement of that angle (90° − it), and since cos(90° − θ) = sin θ, the cosine formula in terms of n becomes a sine formula for the line–plane angle.
  6. A student computes n₁·n₂ < 0 for two faces and announces “the dihedral angle is obtuse, no need to look at the picture.” Is this reasoning safe? What is the trustworthy procedure?
    Answer
    No — it is not safe. A normal can be drawn either way, so the sign of n₁·n₂ depends on a choice the geometry never made. The trustworthy procedure: compute the acute angle the normals make (using |n₁·n₂|), then read the figure to decide whether the dihedral is that angle or its supplement, 180° − it.

🎯 Quick check

Six questions to lock it in. Tap the answer you think is right.

§ For teachers and parents

This lesson lives in the high-school Vector & Matrix Quantities standards (HSN-VM): it adds spatial vectors, scales them, and uses the dot product to read angles — here, three spatial angles (line–line, line–plane, dihedral). It also serves the geometric-modeling strand (HSG-GMD and HSG-MG) by turning questions about real solids — ramps, roofs, crystal faces — into coordinate computations. The recurring lesson is conceptual, not computational: the dot product is one tool, but each angle needs the right framing (absolute value for acute line angles; sine for the line–plane angle; and a figure-reading judgment of θ versus 180° − θ for the dihedral). Encourage students to always sketch and ask “acute or obtuse?” before trusting the arithmetic.

eastmath.com · Stage 29 · 29.4 Angles with Vectors · Reasoning, one step at a time