3.5 · CorePaper 1Paper 2Paper 3Paper 4

Equations of linear graphs

In a minute

Every straight line except a vertical one has an equation y=mx+cy = mx + c. Here mm is the and cc is the , where the line crosses the yy-axis. You'll read mm and cc from an equation and find the from its graph.

You'll be able to

  • Write down the gradient and of a line from its equation y=mx+cy = mx + c.
  • Find where a line crosses the xx-axis and the yy-axis.
  • Find the equation of a line from its graph, including horizontal and vertical lines.
  • Say what mm and cc mean on a real-life graph.
  • Find the equation of the line through two points.
  • Read and give equations in other forms, such as 2x+5y=152x + 5y = 15.
Before you start2 quick questions on what this builds on
Check yourself
A straight line goes down 44 for every 22 across, from left to right. Find its gradient.
Check yourself
Solve 3x+15=03x + 15 = 0.

Revise first: 2.5 Equations and 3.3 Gradient of linear graphs

Gradient and y-intercept from an equation

Look at the line y=2x+3y = 2x + 3. When x=0x = 0, y=3y = 3. Each time xx goes up by 11, yy goes up by 22.

Grid with x from 0 to 5 and y from 0 to 13. The straight line y = 2x + 3 starts at the marked point (0, 3) on the y-axis, labelled y-intercept 3, and rises to (5, 13). A dashed step under the line, from (1, 5) to (2, 5) and then up to (2, 7), is labelled across 1 and up 2. 0 1 2 3 4 5 1 2 3 4 5 6 7 8 9 10 11 12 13 x y (0, 3): y-intercept 3 across 1 up 2 y = 2x + 3

So the line crosses the yy-axis at 33, and its is 22. Both numbers are in the equation.

Learn this
y=mx+cy = mx + c

Here mm is the gradient and cc is the . Keep the sign with each number: y=2x−5y = 2x - 5 has c=−5c = -5.

Worked exampleWrite down the gradient and the yy-intercept of the line y=4x−7y = 4x - 7.

Try it first, then reveal one step at a time.

  1. Match y=4x−7y = 4x - 7 with y=mx+cy = mx + c.

With no number in front of xx, the gradient is 11: y=x+6y = x + 6 has m=1m = 1, and y=−x+6y = -x + 6 has m=−1m = -1. With no number on its own, c=0c = 0: y=5xy = 5x passes through the .

Check yourself
Write down the gradient of the line y=−5x+2y = -5x + 2.

Every point on the xx-axis has y=0y = 0. So to find where a line crosses the xx-axis, put y=0y = 0 and solve for xx. (A horizontal line such as y=4y = 4 never crosses it.)

Worked exampleLine LL is y=−3x+12y = -3x + 12. At which point does LL meet the xx-axis?

Try it first, then reveal one step at a time.

  1. On the xx-axis, y=0y = 0. Substitute: 0=−3x+120 = -3x + 12.
Check yourself
At which point does the line y=7x−9y = 7x - 9 meet the yy-axis?

Finding the equation from a graph

To find the drawn on a grid, find cc and mm. Then put them into y=mx+cy = mx + c.

1. Read cc: the yy-value where the line crosses the yy-axis, where x=0x = 0.

2. Find mm: draw a triangle under the line and divide the change in yy by the change in xx (3.3).

3. Write y=mx+cy = mx + c with your numbers, in its simplest form.

Grid with x from 0 to 8 and y from 0 to 9, showing three straight lines. Line A rises from (0, 1) through (4, 4) to (8, 7). Line B falls from (0, 8) through (2, 5) and (4, 2), and meets the x-axis between 5 and 6. Line C is vertical: it goes straight up through (6, 0). 0 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 9 x y A B C
Lines AA, BB and CC, used in the example and checks below.
Worked exampleThe figure shows lines AA, BB and CC. Work out the equation of line AA.

Try it first, then reveal one step at a time.

  1. Line AA crosses the yy-axis at 11, so c=1c = 1.
Check yourself
Find the equation of line BB in the same figure.

A horizontal line has gradient 00, and every point on it has the same yy-coordinate. Its equation is y=ky = k for a number kk, such as y=4y = 4.

Every point on a vertical line has the same xx-coordinate, so its equation is x=kx = k. It has no gradient, so it can't be written as y=mx+cy = mx + c.

Check yourself
Write down the equation of line CC in the figure.

On a real-life graph, other letters replace xx and yy, and the axes often have different scales. Read cc and both changes from the axis numbers, not by counting squares.

Then cc is the value when the quantity across is 00, usually the starting value, and mm is the .

Graph of the total cost of gym membership, T dollars, against the number of months, n. Across, months go from 0 to 6, one month per square. Up, cost goes from 0 to 280 dollars, 20 dollars per square, labelled every 40. A straight line rises from the marked point (0, 60), through 140 dollars at 2 months and the marked point (5, 260), to the top of the grid. 0 1 2 3 4 5 6 40 80 120 160 200 240 280 Number of months, n Total cost, T (dollars) (0, 60) (5, 260)
Worked exampleThe graph shows the total cost, TT dollars, of gym membership for nn months. Find the equation of the line in the form T=mn+cT = mn + c. Say what mm and cc mean.

Try it first, then reveal one step at a time.

  1. The line crosses the cost axis at 6060, so c=60c = 60.
Check yourself
A phone plan costs P=0.08t+15P = 0.08t + 15 dollars in a month with tt minutes of calls. What does the 1515 tell you?

The line through two points Extended only

Often you know two points on a line, but neither is on the yy-axis. Find mm from the two points. Then substitute one point into y=mx+cy = mx + c and solve for cc.

Learn this
m=y2−y1x2−x1m = \dfrac{y_2 - y_1}{x_2 - x_1}
Worked exampleFind the equation of the line through (2,11)(2, 11) and (6,31)(6, 31). Give your answer in the form y=mx+cy = mx + c.

Try it first, then reveal one step at a time.

  1. Gradient: m=31−116−2=204=5m = \frac{31 - 11}{6 - 2} = \frac{20}{4} = 5.
Worked exampleFind the equation of the line through (−2,9)(-2, 9) and (6,−3)(6, -3). Give your answer in the form y=mx+cy = mx + c.

Try it first, then reveal one step at a time.

  1. Put negative coordinates in brackets: m=−3−96−(−2)=−128=−32m = \frac{-3 - 9}{6 - (-2)} = \frac{-12}{8} = -\frac{3}{2}.
Check yourself
Find the equation of the line through (10,13)(10, 13) and (13,31)(13, 31).

Equations in other forms Extended only

Lines are not always written as y=mx+cy = mx + c. You might see y=7−4xy = 7 - 4x or 2x+5y=152x + 5y = 15. Rearrange so the equation starts y=y = before you read mm and cc (2.5).

Worked exampleFind the gradient and the yy-intercept of the line 2x+5y=152x + 5y = 15.

Try it first, then reveal one step at a time.

  1. Make yy the subject. Subtract 2x2x from both sides: 5y=−2x+155y = -2x + 15.
Check yourself
Write down the gradient and yy-intercept of the line y=7−4xy = 7 - 4x.

A question may ask for the form ax+by=cax + by = c, where aa, bb and cc are integers. This cc is not the yy-intercept. Clear any fractions, then collect xx and yy on one side.

Worked exampleWrite the equation y=34x−2y = \frac{3}{4}x - 2 in the form ax+by=cax + by = c, where aa, bb and cc are integers.

Try it first, then reveal one step at a time.

  1. Multiply every term by 44 to clear the fraction: 4y=3x−84y = 3x - 8.

Common mistakes

  • Writing coordinates the wrong way round. The yy-axis point is (0,c)(0, c); an xx-axis point ends in 00.
  • Counting squares when the axes have different scales. Use the axis numbers.
  • Dividing across by up. Gradient is up divided by across.
  • Dropping a minus sign, in mm for a downhill line or in cc for y=2x−5y = 2x - 5.
  • Writing 9−39 - 3 for 9−(−3)9 - (-3). Bracket negative coordinates before subtracting.

Exam tips

  • “Find the equation of the line”: give a full equation such as y=34x+1y = \frac{3}{4}x + 1, not just mm and cc. Give it in its simplest form.
  • Write the gradient as a fraction, such as −128\frac{-12}{8}, and write down cc. Each can earn a mark even if the final equation slips.

Key takeaways

Learn thisy=mx+cy = mx + c: the gradient is mm, and the line crosses the yy-axis at (0,c)(0, c).
Learn thisA horizontal line is y=ky = k, with gradient 00. A vertical line is x=kx = k.
Learn thisWhere a line meets the xx-axis, y=0y = 0. Where it meets the yy-axis, x=0x = 0.
Learn thisFrom a graph: read cc where x=0x = 0, then find mm from a triangle, using the axis numbers.
Learn thisThrough two points: find mm, then substitute one point into y=mx+cy = mx + c to find cc.
Learn thisFor an equation like 2x+5y=152x + 5y = 15, make yy the subject before you read mm and cc.

Practise this

34 past-paper questions on 3.5 in the 0580 Extended bank, each with a mark scheme and a worked explanation.

Practise 3.5 →