Skip to lesson content

Lesson 1 of 5

Three Dimensional Geometry · Lesson 1 of 5

Directions and Coordinates in Space

“Use coordinate changes and vectors to describe the direction of a line in three dimensions.”

Learning Objectives

• Explain direction angles, direction cosines, and direction ratios of a directed line. • Normalize a nonzero direction vector and handle reversal of direction consistently. • Derive direction cosines from the coordinates of two distinct points. • Use proportional direction ratios to recognise collinear points.

From points to directions

A point tells us where something is, but a line also needs a direction. In a room, the same direction can be followed from the floor, a wall, or the ceiling. Vector algebra gives us a compact way to describe that direction independently of where the line is placed.

We use three mutually perpendicular coordinate axes, with unit vectors , , and pointing along their positive directions. A displacement changes the three coordinates by . Its components can therefore describe the direction of travel along a line. The chapter builds from this idea to line equations, angles, and distances.

A geometric viewpoint

Mathematical imagination works alongside reasoning. Picture a direction or a perpendicular connector before calculating it, then justify the relationship using coordinates and vectors. The diagrams support the calculations; they do not replace them.

Three angles for one directed line

First place the line through the origin and choose which way along it is positive. Imagine an arrow pointing from the origin in that direction. We compare this arrow with the positive direction of each coordinate axis, so even an angle greater than a right angle can carry useful information.

Definition
Direction angles and direction cosines

If the chosen direction makes angles with the positive -, -, and -axes, these are its direction angles. Their cosines , , and are its direction cosines. Each angle lies between and .

A direction is measured against all three axesxyzPOvertical componentα: angle with +xβ: angle with +yγ: angle with +zThe three angles describe one directed line; they are linked.
A direction compared with three axes— The dashed projections separate coordinate components; the true angles are measured in space.

A positive direction cosine means that the arrow has a positive component along that axis. A negative one means that it points partly against the positive axis. A zero means there is no change in that coordinate: the direction is perpendicular to that axis. Thus direction cosines tell us more than three angle sizes; they also encode the signs of the motion.

Let a point on the chosen ray have coordinates and be a distance from the origin. Projection onto the axes gives , , and . Since , dividing by produces a restriction on the three direction cosines.

The direction-cosine identityLaTeX
Here are the components of a unit vector along the chosen direction. Their squares add to one, so three direction angles cannot be chosen independently.
Example — Read direction from angles

Problem
A line is directed at to the positive coordinate axes. Find its direction cosines.

  1. 1.Take the cosine of each stated angle: , , and .
  2. 2.Check the identity: .
  3. 3.The triple is . The zero first component means that travel along this line leaves the -coordinate unchanged.
Example — The coordinate axes

Problem
Find the direction cosines of the positive coordinate axes.

  1. 1.The positive -axis makes angles with the three positive axes. Its direction cosines are .
  2. 2.The same reasoning gives for the positive -axis and for the positive -axis.
  3. 3.For a negative coordinate-axis direction, reverse the corresponding nonzero component. For example, the negative -axis has direction cosines .

If the original line does not pass through the origin, draw a parallel line through the origin and orient it the same way. Parallel arrows have the same direction angles. Moving a line without rotating it therefore preserves its direction cosines.

Reverse all components together

Reversing the arrow replaces each direction angle by its supplement. Since , the triple becomes . These describe opposite directions on the same undirected line. Changing just one nonzero sign usually gives a different line direction.

Direction ratios and unit length

Angles are not always the easiest starting point. Often we already know a vector parallel to the line. Any nonzero scalar multiple of that vector points along the same undirected line, so its components need not have unit length.

Definition
Direction ratios

Any nonzero triple proportional to the direction-cosine triple is a set of direction ratios of the line. Direction ratios are also called direction numbers. The associated vector is parallel to the line.

Suppose . Substitute into the unit-length identity to get . Because is not the zero triple, its length is positive. Hence . The sign selects one of the two orientations.

Normalize direction ratiosLaTeX
Use the same sign for the whole triple. Dividing by the positive length gives the orientation of ; the negative gives its reverse.

For example, , , and are direction ratios for the same undirected direction. There are infinitely many such triples. They are proportional, but only the normalized triples are direction cosines. Proportionality is best written as one vector being a nonzero scalar multiple of another; this avoids dividing by a component that might be zero.

Example — Normalize a signed triple

Problem
A line has direction ratios . Find its direction cosines in that orientation.

  1. 1.The length of the direction vector is .
  2. 2.Divide each component by . The required direction cosines are .
  3. 3.Their squares sum to . Reversing the orientation gives , with every sign reversed.
A zero triple gives no direction

The vector has no direction and cannot be normalized. Individual direction ratios may be zero, but all three cannot be zero. Also, do not normalize by : a vector length uses the square root of the sum of squares.

Find a direction from two points

Two distinct points provide a natural arrow: travel from the first point to the second. Each coordinate difference records the displacement along one axis. Once we know the length of this displacement, we can normalize it exactly as before.

Let and . The vector has components . Projecting onto an axis gives, for example, the signed vertical component . In a right triangle, the corresponding cosine is that signed component divided by . The same argument works for the other two axes.

Coordinate differences become direction cosinesPNQlength PQz₂ − z₁PN is parallel to the xy-planeγWhen z₂ > z₁, cos γ = (z₂ − z₁) / PQ.
A right triangle inside a spatial displacement— The drawn triangle illustrates a positive vertical difference. Signed components handle every orientation.
Direction cosines from two pointsLaTeX
The points must be distinct, so . This triple follows the direction from to . Reversing their order changes all three signs.
Example — A line joining two points

Problem
Find direction cosines from towards .

  1. 1.Subtract the coordinates of from those of : .
  2. 2.Its length is .
  3. 3.The direction cosines are . The line moves positively in and and negatively in in this orientation.

Proportional displacements and collinearity

When three points lie on a straight line, travelling between any two of them follows the same undirected direction. This suggests comparing displacement vectors. The shared point is essential: two separate parallel lines need not be the same line.

Example — Prove three points are collinear

Problem
Show that , , and lie on one line.

  1. 1.Compute and .
  2. 2.Every component of is times the corresponding component of . Thus .
  3. 3.The two displacements are parallel and both lines contain . They therefore belong to the same line, proving collinearity. The negative factor says that the two chosen arrows point in opposite directions.
Example — Check a proposed set of angles

Problem
Can a line make an angle of with each positive coordinate axis?

  1. 1.Those angles would give direction cosines .
  2. 2.Their squared sum is , not . Therefore no such line exists.
  3. 3.For equal direction angles, write . Then , so . The two signs describe opposite orientations with equal angles to all three positive axes.

Check your understanding

Distinguish a direction from a location, and a proportional triple from a unit triple. In the questions below, every stated direction is a directed one unless an undirected line is mentioned.

Quiz

Quick check

Which triple can be a set of direction cosines?

Quick check

Direction ratios are . Which normalized triple has the same orientation?

Quick check

What happens to direction cosines when a directed line is reversed?

Quick check

For and , which is a direction vector from to ?

Quick check

A line has . What follows?

Quick check

For distinct , which observation proves collinearity?

Practice Problems

Practice Problems
  1. Find direction cosines for direction angles .
  2. Find the possible direction cosines when a directed line makes equal angles with the three positive axes.
  3. Normalize the direction ratios , keeping their orientation.
  4. Prove that , , and are collinear.
  5. For , , and , find direction cosines along , , and .
  6. Find direction cosines from towards .
  7. Explain why and describe the same undirected direction.
  8. Can a line have direction cosines ? Can it have ? Justify both answers.

Take the cosines: . The squared sum is one.

Key Takeaways

Key Takeaways

• Direction cosines are the components of a unit direction vector, so . • Direction ratios are any nonzero proportional triple; normalization produces direction cosines. • Reversing orientation changes all three signs together. • Two distinct points give a direction by coordinate subtraction and a length by the distance formula. • Proportional displacements through a common point establish collinearity.