Skip to content
M
hscscience Ext 2 · Y12
0/100daily goal
0
0
0 due
0
L1 · 0 XP
KJ
Your weak spots
Insights load after your first practice round.
Module 14 · L05 of 12 ~40 min ⚡ +90 XP available

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.

Today's hook — A line passes through $A(1,2,3)$ and $B(4,0,5)$. Before reading on, write a vector equation in the form $\mathbf{r} = \mathbf{a} + \lambda\mathbf{b}$. Then check: what value of $\lambda$ gives $B$? Could you have chosen $\mathbf{a}$ differently? Compare your answers after card 05.
0/5QUESTS
01
Recall — your gut answer first
+5 XP warm-up

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.

auto-saved
02
The two moves for any 3D line
+5 XP to read

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}$.

Point a Direction b Slide λ ∈ ℝ + × r = a + λb traces every point on the line
$\mathbf{r} = \mathbf{a} + \lambda\mathbf{b}, \quad \lambda \in \mathbb{R}$
$\mathbf{a}$ is any point
Two different students can pick different starting points yet write the same line. The equation isn't unique — only the line is.
$\mathbf{b}$ is any non-zero scalar multiple
$\mathbf{b}$ and $2\mathbf{b}$ describe the same direction. Two lines are parallel iff their direction vectors are scalar multiples of each other.
$\lambda$ is a parameter, not a coordinate
As $\lambda$ runs over $\mathbb{R}$, the tip of $\mathbf{r}$ traces every point on the line. $\lambda = 0$ returns the starting point $\mathbf{a}$.
03
What you'll master
Know

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$
Understand

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
Can do

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
04
Key terms
Position vector ($\mathbf{a}$)The vector $\overrightarrow{OA}$ from the origin to a point $A$ on the line. Any point on the line works.
Direction vector ($\mathbf{b}$)Any non-zero vector parallel to the line. Determines the line's orientation but not its location.
Parameter ($\lambda$)A real scalar. As $\lambda$ varies over $\mathbb{R}$, the tip of $\mathbf{r}$ traces every point on the line.
Vector equation$\mathbf{r} = \mathbf{a} + \lambda\mathbf{b}$, where $\mathbf{r}$ is the position vector of a general point on the line.
Parallel linesTwo lines are parallel iff their direction vectors satisfy $\mathbf{b}_1 = k\mathbf{b}_2$ for some scalar $k \neq 0$.
Skew linesLines in 3D that are not parallel and do not intersect. Possible only in three or more dimensions.
MEX-V1NESA outcome (Further Work with Vectors): applies vectors to describe lines and planes in three dimensions, including the vector equation of a line.
05
Building $\mathbf{r} = \mathbf{a} + \lambda\mathbf{b}$
core concept

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:

$$\mathbf{r} = \overrightarrow{OR} = \overrightarrow{OA} + \overrightarrow{AR} = \mathbf{a} + \lambda\mathbf{b}, \quad \lambda \in \mathbb{R}$$

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}$.
Connecting to geometry. The equation says "start at $\mathbf{a}$, then walk along $\mathbf{b}$ for $\lambda$ steps". $\lambda > 0$ walks one way; $\lambda < 0$ walks the other; $\lambda \in \mathbb{R}$ covers the full infinite line.

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?

06
Parallel lines and non-uniqueness
core concept

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).

$$\text{Lines parallel} \iff \mathbf{b}_1 = k\mathbf{b}_2 \;\text{for some}\; k \neq 0$$

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.

Common mistake. "The direction vectors look different, so the lines must be different." Not necessarily — $\langle 2, 4, -6 \rangle$ and $\langle 1, 2, -3 \rangle$ are parallel because one is twice the other. Always check for a scalar multiple.

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.

PROBLEM 1 · LINE THROUGH POINT WITH DIRECTION

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$.

1
Identify $\mathbf{a}$ and $\mathbf{b}$: $\mathbf{a} = \langle 3, -2, 5 \rangle$ (the position vector of $P$), $\mathbf{b} = \langle 4, 1, -3 \rangle$ (the given direction).
Pin down what role each given quantity plays. The point becomes $\mathbf{a}$; the parallel vector becomes $\mathbf{b}$.
PROBLEM 2 · LINE THROUGH TWO POINTS

Find a vector equation of the line through $A(2, 1, -1)$ and $B(5, -1, 3)$. Confirm $\lambda = 1$ gives $B$.

1
Choose $\mathbf{a} = \overrightarrow{OA} = \langle 2, 1, -1 \rangle$.
Either point can serve as $\mathbf{a}$. Take $A$ for definiteness; this makes $\lambda = 1$ correspond to $B$.
PROBLEM 3 · PARALLEL LINES AND POINT-ON-LINE TEST

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?

1
Compare directions: $\langle -4, 6, -12 \rangle = -2 \langle 2, -3, 6 \rangle$. So the direction vectors are scalar multiples, hence the lines are parallel.
Lines are parallel iff one direction is a scalar multiple of the other. Test by dividing matching components.

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$.

Trap 01
Confusing position and direction
In $\mathbf{r} = \mathbf{a} + \lambda\mathbf{b}$, $\mathbf{a}$ is a point on the line and $\mathbf{b}$ is a direction. Writing $\mathbf{r} = \mathbf{b} + \lambda\mathbf{a}$ describes a different line. Always anchor the constant term to a known point on the line.
Trap 02
Direction sign error: $\mathbf{B} - \mathbf{A}$ vs $\mathbf{A} - \mathbf{B}$
$\overrightarrow{AB} = \mathbf{B} - \mathbf{A}$ (head minus tail), not $\mathbf{A} - \mathbf{B}$. The sign flip gives an anti-parallel direction — same line, but $\lambda = 1$ no longer corresponds to $B$. Setting the wrong sign is the most common loss-of-marks error.
Trap 03
Forgetting that the equation is non-unique
If your answer to a "find the equation" question differs from the marking scheme, check whether your direction is a scalar multiple of theirs and whether your point lies on their line. Both can be correct.

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.

Work mode · how are you completing this lesson?
1

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$.

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$.

3

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.

4

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?

5

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?

11
Revisit your thinking

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.

auto-saved
01
Multiple choice
+5 XP per correct · +25 XP all-correct

Pick your answer, then rate your confidence — that tells the system what to drill next. Each retry pulls a fresh mix from the bank.

02
Short answer
ApplyBand 32 marks

Q1. Find a vector equation of the line through $A(2, -1, 4)$ and $B(0, 3, -2)$. (2 marks)

auto-saved
ApplyBand 43 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)

auto-saved
AnalyseBand 53 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)

auto-saved
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.)

01
Boss battle · The 3D Cartographer
earn bronze · silver · gold

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 arena
02
Science Jump · platform challenge

Climb 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.

🎓
Want help with Equation of a Line in 3D — Vector Form?

Work through this topic 1-on-1 with an experienced HSC tutor.

Book a free session →