IB Diploma Mathematics AA · Geometry and trigonometry
Vector equations of lines and planes (HL)
1The equation of a line
The vector equation of a line: start at a, move λ steps of b
A line is fixed by a point on it and its direction. Its vector equation is:
$$\mathbf{r} = \mathbf{a} + \lambda\mathbf{b}$$
- $\mathbf{a}$ is the position vector of a known point on the line.
- $\mathbf{b}$ is the direction vector.
- Each value of the parameter $\lambda$ gives a different point.
The same line can be written in parametric form ($x = a_1 + \lambda b_1$, and so on) or Cartesian form:
$$\frac{x - a_1}{b_1} = \frac{y - a_2}{b_2} = \frac{z - a_3}{b_3}$$
Writing and testing a line
- A line passes through $(1, 2, -1)$ with direction $\begin{pmatrix} 2 \\ -1 \\ 3 \end{pmatrix}$.
- $\mathbf{r} = \begin{pmatrix} 1 \\ 2 \\ -1 \end{pmatrix} + \lambda\begin{pmatrix} 2 \\ -1 \\ 3 \end{pmatrix}$.
- Is $(5, 0, 5)$ on it? From $x$: $1 + 2\lambda = 5$, so $\lambda = 2$.
- Check: $y = 2 - 2 = 0$ and $z = -1 + 6 = 5$. Yes, it is on the line.
In kinematics the parameter is time: $\mathbf{r} = \mathbf{r}_0 + t\mathbf{v}$, where $\mathbf{v}$ is the velocity.
Check yourself
In r = a + λb, what does b tell you?
Show the answer
The direction of the line
b is the direction vector.
2How two lines can meet
In 3D, two lines can be:
- Parallel: their direction vectors are multiples of each other.
- Intersecting: they meet at exactly one point.
- Skew: not parallel, and they never meet.
To test, set the two equations equal and solve two of the three component equations. Then check the third.
Do the lines meet?
- $L_1: \mathbf{r} = \begin{pmatrix} 1 \\ 2 \\ 3 \end{pmatrix} + \lambda\begin{pmatrix} 1 \\ -1 \\ 2 \end{pmatrix}$ and $L_2: \mathbf{r} = \begin{pmatrix} 2 \\ 0 \\ 5 \end{pmatrix} + \mu\begin{pmatrix} 0 \\ 1 \\ 0 \end{pmatrix}$.
- $x$: $1 + \lambda = 2$, so $\lambda = 1$.
- $y$: $2 - \lambda = \mu$, so $\mu = 1$.
- $z$: $3 + 2\lambda = 5$ and the right side is $5$. True.
- They intersect at $(2, 1, 5)$. If the $z$ check had failed, the lines would be skew.
The angle between two lines uses their direction vectors: $\cos\theta = \frac{|\mathbf{b}_1 \cdot \mathbf{b}_2|}{|\mathbf{b}_1||\mathbf{b}_2|}$.
Check yourself
Two lines in 3D are not parallel and do not meet. What are they called?
Show the answer
Skew
Skew lines can only happen in three dimensions.
3The equation of a plane
The equation of a plane: the normal n is perpendicular to every line in it
A plane is fixed by a point on it and a normal vector $\mathbf{n}$, which is perpendicular to the plane.
$$\mathbf{r} \cdot \mathbf{n} = \mathbf{a} \cdot \mathbf{n}$$
In Cartesian form this is $ax + by + cz = d$, where $\begin{pmatrix} a \\ b \\ c \end{pmatrix}$ is the normal.
A plane can also be written as $\mathbf{r} = \mathbf{a} + \lambda\mathbf{b} + \mu\mathbf{c}$, using two directions that lie in it. The normal is then $\mathbf{b} \times \mathbf{c}$.
A plane through three points
- Find the plane through $A(1, 0, 0)$, $B(0, 2, 0)$ and $C(0, 0, 3)$.
- $\overrightarrow{AB} = \begin{pmatrix} -1 \\ 2 \\ 0 \end{pmatrix}$ and $\overrightarrow{AC} = \begin{pmatrix} -1 \\ 0 \\ 3 \end{pmatrix}$.
- Normal: $\overrightarrow{AB} \times \overrightarrow{AC} = \begin{pmatrix} 6 \\ 3 \\ 2 \end{pmatrix}$.
- Using $A$: $6(1) + 3(0) + 2(0) = 6$.
- The plane is $6x + 3y + 2z = 6$. Check $B$: $6$. Check $C$: $6$.
Check yourself
In the plane 2x − y + 3z = 4, what is a normal vector?
Show the answer
(2, −1, 3)
The coefficients of x, y and z form the normal.
4Lines meeting planes, and angles
To find where a line meets a plane, substitute the line's parametric form into the plane's equation and solve for $\lambda$.
Intersection of a line and a plane
- Line: $x = 1 + 2\lambda$, $y = 2 - \lambda$, $z = -1 + 3\lambda$. Plane: $2x - y + 3z = 4$.
- $2(1 + 2\lambda) - (2 - \lambda) + 3(-1 + 3\lambda) = 4$.
- $14\lambda - 3 = 4$, so $\lambda = 0.5$.
- Point: $(2, 1.5, 0.5)$.
Angles use the normal:
- Line and plane: $\sin\theta = \frac{|\mathbf{b} \cdot \mathbf{n}|}{|\mathbf{b}||\mathbf{n}|}$. It is sine because the normal is at $90°$ to the plane.
- Two planes: $\cos\theta = \frac{|\mathbf{n}_1 \cdot \mathbf{n}_2|}{|\mathbf{n}_1||\mathbf{n}_2|}$.
- Two planes that are not parallel meet in a line with direction $\mathbf{n}_1 \times \mathbf{n}_2$.
Angle between a line and a plane
- Direction $\mathbf{b} = \begin{pmatrix} 1 \\ 1 \\ 0 \end{pmatrix}$, plane normal $\mathbf{n} = \begin{pmatrix} 2 \\ -1 \\ 3 \end{pmatrix}$.
- $\mathbf{b} \cdot \mathbf{n} = 2 - 1 + 0 = 1$.
- $\sin\theta = \frac{1}{\sqrt{2}\sqrt{14}} = 0.189$, so $\theta = 10.9°$.
Check yourself
Why does the angle between a line and a plane use sine instead of cosine?
Show the answer
Because the normal is perpendicular to the plane
The angle with the normal is 90° minus the angle with the plane.
5Shortest distance from a point to a line
The shortest distance from a point to a line is along the perpendicular.
Point $P(5, 1, 3)$, line $\mathbf{r} = \begin{pmatrix} 1 \\ 0 \\ 0 \end{pmatrix} + \lambda\begin{pmatrix} 1 \\ 1 \\ 1 \end{pmatrix}$
- A general point on the line: $Q(1 + \lambda, \lambda, \lambda)$.
- $\overrightarrow{QP} = \begin{pmatrix} 4 - \lambda \\ 1 - \lambda \\ 3 - \lambda \end{pmatrix}$.
- Perpendicular to the direction: $(4 - \lambda) + (1 - \lambda) + (3 - \lambda) = 0$, so $\lambda = \frac{8}{3}$.
- $\overrightarrow{QP} = \begin{pmatrix} \frac{4}{3} \\ -\frac{5}{3} \\ \frac{1}{3} \end{pmatrix}$, with length $\sqrt{\frac{16 + 25 + 1}{9}} = \frac{\sqrt{42}}{3} \approx 2.16$.
Check yourself
Why set the dot product of $\overrightarrow{QP}$ and the direction vector to zero?
Show the answer
The shortest distance is along a perpendicular
Perpendicular means shortest.
6Cartesian equation of a plane
A plane with normal $\mathbf{n} = \begin{pmatrix} a \\ b \\ c \end{pmatrix}$ through point $A$ has equation $ax + by + cz = d$, where $d = \mathbf{n} \cdot \mathbf{a}$.
Plane through $(1, 2, 3)$ with normal $\begin{pmatrix} 2 \\ -1 \\ 4 \end{pmatrix}$
- $d = 2(1) - 1(2) + 4(3) = 12$.
- Equation: $2x - y + 4z = 12$.
- Check another point: $(6, 0, 0)$ gives $12$, so it lies on the plane.
Check yourself
What is the normal vector of the plane $3x + 2y - z = 7$?
Show the answer
$\begin{pmatrix} 3 \\ 2 \\ -1 \end{pmatrix}$
The coefficients of $x$, $y$, $z$.
Now test yourself
This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.
Practise in Impera