National 5 Maths
Straight Line

 Our generous sponsors 

Course content

  • Use the formula \(y-b=m(x-a)\) or equivalent to find the equation of a straight line, given two points or one point and the gradient of the line.
  • Identify gradient and \(y\)-intercept from various forms of the equation of a straight line.

Textbook page references

Key ideas

  • Gradient is an essential part of this topic. Many schools combine the two topics.
  • The equation of any vertical line is in the form \(x=a\small.\) The \(y\)-axis has equation \(x=0\small.\)
  • The equation of any horizontal line is in the form \(y=b\small.\) The \(x\)-axis has equation \(y=0\small.\)
  • Any straight line (unless it's horizontal or vertical) has an equation in the form \(y=mx+c,\) where \(m\) is the gradient and \(c\) is the \(y\)-intercept.
  • If we know the gradient \(m\) and any point \((a,b)\) on the line, then we can obtain the equation of the line using the formula \(y-b=m(x-a)\). This is not on the formula sheet.

N5 Maths revision course

National5.com self-study course 
Save £10 with discount code 'Maths.scot'

Example 1 (non-calculator)

The point \((2,-3)\) lies on a straight line with gradient \(-4\small.\) Calculate the \(y\)-intercept of this line.

Example 2 (non-calculator)

The point \((-3,4)\) lies on a straight line whose \(y\)-intercept is \(-11\small.\) Find the gradient of this line and state its equation.

Example 3 (non-calculator)

Find the equation of the straight line with gradient \(2\) through the point \((3,-1)\small.\)

Recommended student book

Zeta Maths: National 5 Maths Textbook 
 Best price, direct from the publisher

Example 4 (non-calculator)

Find the equation of the straight line with gradient \(\frac{3}{4}\) through the point \((-2,5)\small.\) Give your answer in its simplest form.

Example 5 (non-calculator)

Find the equation of the straight line through \((1,7)\) and \((-1,3)\small.\)

Example 6 (non-calculator)

Find the equation of the straight line through \((-2,5)\) and \((2,-1)\small.\)

Find a Maths tutor

Do you need a National 5 Maths tutor?
Click here to find a tutor in your area. 

×

Example 7 (non-calculator)

A straight line has equation \(3x-7y-4=0\). Find:
(a)  the gradient
(b)  the point of intersection with the \(y\)-axis
(c)  the point of intersection with the \(x\)-axis.

Example 8 (non-calculator)

SQA National 5 Maths 2014 P1 Q11

(a)  A straight line has equation \(4x+3y=12.\) Find the gradient of this line.
(b)  Find the coordinates of the point where this line crosses the \(x\)-axis.

Example 9 (non-calculator)

SQA National 5 Maths 2015 P1 Q8

Find the equation of the line joining the points \((-2,5)\) and \((3,15)\small.\) Give the equation in its simplest form.

Recommended revision guides

How to Pass National 5 Maths 
BrightRED N5 Maths Study Guide 

Example 10 (calculator)

SQA National 5 Maths 2017 P2 Q11

A straight line has equation \(3x-5y-10=0.\) Find the gradient of this line.

Example 11 (calculator)

SQA National 5 Maths 2018 P2 Q14

A straight line has equation \(2x-5y=20.\) Find the coordinates of the point where this line crosses the \(y\)-axis.

Example 12 (calculator)

SQA National 5 Maths 2021 P2 Q9

A straight line has equation \(3x+4y-8=0.\)
(a)  Find the gradient of the line.
(b)  State the coordinates of the point where the line crosses the \(y\)-axis.

N5 Maths practice papers

Non-calculator papers and solutions 
Calculator papers and solutions 

Example 13 (non-calculator)

SQA National 5 Maths 2022 P1 Q6

Find the equation of the line passing through the points \((-3,-1)\) and \((-5,7)\small.\) Give the equation in its simplest form.

Example 14 (calculator)

SQA National 5 Maths 2024 P1 Q11

A straight line has equation \(x+4y-24=0.\) Find the gradient of this line.

Need a Nat 5 Maths tutor?

Just use this handy little widget and our partner Bark.com will help you find one.

Maths.scot worksheet

Straight line worksheet
Answer sheet
• See all National 5 Maths worksheets

Past paper questions

All past paper questions by topic
Finding the equation:
2013 Specimen P1 Q6 (with best fit)
2014 P1 Q6 (with line of best fit)
2015 Paper 1 Q8
2016 Paper 1 Q5 (with best fit)
2017 Paper 1 Q6
2018 Paper 1 Q7
2019 P1 Q6 (with line of best fit)
2021 Paper 1 Q10
2022 Paper 1 Q6
2023 P1 Q7 (with line of best fit)
2024 P1 Q9 (with line of best fit)
Finding information from an equation:
2014 Paper 1 Q11
2017 Paper 2 Q11
2018 Paper 2 Q14
2021 Paper 2 Q9
2024 Paper 1 Q11

Other great resources

Videos - Maths180.com
Videos - Larbert High School
1. Horizontal and vertical lines
2. Calculating a gradient
3. Equation of a straight line
Videos - Mr Graham Maths
1. Introduction to gradient
2. Introduction to equations
3. Finding an equation
PowerPoint - MathsRevision.com
Revision notes - BBC Bitesize
Test yourself - BBC Bitesize
Notes - Maths4Scotland
Videos - Mr Thomas Maths
Practice questions - Maths Hunter
Essential Skills worksheet
Equation joining 2 points (Answers)
Worksheet - Airdrie Academy
Exercises - Larkhall Academy
Pages 2-3 Ex 1-2

⇦ Nat 5 topic list  ⇧ Top of this page