Canadian flagMath101 · Independent Ontario learning libraryCreated and edited by Kamran
Calculus IIIGrades 9–12University3 min read

Lines in Three Dimensions

A line in three-dimensional space is determined by one point and one nonzero direction vector.

Cheat sheet
A spatial line is every point reached by starting at one known point and moving any scalar amount along a fixed direction.

Vector equation

If a line passes through point $P_0(x_0,y_0,z_0)$ with nonzero direction vector

$$ \vec d=\langle a,b,c\rangle, $$

then its vector equation is

$$ \vec r=\vec r_0+t\vec d,qquad t\in\mathbb R. $$

The parameter $t$ moves forward or backward along the line. Different values produce different points.

Parametric equations

The vector equation is equivalent to

$$ x=x_0+at,qquad y=y_0+bt,qquad z=z_0+ct. $$

These three equations share the same parameter. Treating them with separate unrelated parameters would describe a larger set than one line.

Symmetric form

When $a,b,c$ are all nonzero, eliminate $t$:

$$ \frac{x-x_0}{a}=\frac{y-y_0}{b}=\frac{z-z_0}{c}. $$

If a direction component is zero, use a fixed coordinate instead. For example, $a=0$ means $x=x_0$ along the entire line, so division by $a$ is not allowed.

Worked example: write all forms

At $t=0$, the line contains the required point.

Line through two points

For points $A$ and $B$, a direction is

$$ \overrightarrow{AB}=B-A. $$

Then use either point as $\vec r_0$. Reversing the direction or multiplying it by any nonzero scalar gives the same geometric line with a different parameterization.

Checking whether a point lies on a line

Substitute the point's coordinates into the parametric equations. A single value of $t$ must satisfy all three equations.

If different coordinates require different parameter values, the point does not lie on the line.

Relationships between two lines

In three dimensions, two lines may:

  • intersect at one point;
  • be parallel and distinct;
  • coincide;
  • be skew, meaning nonparallel and nonintersecting.

Skew lines are possible because they can pass at different levels without sharing a plane.

Testing an intersection

Give the lines different parameters, such as $s$ and $t$, and equate corresponding coordinates. Solve the resulting system, then verify all three coordinate equations.

Consistent parameters give an intersection point. An inconsistent system with nonparallel directions indicates skew lines.

Angles between lines

The acute angle between lines can be found from direction vectors:

$$ \cos\theta=\frac{|\vec d_1\cdot\vec d_2|}{\|\vec d_1\|\|\vec d_2\|}. $$

The absolute value selects the acute angle between unoriented lines. Without it, the vector directions may give the supplementary angle.

Distance and geometry

Distances involving skew lines or a point and a line use perpendicular components, projections, or cross products. The shortest connector must be perpendicular to the relevant direction vectors.

Draw a spatial diagram and state which distance is required before selecting a formula.

Common mistakes

Using the position point as the direction. A line needs both, and they serve different roles.

Assigning a different parameter to each coordinate. One line uses one shared parameter.

Dividing by a zero direction component in symmetric form. Write that coordinate as constant.

Calling all nonintersecting lines parallel. In space they may be skew.

Stopping after two coordinate equations agree. Verify the third.

Quick self-check

  • Is the direction vector nonzero?
  • Does $t=0$ recover the stated point?
  • Do vector, parametric, and symmetric forms describe the same line?
  • Does a tested point use one consistent parameter?
  • For two lines, were parallel, coincident, intersecting, and skew cases distinguished?
  • Is the angle or distance interpretation based on direction vectors?
Check your understanding

Try it yourself

Hints are part of learning. Open one whenever it makes the next step feel possible.

1 practice question
Question 1Write a spatial line · Gentle

Which parametric equations describe the line through (1, −2, 3) parallel to ⟨2, 1, −1⟩?

End of lesson

Nice work making it this far.

Understanding grows through return visits. Save this lesson, try the practice, or continue when you are ready.

Lesson complete

That one is yours now.

Lines in Three Dimensions is saved to My Learning. Take the win—you earned it.

1Your Math101 collectionlesson completed
Search 464 published lessons, 123 answer guides, courses, and learning tools.
Your experience

Settings

Ontario math tutoringWork with KamranBook ↗