Working out equations of a line and calculating gradient

Part of MathsAlgebra

Key points about equations of a line and calculating gradient

An information box with 3 lightbulbs and lines imitating text

           

  • The general equation of a straight line is 𝑦 = 𝑚𝑥 + 𝑐.
  • 𝑚 is the and is the change in 𝑦-coordinates ÷ the change in 𝑥-coordinates.
  • 𝑐 is the and shows where the line crosses the 𝑦-axis.

Revise plotting straight line graphs to make sure you are confident with the link between equations and coordinates.

Back to top

Video – Finding the gradient

Watch this video to find out how to determine if a straight line graph has a positive or negative gradient and how to calculate the gradient of a line.

Back to top

Check your understanding

Back to top

Equation of a line from a graph

The general equation of a straight line is 𝑦 = 𝑚𝑥 + 𝑐.

  • 𝑚 is the gradient of the line. 𝑚 is the of 𝑥.

    • The gradient shows how much the line goes up or down (vertical change) for every 1 unit it goes across (horizontal change).
    • Gradient is calculated as
      change in 𝑦 ÷ change in 𝑥.
    • A gradient of 8 is steeper than a gradient of 3.
    • A negative value of 𝑚 shows the line has a downward slope.
    • A gradient of –8 is steeper than a gradient of –3.
  • 𝑐 is the 𝑦-intercept of the line. The 𝑦-intercept shows where the line crosses the 𝑦-axis.

Remember

           

Remember:

If the equation does not have 𝑦 as the , the equation needs to be before finding the values of 𝑚 and 𝑐.

Follow the working out below

Check your understanding

GCSE exam-style questions

A pen and a piece of paper with question marks on it.
  1. The equation of a straight line is 𝑦 = 7 – 2𝑥.

What is the gradient and 𝑦-intercept of the line?

  1. What is the equation of the line?

  1. What is the equation of the line?

Back to top

Equation of a line from a graph – interactive activity

Working with the general equation of a straight line, 𝑦 = 𝑚𝑥 + 𝑐, use the interactive activity to see what a graph looks like when plotted.

Select values for 𝑚, the gradient, and 𝑐, the intercept, to create a straight line.

Back to top

Equation of a line between two points

The equation of a line is 𝑦 = 𝑚𝑥 + 𝑐 where 𝑚 is the and 𝑐 is the .

To find the equation of a line from two points, follow these steps:

  • Find the gradient by calculating change in 𝑦-coordinates ÷ change in 𝑥-coordinates.
  • the gradient for 𝑚 in the equation 𝑦 = 𝑚𝑥 + 𝑐.
  • Substitute the 𝑥 and 𝑦-coordinate of one of the points into the equation.
  • the equation to find the value of 𝑐.
  • Write the final equation using the found gradient and 𝑦-intercept.

GCSE exam-style questions

A pen and a piece of paper with question marks on it.
  1. Find the equation of the line that has a gradient of 3 and goes through the point (2, 5).

  1. Find the equation of the line that goes through the points (0, 3) and (2, 6).

  1. Find the gradient of the line between the points (– 6, 2) and (3, 5).

Back to top

Quiz – Equations of a line and calculating gradient

Practise what you have learned about equations of a line and calculating gradient with this quiz.

Now that you have revised how to work out equations of a line and calculate gradient, why not look at equations of parallel and perpendicular lines?

Back to top