Lemonmath
Tiếng Việt

The equation of a line in space

Lesson 5.2 · 26 min read · Updated

A drone takes off from the point M0(1,2,0)M_0(1, 2, 0) in a school yard (unit: metre). It flies in a straight line, moving by the vector u⃗=(2,1,2)\vec{u}=(2, 1, 2) every second. High above, a checkpoint ring is placed at N(9,6,8)N(9, 6, 8). Does the drone fly through the ring, and if so, after how many seconds?

As in the plane, a line in space is fixed by one point and one direction. The only difference is that there are now three coordinates.

Parametric equations of a line

Exploring: the drone's positions

After tt seconds the drone is at the point MM with M0M→=tu⃗\overrightarrow{M_0M}=t\vec{u}. We record a few positions:

tt (seconds) 00 11 22 33
position (1,2,0)(1, 2, 0) (3,3,2)(3, 3, 2) (5,4,4)(5, 4, 4) (7,5,6)(7, 5, 6)

The position after tt seconds is (1+2t,2+t,2t)(1+2t, 2+t, 2t). To reach N(9,6,8)N(9, 6, 8) we need 1+2t=91+2t=9, 2+t=62+t=6, 2t=82t=8. All three give t=4t=4, so the drone passes through the ring after 44 seconds. The distance flown is 4∣u⃗∣=4⋅3=124|\vec{u}|=4\cdot3=12 m.

udM0 M
The line through M0M_0 with direction vector u⃗\vec{u}

Why is it true? A point M(x,y,z)M(x, y, z) lies on Δ\Delta exactly when M0M→\overrightarrow{M_0M} is parallel to u⃗\vec{u}, that is, when there is a number tt with M0M→=tu⃗\overrightarrow{M_0M}=t\vec{u}. Coordinate by coordinate: x−x0=atx-x_0=at, y−y0=bty-y_0=bt, z−z0=ctz-z_0=ct. When abc≠0abc\neq0, all three fractions equal tt.

Given two points, we take the vector joining them as a direction vector. When a line is perpendicular to a plane, the normal vector of the plane is a direction vector of the line.

Two lines in space

In space, two lines have four possibilities. Unlike in the plane, two lines can fail to meet without being parallel: such lines are called skew.

A line and a plane

To decide how a line dd meets a plane (P)(P), we substitute the parametric equations of dd into the equation of (P)(P) and get a linear equation in tt.

Orthogonal projection of a point

The projection HH of a point MM on a plane (P)(P) is where (P)(P) meets the line through MM perpendicular to (P)(P). The projection HH of MM on a line dd is the point H∈dH\in d with MH→⊥u⃗\overrightarrow{MH}\perp\vec{u}.

(P)HM
The projection HH of MM on the plane (P)(P)

The last example has more steps, so we follow the four stages.

Key terms

Summary

  • The line through M0(x0,y0,z0)M_0(x_0, y_0, z_0) with direction vector u⃗=(a,b,c)\vec{u}=(a, b, c): x=x0+atx=x_0+at, y=y0+bty=y_0+bt, z=z0+ctz=z_0+ct.
  • When abc≠0abc\neq0: x−x0a=y−y0b=z−z0c\dfrac{x-x_0}{a}=\dfrac{y-y_0}{b}=\dfrac{z-z_0}{c}.
  • Through two points AA, BB: u⃗=AB→\vec{u}=\overrightarrow{AB}. Perpendicular to (P)(P): u⃗=n⃗P\vec{u}=\vec{n}_P.
  • Two lines: if u⃗1\vec{u}_1, u⃗2\vec{u}_2 are parallel, the lines are parallel or coincide; if not, solve for tt, ss: a solution means they intersect, no solution means they are skew.
  • A line and a plane: substituting gives an equation in tt; one solution means they meet, no solution means parallel, every tt means the line lies in the plane.
  • Projection on (P)(P): where (P)(P) meets the line through MM with direction n⃗\vec{n}. Projection on dd: H∈dH\in d with MH→⋅u⃗=0\overrightarrow{MH}\cdot\vec{u}=0.

Practice

Each exercise comes with what you need and some steps to start. Try it yourself first, then open the solution.

Exercise 1

Write parametric equations of the line through A(2,−1,3)A(2, -1, 3) with direction vector u⃗=(1,4,−2)\vec{u}=(1, 4, -2). Find the point for t=−1t=-1 and check whether B(4,7,−1)B(4, 7, -1) lies on the line.

What you need and how to start

What you need: x=x0+atx=x_0+at, y=y0+bty=y_0+bt, z=z0+ctz=z_0+ct.

Steps:

  1. Write the parametric equations.
  2. Substitute t=−1t=-1.
  3. Find tt from the x-coordinate of BB, then check the other two coordinates.
Show solution

x=2+tx=2+t, y=−1+4ty=-1+4t, z=3−2tz=3-2t. For t=−1t=-1: (1,−5,5)(1, -5, 5). For BB: 2+t=42+t=4 gives t=2t=2; then y=7y=7 and z=−1z=-1, which match.

Answer. (1,−5,5)(1, -5, 5); BB lies on the line (for t=2t=2).

Exercise 2

Write parametric and Cartesian equations of the line through A(1,0,−2)A(1, 0, -2) and B(3,2,−1)B(3, 2, -1).

What you need and how to start

What you need: u⃗=AB→\vec{u}=\overrightarrow{AB}.

Steps:

  1. Find AB→\overrightarrow{AB}.
  2. Write both forms using the point AA.
Show solution

AB→=(2,2,1)\overrightarrow{AB}=(2, 2, 1). {x=1+2ty=2tz=−2+tx−12=y2=z+21.\begin{cases}x=1+2t\\ y=2t\\ z=-2+t\end{cases}\qquad\frac{x-1}{2}=\frac{y}{2}=\frac{z+2}{1}.

Answer. As above.

Exercise 3

Write the equation of the line dd through M(1,−1,2)M(1, -1, 2) perpendicular to (P):2x−y+3z+5=0(P): 2x-y+3z+5=0. Find the point where dd meets (P)(P).

What you need and how to start

What you need: if d⊥(P)d\perp(P) then u⃗d=n⃗P\vec{u}_d=\vec{n}_P; for the intersection, substitute the parametric equations into (P)(P).

Steps:

  1. Write dd with u⃗=(2,−1,3)\vec{u}=(2, -1, 3).
  2. Substitute into (P)(P) and solve for tt.
Show solution

d:x=1+2td: x=1+2t, y=−1−ty=-1-t, z=2+3tz=2+3t. Substituting into (P)(P): 2(1+2t)−(−1−t)+3(2+3t)+5=14+14t=0  ⟺  t=−1.2(1+2t)-(-1-t)+3(2+3t)+5=14+14t=0\iff t=-1. The point of intersection is (−1,0,−1)(-1, 0, -1).

Answer. (−1,0,−1)(-1, 0, -1).

Exercise 4

Write parametric and Cartesian equations of the line through M(0,1,−1)M(0, 1, -1) parallel to Δ:x−12=y+3−1=z3\Delta: \dfrac{x-1}{2}=\dfrac{y+3}{-1}=\dfrac{z}{3}.

What you need and how to start

What you need: parallel lines share a direction vector; read u⃗\vec{u} from the denominators.

Steps:

  1. Read off u⃗=(2,−1,3)\vec{u}=(2, -1, 3).
  2. Write the equations through MM.
Show solution

{x=2ty=1−tz=−1+3tx2=y−1−1=z+13.\begin{cases}x=2t\\ y=1-t\\ z=-1+3t\end{cases}\qquad\frac{x}{2}=\frac{y-1}{-1}=\frac{z+1}{3}. MM does not lie on Δ\Delta (because 0−12≠1+3−1\dfrac{0-1}{2}\neq\dfrac{1+3}{-1}), so this line is parallel to Δ\Delta, not the same line.

Answer. As above.

Exercise 5

Let d1:{x=1+2ty=−tz=3+td_1: \begin{cases}x=1+2t\\ y=-t\\ z=3+t\end{cases} and d2:x−3−4=y+12=z−4−2d_2: \dfrac{x-3}{-4}=\dfrac{y+1}{2}=\dfrac{z-4}{-2}. Is each claim true or false?

a) u⃗1=(2,−1,1)\vec{u}_1=(2, -1, 1) is a direction vector of d1d_1.

b) The point M(3,−1,4)M(3, -1, 4) lies on d1d_1.

c) d1d_1 is parallel to d2d_2.

d) d1d_1 is perpendicular to the plane (P):2x−y+z=0(P): 2x-y+z=0.

What you need and how to start

What you need: if the direction vectors are parallel, the lines are parallel or coincide; check one more point.

Steps:

  1. Read off u⃗1\vec{u}_1, u⃗2\vec{u}_2.
  2. Substitute MM into d1d_1 (find tt).
  3. Compare u⃗1\vec{u}_1 with n⃗P\vec{n}_P.
Show solution

a) True. The coefficients of tt are 22, −1-1, 11.

b) True. t=1t=1 gives (3,−1,4)(3, -1, 4).

c) False. u⃗2=(−4,2,−2)=−2u⃗1\vec{u}_2=(-4, 2, -2)=-2\vec{u}_1, and M(3,−1,4)M(3, -1, 4) also lies on d2d_2, so the two lines coincide.

d) True. n⃗P=(2,−1,1)=u⃗1\vec{n}_P=(2, -1, 1)=\vec{u}_1.

Answer. a) True; b) True; c) False; d) True.

Exercise 6

An aeroplane takes off from the point O(0,0,0)O(0, 0, 0) and flies in a straight line, moving by the vector v⃗=(80,60,10)\vec{v}=(80, 60, 10) every second (unit: metre). When it reaches a height of 15001500 m, how many kilometres from OO is the point on the ground directly below it?

What you need and how to start

What you need: the position after tt seconds is (80t,60t,10t)(80t, 60t, 10t).

Steps:

  1. Solve 10t=150010t=1500.
  2. The point on the ground is (80t,60t,0)(80t, 60t, 0); find its distance from OO.
Show solution

t=150t=150 seconds. The point on the ground is (12000,9000,0)(12000, 9000, 0), at distance 120002+90002=15000\sqrt{12000^2+9000^2}=15000 m from OO.

Answer. 1515.

Exercise 7

Let d:x=2+td: x=2+t, y=1−ty=1-t, z=3+2tz=3+2t. Decide the position of dd relative to (P1):x+y−1=0(P_1): x+y-1=0, (P2):x+3y+z−8=0(P_2): x+3y+z-8=0, (P3):x−y+z−6=0(P_3): x-y+z-6=0.

What you need and how to start

What you need: substitute the parametric equations into the equation of the plane.

Steps:

  1. Substitute into each plane and simplify in tt.
  2. Count the solutions.
Show solution

(P1)(P_1): (2+t)+(1−t)−1=2=0(2+t)+(1-t)-1=2=0, impossible, so d∥(P1)d\parallel(P_1). (P2)(P_2): (2+t)+3(1−t)+(3+2t)−8=0(2+t)+3(1-t)+(3+2t)-8=0 for every tt, so dd lies in (P2)(P_2). (P3)(P_3): (2+t)−(1−t)+(3+2t)−6=4t−2=0(2+t)-(1-t)+(3+2t)-6=4t-2=0, t=12t=\dfrac12, and the point of intersection is (52,12,4)\left(\dfrac52, \dfrac12, 4\right).

Answer. Parallel to (P1)(P_1); lies in (P2)(P_2); meets (P3)(P_3) at (52,12,4)\left(\dfrac52, \dfrac12, 4\right).

Exercise 8

Decide the position of the lines d1:x=1+td_1: x=1+t, y=1−ty=1-t, z=2tz=2t and d2:x=1+2sd_2: x=1+2s, y=−2+sy=-2+s, z=5−sz=5-s. If they intersect, find the point of intersection.

What you need and how to start

What you need: if the direction vectors are not parallel, solve the system in tt, ss.

Steps:

  1. Compare (1,−1,2)(1, -1, 2) and (2,1,−1)(2, 1, -1).
  2. Solve the first two equations, then test the third.
Show solution

The vectors are not parallel. From 1+t=1+2s1+t=1+2s and 1−t=−2+s1-t=-2+s: t=2st=2s, 1−2s=−2+s1-2s=-2+s, so s=1s=1, t=2t=2. The third equation: 2⋅2=5−12\cdot2=5-1, which holds.

Answer. They intersect at (3,−1,4)(3, -1, 4).

Exercise 9

(Revisiting Operations on vectors in coordinates.) In the previous lesson we proved that A(1,2,−1)A(1, 2, -1), B(3,1,1)B(3, 1, 1), C(7,−1,5)C(7, -1, 5) are collinear using parallel vectors. Write parametric equations of the line ABAB and give the value of tt for the point CC.

What you need and how to start

What you need: u⃗=AB→\vec{u}=\overrightarrow{AB}; CC lies on ABAB when one value of tt works for all three coordinates.

Steps:

  1. AB→=(2,−1,2)\overrightarrow{AB}=(2, -1, 2).
  2. Solve 1+2t=71+2t=7 and check.
Show solution

AB:x=1+2tAB: x=1+2t, y=2−ty=2-t, z=−1+2tz=-1+2t. From 1+2t=71+2t=7 we get t=3t=3; then y=−1y=-1 and z=5z=5, which match CC.

Answer. t=3t=3, which agrees with AC→=3AB→\overrightarrow{AC}=3\overrightarrow{AB} from the previous lesson.

Exercise 10 Challenge

A laser beam starts at A(1,2,3)A(1, 2, 3), reflects off a flat mirror lying in the plane (P):x+2y+2z−2=0(P): x+2y+2z-2=0, and then reaches B(3,2,2)B(3, 2, 2). Find the point MM of the mirror where it reflects. (Hint: the path A→M→BA\to M\to B is shortest when MM lies on the segment A′BA'B, where A′A' is the reflection of AA in (P)(P).)

What you need and how to start

What you need: the projection HH of AA on (P)(P); HH is the midpoint of AA′AA'.

Steps:

  1. Find HH, then A′=2H−AA'=2H-A (in coordinates).
  2. Use the line A′BA'B and find where it meets (P)(P).
Show solution

The line through AA perpendicular to (P)(P): x=1+tx=1+t, y=2+2ty=2+2t, z=3+2tz=3+2t. Substituting into (P)(P): 9+9t=09+9t=0, t=−1t=-1, so H(0,0,1)H(0, 0, 1) and A′(−1,−2,−1)A'(-1, -2, -1). Substituting A′A' and BB into the left-hand side of (P)(P) gives −9-9 and 99, so A′A' and BB are on opposite sides at equal distances from (P)(P); therefore MM is the midpoint of A′BA'B: M(1,0,12),1+0+2⋅12−2=0.M\left(1, 0, \tfrac12\right),\qquad 1+0+2\cdot\tfrac12-2=0. The beam travels a distance A′B=16+16+9=41≈6.40A'B=\sqrt{16+16+9}=\sqrt{41}\approx6.40.

Answer. M(1,0,12)M\left(1, 0, \dfrac12\right).

Mini test

Mini test

Marked like the Vietnamese graduation exam: Part I 0.25 points per question; Part II up to 1 point per question (1, 2, 3, 4 correct statements give 0.1, 0.25, 0.5, 1 point); Part III 0.5 points per question.

Part I. Multiple choice

Question 1. In the system OxyzOxyz, a direction vector of the line d:{x=1−2ty=3z=−1+td: \begin{cases}x=1-2t\\ y=3\\ z=-1+t\end{cases} is
Question 2. Which point lies on the line x−12=y+2−1=z−33\dfrac{x-1}{2}=\dfrac{y+2}{-1}=\dfrac{z-3}{3}?
Question 3. The line through A(1,0,2)A(1, 0, 2) perpendicular to (P):2x−y+z−3=0(P): 2x-y+z-3=0 has equations
Question 4. Let d1:x=1+td_1: x=1+t, y=2ty=2t, z=3−tz=3-t and d2:x=sd_2: x=s, y=1+sy=1+s, z=2sz=2s. The lines d1d_1 and d2d_2 are

Part II. True or false

Question 1. Let d:x=1+td: x=1+t, y=2−ty=2-t, z=−1+2tz=-1+2t and (P):x+y+z−4=0(P): x+y+z-4=0.
a) u⃗=(1,−1,2)\vec{u}=(1, -1, 2) is a direction vector of dd.
b) dd is parallel to (P)(P).
c) dd meets (P)(P) at the point (2,1,1)(2, 1, 1).
d) dd is perpendicular to the plane (Q):x−y+2z+7=0(Q): x-y+2z+7=0.

Part III. Short answer

Question 1. The line d:x=2+td: x=2+t, y=−1+2ty=-1+2t, z=3−tz=3-t meets the plane (P):x+y+z−10=0(P): x+y+z-10=0 at M(a,b,c)M(a, b, c). Find a+b+ca+b+c.

Question 2. Find the distance from M(2,3,1)M(2, 3, 1) to the line d:x=1+2td: x=1+2t, y=−1+ty=-1+t, z=1+2tz=1+2t (to 2 decimal places).

Show answers and explanations
  1. Part I, question 1: C. The direction vector is made of the coefficients of tt: −2-2, 00, 11. Option A is a point, B takes the 33 that has no tt, and D has a wrong sign.
  2. Part I, question 2: D. With (1,−2,3)(1, -2, 3) all three fractions are 00. Option A changes the signs of the point, B takes the direction vector by mistake, and C fails the second fraction: −1+2−1=−1≠1\dfrac{-1+2}{-1}=-1\neq1.
  3. Part I, question 3: A. The direction vector is n⃗P=(2,−1,1)\vec{n}_P=(2, -1, 1). Option B swaps the point and the vector, C has the wrong sign in the second coordinate, and D takes the constant term −3-3 by mistake.
  4. Part I, question 4: C. (1,2,−1)(1, 2, -1) and (1,1,2)(1, 1, 2) are not parallel, which rules out A and D. The first two equations give s=1+ts=1+t and 2t=1+s=2+t2t=1+s=2+t, so t=2t=2, s=3s=3; the third needs 3−2=2⋅33-2=2\cdot3, which is impossible. So the lines are skew; choosing "parallel" forgets that lines in space can be skew.
  5. Part II, question 1: a) True; b) False; c) True; d) True. a) True. b) False: u⃗⋅n⃗P=1−1+2=2≠0\vec{u}\cdot\vec{n}_P=1-1+2=2\neq0. c) True: substituting gives 2t−2=02t-2=0, t=1t=1, the point (2,1,1)(2, 1, 1). d) True: n⃗Q=(1,−1,2)=u⃗\vec{n}_Q=(1, -1, 2)=\vec{u}.
  6. Part III, question 1: 10. Substituting: 2t−6=02t-6=0, t=3t=3, so M(5,5,0)M(5, 5, 0) and a+b+c=10a+b+c=10. Another way: MM lies in (P)(P), so a+b+c−10=0a+b+c-10=0.
  7. Part III, question 2: 3.61. MH→=(2t−1,t−4,2t)\overrightarrow{MH}=(2t-1, t-4, 2t) for H∈dH\in d; MH→⋅(2,1,2)=9t−6=0\overrightarrow{MH}\cdot(2, 1, 2)=9t-6=0, t=23t=\dfrac23. Then MH→=(13,−103,43)\overrightarrow{MH}=\left(\dfrac13, -\dfrac{10}{3}, \dfrac43\right) and MH=13≈3.61MH=\sqrt{13}\approx3.61.