Equation of a Line in 3D — Vector Form
A line in 3D is uniquely fixed by one point on the line and a direction. Translating that geometry into algebra gives the vector equation $\mathbf{r} = \mathbf{a} + \lambda\mathbf{b}$: start at a known point $\mathbf{a}$, then slide along the direction $\mathbf{b}$ by any real scalar $\lambda$. This is the foundation for every line problem in MEX-V1.
In 2D, the line through $(1, 2)$ with gradient $3$ is $y = 3x - 1$. Now in 3D: a line through $(1, 2, 3)$ with direction $\mathbf{b} = \langle 2, -1, 4 \rangle$ has no single "gradient". How would you describe it? Sketch your reasoning below.
Every line in 3D needs exactly two ingredients: a position vector $\mathbf{a}$ (any point on the line) and a direction vector $\mathbf{b}$ (any non-zero vector parallel to the line). The vector equation $\mathbf{r} = \mathbf{a} + \lambda\mathbf{b}$ then traces every point on the line as $\lambda$ runs over $\mathbb{R}$.
The point-direction reading: (1) pick any point $A$ on the line, write its position vector $\mathbf{a} = \overrightarrow{OA}$, (2) pick any direction $\mathbf{b}$ parallel to the line, (3) let $\lambda \in \mathbb{R}$ slide along the line.
Through two points $A$, $B$: take $\mathbf{a} = \overrightarrow{OA}$ and $\mathbf{b} = \overrightarrow{AB} = \mathbf{b}_{pos} - \mathbf{a}_{pos}$.
Key facts
- The vector equation of a line: $\mathbf{r} = \mathbf{a} + \lambda\mathbf{b}$
- $\mathbf{a}$ = position vector of a known point; $\mathbf{b}$ = direction vector
- Through points $A$ and $B$: $\mathbf{b} = \overrightarrow{AB} = \mathbf{B} - \mathbf{A}$
- Two lines are parallel iff $\mathbf{b}_1 = k\mathbf{b}_2$ for some scalar $k \neq 0$
Concepts
- Why the equation is not unique (many valid $\mathbf{a}$ and $\mathbf{b}$ describe the same line)
- Why $\lambda \in \mathbb{R}$ guarantees every point on the line is reached
- How to detect when two given lines are identical, parallel, or skew
Skills
- Write the vector equation of a line through a given point with given direction
- Write the vector equation of a line through two given points
- Decide whether a given point lies on a given line
- Decide whether two given lines are parallel
Let $A$ be a known point on the line with position vector $\mathbf{a} = \overrightarrow{OA}$, and let $\mathbf{b}$ be a non-zero vector parallel to the line. If $R$ is a general point on the line with position vector $\mathbf{r} = \overrightarrow{OR}$, then $\overrightarrow{AR}$ is parallel to $\mathbf{b}$, so $\overrightarrow{AR} = \lambda\mathbf{b}$ for some scalar $\lambda$. Then:
Through two points $A$ and $B$: take $\mathbf{a} = \overrightarrow{OA}$ and direction $\mathbf{b} = \overrightarrow{AB} = \mathbf{B} - \mathbf{A}$. Then $\lambda = 0$ gives $A$ and $\lambda = 1$ gives $B$. Worked through the hook with $A(1,2,3)$ and $B(4,0,5)$:
- $\mathbf{a} = \langle 1, 2, 3 \rangle$, $\mathbf{b} = \mathbf{B} - \mathbf{A} = \langle 3, -2, 2 \rangle$.
- Vector equation: $\mathbf{r} = \langle 1, 2, 3 \rangle + \lambda \langle 3, -2, 2 \rangle$.
- Check: $\lambda = 0 \Rightarrow \mathbf{r} = \langle 1, 2, 3 \rangle = A$. $\lambda = 1 \Rightarrow \mathbf{r} = \langle 4, 0, 5 \rangle = B$. ✓
- Equally valid: $\mathbf{r} = \langle 4, 0, 5 \rangle + \mu \langle -3, 2, -2 \rangle$ — same line, different $\mathbf{a}$ and $\mathbf{b}$.
Vector equation of a line: $\mathbf{r} = \mathbf{a} + \lambda\mathbf{b}$, $\lambda \in \mathbb{R}$ · $\mathbf{a}$ = position vector of any point on the line; $\mathbf{b}$ = direction vector (any non-zero parallel vector) · Through $A$ and $B$: $\mathbf{b} = \mathbf{B} - \mathbf{A}$, so $\lambda = 0$ gives $A$ and $\lambda = 1$ gives $B$
Pause — copy the vector line equation $\mathbf{r} = \mathbf{a}+\lambda\mathbf{b}$, the roles of $\mathbf{a}$ (point) and $\mathbf{b}$ (direction), and the two-point construction $\mathbf{b} = \mathbf{B}-\mathbf{A}$ into your book.
Quick check: A line passes through $P(2, -1, 4)$ with direction $\mathbf{b} = \langle 1, 3, -2 \rangle$. Which is a valid vector equation of the line?
We just saw the vector equation of a line $\mathbf{r} = \mathbf{a} + \lambda\mathbf{b}$, where $\mathbf{a}$ is any point on the line and $\mathbf{b}$ is the direction vector, with $\lambda = 0$ and $\lambda = 1$ giving the two defining points. That raises a question: two lines with proportional direction vectors might be the same line or distinct parallel lines — how do we tell? This card answers it → check whether any point of one line satisfies the equation of the other; consistent $\lambda$ means same line, no solution means parallel and distinct.
The vector equation of a line is not unique. Two equations $\mathbf{r} = \mathbf{a}_1 + \lambda\mathbf{b}_1$ and $\mathbf{r} = \mathbf{a}_2 + \mu\mathbf{b}_2$ describe the same line iff:
- $\mathbf{b}_1$ and $\mathbf{b}_2$ are parallel: $\mathbf{b}_1 = k\mathbf{b}_2$ for some non-zero $k$, AND
- The point with position vector $\mathbf{a}_2$ lies on the first line (or equivalently $\mathbf{a}_1$ on the second).
If the direction vectors are parallel but neither line contains the other's point, the lines are parallel but distinct. If the direction vectors are not parallel, the lines either intersect or are skew (the latter only in 3D).
Testing if a point $P$ is on a line $\mathbf{r} = \mathbf{a} + \lambda\mathbf{b}$: solve $\mathbf{p} = \mathbf{a} + \lambda\mathbf{b}$ component by component. If all three components give the same $\lambda$, the point lies on the line; otherwise it doesn't.
Lines parallel iff $\mathbf{b}_1 = k\mathbf{b}_2$ for some scalar $k \neq 0$ · Same line: directions parallel AND a point of one lies on the other · Parallel but distinct: directions parallel BUT no shared point · Point-on-line test: solve $\mathbf{p} = \mathbf{a} + \lambda\mathbf{b}$; need consistent $\lambda$ in all three components
Pause — copy the parallel test ($\mathbf{b}_1 = k\mathbf{b}_2$), the same-line test (directions parallel AND a point of one lies on the other), and the point-on-line method (solve $\mathbf{p} = \mathbf{a}+\lambda\mathbf{b}$ for consistent $\lambda$) into your book.
Did you get this? True or false: the lines $\mathbf{r}_1 = \langle 0, 1, 2 \rangle + \lambda \langle 2, -4, 6 \rangle$ and $\mathbf{r}_2 = \langle 1, 0, 0 \rangle + \mu \langle -1, 2, -3 \rangle$ are parallel.
Worked examples · 3 in a row, reveal as you go
Find the vector equation of the line through $P(3, -2, 5)$ parallel to $\mathbf{d} = \langle 4, 1, -3 \rangle$. Verify your equation gives $P$ at $\lambda = 0$.
Find a vector equation of the line through $A(2, 1, -1)$ and $B(5, -1, 3)$. Confirm $\lambda = 1$ gives $B$.
Line $\ell_1: \mathbf{r} = \langle 1, 0, 2 \rangle + \lambda \langle 2, -3, 6 \rangle$. Line $\ell_2: \mathbf{r} = \langle 3, -3, 8 \rangle + \mu \langle -4, 6, -12 \rangle$. Show $\ell_1 \parallel \ell_2$. Are they the same line?
Fill the gap: The vector equation of the line through points $A$ and $B$ can be written $\mathbf{r} = \mathbf{a} + \lambda \cdot$ , where $\lambda \in$ . Setting $\lambda = 1$ gives the point $B$.
Misconceptions to fix · the 3 traps that cost marks
Did you get this? True or false: $\mathbf{r} = \langle 1, 2, 3 \rangle + \lambda \langle 0, 0, 0 \rangle$ is a valid vector equation of a line.
Activities · practice with the ideas
Write a vector equation of the line through $P(0, 4, -1)$ parallel to $\mathbf{d} = \langle 2, 3, -5 \rangle$. State the position vector you obtain when $\lambda = 2$.
Find a vector equation of the line through $A(1, -2, 4)$ and $B(3, 0, -2)$. Verify both $\lambda = 0$ and $\lambda = 1$.
Decide whether $P(7, 4, -5)$ lies on the line $\mathbf{r} = \langle 1, -2, 1 \rangle + \lambda \langle 2, 2, -2 \rangle$. Show your working.
Are the lines $\ell_1: \mathbf{r} = \langle 0, 0, 0 \rangle + \lambda \langle 1, 2, 3 \rangle$ and $\ell_2: \mathbf{r} = \langle 1, 1, 1 \rangle + \mu \langle 2, 4, 6 \rangle$ parallel? Are they the same line?
A line passes through $A(2, 1, 3)$ with direction $\mathbf{b} = \langle 1, -1, 2 \rangle$. Write the position vector of the point on the line where $\lambda = -2$, and sketch the line as $\lambda$ runs over $\mathbb{R}$.
Odd one out: Three of these describe the SAME line as $\mathbf{r} = \langle 1, 0, -1 \rangle + \lambda \langle 2, 1, 3 \rangle$. Which one does NOT?
Earlier you wrote a vector equation for the line through $A(1,2,3)$ and $B(4,0,5)$ and checked which value of $\lambda$ gave $B$.
The standard answer is $\mathbf{r} = \langle 1, 2, 3 \rangle + \lambda \langle 3, -2, 2 \rangle$ with $\lambda = 1$ at $B$. But you could equally start at $B$: $\mathbf{r} = \langle 4, 0, 5 \rangle + \mu \langle -3, 2, -2 \rangle$ — same line, different parametrisation. Recognising that "the equation isn't the line" (many equations encode the same line) is the conceptual shift that unlocks every problem on intersections, parallelism and skewness in Module 14.
Pick your answer, then rate your confidence — that tells the system what to drill next. Each retry pulls a fresh mix from the bank.
Q1. Find a vector equation of the line through $A(2, -1, 4)$ and $B(0, 3, -2)$. (2 marks)
Q2. Decide whether the point $P(5, -3, 7)$ lies on the line $\mathbf{r} = \langle 1, 1, -1 \rangle + \lambda \langle 2, -2, 4 \rangle$. Justify your answer. (3 marks)
Q3. Two lines are given: $\ell_1: \mathbf{r} = \langle 2, 0, 1 \rangle + \lambda \langle 1, -2, 3 \rangle$ and $\ell_2: \mathbf{r} = \langle 4, -4, 7 \rangle + \mu \langle -2, 4, -6 \rangle$. Show that the lines are parallel, and determine whether they coincide. (3 marks)
Comprehensive answers (click to reveal)
Activity answers:
1. $\mathbf{r} = \langle 0, 4, -1 \rangle + \lambda \langle 2, 3, -5 \rangle$. At $\lambda = 2$: $\mathbf{r} = \langle 4, 10, -11 \rangle$.
2. $\mathbf{b} = \mathbf{B} - \mathbf{A} = \langle 2, 2, -6 \rangle$. $\mathbf{r} = \langle 1, -2, 4 \rangle + \lambda \langle 2, 2, -6 \rangle$. $\lambda = 0 \Rightarrow A$ ✓; $\lambda = 1 \Rightarrow \langle 3, 0, -2 \rangle = B$ ✓.
3. Solve component-wise: $7 = 1 + 2\lambda \Rightarrow \lambda = 3$; $4 = -2 + 2\lambda \Rightarrow \lambda = 3$; $-5 = 1 - 2\lambda \Rightarrow \lambda = 3$. All three give $\lambda = 3$, so $P$ lies on the line.
4. $\langle 2, 4, 6 \rangle = 2 \langle 1, 2, 3 \rangle$, so directions are parallel. Test $(1, 1, 1)$ on $\ell_1$: $1 = \lambda$, $1 = 2\lambda \Rightarrow \lambda = \tfrac{1}{2}$ — inconsistent. Lines are parallel but distinct.
5. $\mathbf{r} = \langle 2, 1, 3 \rangle + \lambda \langle 1, -1, 2 \rangle$. At $\lambda = -2$: $\mathbf{r} = \langle 0, 3, -1 \rangle$.
Q1 (2 marks): $\mathbf{b} = \mathbf{B} - \mathbf{A} = \langle -2, 4, -6 \rangle$ [1]. $\mathbf{r} = \langle 2, -1, 4 \rangle + \lambda \langle -2, 4, -6 \rangle$, $\lambda \in \mathbb{R}$ [1].
Q2 (3 marks): Component-wise: $5 = 1 + 2\lambda \Rightarrow \lambda = 2$ [1]; $-3 = 1 - 2\lambda \Rightarrow \lambda = 2$ [1]; $7 = -1 + 4\lambda \Rightarrow \lambda = 2$. All three components yield $\lambda = 2$, so $P$ lies on the line [1].
Q3 (3 marks): $\langle -2, 4, -6 \rangle = -2 \langle 1, -2, 3 \rangle$, so direction vectors are parallel and $\ell_1 \parallel \ell_2$ [1]. Test $(4, -4, 7)$ on $\ell_1$: $4 = 2 + \lambda \Rightarrow \lambda = 2$; $-4 = -2\lambda \Rightarrow \lambda = 2$; $7 = 1 + 3\lambda \Rightarrow \lambda = 2$ [1]. All consistent at $\lambda = 2$, so $(4, -4, 7)$ lies on $\ell_1$. Lines are parallel with a shared point — they coincide [1]. (NESA MEX-V1.)
Five timed questions on vector equations of lines, parallel lines and point-on-line tests. Beat the boss to bank a tier — gold (90% + speed), silver (75%), or bronze (50%). Replays welcome.
⚔ Enter the arenaClimb platforms by answering quick vector-line questions. Lighter alternative to the boss.
Mark lesson as complete
Tick when you've finished the practice and review.