How Math Works
Algebraconceptfoundations

Linear Functions & Their Graphs

โ€œA linear function is a straight line; the slope is 'how steep'.โ€

The formula

y = ax + b

How to read it: a straight line with slope a and y-intercept b

a
โ€” the slope โ€” how much y rises when x increases by 1
b
โ€” the y-intercept โ€” the value of y when x = 0 (the starting height)
x
โ€” the input value

The hook

y=ax+b is just a straight line โ€” the slope a sets 'how steep' it is, and b sets 'where it starts'.

In plain words

A rule where you feed in x and out comes y = 'a times x plus b'. Graph it and you always get a straight line.

The intuition

a is the steepness of a staircase โ€” every time x rises by 1, y climbs by a. b is the starting height (y when x=0). Know those two and the line is fully fixed.

How it's built

a is the slope = (change in y)/(change in x). b is the y-intercept, the height where the line crosses the y-axis. If a is positive the line heads up to the right, if negative it heads down.

Example

y=2xโˆ’1. At x=0,1,2, y is โˆ’1,1,3. Each time x rises by 1, y rises by 2 โ€” the slope is exactly 2.

Common mistake

It's easy to confuse the slope a with the intercept b. In y=3xโˆ’2, 3 is the slope and โˆ’2 is the starting height โ€” not 3.

Where it's used

Phone plans (base fee + usage), distance at constant speed, temperature change โ€” the basic model for any relationship that 'changes at a steady rate'.

Where it came from

The coordinate plane that links equations to graphs was created by Descartes in the 1600s โ€” the moment an equation could finally become a 'picture'.

Prerequisites

Quick check

What is the slope of the linear function y = 3x โˆ’ 2?

  • 3โœ“
  • โˆ’2
  • 2
  • โˆ’3

Practice

For y = 2x + 1, what is y when x = 3?

Answer: 7

Solution:
  1. y = 2ยท3 + 1
  2. = 7

Takeaway: Plug in x and out comes a point y on the line.

For y = โˆ’2x + 5, what is y when x = 1?

Answer: 3

Solution:
  1. y = โˆ’2ยท1 + 5
  2. = 3

Takeaway: A negative slope means y falls as x rises.

What is the slope of the line through (1, 2) and (3, 8)?

Answer: 3

Solution:
  1. slope = (change in y)/(change in x) = (8 โˆ’ 2)/(3 โˆ’ 1)
  2. = 6/2 = 3

Takeaway: Slope is the rise between two points divided by the run.

Keep learning in the app

Touch-and-drag widgets, self-graded practice and daily formulas โ€” free on iOS and Android.