Menu
Sign up Sign in

AI HL · AHL 4

Vectors

AHL 4.8

The vector equation of a line

AHL 4.8

The vector equation of a line

Target: I can find a vector equation of the line through two points. (+4 more)

By the end of this section

Key points

The two forms

  • Point and direction: \(\mathbf{r}=\mathbf{a}+\lambda\mathbf{d}\). \(\mathbf{a}\) is the position vector of a point on the line and \(\mathbf{d}\) is a direction vector.
  • Through two points A and B: use \(\mathbf{d}=\overrightarrow{AB}=\mathbf{b}-\mathbf{a}\), so \(\mathbf{r}=\mathbf{a}+\lambda(\mathbf{b}-\mathbf{a})\). Here \(\lambda=0\) gives A and \(\lambda=1\) gives B.
  • \(\mathbf{b}-\mathbf{a}\) is end minus start. \(\overrightarrow{BA}\) points the other way.

Many equations, one line

  • You can start from A or from B, and use \(\overrightarrow{AB}\), \(\overrightarrow{BA}\) or any multiple of them as the direction.
  • The same point on the line then has a different \(\lambda\) in each equation. Do not compare \(\lambda\) values between different equations.
  • In two dimensions the direction vector \((p, q)\) gives gradient \(q \div p\).

Is a point on the line?

  • Put \(\mathbf{r}\) equal to the point and write one equation for each component.
  • Solve one equation for \(\lambda\). Then check the value in all the other equations.
  • If every equation is satisfied, the point is on the line. If even one fails, it is not.

Explore: the line r = a + λd

Drag the point A, then the tip of the direction vector d (orange). Move λ and watch R slide along the line.

The points snap to whole numbers. Select one (Tab) and use the arrow keys to move it.

  1. What is λ at the point A? What is λ at the tip of d? Why?
  2. Make d point the other way along the same line. Does the line change? Does the point R at λ = 1.5 change?
  3. Make the first entry of d zero. What do the parametric equations look like, and what does the line look like?
  4. Show the other equation. Why is the same point R given by a different value of λ and μ? Is it right to compare λ with μ?

Worked examples

Problems like the ones in class. Pick one, try it, then open the working.
A line through two points

Find a vector equation of the line through A(4, −1, 2) and B(−2, 3, 8). Enter the second component of the direction vector \(\overrightarrow{AB}\).

Working
  1. The direction

    \(\overrightarrow{AB}=\mathbf{b}-\mathbf{a}=\begin{pmatrix}-2\\3\\8\end{pmatrix}-\begin{pmatrix}4\\-1\\2\end{pmatrix}=\begin{pmatrix}-6\\4\\6\end{pmatrix}\)

    End minus start gives a vector along the line.

  2. The equation

    \(\mathbf{r}=\begin{pmatrix}4\\-1\\2\end{pmatrix}+\lambda\begin{pmatrix}-6\\4\\6\end{pmatrix}\)

    Use A as the starting point. \(\lambda=0\) gives A and \(\lambda=1\) gives B.

  3. Check B

    \(\lambda=1:\ \begin{pmatrix}4\\-1\\2\end{pmatrix}+\begin{pmatrix}-6\\4\\6\end{pmatrix}=\begin{pmatrix}-2\\3\\8\end{pmatrix}\)

    The line reaches B at \(\lambda=1\), so the equation is right.

Video walkthrough coming
A point on the line

The line through A(3, 0, −2) and B(1, 4, 4) has equation \(\mathbf{r}=\begin{pmatrix}3\\0\\-2\end{pmatrix}+\lambda\begin{pmatrix}-2\\4\\6\end{pmatrix}\). Determine whether C(2, 2, 1) lies on the line. Find the value of \(\lambda\) at C.

Working
  1. Equate components

    Put \(\mathbf{r}=\mathbf{c}\) and compare components: \((1)\ \ 3-2\lambda=2\); \((2)\ \ 4\lambda=2\); \((3)\ \ -2+6\lambda=1\)

    Each component of the point must match.

  2. Find λ

    From equation (1): \(\lambda=\frac{1}{2}\)

    Use any one equation to find \(\lambda\).

  3. Check the others

    Check (2): \(4(\frac{1}{2})=2\) and this equals \(2\). Check (3): \(-2+6(\frac{1}{2})=1\) and this equals \(1\).

    The value must work in every component.

  4. Conclusion

    All three equations are satisfied, so the point is on the line.

    Write the conclusion in words.

Video walkthrough coming
A point not on the line

Use the same line \(\mathbf{r}=\begin{pmatrix}3\\0\\-2\end{pmatrix}+\lambda\begin{pmatrix}-2\\4\\6\end{pmatrix}\). Determine whether D(0, 6, 1) lies on the line. Find the value of \(\lambda\) from the first equation.

Working
  1. Equate components

    Put \(\mathbf{r}=\mathbf{c}\) and compare components: \((1)\ \ 3-2\lambda=0\); \((2)\ \ 4\lambda=6\); \((3)\ \ -2+6\lambda=1\)

    Same line, new point.

  2. Find λ

    From equation (1): \(\lambda=\frac{3}{2}\)

    Take \(\lambda\) from the first equation.

  3. Check the others

    Check (2): \(4(\frac{3}{2})=6\) and this equals \(6\). Check (3): \(-2+6(\frac{3}{2})=7\), but the equation needs \(1\). Not equal.

    The second works but the third does not.

  4. Conclusion

    The values do not satisfy every equation, so the point is not on the line.

    One failed equation is enough. D is not on the line.

Video walkthrough coming
From a point and a direction

A line passes through the point (2, −1, 5) and has direction vector \(\begin{pmatrix}3\\0\\-2\end{pmatrix}\). Write down a vector equation of the line. Find the x-coordinate of the point where \(\lambda=2\).

Working
  1. The equation

    \(\mathbf{r}=\begin{pmatrix}2\\-1\\5\end{pmatrix}+\lambda\begin{pmatrix}3\\0\\-2\end{pmatrix}\)

    Put the point as \(\mathbf{a}\) and the direction as \(\mathbf{d}\).

  2. Put in λ = 2

    \(\mathbf{r}=\begin{pmatrix}2\\-1\\5\end{pmatrix}+2\begin{pmatrix}3\\0\\-2\end{pmatrix}=\begin{pmatrix}8\\-1\\1\end{pmatrix}\)

    Multiply the direction by 2, then add.

  3. The coordinates

    The point is (8, −1, 1)

    The y-coordinate stays at −1 because the direction has 0 there.

Video walkthrough coming
A line in two dimensions

Find a vector equation of the line through (2, 7) and (6, 1). Hence find the gradient of the line.

123456782468xy
Working
  1. The direction

    \(\mathbf{b}-\mathbf{a}=\begin{pmatrix}6\\1\end{pmatrix}-\begin{pmatrix}2\\7\end{pmatrix}=\begin{pmatrix}4\\-6\end{pmatrix}\)

    The same method works with two components.

  2. The equation

    \(\mathbf{r}=\begin{pmatrix}2\\7\end{pmatrix}+\lambda\begin{pmatrix}4\\-6\end{pmatrix}\)

    Start at the first point.

  3. The gradient

    \(\text{gradient}=\dfrac{-6}{4}=-1.5\)

    A direction vector \((p, q)\) means gradient \(q \div p\). Any multiple of the direction gives the same gradient.

Video walkthrough coming