Lesson 5

Equation of a line

We will look at different ways of finding the equation of a line depending on what information is given.

  • Gradient-intercept
  • Point and gradient
  • Two points

Gradient and y intercept

To help with your understanding of the connection between the equation of a line, its gradient (slope) and the y intercept, view the following two videos:

Gradient–intercept form \( y =mx+c \)

where m is the gradient and c is the y intercept.

  • If a line is horizontal the gradient is zero. Examples: \( y=3, \ y=-4 \)
  • If a line is vertical the gradient is undefined. Examples: \( x=10, \ x=-1 \)

Point and gradient

\( A(x_1, \ y_1) \) is the given point on the line and \( P(x, \ y) \) is another point on the line.

\( m = \displaystyle\frac{y-y_1}{x-x_1} \)

Now rearrange the equation to get

\( y-y_1=m(x-x_1) \)

Diagram 1

© State of Victoria (DE) Virtual School Victoria, made with GeoGebra®.

Point–gradient form

\( y-y_1=m(x-x_1) \)

where \( m \) is the gradient and \( x_1, \ y_1 \) is a point on the line.

Example 14

Find the equation of a line that is parallel to the line \( y=3x-7 \) and passes through the point \( (2, \ 11) \).

Written Solution

If the line is parallel to \( y=3x-7 \), then \( m=3 \).

\( (x_1, \ y_1)=(2, \ 11) \)

Using the point gradient form:

\( \begin{eqnarray} y-y_1 &=& m(x-x_1) \\ y-11 &=& 3(x-2) \\ y-11 &=& 3x-6 \\ y &=& 3x-6+11 \\ y &=& 3x+5 \end{eqnarray} \)

Video Solution

Two points

In this case we are given two points that lie on the line.

Firstly find the gradient of the line using the two given points \( A(x_1, \ y_1) \) and \( B(x_2, \ y_2) \).

\( m = \displaystyle\frac{y_2-y_1}{x_2-x_1} \)

Then use the point-gradient form to find the equation.

\( y-y_1 = m(x-x_1) \)

Diagram 2

© State of Victoria (DE) Virtual School Victoria, made with GeoGebra®.

Summary

gradient-intercept point and gradient two points

\( y=mx+c \)

gradient: \( m \)

y-intercept: \( c \)

\( y-y_1 = m(x-x_1) \)

gradient: \( m \)

point: \( (x_1, \ y_1) \)

\( \begin{eqnarray} m &=& \displaystyle\frac{y_2-y_1}{x_2-x_1} \\ y-y_1 &=& m(x-x_1) \end{eqnarray} \)

gradient: \( m \)

points: \( (x_1, \ y_1) \) and \( (x_2, \ y_2) \)