๐Ÿ“
Algebra ยท Foundation & Higher

Straight-line graphs (y = mx + c)

The equation y = mx + c describes a straight line. m is the gradient and c is the y-intercept.

๐Ÿ”‘

Key facts to remember

  • 1Gradient (m) = rise รท run = (change in y) รท (change in x).
  • 2The y-intercept (c) is where the line crosses the y-axis (x = 0).
  • 3Parallel lines have the same gradient.
  • 4Perpendicular lines have gradients that multiply to โˆ’1 (negative reciprocals).
  • 5To find the equation of a line: find m first, then substitute a point to find c.
๐Ÿ“

Formulas

Equation of a line
y = mx + c
Gradient
m = (yโ‚‚ โˆ’ yโ‚) รท (xโ‚‚ โˆ’ xโ‚)
Perpendicular gradient
mโ‚‚ = โˆ’1/mโ‚
โœ๏ธ

Worked examples

Example 1

Find the equation of the line through (2, 5) and (6, 13).

Working

  1. Gradient m = (13 โˆ’ 5) รท (6 โˆ’ 2) = 8 รท 4 = 2
  2. Use y = 2x + c with point (2, 5): 5 = 2(2) + c โ†’ c = 1
  3. Equation: y = 2x + 1
Answery = 2x + 1
โš ๏ธ

Common mistakes

โœ—Swapping the x and y coordinates when calculating gradient.
โœ—Reading the y-intercept as the x-intercept (where the line crosses the x-axis).
โœ—Confusing parallel (same m) with perpendicular (negative reciprocal m).
๐ŸŽฏ

Exam tips

โœ“When drawing a straight-line graph, plot at least 3 points to catch errors.
โœ“Rearrange equations like 2y = 4x + 6 โ†’ y = 2x + 3 before identifying m and c.

Ready to test yourself on Straight-line graphs (y = mx + c)?

Get AI-marked practice questions on exactly this subtopic.

Practice this topic โ†’
โ† All topicsDashboard

โ–ถ๏ธ Watch on YouTube

Free video lessons

Click a topic to search

โ–ถGCSE y=mx+c gradient interceptโ–ถstraight line graphs GCSEโ–ถequation of a line GCSE mathsโ–ถparallel perpendicular lines GCSE

Opens YouTube โ€” pick any free GCSE video.