Skip to content
mathismaths.com

Algebra · Lesson 13 of 16

Linear Equations

A linear equation draws a straight line. Its gradient says how steep; its intercept says where it crosses the y-axis.

What you will learn

  • Read gradient and intercept from y = mx + c.
  • Draw a straight line from an equation.
  • Find a line through two points and solve simultaneous equations.

Before you start: you should know coordinates and how to rearrange formulas. See Coordinates in Four Quadrants.

The idea

An equation is linear when the variables appear only to the first power: no x2x^2, no x\sqrt{x}, no 1x\frac{1}{x}. Plot all the points (x,y)(x, y) that satisfy a linear equation in two variables and you always get a straight line, which is where the name comes from.

Coordinate grid with shapesA coordinate grid from -4 to 4 across and -6 to 10 up, showing 1 shape.-4-3-2-11234-6-5-4-3-2-112345678910
The line y = 2x + 1. It crosses the y-axis at 1 (the intercept) and goes up 2 for every 1 across (the gradient).

Gradient and intercept

Every non-vertical straight line can be written as

y=mx+cy = mx + c

  • mm is the gradient (slope): how much yy goes up for each step of 11 to the right. A positive gradient rises, a negative gradient falls, and a gradient of 00 is flat.
  • cc is the y-intercept: where the line crosses the yy-axis, because when x=0x = 0, y=cy = c.

The line y=2x−3y = 2x - 3 starts at −3-3 on the yy-axis and climbs 22 units for every 11 unit across.

Coordinate grid with shapesA coordinate grid from -4 to 6 across and -6 to 6 up, showing 1 shape.-4-3-2-1123456-6-5-4-3-2-1123456
The line y = 2x - 3 crosses the y-axis at -3 and climbs 2 for every 1 across.

Gradient as “rise over run”

Between any two points on a line, the gradient is the change in yy divided by the change in xx. It doesn’t matter which two points you pick. That constant rate of change is what makes the line straight.

Sorted into groups: x, y = 2x + 1x: -2, -1, 0, 1, 2. y = 2x + 1: -3, -1, 1, 3, 5.x-2-1012y = 2x + 1-3-1135
A table of values for y = 2x + 1. Each step of 1 in x adds 2 to y.

Worked examples

Example 1: Line through two points

Find the equation of the line through (1,5)(1, 5) and (4,14)(4, 14).

  1. Gradient: m=14−54−1=93=3m = \dfrac{14 - 5}{4 - 1} = \dfrac{9}{3} = 3.
  2. So y=3x+cy = 3x + c. Substitute the point (1,5)(1, 5): 5=3(1)+c5 = 3(1) + c.
  3. Solve: c=2c = 2.
  4. Check with the other point: 3(4)+2=143(4) + 2 = 14. ✓

Answer: y=3x+2y = 3x + 2

Example 2: Simultaneous equations

Solve y=2x+1y = 2x + 1 and x+y=10x + y = 10 together.

  1. Both equations describe lines. The solution is the point where they cross.
  2. Substitute the first into the second: x+(2x+1)=10x + (2x + 1) = 10.
  3. Simplify and solve: 3x+1=103x + 1 = 10, so 3x=93x = 9 and x=3x = 3.
  4. Find yy: y=2(3)+1=7y = 2(3) + 1 = 7.
  5. Check in the second equation: 3+7=103 + 7 = 10. ✓

Answer: x=3x = 3, y=7y = 7. The lines meet at (3,7)(3, 7).

Example 3: Reading a real graph

A plumber charges a £40 call-out fee plus £30 per hour. Write the cost CC for hh hours as a linear equation.

  1. The fixed amount is the intercept: c=40c = 40.
  2. The rate per hour is the gradient: m=30m = 30.

Answer: C=30h+40C = 30h + 40. A 2.5-hour job costs 30(2.5)+40=£11530(2.5) + 40 = £115.

Vertical lines like x=4x = 4 have an undefined gradient and cannot be written as y=mx+cy = mx + c.

Why it matters

Any situation with a fixed starting amount and a constant rate is linear: taxi fares, mobile tariffs, a car travelling at steady speed, converting Celsius to Fahrenheit (F=1.8C+32F = 1.8C + 32). Businesses use simultaneous linear equations to find break-even points, and scientists draw lines of best fit through data to spot trends.

Linear equations are also the first example of a function, and the gradient is the first step towards the derivative in calculus.

Practice

Your turn. Type or choose an answer, then press Check. Getting one wrong is fine, that is what practice is for. You can try as many times as you like.

Question 1 of 8

What is the gradient of y=3x+2y = 3x + 2?

Question 2 of 8

What is the yy-intercept of y=3x+2y = 3x + 2?

Question 3 of 8

Find the gradient of the line through (0,1)(0, 1) and (2,5)(2, 5).

Question 4 of 8

Find yy when x=4x = 4 on the line y=2x−1y = 2x - 1.

Question 5 of 8

On y=2x+1y = 2x + 1, find xx when y=11y = 11.

Question 6 of 8

Find the gradient of the line through (1,7)(1, 7) and (3,3)(3, 3).

Question 7 of 8

Solve x+y=10x + y = 10 and x−y=4x - y = 4. Give xx.

Question 8 of 8

What is the yy-intercept of y=5−xy = 5 - x?