Represent linear functions f(x) = mx + q as straight-line graphs, finding the gradient and intercept.
A linear function has the form f(x)=mx+q, and its graph is always a straight line. To draw it, make a short table of values: pick a few values of x, work out each y, plot the points and join them. For f(x)=2x−1: when x=0, y=−1; when x=1, y=1; when x=2, y=3.
The gradient m measures the slope. Between any two points on the line it is the change in y divided by the change in x — 'rise over run'. The number q is the y-intercept, where the line crosses the y-axis. If m>0 the line rises as you move right; if m<0 it falls.
A linear function f(x)=mx+q graphs as a straight line; m = rise ÷ run between two points, q = y-intercept; m>0 rises, m<0 falls.
Worked example
1Find the gradient of the line through (1,3) and (3,7)
Rise (change in y): 7−3=4.
Run (change in x): 3−1=2.
Gradient m=runrise=24=2.
Practise it — free, no sign-up
Have a go right here. Nothing is saved and you can retry as much as you like. Create a free account when you want to save your progress and get Archie, your tutor.
1A phone plan is f(x)=2x+10 francs for x GB. What does 4 GB cost?
2The graph of a linear function is always:
3A line passes through (0,1) and (2,5). What is its gradient?
4A linear function with a negative gradient gives a falling line.
5For f(x)=3x+2, what is f(0)?
6The gradient of a line is:
Create a free account to save your progress, track mastery and ask Archie, your tutor, for a hand.