What does the equation of a straight line tell us, and how do we find it?
Interpret and use the equation y = mx + c, find the gradient and intercept, and determine the equation of a straight line
A focused answer to the O-Level E-Maths outcome on straight-line graphs. The form y = mx + c, finding gradient and intercept, determining a line's equation from points or a graph, and parallel lines.
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 understand the straight-line equation , find the gradient and the -intercept, and determine a line's equation from a graph, from two points, or from a point and a gradient. Straight-line work underpins coordinate geometry and the reading of linear graphs.
The answer
The form y = mx + c
A straight line is described by:
where is the gradient (steepness) and is the -intercept (the value of where the line crosses the -axis). Reading these two numbers off the equation tells you everything about the line's position and slope.
Gradient
The gradient measures how steeply the line rises:
A positive gradient rises left to right, a negative gradient falls, and a zero gradient is horizontal. The steeper the line, the larger the magnitude of .
Finding the equation
From two points, find the gradient first, then substitute one point into to find . From a graph, read the intercept directly off the -axis and compute the gradient from any two clear grid points.
Parallel lines
Parallel lines have the same gradient. So any line parallel to has gradient and differs only in its intercept . This makes parallelism easy to test by comparing gradients.
Reading a real-life linear graph
In applied questions the gradient and intercept carry units and meaning, so interpreting them is as important as calculating them. On a distance-time graph the gradient is a speed (distance per unit time) and a horizontal section means stationary; on a cost-quantity graph the gradient is the price per item and the intercept is a fixed charge. So a line for the cost of items says each item costs dollars and there is a fixed -dollar charge. Translating the gradient and intercept back into the words of the problem, with their units, is exactly what an E-Maths interpretation question rewards.
Horizontal and vertical lines
Two special cases do not fit the usual reading and are worth knowing. A horizontal line has gradient and equation , because never changes. A vertical line has an undefined gradient (the run is zero, so the fraction is undefined) and equation , because is constant while varies freely. Recognising that is a flat line and is an upright line prevents the common mix-up between the two, and explains why a vertical line cannot be written in the form at all.
Examples in context
Example 1. Taxi fares. A fare of a fixed flag-down plus a rate per kilometre is a straight-line relationship, . The flag-down is the intercept and the per-kilometre rate is the gradient.
Example 2. Converting temperatures. The conversion from Celsius to Fahrenheit, , is a straight line with gradient and intercept . Reading the gradient and intercept explains how the two scales relate.
Try this
Q1. State the gradient and -intercept of . [2 marks]
- Cue. Gradient , intercept .
Q2. Find the gradient of the line through and . [2 marks]
- Cue. .
Q3. Write the equation of the line with gradient passing through . [2 marks]
- Cue. Intercept is , so .
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 passes through the points and . Find its equation in the form .Show worked answer →
Gradient: .
Substitute one point into , using : , so .
The equation is .
Markers reward the gradient from the change in over the change in , substituting a point to find , and the final equation.
Original3 marksThe line has equation . (a) State the gradient of . (b) Write down the equation of a line parallel to that passes through the origin.Show worked answer →
(a) Rearrange into the form : . The gradient is .
(b) A parallel line has the same gradient . Through the origin the intercept is , so its equation is .
Markers reward rearranging to read off the gradient as , knowing parallel lines share a gradient, and the equation .
Related dot points
- Sketch the graph of a quadratic function, find the intercepts and the turning point, and use the line of symmetry
A focused answer to the O-Level E-Maths outcome on quadratic graphs. The parabola shape, finding x- and y-intercepts, the turning point and line of symmetry, and the effect of the sign of the leading coefficient.
- Recognise and sketch graphs of cubic, reciprocal and exponential functions, and describe their main features
A focused answer to the O-Level E-Maths outcome on standard graph shapes. Cubic, reciprocal and exponential curves, their asymptotes and symmetry, and recognising a function from its graph.
- Interpret distance-time and speed-time graphs, using the gradient and the area under the graph to find speed, acceleration and distance
A focused answer to the O-Level E-Maths outcome on travel graphs. Reading speed from the gradient of a distance-time graph, acceleration from a speed-time graph, and distance from the area under a speed-time graph.
- Solve equations graphically by finding intersection points, and estimate solutions and gradients from a drawn curve
A focused answer to the O-Level E-Maths outcome on solving equations from graphs. Reading roots from where a curve crosses the axis, solving by intersection of two graphs, and estimating the gradient of a curve from a tangent.