Tutorials › Calculus III › Constructing Lines from Geometric Conditions

Cross Products, Lines, and Planes · Tutorial 84 of 999

Constructing Lines from Geometric Conditions

Build a line equation by identifying a point on the line and a nonzero direction vector that satisfies its geometric conditions.

Beginner 9 min read

What You'll Learn

  • Construct a line through two distinct points using their displacement vector
  • Write a parametric line through a point in a specified direction
  • Recognize when a direction vector may be replaced by a nonzero scalar multiple
  • Use dot products and cross products to find directions satisfying perpendicularity conditions
  • Check a constructed line by substituting points and testing its direction

From Geometric Conditions to a Line

A line in three-dimensional space can be described by a point on it and a direction in which it runs. Many construction problems give those pieces directly; others describe them indirectly, for example by giving two points on the line or requiring its direction to be perpendicular to specified vectors.

The central task is to translate the conditions into a point and a direction vector, then write the line equation. This tutorial focuses on that construction. It uses the parametric form of a line and the familiar dot-product and cross-product tests for perpendicularity and parallelism.

Definition: A line through a point with position vector \(\mathbf{p}\) and with nonzero direction vector \(\mathbf{v}\) is the set of points with position vector
$$ \mathbf{r}(t)=\mathbf{p}+t\mathbf{v},\qquad t\in\mathbb{R},\quad \mathbf{v}\ne\mathbf{0}. $$
Here \(t\) is a real parameter. The condition \(\mathbf{v}\ne\mathbf{0}\) is essential: a zero direction vector would describe only one point, not a line.

If \(\mathbf{p}=\langle x_0,y_0,z_0\rangle\) and \(\mathbf{v}=\langle a,b,c\rangle\), the parametric equations are \(x=x_0+at\), \(y=y_0+bt\), and \(z=z_0+ct\). Every value of \(t\) gives a point on the line, and varying \(t\) traces the entire line.

Finding a Direction from Two Points

If a line passes through two distinct points \(P\) and \(Q\), the displacement from \(P\) to \(Q\) is a direction vector. Subtract the coordinates of \(P\) from the corresponding coordinates of \(Q\). The order matters for the sign of the vector, but either subtraction order gives a direction for the same line.

$$ \overrightarrow{PQ}=\mathbf{q}-\mathbf{p}. $$

Because the points are distinct, \(\mathbf{q}-\mathbf{p}\ne\mathbf{0}\), so this is a valid line direction. The line through them is \(\mathbf{r}(t)=\mathbf{p}+t(\mathbf{q}-\mathbf{p})\). At \(t=0\) it gives \(P\), and at \(t=1\) it gives \(Q\).

Worked Example: The Line Through Two Given Points

Construct a parametric equation for the line through \(P=(1,-2,3)\) and \(Q=(4,0,-1)\).

First form the displacement from \(P\) to \(Q\), subtracting coordinates component by component:

$$ \overrightarrow{PQ} = \langle 4-1,\;0-(-2),\;-1-3\rangle = \langle 3,2,-4\rangle. $$

Use \(P\) as the point on the line and this displacement as the direction. The vector equation and its component equations are

$$ \mathbf{r}(t)=\langle 1,-2,3\rangle+t\langle 3,2,-4\rangle, $$
$$ x=1+3t,\qquad y=-2+2t,\qquad z=3-4t. $$

Check the given points. For \(t=0\), the coordinates are \((1,-2,3)=P\). For \(t=1\), they are \((1+3,-2+2,3-4)=(4,0,-1)=Q\). Thus the constructed line contains both specified points.

Why This Construction Gives the Required Line

The two-point construction works because the direction vector records exactly how to move from one specified point to the other. It also gives the only line through two distinct points. The reasoning is short but important.

1
Construct a line.
Let \(\mathbf{d}=\mathbf{q}-\mathbf{p}\). Since \(P\ne Q\), \(\mathbf{d}\ne\mathbf{0}\), and \(\mathbf{r}(t)=\mathbf{p}+t\mathbf{d}\) is a line. It contains \(P\) at \(t=0\) and \(Q\) at \(t=1\).
2
Show any line through both points has this direction.
Suppose another line through \(P\) has nonzero direction \(\mathbf{w}\). Its points have the form \(\mathbf{p}+s\mathbf{w}\). Since it contains \(Q\), there is some real \(s_1\) such that \(\mathbf{q}=\mathbf{p}+s_1\mathbf{w}\). As \(P\ne Q\), \(s_1\ne0\), so \(\mathbf{q}-\mathbf{p}=s_1\mathbf{w}\). Therefore \(\mathbf{d}\) is a nonzero scalar multiple of \(\mathbf{w}\).
3
Conclude the lines are the same.
Multiplying a direction vector by a nonzero scalar changes how quickly the parameter moves along the line, not the set of points reached. Thus both lines contain exactly the same points.

This proves both existence and uniqueness: two distinct points determine exactly one line. If the two given points coincide, their displacement is zero, and the information does not determine a unique line; an additional direction condition would be needed.

Constructing a Line Parallel to a Given Direction

When a problem says that a line is parallel to a vector, that vector can be used as the line's direction, provided it is nonzero. If the given object is itself a line in parametric form, its direction vector is the coefficient of its parameter. A parallel line through a new point keeps that direction and replaces the point vector.

Key rule: A line through \(\mathbf{p}\) parallel to a line with nonzero direction \(\mathbf{v}\) is
$$ \mathbf{r}(t)=\mathbf{p}+t\mathbf{v}. $$
Any nonzero scalar multiple of \(\mathbf{v}\) gives an equivalent direction and therefore the same parallel line through \(\mathbf{p}\).

Worked Example: A Parallel Line Through a New Point

Find a parametric equation for the line through \(P=(0,4,-2)\) parallel to the line \(\mathbf{r}(s)=\langle 2,-1,0\rangle+s\langle 1,3,2\rangle\).

The given line's direction is the coefficient of \(s\), namely \(\mathbf{v}=\langle 1,3,2\rangle\). It is nonzero. The required line uses \(P\) as its point and the same direction:

$$ \mathbf{r}(t)=\langle 0,4,-2\rangle+t\langle 1,3,2\rangle. $$

In component form, \(x=t\), \(y=4+3t\), and \(z=-2+2t\). At \(t=0\), this gives \(P=(0,4,-2)\). Its direction vector is \(\langle 1,3,2\rangle\), exactly the direction of the given line, so the constructed line passes through \(P\) and is parallel to the given line.

Directions from Perpendicularity Conditions

Some problems do not state a direction vector directly. Instead, they require the line to have a direction perpendicular to one or more given vectors. The dot product supplies the test: vectors \(\mathbf{d}\) and \(\mathbf{u}\) are perpendicular exactly when \(\mathbf{d}\cdot\mathbf{u}=0\). This condition can restrict possible directions, but a single perpendicularity condition usually leaves more than one possible direction in three-dimensional space.

If a direction must be perpendicular to two nonparallel vectors \(\mathbf{u}\) and \(\mathbf{v}\), their cross product provides such a direction. The cross product \(\mathbf{u}\times\mathbf{v}\) is perpendicular to each of its factors. It is nonzero when the two vectors are nonparallel, so it can then serve as a line direction. If the vectors are parallel, their cross product is zero and does not provide a direction.

Worked Example: A Line Perpendicular to Two Directions

Construct a line through \(P=(2,0,1)\) whose direction is perpendicular to both \(\mathbf{u}=\langle 1,1,0\rangle\) and \(\mathbf{v}=\langle 1,-1,2\rangle\).

Compute the cross product component by component:

$$ \mathbf{u}\times\mathbf{v} = \left\langle 1(2)-0(-1),\; 0(1)-1(2),\; 1(-1)-1(1) \right\rangle = \langle 2,-2,-2\rangle. $$

This vector is nonzero, and we may use the simpler direction \(\mathbf{d}=\langle 1,-1,-1\rangle\), which is half of the cross product. Check both perpendicularity conditions using dot products:

$$ \mathbf{d}\cdot\mathbf{u} = 1(1)+(-1)(1)+(-1)(0) = 1-1+0=0, $$
$$ \mathbf{d}\cdot\mathbf{v} = 1(1)+(-1)(-1)+(-1)(2) = 1+1-2=0. $$

Both conditions hold. The line through \(P\) in this direction is

$$ \mathbf{r}(t)=\langle 2,0,1\rangle+t\langle 1,-1,-1\rangle, $$

or \(x=2+t\), \(y=-t\), and \(z=1-t\). At \(t=0\) the line gives \(P\); its direction has dot product zero with each specified vector, as required.

Choosing a Convenient Direction Vector

A line does not have a unique direction vector. If \(\mathbf{d}\ne\mathbf{0}\), then \(k\mathbf{d}\) is a direction for the same line whenever \(k\ne0\). Indeed, as \(t\) ranges over all real numbers, \(tk\) also ranges over all real numbers. Thus \(\mathbf{p}+t(k\mathbf{d})\) traces the same points as \(\mathbf{p}+t\mathbf{d}\).

This lets you simplify a direction vector when possible. For example, \(\langle 2,-2,-2\rangle\) can be replaced by \(\langle 1,-1,-1\rangle\). A negative multiple is also valid: reversing the direction of travel changes the parameterization but not the geometric line.

When there is more than one condition on a direction, check all of them rather than relying only on a remembered formula. Dot products directly check perpendicularity. For parallelism, the direction vectors must be scalar multiples of one another; equivalently, their cross product is zero. The zero vector itself is not a valid direction for a line.

A Common Mistake: Using the Wrong Difference

Subtracting coordinates in the wrong order is not necessarily an error, but failing to keep the resulting signs consistent is. For example, for the points \(P=(1,-2,3)\) and \(Q=(4,0,-1)\), the vector from \(P\) to \(Q\) is \(\langle 3,2,-4\rangle\). A common incorrect calculation is to use \(\langle 3,2,4\rangle\), changing only the last sign. That vector is not the displacement between the points.

Using the incorrect vector from \(P\) would give \(\mathbf{r}(t)=\langle 1,-2,3\rangle+t\langle 3,2,4\rangle\). At \(t=1\), this produces \((4,0,7)\), not \(Q=(4,0,-1)\). The corrected subtraction gives \(-1-3=-4\), so the direction is \(\langle 3,2,-4\rangle\); substituting \(t=1\) then gives \((4,0,-1)\). Always check the constructed line against the conditions, especially by substituting the parameter value for each specified point.

A Reliable Construction Checklist

For a line described by geometric conditions, separate the information into the point and direction before writing the equation.

  • Identify a point the line must pass through.
  • Determine a nonzero direction vector: subtract endpoint coordinates, reuse a stated parallel direction, or calculate a vector satisfying perpendicularity conditions.
  • Check that the direction meets every stated condition.
  • Write \(\mathbf{r}(t)=\mathbf{p}+t\mathbf{d}\), then check that the specified point is obtained for an appropriate parameter value.

The same line may have many valid parametric equations because the chosen point can be any point on the line and the direction can be any nonzero scalar multiple of a direction vector. What matters is that the equation describes the required set of points and satisfies the geometric conditions.

Check Your Understanding

For each question, identify the point and direction information before writing or checking a line equation.

  1. Find a direction vector for the line through \(A=(-1,2,0)\) and \(B=(2,1,4)\).
  2. Write a parametric equation for the line through \((3,0,-2)\) parallel to a line with direction \(\langle 2,-1,5\rangle\).
  3. Why can a nonzero scalar multiple of a direction vector be used without changing the line?
  4. What does the cross product of two parallel vectors give, and why is that result unsuitable as a line direction?
  5. Describe how you would check that a proposed line through \(P\) also passes through a specified second point \(Q\).