1MA1 · A9–A10AlgebraFoundation & HigherGrades 4–7

Straight Line Graphs

Every straight line on a coordinate grid can be described by an equation of the form y=mx+cy = mx + c. The number mm says how steep the line is, and cc says where it crosses the yy-axis. Once you can move fluently between a line, its equation and the points on it, a whole family of questions — plotting, finding equations, parallel and perpendicular lines — becomes routine.

55 min Graphs

The big picture

The gradient measures how much yy changes for each step of 1 in xx. That makes it a rate: on a distance–time graph it is a speed, on a cost graph it is a price per item. Reading mm and cc in context is a common Edexcel question in its own right.

Parallel lines share a gradient; perpendicular lines have gradients whose product is −1-1. That single fact about perpendicular gradients is a Higher-tier favourite and connects directly to tangents to circles later in this chapter.

What you'll learn

  • Plot straight line graphs from their equations
  • Find the gradient and yy-intercept from y=mx+cy = mx + c and from a graph
  • Find the equation of a line through two points, or through a point with a given gradient
  • Identify and find parallel and perpendicular lines (perpendicular: Higher)
1

Gradient and intercept

In y=mx+cy = mx + c, mm is the gradient\textbf{gradient} and cc is the y-intercept\textbf{y-intercept}, where the line crosses the yy-axis at (0,c)(0, c).

A positive gradient slopes upwards from left to right; a negative gradient slopes downwards. A gradient of 0 gives a horizontal line y=cy = c; vertical lines have the form x=kx = k.

If the equation is not in the form y=mx+cy = mx + c, rearrange it first: 2y−6x=82y - 6x = 8 becomes y=3x+4y = 3x + 4.

y=mx+cy = mx + c
Gradient m, y-intercept c.
Your turnSame method, new numbers — try it before moving on.

What is the gradient of the line 3y=6−2x3y = 6 - 2x?

Show worked solution
Solution
  1. 1Rearrange: y=2−23xy = 2 - \frac{2}{3}x.
  2. 2The gradient is −23-\frac{2}{3}.

Answer: −23-\frac{2}{3}

Tip — The gradient is the coefficient of xx only after yy is the subject. In 2y=6x+82y = 6x + 8 the gradient is 3, not 6.

2

Gradient between two points

The gradient between (x1,y1)(x_{1}, y_{1}) and (x2,y2)(x_{2}, y_{2}) is the change in yy divided by the change in xx.

Subtract in the same order on the top and bottom. A drawn right-angled triangle on a graph gives the same value — rise over run.

m=y2−y1x2−x1m = \dfrac{y_{2} - y_{1}}{x_{2} - x_{1}}
Gradient between two points.
Example 1Find the equation of the line through (−2,5)(-2, 5) and (4,−7)(4, -7).
1m=−7−54−(−2)=−126=−2m = \dfrac{-7 - 5}{4 - (-2)} = \dfrac{-12}{6} = -2.
2Substitute (−2,5)(-2, 5) into y=−2x+cy = -2x + c: 5=4+c5 = 4 + c, so c=1c = 1.
Answery=−2x+1y = -2x + 1
Your turnSame method, new numbers — try it before moving on.

Find the equation of the line through (1,3)(1, 3) and (4,12)(4, 12).

Type it like y = 2x + 1.

Show worked solution
Solution
  1. 1Gradient =12−34−1=3= \frac{12 - 3}{4 - 1} = 3.
  2. 23=3(1)+c3 = 3(1) + c, so c=0c = 0: y=3xy = 3x.

Answer: y=3xy = 3x

3

Parallel and perpendicular lines

Parallel\textbf{Parallel} lines have equal gradients: y=3x−2y = 3x - 2 and y=3x+7y = 3x + 7 are parallel.

Perpendicular\textbf{Perpendicular} lines have gradients that multiply to −1-1. If one gradient is mm, the other is −1m-\dfrac{1}{m} — the negative reciprocal.

To find a line perpendicular to a given one through a point, take the negative reciprocal gradient and substitute the point to find cc.

m1×m2=−1m_{1} \times m_{2} = -1
Perpendicular gradients.
Example 1Find the equation of the line perpendicular to y=3x−4y = 3x - 4 that passes through (6,1)(6, 1).
1Perpendicular gradient: −13-\tfrac13.
2Substitute (6,1)(6, 1): 1=−2+c1 = -2 + c, so c=3c = 3.
Answery=−13x+3y = -\tfrac13 x + 3
Your turnSame method, new numbers — try it before moving on.

Find the equation of the line perpendicular to y=−2x+5y = -2x + 5 that passes through (4,1)(4, 1).

Type it like y = 1/2x - 1.

Show worked solution
Solution
  1. 1Perpendicular gradient: 12\frac{1}{2}.
  2. 21=12(4)+c1 = \frac{1}{2}(4) + c, so c=−1c = -1.

Answer: y=12x−1y = \frac{1}{2}x - 1

Why this works

Rotating a line through 90∘90^{\circ} swaps the rise and the run and changes one sign. A gradient of 31\tfrac{3}{1} becomes −13\tfrac{-1}{3} — which is exactly the negative reciprocal.

4

Lines in context

When a straight line models a real situation, cc is the starting value and mm is the rate of change.

A taxi fare of F=2.40d+3.50F = 2.40d + 3.50 pounds has a fixed charge of £3.50 and costs £2.40 per mile.

Example 1A plumber charges £45 for a 1-hour job and £105 for a 4-hour job. Assuming a linear charge, find the call-out fee and the hourly rate.
1Gradient: 105−454−1=20\dfrac{105 - 45}{4 - 1} = 20.
2Using (1,45)(1, 45): 45=20+c45 = 20 + c, so c=25c = 25.
AnswerCall-out fee £25, plus £20 per hour.

Tip — In context questions, always interpret mm and cc with units: "£20 per hour", not just "20".

Think like an examiner

  • Show the gradient calculation with the coordinates substituted.
  • Show the substitution used to find cc.
  • Give equations in the form requested, such as ax+by+c=0ax + by + c = 0 with integers.

Straight lines

y=mx+cy = mx + c
Equation of a line.
m=y2−y1x2−x1m = \tfrac{y_{2} - y_{1}}{x_{2} - x_{1}}
Gradient.
m1m2=−1m_{1}m_{2} = -1
Perpendicular lines.

Watch out for these

Computing x2−x1y2−y1\dfrac{x_{2} - x_{1}}{y_{2} - y_{1}}.
Change in yy over change in xx.
Taking the gradient of 3y=6x+23y = 6x + 2 as 6.
Make yy the subject: gradient 2.
Using −m-m as the perpendicular gradient.
Use the negative reciprocal, −1m-\tfrac{1}{m}.
Writing y=4y = 4 as a vertical line.
y=4y = 4 is horizontal; vertical lines are x=kx = k.

Stretch yourself

Points A(1,2)A(1, 2) and B(7,6)B(7, 6) are the ends of a line segment. Find the equation of the perpendicular bisector of ABAB — the line through its midpoint at right angles to it.

Hint — Find the midpoint and the gradient of ABAB, then use the negative reciprocal gradient through the midpoint.

Reveal solution
SolutionMidpoint M=(1+72,2+62)=(4,4)M = \left(\dfrac{1 + 7}{2}, \dfrac{2 + 6}{2}\right) = (4, 4). Gradient of AB=6−27−1=23AB = \dfrac{6 - 2}{7 - 1} = \dfrac23, so the perpendicular gradient is −32-\dfrac32. Through (4,4)(4, 4): 4=−6+c4 = -6 + c, so c=10c = 10. The perpendicular bisector is y=−32x+10y = -\tfrac32 x + 10, or 3x+2y=203x + 2y = 20. Check: it passes through (4,4)(4, 4) since 12+8=2012 + 8 = 20 ✓. ■\blacksquare

Questions students ask

What is the gradient of a vertical line?
It is undefined, because the change in xx is zero and you cannot divide by zero.
How do I plot y=mx+cy = mx + c quickly?
Plot the intercept (0,c)(0, c), then move 1 across and mm up (or down) to get a second point. Use a third point as a check.
Do perpendicular lines always have one positive and one negative gradient?
Yes, unless one is horizontal and the other vertical.

Key takeaways

  • y=mx+cy = mx + c: gradient mm, yy-intercept (0,c)(0, c).
  • Gradient =change in ychange in x= \tfrac{\text{change in } y}{\text{change in } x}.
  • Find cc by substituting a known point.
  • Parallel lines: equal gradients. Perpendicular lines: m1m2=−1m_{1}m_{2} = -1.
  • In context, mm is a rate and cc a starting value.

Exam-style questions

Practise it the way it is examined

3 original questions · 7 marks, written to match the style and mark allocation of the real papers. Work on paper, then open the mark scheme and tick the marks you earned — method marks count even if the final answer slips.

Question 1Grade 42 marks
  1. Find the gradient and yy-intercept of the line 2y−4x=102y - 4x = 10.[2]
    Show mark scheme
Answer on paper first, then mark it.
Question 2Grade 62 marks
  1. Line LL passes through (2,7)(2, 7) and is parallel to y=3x−1y = 3x - 1. Find the equation of LL.[2]
    Show mark scheme

    Answer: y=3x+1y = 3x + 1

Answer on paper first, then mark it.
Question 3Grade 73 marks
  1. AA is (−1,4)(-1, 4) and BB is (5,2)(5, 2). Find the equation of the perpendicular bisector of ABAB.[3]
    Show mark scheme

    Answer: y=3x−3y = 3x - 3

Answer on paper first, then mark it.

Unlimited practice

Skill drill

A new question every time, marked instantly, with a full worked solution. Aim for a streak of five, then move up a level.

0 / 0 first-time correct Streak 0Best at this level: 0

Generating a question…

Test yourself

Answer a few questions, then review anything you missed.

Next step

Keep practising

Start with the quiz above to check the key ideas. You can also choose another topic from the practice library.

Browse practice topics

Related lessons

All 5 lessons