Vector Equations of Lines in 2D
A GPS navigation app doesn't store a line as $y = mx + c$, it stores a point and a direction. That's the power of the vector form $\mathbf{r} = \mathbf{a} + \lambda\mathbf{d}$: one equation encodes any point on a line by scaling a direction vector. In this lesson you'll derive this form, convert freely between vector, parametric and Cartesian representations, and use it to solve geometrical problems with confidence.
A line passes through $(2,5)$ with direction vector $\mathbf{d} = \begin{pmatrix}3\\-1\end{pmatrix}$. Without using any formulawrite down three points you believe lie on this line and explain your reasoning.
In Cartesian geometry a line is defined by its slope and intercept. In vector geometry a line is defined by a fixed point on the line plus a direction it travels. Every point on the line is reached by starting at $\mathbf{a}$ and travelling a scalar multiple $\lambda$ of the direction vector $\mathbf{d}$:
If $\mathbf{a}$ is a known position vector and $\mathbf{d}$ is a non-zero direction vector parallel to the line, then the position vector $\mathbf{r}$ of any point on the line satisfies:
$\mathbf{r} = \mathbf{a} + \lambda\mathbf{d}, \quad \lambda \in \mathbb{R}$
As $\lambda$ ranges over all real numbers, $\mathbf{r}$ traces out every point on the line.
Key facts
- Vector equation: $\mathbf{r} = \mathbf{a} + \lambda\mathbf{d}$, $\lambda \in \mathbb{R}$
- Parametric form: $x = a_1 + \lambda d_1$, $y = a_2 + \lambda d_2$
- Cartesian form: $\dfrac{x - a_1}{d_1} = \dfrac{y - a_2}{d_2}$ (when $d_1, d_2 \neq 0$)
Concepts
- Why $\lambda$ acts as a "time" parameter traversing the line
- The connection between the direction vector and the Cartesian gradient
- Why the vector equation is not unique but the line it defines is
Skills
- Write the vector equation from a point and a direction
- Convert between vector, parametric and Cartesian forms
- Determine whether a given point lies on a line
To write the vector equation of a line in 2D, you need two pieces of information: a point on the line and a direction vector.
Deriving the equation: Suppose the line passes through point $A$ with position vector $\mathbf{a} = \begin{pmatrix}a_1\\a_2\end{pmatrix}$ and is parallel to vector $\mathbf{d} = \begin{pmatrix}d_1\\d_2\end{pmatrix}$.
For any point $P$ with position vector $\mathbf{r}$ on the line, the vector $\overrightarrow{AP} = \mathbf{r} - \mathbf{a}$ must be parallel to $\mathbf{d}$. Two vectors are parallel if and only if one is a scalar multiple of the other, so:
Example: Line through $(1, 3)$ with direction $\begin{pmatrix}2\\-1\end{pmatrix}$:
$\mathbf{r} = \begin{pmatrix}1\\3\end{pmatrix} + \lambda\begin{pmatrix}2\\-1\end{pmatrix}$
Check card 01, when $\lambda=1$: $(1+2, 3-1) = (3,2)$. When $\lambda=-1$: $(-1, 4)$. Both are on the line.
To write the vector equation of a line in 2D, you need two pieces of information: a point on the line and a direction vector .
Pause, copy the vector equation $\mathbf{r}=\mathbf{a}+\lambda\mathbf{d}$ with the geometric meaning ($\mathbf{a}$ = position, $\mathbf{d}$ = direction, $\lambda$ = scalar parameter) into your book.
Quick check: A line passes through the point $(4, -1)$ with direction vector $\begin{pmatrix}1\\3\end{pmatrix}$. Which of the following is the correct vector equation?
We just saw that the vector equation of a line through point $\mathbf{a}$ with direction $\mathbf{d}$ is $\mathbf{r}=\mathbf{a}+\lambda\mathbf{d}$, $\lambda\in\mathbb{R}$. That raises a question: how do you convert this vector form to parametric equations by equating individual components? This card answers it → equate $x$ and $y$ components separately: $x=a_1+\lambda d_1$ and $y=a_2+\lambda d_2$ give the parametric form.
Writing the vector equation $\mathbf{r} = \begin{pmatrix}a_1\\a_2\end{pmatrix} + \lambda\begin{pmatrix}d_1\\d_2\end{pmatrix}$ component by component gives the parametric form:
This is useful when you need to find specific coordinates or test whether a point lies on the line.
Example: For $\mathbf{r} = \begin{pmatrix}2\\5\end{pmatrix} + \lambda\begin{pmatrix}3\\-1\end{pmatrix}$, the parametric equations are:
$x = 2 + 3\lambda, \quad y = 5 - \lambda$
Does $(8, 3)$ lie on this line? Set $8 = 2 + 3\lambda \Rightarrow \lambda = 2$. Check: $y = 5 - 2 = 3$ ✓. Yes, $(8,3)$ lies on the line (at $\lambda = 2$).
Writing the vector equation $\mathbf{r} = \begin{pmatrix}a_1\\a_2\end{pmatrix} + \lambda\begin{pmatrix}d_1\\d_2\end{pmatrix}$ component by component gives the parametric form :
Pause, copy the parametric form: $x=a_1+\lambda d_1$, $y=a_2+\lambda d_2$ (2D); explain how varying $\lambda$ moves along the line into your book.
Did you get this? True or false: The point $(5, 3)$ lies on the line $\mathbf{r} = \begin{pmatrix}2\\5\end{pmatrix} + \lambda\begin{pmatrix}3\\-1\end{pmatrix}$.
Worked examples · 3 in a row, reveal as you go
Find the vector equation of the line passing through $A(3, -2)$ and $B(7, 4)$.
Convert $\mathbf{r} = \begin{pmatrix}1\\4\end{pmatrix} + \lambda\begin{pmatrix}2\\-3\end{pmatrix}$ to Cartesian form.
Does $P(11, 1)$ lie on the line $\mathbf{r} = \begin{pmatrix}-1\\7\end{pmatrix} + \lambda\begin{pmatrix}4\\-2\end{pmatrix}$?
Fill the gap: The Cartesian form of a line is obtained by writing the parametric equations, solving each for $\lambda$, then the two expressions.
Misconceptions to fix · the 3 traps that cost marks
Did you get this? True or false: The line with direction vector $\begin{pmatrix}0\\5\end{pmatrix}$ passing through $(3, 1)$ has Cartesian equation $x = 3$.
Activities · practice with the ideas
Write the vector equation of the line through $(-2, 6)$ with direction $\begin{pmatrix}5\\-3\end{pmatrix}$.
Find the vector equation of the line passing through $P(0, 4)$ and $Q(3, -2)$. State the parametric form as well.
Convert $\mathbf{r} = \begin{pmatrix}3\\1\end{pmatrix} + \lambda\begin{pmatrix}4\\-5\end{pmatrix}$ to Cartesian form.
Determine whether the point $(7, -4)$ lies on the line $\mathbf{r} = \begin{pmatrix}1\\2\end{pmatrix} + \lambda\begin{pmatrix}2\\-2\end{pmatrix}$.
A line has Cartesian equation $\dfrac{x-2}{3} = \dfrac{y+1}{4}$. Write it as a vector equation.
Odd one out: Three of these are valid vector equations for the same line through $(1,2)$ with direction $\begin{pmatrix}3\\1\end{pmatrix}$. Which one is NOT?
Earlier you were asked to find three points on the line through $(2,5)$ with direction $\begin{pmatrix}3\\-1\end{pmatrix}$.
Using the parametric form $x = 2+3\lambda$, $y = 5-\lambda$: at $\lambda=0$ you get $(2,5)$, at $\lambda=1$ you get $(5,4)$, at $\lambda=-1$ you get $(-1,6)$. The key insight is that you simply add integer multiples of the direction vector to your anchor point, there is nothing more to it than that.
Pick your answer, then rate your confidencethat tells the system what to drill next.
Q1. Find the vector equation of the line passing through $A(2,-3)$ and $B(6, 1)$. (2 marks)
Q2. Convert the vector equation $\mathbf{r} = \begin{pmatrix}-1\\3\end{pmatrix} + \lambda\begin{pmatrix}5\\-2\end{pmatrix}$ to Cartesian form. Hence find the gradient and $y$-intercept of the line. (3 marks)
Q3. The line $\ell$ has equation $\mathbf{r} = \begin{pmatrix}4\\0\end{pmatrix} + \lambda\begin{pmatrix}2\\3\end{pmatrix}$. Find the value of $k$ such that the point $(k, 6)$ lies on $\ell$. (3 marks)
Comprehensive answers (click to reveal)
Activity answers:
1. $\mathbf{r} = \begin{pmatrix}-2\\6\end{pmatrix} + \lambda\begin{pmatrix}5\\-3\end{pmatrix}$
2. $\mathbf{d} = Q-P = \begin{pmatrix}3\\-6\end{pmatrix}$; $\mathbf{r} = \begin{pmatrix}0\\4\end{pmatrix} + \lambda\begin{pmatrix}3\\-6\end{pmatrix}$; parametric: $x = 3\lambda$, $y = 4 - 6\lambda$
3. Parametric: $x = 3+4\lambda$, $y = 1-5\lambda$. Solve each for $\lambda$: $\lambda = \dfrac{x-3}{4}$, $\lambda = \dfrac{y-1}{-5}$. Cartesian: $\dfrac{x-3}{4} = \dfrac{y-1}{-5}$, i.e. $5x + 4y = 19$.
4. $x = 1+2\lambda$; set $x=7$: $\lambda=3$. Check $y$: $2-2(3) = -4$ ✓. Yes, $(7,-4)$ lies on the line.
5. Read off: $\mathbf{a} = \begin{pmatrix}2\\-1\end{pmatrix}$, $\mathbf{d} = \begin{pmatrix}3\\4\end{pmatrix}$. So $\mathbf{r} = \begin{pmatrix}2\\-1\end{pmatrix} + \lambda\begin{pmatrix}3\\4\end{pmatrix}$.
Q1 (2 marks): $\mathbf{d} = \begin{pmatrix}4\\4\end{pmatrix}$ [1]. $\mathbf{r} = \begin{pmatrix}2\\-3\end{pmatrix} + \lambda\begin{pmatrix}4\\4\end{pmatrix}$ (or simplified direction $\begin{pmatrix}1\\1\end{pmatrix}$) [1].
Q2 (3 marks): Parametric: $x = -1+5\lambda$, $y = 3-2\lambda$ [1]. Solve: $\lambda = \dfrac{x+1}{5} = \dfrac{y-3}{-2}$ [1]. Cartesian: $\dfrac{x+1}{5} = \dfrac{y-3}{-2}$, i.e. $2x + 5y = 13$, so $y = -\tfrac{2}{5}x + \tfrac{13}{5}$; gradient $= -\tfrac{2}{5}$, $y$-intercept $= \tfrac{13}{5}$ [1].
Q3 (3 marks): Set $y = 6$: $0 + 3\lambda = 6 \Rightarrow \lambda = 2$ [1]. Substitute: $x = 4 + 2(2) = 8$ [1]. So $k = 8$ [1].
Five timed questions. Beat the boss to bank a tier, gold (90% + speed), silver (75%), or bronze (50%). Replays welcome.
⚔ Enter the arenaClimb platforms by answering vector equations of lines questions. Lighter alternative to the boss.
Mark lesson as complete
Tick when you've finished the practice and review.