All courses › Foundations of Mathematics › Linear function

Linear function

A linear function f(x)=ax+bf(x)=ax+b has a graph that is a straight line. The slope aa is the change in yy per change in xx, and bb is the y-intercept.

f(x)=ax+bf(x) = ax + blinear function
a=y2−y1x2−x1=ΔyΔxa = \frac{y_2 - y_1}{x_2 - x_1} = \frac{\Delta y}{\Delta x}slope between two points

Symbols

aaslope
bby-intercept (where x=0x=0)

Example

The line through (1,3)(1,3) and (4,12)(4,12): a=12−34−1=3a = \frac{12-3}{4-1}=3, and 3=3⋅1+b⇒b=03 = 3\cdot 1+b \Rightarrow b=0, so f(x)=3xf(x)=3x.

It is aa, not bb, that is the slope - easy to mix up.
Practise functions and graphs for free →

← Quadratic equation · Quadratic function →

Part of Foundations of Mathematics: Functions and graphs.