Topic 04 | Number & Algebra

Linear graphs

Year 9 core: sketching linear graphs from y = mx + c and general form, gradient from two points, midpoint formula, distance formula, and parallel/perpendicular lines.

70-90 min Printable practice Answer key Challenge included
How to use this page

Read the explanation, work through the examples, then complete the core practice before printing.

Study progress: Not started

What you will learn

Worked example 0 Real-world example: comparing phone plans

Plan A charges a $10 monthly fee plus $0.50 per GB. Plan B charges no monthly fee but $1.20 per GB. Which plan is cheaper at 2020 GB?

  1. Plan A cost: CA=0.5n+10C_A = 0.5n + 10. At n=20n = 20: CA=0.5(20)+10=20C_A = 0.5(20) + 10 = 20.
  2. Plan B cost: CB=1.2nC_B = 1.2n. At n=20n = 20: CB=1.2(20)=24C_B = 1.2(20) = 24.
  3. Plan A is $4 cheaper at 2020 GB. Graphing both lines would show them crossing near n14.3n \approx 14.3 GB — below that, Plan B is cheaper.

Key idea: the gradient tells you the per-GB rate; the yy-intercept tells you the fixed cost. Comparing gradients and intercepts lets you decide which plan suits your usage.

1. Gradient-intercept form: y=mx+cy = mx + c

In the equation y=mx+cy = mx + c:

Formula reference

y=mx+cy = mx + c

mm = gradient (rise/run), cc = yy-intercept.

To sketch from y=mx+cy = mx + c:

  1. Plot the yy-intercept (0,c)(0, c).
  2. From that point, use the gradient: move 11 unit right and mm units up (or down if m<0m < 0).
  3. Draw a straight line through the two points and extend in both directions.
Worked example 1 Sketching from y = mx + c

Sketch y=2x3y = 2x - 3.

  1. The yy-intercept is 3-3, so plot (0,3)(0, -3).
  2. Gradient m=2=21m = 2 = \dfrac{2}{1}: from (0,3)(0, -3) move 11 right and 22 up to (1,1)(1, -1).
  3. Draw the line through (0,3)(0, -3) and (1,1)(1, -1).
  4. The xx-intercept is found by setting y=0y = 0: 0=2x30 = 2x - 3, so x=1.5x = 1.5. Confirm the line passes through (1.5,0)(1.5, 0).

2. General form and converting between forms

The general form of a linear equation is ax+by=cax + by = c (or ax+by+c=0ax + by + c = 0). To sketch it, rearrange to gradient-intercept form.

Worked example 2 Converting general form to y = mx + c

Rewrite 3x+2y=123x + 2y = 12 in gradient-intercept form and state the gradient and yy-intercept.

  1. Subtract 3x3x: 2y=3x+122y = -3x + 12.
  2. Divide by 22: y=32x+6y = -\dfrac{3}{2}x + 6.
  3. Gradient m=32m = -\dfrac{3}{2}, yy-intercept c=6c = 6.
Worked example 3 Sketching using x- and y-intercepts

Sketch 4x+3y=244x + 3y = 24.

  1. Set x=0x = 0: 3y=243y = 24, so y=8y = 8. The yy-intercept is (0,8)(0, 8).
  2. Set y=0y = 0: 4x=244x = 24, so x=6x = 6. The xx-intercept is (6,0)(6, 0).
  3. Plot both intercepts and draw the straight line.

3. Gradient from two points

xy(x₁, y₁)(x₂, y₂)run = x₂ − x₁rise = y₂ − y₁

Formula reference

m=y2y1x2x1=riserunm = \frac{y_2 - y_1}{x_2 - x_1} = \frac{\text{rise}}{\text{run}}
Worked example 4 Gradient from two points

Find the gradient of the line through (2,3)(2, 3) and (8,15)(8, 15).

m=15382=126=2m = \frac{15 - 3}{8 - 2} = \frac{12}{6} = 2

The line rises 22 units for every 11 unit across.

Worked example 5 Negative gradient

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

m=573(1)=124=3m = \frac{-5 - 7}{3 - (-1)} = \frac{-12}{4} = -3

A negative gradient means the line falls from left to right.

4. Midpoint and distance formulas

Midpoint

The midpoint of a segment joining (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) is:

Formula reference

M=(x1+x22,  y1+y22)M = \left(\frac{x_1 + x_2}{2},\;\frac{y_1 + y_2}{2}\right)
Worked example 6 Midpoint between two points

Find the midpoint of A(1,4)A(1, 4) and B(7,10)B(7, 10).

M=(1+72,  4+102)=(4,  7)M = \left(\frac{1 + 7}{2},\;\frac{4 + 10}{2}\right) = (4,\;7)

Distance

The distance between two points uses Pythagoras’ theorem on the horizontal and vertical differences:

Formula reference

d=(x2x1)2+(y2y1)2d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}
Worked example 7 Distance between two points

Find the distance between P(2,1)P(2, 1) and Q(6,4)Q(6, 4).

d=(62)2+(41)2=16+9=25=5d = \sqrt{(6-2)^2 + (4-1)^2} = \sqrt{16 + 9} = \sqrt{25} = 5

5. Parallel and perpendicular lines

Parallel lines have the same gradient: m1=m2m_1 = m_2.

Perpendicular lines have gradients whose product is 1-1: m1×m2=1m_1 \times m_2 = -1.

Equivalently, if one line has gradient mm, a perpendicular line has gradient 1m-\dfrac{1}{m}.

Worked example 8 Testing parallel or perpendicular

Line AA: y=3x+1y = 3x + 1. Line BB: y=13x+5y = -\dfrac{1}{3}x + 5.

  1. Gradient of AA: mA=3m_A = 3.
  2. Gradient of BB: mB=13m_B = -\dfrac{1}{3}.
  3. Product: 3×(13)=13 \times \left(-\dfrac{1}{3}\right) = -1.
  4. Since the product is 1-1, the lines are perpendicular.
Worked example 9 Finding a parallel line through a given point

Find the equation of the line parallel to y=4x7y = 4x - 7 that passes through (2,5)(2, 5).

  1. A parallel line has the same gradient: m=4m = 4.
  2. Substitute into y=mx+cy = mx + c: 5=4(2)+c5 = 4(2) + c, so c=3c = -3.
  3. Equation: y=4x3y = 4x - 3.

Practice

Fluency

Tier 1: gradient, intercept and sketching

    1. State the gradient and yy-intercept of y=5x2y = 5x - 2.
    2. State the gradient and yy-intercept of y=3x+7y = -3x + 7.
    3. Rewrite 2x+y=102x + y = 10 in the form y=mx+cy = mx + c.
    4. Rewrite 6x3y=96x - 3y = 9 in gradient-intercept form.
    5. Find the xx- and yy-intercepts of 5x+2y=205x + 2y = 20.
    6. Find the gradient of the line through (1,2)(1, 2) and (4,11)(4, 11).
    7. Find the gradient of the line through (3,5)(-3, 5) and (1,7)(1, -7).
    8. Find the midpoint of (2,6)(2, 6) and (10,14)(10, 14).
    9. Find the distance between (0,0)(0, 0) and (5,12)(5, 12).
    10. Find the distance between (1,3)(-1, 3) and (2,7)(2, 7).
Reasoning

Tier 2: mixed practice

    1. A line passes through (0,4)(0, -4) with gradient 23\dfrac{2}{3}. Write its equation.
    2. Find the equation of the line through (1,5)(1, 5) and (3,11)(3, 11).
    3. Determine whether the lines y=2x+3y = 2x + 3 and 4x2y=74x - 2y = 7 are parallel, perpendicular, or neither.
    4. Find the midpoint and length of the segment joining A(2,3)A(-2, 3) and B(6,1)B(6, -1).
    5. A line has equation 3x+4y=243x + 4y = 24. Find its gradient, xx-intercept and yy-intercept.
    6. Find the equation of the line perpendicular to y=2x+1y = -2x + 1 that passes through (4,3)(4, 3).
    7. Show that the triangle with vertices A(0,0)A(0, 0), B(4,0)B(4, 0) and C(4,3)C(4, 3) is right-angled by calculating all three side lengths.
    8. The midpoint of P(a,3)P(a, 3) and Q(5,9)Q(5, 9) is (4,6)(4, 6). Find the value of aa.
Reasoning

Tier 3: explain and apply

    1. Explain why a vertical line cannot be written in the form y=mx+cy = mx + c. What happens to the gradient formula when x1=x2x_1 = x_2?
    2. Two hikers start at point A(1,2)A(1, 2) on a grid map (km units). Hiker 1 walks to B(7,10)B(7, 10). Hiker 2 walks to C(9,5)C(9, 5). Who walks further, and by how much?
    3. A quadrilateral has vertices P(0,0)P(0, 0), Q(6,0)Q(6, 0), R(8,4)R(8, 4), S(2,4)S(2, 4). By calculating gradients, show that PQRSPQRS is a parallelogram.
    4. The line y=kx+2y = kx + 2 is perpendicular to y=4x1y = 4x - 1. Find kk.
    5. Point M(3,5)M(3, 5) is the midpoint of A(1,2)A(1, 2) and BB. Find the coordinates of BB.

Challenge

Reasoning

Harder reasoning

    1. Prove that the diagonals of the rectangle with vertices A(0,0)A(0, 0), B(8,0)B(8, 0), C(8,6)C(8, 6), D(0,6)D(0, 6) bisect each other by finding both midpoints.
    2. A line passes through (2,1)(2, -1) and is perpendicular to the line 3x5y=103x - 5y = 10. Find its equation in general form ax+by=cax + by = c.
    3. Three points are A(1,1)A(1, 1), B(5,3)B(5, 3), C(3,5)C(3, 5). Find the perimeter of triangle ABCABC, giving your answer in exact (surd) form.
    4. The vertices of a triangle are P(1,4)P(-1, 4), Q(5,0)Q(5, 0) and R(3,8)R(3, 8). Find the length of the median from PP to the midpoint of QRQR.

Interactive

Try it yourself: build three lines

Work through 3 examples on one graph. Drag, check, then move to the next.

Example 1 (easy). Make your line pass through the red target at (2, 4). Many m and c work — any will do.

Point A
(0, 0)
Point B
(2, 2)
Slope m
1
Intercept c
0
Answers

Answer key

Attempt the practice first. When you're ready to check, expand the answers below.

Show the full answer key

Year 9 core - answers

Fluency

Tier 1: gradient, intercept and sketching

    1. Gradient =5= 5, yy-intercept =2= -2.
    2. Gradient =3= -3, yy-intercept =7= 7.
    3. y=2x+10y = -2x + 10.
    4. y=2x3y = 2x - 3.
    5. xx-intercept: (4,0)(4, 0); yy-intercept: (0,10)(0, 10).
    6. m=11241=93=3m = \dfrac{11 - 2}{4 - 1} = \dfrac{9}{3} = 3.
    7. m=751(3)=124=3m = \dfrac{-7 - 5}{1 - (-3)} = \dfrac{-12}{4} = -3.
    8. M=(2+102,  6+142)=(6,10)M = \left(\dfrac{2+10}{2},\;\dfrac{6+14}{2}\right) = (6, 10).
    9. d=25+144=169=13d = \sqrt{25 + 144} = \sqrt{169} = 13.
    10. d=9+16=25=5d = \sqrt{9 + 16} = \sqrt{25} = 5.
Reasoning

Tier 2: mixed practice

    1. y=23x4y = \dfrac{2}{3}x - 4.
    2. Gradient: m=11531=3m = \dfrac{11-5}{3-1} = 3. Using (1,5)(1, 5): 5=3(1)+c5 = 3(1) + c, c=2c = 2. Equation: y=3x+2y = 3x + 2.
    3. Rearrange 4x2y=74x - 2y = 7: y=2x72y = 2x - \dfrac{7}{2}. Gradient =2= 2. Same gradient as y=2x+3y = 2x + 3, so the lines are parallel.
    4. Midpoint: (2+62,  3+(1)2)=(2,1)\left(\dfrac{-2+6}{2},\;\dfrac{3+(-1)}{2}\right) = (2, 1). Length: 82+42=80=45\sqrt{8^2 + 4^2} = \sqrt{80} = 4\sqrt{5}.
    5. Rearrange: y=34x+6y = -\dfrac{3}{4}x + 6. Gradient =34= -\dfrac{3}{4}. yy-intercept: (0,6)(0, 6). xx-intercept: (8,0)(8, 0).
    6. Gradient of perpendicular: m=12m = \dfrac{1}{2}. Using (4,3)(4, 3): 3=12(4)+c3 = \dfrac{1}{2}(4) + c, c=1c = 1. Equation: y=12x+1y = \dfrac{1}{2}x + 1.
    7. AB=4AB = 4, BC=3BC = 3, AC=16+9=5AC = \sqrt{16 + 9} = 5. Check: 32+42=9+16=25=523^2 + 4^2 = 9 + 16 = 25 = 5^2. Right-angled at BB.
    8. Midpoint xx-coordinate: a+52=4\dfrac{a + 5}{2} = 4, so a+5=8a + 5 = 8, a=3a = 3.
Reasoning

Tier 3: explain and apply

    1. A vertical line has the form x=kx = k. In the gradient formula, x1=x2x_1 = x_2 makes the denominator zero, so mm is undefined. Since y=mx+cy = mx + c requires a defined mm, vertical lines cannot be written in this form.
    2. Hiker 1: d=62+82=100=10d = \sqrt{6^2 + 8^2} = \sqrt{100} = 10 km. Hiker 2: d=82+32=738.54d = \sqrt{8^2 + 3^2} = \sqrt{73} \approx 8.54 km. Hiker 1 walks further by (1073)1.46(10 - \sqrt{73}) \approx 1.46 km.
    3. Gradient of PQPQ: 06=0\dfrac{0}{6} = 0. Gradient of SRSR: 06=0\dfrac{0}{6} = 0. Gradient of PSPS: 42=2\dfrac{4}{2} = 2. Gradient of QRQR: 42=2\dfrac{4}{2} = 2. Opposite sides have equal gradients, so PQRSPQRS is a parallelogram.
    4. Perpendicular gradients: k×4=1k \times 4 = -1, so k=14k = -\dfrac{1}{4}.
    5. Midpoint formula: 3=1+xB23 = \dfrac{1 + x_B}{2} gives xB=5x_B = 5; 5=2+yB25 = \dfrac{2 + y_B}{2} gives yB=8y_B = 8. So B=(5,8)B = (5, 8).
Reasoning

Challenge

    1. Midpoint of ACAC: (0+82,  0+62)=(4,3)\left(\dfrac{0+8}{2},\;\dfrac{0+6}{2}\right) = (4, 3). Midpoint of BDBD: (8+02,  0+62)=(4,3)\left(\dfrac{8+0}{2},\;\dfrac{0+6}{2}\right) = (4, 3). Both midpoints are the same, so the diagonals bisect each other.
    2. Gradient of 3x5y=103x - 5y = 10 is 35\dfrac{3}{5}. Perpendicular gradient: 53-\dfrac{5}{3}. Through (2,1)(2, -1): y+1=53(x2)y + 1 = -\dfrac{5}{3}(x - 2). Multiply by 33: 3y+3=5x+103y + 3 = -5x + 10. Rearrange: 5x+3y=75x + 3y = 7.
    3. AB=16+4=20=25AB = \sqrt{16 + 4} = \sqrt{20} = 2\sqrt{5}. BC=4+4=8=22BC = \sqrt{4 + 4} = \sqrt{8} = 2\sqrt{2}. AC=4+16=20=25AC = \sqrt{4 + 16} = \sqrt{20} = 2\sqrt{5}. Perimeter =45+22= 4\sqrt{5} + 2\sqrt{2}.
    4. Midpoint of QRQR: (5+32,  0+82)=(4,4)\left(\dfrac{5+3}{2},\;\dfrac{0+8}{2}\right) = (4, 4). Distance from P(1,4)P(-1, 4) to (4,4)(4, 4): 25+0=5\sqrt{25 + 0} = 5.

Prefer paper? Print the answer key as a separate booklet: open print view ->