Skip to content

Linear functions and straight-line graphs

Interpret gradient (slope) and intercept, find equations of lines, and use parallel and perpendicular lines.

Also known as: straight line graphs, slope-intercept form, gradient, y = mx + c.

Key ideas

  • In y=mx+cy = mx + c (or y=mx+by = mx + b), mm is the gradient and cc is the yy-intercept.
  • Gradient = change in yy ÷ change in xx between two points.
  • Parallel lines have equal gradients.
  • Perpendicular gradients multiply to −1-1.

Gradient and intercept

A linear function has a constant rate of change. Written as y=mx+cy = mx + c (the SAT writes y=mx+by = mx + b):

  • mm, the gradient or slope, tells you how much yy changes when xx increases by 11.
  • cc, the yy-intercept, is the value of yy when x=0x = 0.

Between points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2): m=y2−y1x2−x1m = \frac{y_2 - y_1}{x_2 - x_1}

Finding the equation of a line

  1. Find the gradient mm.
  2. Substitute one known point into y=mx+cy = mx + c to find cc.

For a line with gradient 33 through (2,7)(2, 7): 7=3(2)+c7 = 3(2) + c, so c=1c = 1 and the line is y=3x+1y = 3x + 1.

In context, the gradient is a rate (e.g. cost per gigabyte) and the intercept is a starting value (e.g. a fixed monthly fee).

Parallel and perpendicular lines

Parallel lines have the same gradient. Perpendicular lines have gradients that are negative reciprocals: if one gradient is 23\frac{2}{3}, the other is −32-\frac{3}{2}.

Rearrange equations into y=mx+cy = mx + c form before reading off the gradient: 2x+3y=62x + 3y = 6 becomes y=−23x+2y = -\frac{2}{3}x + 2.

Worked examples

Example 1 · Line through two points

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

  1. Step 1.m=12−34−1=3m = \frac{12 - 3}{4 - 1} = 3.
  2. Step 2.Substitute (1,3)(1, 3): 3=3(1)+c3 = 3(1) + c, so c=0c = 0.

Answer: y=3xy = 3x

Example 2 · Linear model in context

A phone plan costs 31 for 3 GB of data and 47 for 7 GB. Assuming a linear relationship, what is the fixed monthly charge?

  1. Step 1.Rate: 47−317−3=4\frac{47 - 31}{7 - 3} = 4 per GB.
  2. Step 2.31=4(3)+c31 = 4(3) + c, so c=19c = 19.

Answer: 19 (the cost for 0 GB)

Common mistakes

  • Calculating change in x ÷ change in y instead of change in y ÷ change in x.
  • Reading the gradient from 2x+3y=62x + 3y = 6 as 22 without rearranging.
  • Using the reciprocal without changing sign for perpendicular lines.

Try it yourself

Original practice questions. Your answer is checked instantly.

Question 1Linear functions and straight-line graphsEasier

What is the slope of the line through (1,3)(1, 3) and (4,12)(4, 12)?

Question 2Linear functions and straight-line graphsEasier

What is the yy-intercept of the line y=−2x+5y = -2x + 5?

Start learning with TutorAura

Take the diagnostic, get a study plan and practise with the AI tutor. Free for 3 days, no card needed.

Start free trial