How do you find the gradient, intercept and equation of a straight line, and identify parallel and perpendicular lines?
Use the equation to find the gradient and intercept; find the equation of a line through given points; and identify parallel and perpendicular lines (perpendicular at Higher tier).
A focused answer to the OCR GCSE Mathematics algebra content on straight line graphs, covering gradient and intercept, the equation of a line through points, and parallel and perpendicular 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
OCR references A9 and A10 cover straight line graphs: using to read the gradient and intercept, finding the equation of a line through given points, and identifying parallel and (at Higher tier) perpendicular lines. The straight line is the simplest graph and the gateway to coordinate geometry, real-life linear graphs and the graphical solution of simultaneous equations. It is tested on every tier and frequently on the non-calculator paper.
The equation y = mx + c
Every non-vertical straight line can be written in this form.
So has gradient and crosses the -axis at . To plot it, mark and step up for every across. If an equation is given as , rearrange to before reading off and . A line written as also needs rearranging, to , which has gradient and intercept .
A horizontal line has the form (gradient , no term), and a vertical line has the form (an undefined gradient, so it cannot be written as ). Recognising these special cases stops you trying to force a vertical line into the standard form. The gradient itself is a rate: in a real-life graph it might be a cost per item or a speed, so reading correctly is the key to interpreting context, which OCR rewards under AO3.
Gradient between two points
The gradient measures steepness as a ratio.
For and , the gradient is . The order of subtraction must be consistent: subtract the coordinates in the same order on top and bottom, or the sign of the gradient flips.
Finding the equation of a line
Two pieces of information fix a line: a gradient and a point, or two points.
Parallel and perpendicular lines
Gradients reveal how two lines relate.
Parallel lines never meet and have equal gradients, so any line parallel to has gradient ; only the intercept changes. Perpendicular lines cross at a right angle, and their gradients are negative reciprocals: their product is . So a line perpendicular to one with gradient has gradient , and a line perpendicular to gradient has gradient . To find the negative reciprocal, flip the fraction and change the sign; for a whole-number gradient , the perpendicular gradient is . Perpendicular lines are a Higher-tier focus and a frequent multi-mark question.
A typical Higher question gives you a line and a point and asks for the perpendicular (or parallel) line through that point. The method is always the same: decide the new gradient from the parallel or perpendicular rule, then substitute the point into to find the intercept. Coordinate geometry questions may also ask for the midpoint of a line segment, found by averaging the coordinates, or the length of a segment, found with Pythagoras on the horizontal and vertical differences, so straight-line work links directly to the geometry strand.
Exam-style practice questions
Practice questions written in the style of OCR exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
OCR 20193 marksA straight line passes through the points and . Find the equation of the line. (Higher, Paper 4, calculator.)Show worked answer →
Find the gradient: .
Use with one point, say : , so .
The equation is .
Markers award a mark for the gradient, a mark for finding , and a mark for the full equation. Checking the other point: , which matches. Subtracting the coordinates in the wrong order (giving a negative gradient) is the usual slip.
OCR 20213 marksA line has equation . Find the equation of the line perpendicular to that passes through the point . (Higher, Paper 5, non-calculator.)Show worked answer →
The gradient of is . Perpendicular gradients are negative reciprocals, so the new gradient is .
Use with : , so , giving .
The equation is .
Markers give a mark for the perpendicular gradient , a mark for finding , and a mark for the equation. Using the same gradient (parallel instead of perpendicular) is the standard error.
Related dot points
- Solve linear equations in one unknown, including those with brackets, fractions and the unknown on both sides, and form linear equations from worded and geometric contexts.
A focused answer to the OCR GCSE Mathematics algebra content on solving linear equations, covering equations with brackets, fractions and the unknown on both sides, and forming equations from worded problems.
- Solve two simultaneous linear equations by elimination and substitution; solve a linear and a quadratic equation simultaneously (Higher tier); and interpret the solution as the point of intersection.
A focused answer to the OCR GCSE Mathematics algebra content on simultaneous equations, covering elimination, substitution, solving one linear and one quadratic equation at Higher tier, and the graphical meaning.
- Solve linear inequalities and represent solutions on a number line; solve quadratic inequalities (Higher tier); and recognise and sketch the graphs of quadratic, cubic, reciprocal and exponential functions.
A focused answer to the OCR GCSE Mathematics algebra content on inequalities and other graphs, covering solving and representing linear inequalities, quadratic inequalities at Higher tier, and recognising non-linear graph shapes.
- Simplify and manipulate algebraic expressions: collect like terms, expand single and double brackets, factorise (common factors, quadratics and the difference of two squares), and rearrange formulae to change the subject.
A focused answer to the OCR GCSE Mathematics algebra content on algebraic manipulation, covering collecting like terms, expanding brackets, factorising including the difference of two squares, and changing the subject of a formula.
- Generate sequences from a rule; find the nth term of a linear sequence and a quadratic sequence (Higher tier); and recognise arithmetic, geometric, square, cube, triangular and Fibonacci sequences.
A focused answer to the OCR GCSE Mathematics algebra content on sequences, covering the nth term of linear and quadratic sequences, generating terms from a rule, and recognising special sequences.
Sources & how we know this
- OCR GCSE (9-1) Mathematics (J560) specification — OCR (2015)