Precalculus enrichment

Three-Dimensional Vectors

Add an up-or-down component to a vector in the plane. Then use all three components to find a displacement, measure its length, and compare directions in space.

A wooden cube frame and three colored arrow manipulatives beside an open grid notebook

AP Precalculus scope Topic 4.8 covers planar vectors in optional Unit 4. This lesson extends those ideas to space. The AP exam assesses Units 1–3.

Read the three components

A vector describes a change. In v→=⟨a,b,c⟩, its signed components give the changes along the x-, y-, and z-axes in that order. A point (a,b,c) marks a location. A vector ⟨a,b,c⟩ describes a move that can start at any point.

The standard unit vectors are i=⟨1,0,0⟩, j=⟨0,1,0⟩, and k=⟨0,0,1⟩. Each has length one and points along its positive axis.

v→=⟨a,b,c⟩=ai+bj+ck

When the tail is at the origin, the head is at (a,b,c). The third component gives the vertical change when z is the vertical axis. Setting that component to zero gives a vector parallel to the xy-plane.

Find the vector from a tail to a head

For a tail P(x1,y1,z1) and head Q(x2,y2,z2), subtract the starting coordinate from the ending coordinate on each axis.

PQ→=⟨x2−x1, y2−y1, z2−z1⟩

Move from P(1,−2,3) to Q(4,5,−1)

PQ→=⟨4−1, 5−(−2), −1−3⟩=⟨3,7,−4⟩

The three changes are +3 in x, +7 in y, and −4 in z. The reverse vector is QP→=⟨−3,−7,4⟩.

A spatial arrow points from P at (1, negative 2, 3) to Q at (4, 5, negative 1). Dashed guides show a change of 3 in x, 7 in y, and negative 4 in z.
The blue arrow shows the displacement. The dashed path breaks that move into three coordinate changes. The drawing uses a fixed orthographic view, so read the mathematical lengths from the coordinates.

Find magnitude and distance

First find the length a2+b2 of the shadow of the vector on the xy-plane. Use that length and the vertical change to form a second right triangle. Applying the Pythagorean theorem again gives the full length.

‖v→‖=a2+b2+c2

Find the magnitude of ⟨2,−3,6⟩

‖v→‖=22+(−3)2+62=4+9+36=7
Right triangle in three-dimensional space. The horizontal leg goes from the origin to (2, negative 3, 0). The vertical leg goes up to (2, negative 3, 6). The arrow from the origin to that point has length 7.
The horizontal leg has length 13 and the vertical leg has length 6. Their right triangle gives the full length 7.

Use the same rule for distance between two points

Find the displacement first, then take its magnitude. Distance is a nonnegative scalar. The two directions between the endpoints give the same distance.

d(P,Q)=(x2−x1)2+(y2−y1)2+(z2−z1)2

Find the distance from A(1,2,3) to B(4,6,3)

The displacement is ⟨3,4,0⟩. Both points are at height 3, so this is the familiar right triangle in a horizontal plane.

d(A,B)=(4−1)2+(6−2)2+(3−3)2=9+16+0=5

Add and subtract spatial vectors

Work one coordinate at a time. To see a sum, slide the second arrow so its tail meets the head of the first. The resultant arrow runs from the original tail to the final head. To form u→−v→, reverse v→ and add.

⟨a,b,c⟩+⟨d,e,f⟩=⟨a+d,b+e,c+f⟩⟨a,b,c⟩−⟨d,e,f⟩=⟨a−d,b−e,c−f⟩

Add ⟨2,−1,4⟩ and ⟨3,5,−2⟩

u→+v→=⟨2+3,−1+5,4+(−2)⟩=⟨5,4,2⟩

The difference u→−v→ is ⟨−1,−6,6⟩. As two consecutive moves, the sum gives a net upward change of 2 units even though the second move goes down.

In a tip-to-tail diagram, the first vector ends at (2, negative 1, 4). The second arrow runs from that point to (5, 4, 2). The resultant connects the origin to (5, 4, 2).
The blue copy of v→ starts at the head of u→ and keeps its components ⟨3,5,−2⟩. The gold arrow shows the net displacement.

Taking the magnitude of that net displacement gives 52+42+22=35. If the moves are traveled one after the other, the total distance is 21+38. Use the net vector for how far the finish is from the start and the two leg lengths for the length of the route.

Scale a vector or keep only its direction

Multiplying by a scalar k scales all three components. For a nonzero vector, a positive k preserves direction and a negative k reverses it. Multiplying by zero gives 0→=⟨0,0,0⟩, whose direction is undefined.

k⟨a,b,c⟩=⟨ka,kb,kc⟩‖kv→‖=|k|‖v→‖

Reverse an arrow and triple its length

Multiplying by −3 gives −3⟨1,−2,4⟩=⟨−3,6,−12⟩. Its length changes from 21 to 321.

Normalize a nonzero vector

A unit vector has length 1. Divide each component by the positive length of the original vector to keep its direction. This division requires ‖v→‖>0.

u^=v→‖v→‖=⟨a‖v→‖, b‖v→‖, c‖v→‖⟩

Find a unit vector in the direction of ⟨2,−3,6⟩

The magnitude is 7, so u^=17⟨2,−3,6⟩=⟨27,−37,67⟩. Check that its squared length is 1.

(27)2+(−37)2+(67)2=4+9+3649=1

Scale each vector first in a linear combination

Multiply each vector by its own coefficient, then add corresponding components. For two vectors u→,w→, the combination su→+tw→ has components ⟨su1+tw1, su2+tw2, su3+tw3⟩.

Combine 2⟨1,0,3⟩ and 3⟨−1,2,1⟩

2⟨1,0,3⟩+3⟨−1,2,1⟩=⟨2,0,6⟩+⟨−3,6,3⟩=⟨−1,6,9⟩

Use the dot product to compare directions

The planar dot product extends to three dimensions by including the third pair of components. Multiply each pair and add the three products. The result is a scalar.

u→·v→=u1v1+u2v2+u3v3u→·v→=‖u→‖‖v→‖cos⁡θ

For nonzero vectors, place their tails together and take the angle in [0∘,180∘]. Compute θ=arccos⁡(u→·v→‖u→‖‖v→‖). A dot product of zero gives a right angle when both vectors have positive length. If either vector is zero, the denominator is zero and the angle is undefined.

Find the angle between ⟨1,1,0⟩ and ⟨1,0,1⟩

Both lengths are 2. Their dot product is 1(1)+1(0)+0(1)=1.

cos⁡θ=122=12θ=60∘
The vectors (1, 1, 0) and (1, 0, 1) share the origin as their tail and span a plane. The actual angle between the arrows is 60 degrees.
The curved guide follows the plane spanned by the two arrows. The dot product gives the actual 60∘ angle in that plane.

Read direction angles from a unit vector

In 3D one direction angle usually leaves a choice of directions in space. A nonzero vector’s unit components are its signed cosines with the positive coordinate axes. If α,β,γ are the angles with +x,+y,+z, then

⟨cos⁡α,cos⁡β,cos⁡γ⟩=⟨a‖v→‖,b‖v→‖,c‖v→‖⟩

For ⟨2,−3,6⟩, the middle entry −37 means the angle with positive y is obtuse. The first and third entries are positive, so the angles with positive x and z are acute.

Compare the 2D and 3D rules

Keep the component order consistent whenever you move between a drawing, a component triple and a calculation.

OperationIn a planeIn space
Component form⟨a,b⟩⟨a,b,c⟩
Magnitudea2+b2a2+b2+c2
Axis unit vectorsi,ji,j,k
Add the components⟨a+d,b+e⟩⟨a+d,b+e,c+f⟩
Multiply by k⟨ka,kb⟩⟨ka,kb,kc⟩
Dot productad+bead+be+cf
  • For a displacement, write the head first and subtract the tail.
  • For a length, square each component before adding, then take the square root.
  • For a unit vector, use a positive length in the denominator and check that the magnitude is 1.
  • For an angle, verify that both vectors are nonzero and that both magnitudes appear in the denominator.

Work through these six problems

Find the displacement

Go from A(−2,3,1) to B(1,−1,5). Find the vector and its length.

Reveal the displacement and length

Subtract coordinates to get AB→=⟨3,−4,4⟩. Its length is 9+16+16=41.

Normalize a vector with a zero component

Find a unit vector in the direction of ⟨−2,0,2⟩.

Reveal the unit vector

The magnitude is 22. Divide to get ⟨−22,0,22⟩.

Combine two moves

Calculate 2⟨1,0,2⟩−⟨−1,3,0⟩.

Reveal the linear combination

First scale the first vector to ⟨2,0,4⟩, then subtract to get ⟨3,−3,4⟩.

Make two vectors perpendicular

Find t so that ⟨1,2,−1⟩ and ⟨2,t,4⟩ are perpendicular.

Reveal the dot-product equation

Set 2+2t−4=0. It gives t=1. Both vectors are nonzero at that value, so the zero dot product confirms a right angle.

Compare two parallel directions

Find the angle between u→=⟨−2,3,1⟩ and v→=⟨4,−6,−2⟩.

Reveal the angle between the vectors

Because v→=−2u→, the arrows point in opposite directions. The angle is 180∘.

Find net displacement and distance traveled

An object moves ⟨3,0,4⟩ meters, then ⟨0,6,−4⟩ meters. Find the resultant and both distances.

Reveal the resultant and distances

The resultant is ⟨3,6,0⟩ meters, so the finish is 35 meters from the start. Adding the two leg lengths gives 5+213 meters traveled.

AP framework and a released practice question

Use the exercises above for 3D enrichment. For assessed trigonometry, try the released Unit 3 question about a point moving around a wheel. Interpreting its height draws on the same idea of following one coordinate of a moving point.

2026 FRQ 3 · Waterwheel height

Turn the wheel’s motion into a sinusoidal height model, then explain what its graph shows.

Back to top ↑