How do you find and use the equation of a straight line, and how do gradient and intercept describe it?
Determining and using the equation of a straight line in the forms y equals mx plus c and y minus b equals m times x minus a, including the gradient, the y-intercept, and parallel lines.
A focused answer to the SQA National 5 Mathematics straight line content, covering the equation y equals mx plus c, reading the gradient and y-intercept, the point-gradient form, finding the equation from a gradient and a point, 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
The SQA wants you to find and use the equation of a straight line. You should be able to read the gradient and y-intercept from , build an equation from a gradient and a point using the point-gradient form, and recognise that parallel lines share a gradient.
The equation y = mx + c
Every non-vertical straight line can be written as . The number in front of is the gradient and the number on its own is the y-intercept, the value where the line crosses the y-axis (at ).
So has gradient and crosses the y-axis at , while has gradient and crosses at .
Finding the equation from a gradient and a point
When you know the gradient and one point on the line, the quickest route is the point-gradient form.
If you are given two points instead, first find the gradient with , then use either point in the point-gradient form.
Parallel lines
Two lines are parallel when they have the same gradient and never meet. To find a line parallel to a given one, keep the gradient and use the new point.
Rearranging into the standard form
Equations are not always given in form. When a line is written as, say, or , rearrange it to to read off the gradient and intercept. Make the subject by moving the term across and dividing if needed.
This is also how you find where two lines meet: rearrange both into and set them equal, or solve them as simultaneous equations.
Examples in context
The straight line models any constant rate. A taxi that charges a flag fall plus per mile costs pounds for miles: the gradient is the price per mile and the intercept is the fixed charge. Reading the graph of cost against distance, the steepness gives the rate and the starting height gives the standing charge. The same idea links a distance-time graph's gradient to speed.
Try this
Q1. State the gradient and y-intercept of . [2 marks]
- Cue. Gradient , y-intercept .
Q2. Find the equation of the line through with gradient . [2 marks]
- Cue. .
Q3. Find the line through parallel to . [2 marks]
- Cue. .
Exam-style practice questions
Practice questions written in the style of SQA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
SQA National 5 20193 marksFind the equation of the straight line passing through with gradient .Show worked answer →
Use the point-gradient form with and (1 mark): . Expand the bracket: (1 mark). Rearrange to form: (1 mark). Markers reward correct substitution into the formula, expanding, and the final equation.
SQA National 5 20223 marksA line passes through and . Find its equation in the form .Show worked answer →
Find the gradient: (1 mark). The line crosses the y-axis at , so the y-intercept is (1 mark). Write the equation: (1 mark). Markers reward the gradient, the y-intercept read from the point on the y-axis, and the equation.
Related dot points
- Working with functional notation: evaluating a function f of x for a given input, finding the input that gives a required output, and identifying a function from its formula.
A focused answer to the SQA National 5 Mathematics functional notation content, covering how to read f of x notation, evaluate a function for a given value including negatives, find the input that produces a given output, and substitute expressions into a function.
- Solving linear equations and inequations in one variable, including equations with brackets, fractions and the unknown on both sides, and representing inequation solutions.
A focused answer to the SQA National 5 Mathematics equations and inequations content, covering solving linear equations with brackets, fractions and the unknown on both sides, and solving linear inequations including the rule for reversing the sign when dividing by a negative.
- Solving simultaneous linear equations in two variables algebraically by elimination and substitution, and graphically as the point of intersection.
A focused answer to the SQA National 5 Mathematics simultaneous equations content, covering solving two linear equations in two unknowns by elimination and by substitution, the link to the point of intersection of two lines, and setting up simultaneous equations from a context.
- Changing the subject of a formula, including formulae involving brackets, fractions, squares and square roots.
A focused answer to the SQA National 5 Mathematics changing-the-subject content, covering how to rearrange a formula to make a different variable the subject, including formulae with brackets, fractions, squares and square roots.
- Sketching and interpreting quadratic functions and their graphs, and solving quadratic equations by factorising, by the quadratic formula and graphically.
A focused answer to the SQA National 5 Mathematics quadratics content, covering the shape and key features of a parabola, the roots and turning point, and solving quadratic equations by factorising, by the quadratic formula, and from a graph.
Sources & how we know this
- SQA National 5 Mathematics Course Specification — SQA (2018)