How do we plot a straight-line graph, and what do its gradient and intercept tell us?
Plot and draw graphs of linear functions y = mx + c, and interpret the gradient and y-intercept
A focused answer to the N(A)-Level Mathematics outcome on linear graphs. Plotting y = mx + c, finding gradient from two points, the meaning of the y-intercept, and reading values from a line.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
Jump to a section
What this dot point is asking
SEAB wants you to plot and draw the graph of a linear function written as , and to interpret what the gradient and the -intercept mean. A linear function always gives a straight line, and reading that line is a skill used in travel graphs, coordinate geometry and statistics.
The answer
The equation of a straight line
Every straight line (except a vertical one) can be written as:
where is the gradient (steepness) and is the -intercept (where the line crosses the -axis). For , the gradient is and the line crosses the -axis at .
Plotting a line from its equation
To draw the graph, build a small table of values:
- Choose a few values, such as , and .
- Work out for each using the equation.
- Plot the points and join them with a straight line using a ruler.
For : when , ; when , ; when , . Three points that line up confirm there is no arithmetic slip.
Gradient
The gradient measures how steep the line is - how much changes for each unit increase in :
A positive gradient rises from left to right; a negative gradient falls. A larger number means a steeper line. A gradient of is a horizontal line.
The y-intercept
The -intercept is the value of where the line meets the -axis, that is when . In a real context it often means a starting value, such as a fixed fee before any usage is added.
Reading values from a graph
Once a line is drawn, you can read off a value for any (or the reverse) by going up from the axis to the line and across. This is how travel and conversion graphs are used.
Examples in context
Example 1. A taxi fare. A taxi charges a \3\ per kilometre, so the fare is where is the distance. The -intercept is the fixed starting charge and the gradient is the cost per kilometre. Reading the graph at gives a fare of \8$.
Example 2. Comparing two lines. The lines and have the same gradient, so they are parallel and never meet. The second is simply the first shifted up by . Recognising equal gradients as parallel lines is a quick way to compare straight-line graphs.
Try this
- Cue. State the gradient and -intercept of . The gradient is and the intercept is .
- Cue. Find the gradient of the line through and . Compute .
- Cue. Find when on the line . Substitute: .
Exam-style practice questions
Practice questions written in the style of SEAB exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
Original3 marksA straight line has equation . (a) State the gradient and the -intercept. (b) Find the value of when .Show worked answer →
(a) Compare with . The gradient is and the -intercept is .
(b) Substitute : .
What markers reward: correctly reading and from the form , and a correct substitution. The -intercept is the number on its own, including its sign.
Original3 marksA line passes through the points and . Find the gradient of the line.Show worked answer →
Gradient is the change in divided by the change in :
.
What markers reward: the correct gradient formula (difference in over difference in ), subtracting the coordinates in the same order top and bottom, and the simplified value. Subtracting in opposite orders (for example over ) gives the wrong sign.
Related dot points
- Find the gradient of a line through two points and determine the equation of a straight line in the form y = mx + c
A focused answer to the N(A)-Level Mathematics outcome on the equation of a line. Finding gradient from two points, using a point to find the intercept, and writing the equation as y = mx + c.
- Draw graphs of quadratic functions y = ax^2 + bx + c, identify the shape, the turning point and the x-intercepts
A focused answer to the N(A)-Level Mathematics outcome on quadratic graphs. The parabola shape, the effect of the sign of a, the turning point, the line of symmetry, and the x-intercepts.
- Interpret and draw distance-time graphs, find speed from the gradient, and describe stationary and return stages of a journey
A focused answer to the N(A)-Level Mathematics outcome on travel graphs. Reading distance-time graphs, finding speed from the gradient, and describing rest stops and return journeys.
- Solve a pair of simultaneous linear equations in two unknowns by elimination and by substitution, and form them from word problems
A focused answer to the N(A)-Level Mathematics outcome on simultaneous equations. The elimination and substitution methods, checking both equations, and forming a pair from a word problem.