Junior Cycle Maths · Free game

Line Lab

Slopes, midpoints, distances and the equation of a line, against the clock. Read lines off the grid, find where they meet, and spot parallel and perpendicular lines. Stuck? The rules are just below the game.

Play

Choose your round

Tip: work it out on paper first, then tap. You can also answer with the keys 1, 2, 3 and 4. In the Slope round, every 5 in a row gives you 3 bonus seconds.

Junior Cycle Maths learning outcomes: GT.5a, GT.5b, GT.5c (2018 specification)
Need a refresher?

Coordinate geometry of the line

Spot the pattern

Here are five points on the line y = 2x + 1. Each time x goes up by 1, what happens to y? Where does the line cross the y-axis? Can you see both numbers in the equation?

x−2−1012
y−3−1135
Show me

Every step of 1 to the right, the line goes up 2: that's the 2 in front of x, the slope. When x = 0, y = 1: the line crosses the y-axis at (0, 1), the number on its own. That is the whole idea of y = mx + c: m is the slope and c is where the line meets the y-axis. What would y = 2x − 4 look like? (Just as steep, but crossing the y-axis at (0, −4).)

Slope: how steep is the line?

The slope (m) is the rise ÷ run: how far the line goes up for every step across. Going from A(−1, −1) to B(2, 1): run 3, rise 2, so the slope is 2/3.

slope m = (y₂ − y₁) ÷ (x₂ − x₁)

Positive slopeThe line rises from left to right (line a, slope 1).
Negative slopeThe line falls from left to right (line b, slope −2).
Zero slopeA flat (horizontal) line, like y = −3 (line c).

In a real graph the slope is the rate of change: euro per hour, litres per minute, euro per km. Where the graph meets the y-axis is the starting value: a call-out charge, a fixed charge, the water there at the start.

Midpoint and distance

MidpointAdd the x's and halve, add the y's and halve.
A(−2, −1), B(2, 2): M = (0, 0.5)
((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2)
Distance (length)It's Pythagoras: across 4, up 3, so √(4² + 3²) = √25 = 5.
√((x₂ − x₁)² + (y₂ − y₁)²)

Finding the other end: if M is the midpoint and you know A, go from A to M, then the same again. A(1, 2), M(3, 5): 2 across and 3 up, so B is (5, 8). Revise Pythagoras with Ladder Lab.

The equation of a line

y = mx + cm = slope, c = where it meets the y-axis, (0, c).
y = 3x − 5: slope 3, meets the y-axis at (0, −5).
y − y₁ = m(x − x₁)Use it when you know one point (x₁, y₁) and the slope. Through (2, 3) with slope 4: y − 3 = 4(x − 2), so y = 4x − 5.
Two points?Find the slope first, then use y − y₁ = m(x − x₁) with either point.
  • Get y on its own first. y = 7 − 2x has slope −2 (not 7). It's y = −2x + 7.
  • Is a point on the line? Put its x into the equation. If you get its y, it's on the line. (3, 4) is on y = 2x − 2 because 2 × 3 − 2 = 4.
  • Where does it cross the axes? On the y-axis x = 0; on the x-axis y = 0. y = 2x − 6 crosses the x-axis where 0 = 2x − 6, at (3, 0).
  • Higher Level: ax + by + c = 0. Get y on its own: 2x + 3y − 6 = 0 → 3y = −2x + 6 → y = −⅔x + 2. Shortcut: the slope is −a ÷ b.

Parallel, perpendicular and where lines meet

ParallelSame slope. y = 2x + 1 and y = 2x − 3 are parallel.
Perpendicular (Higher Level)The slopes multiply to −1: flip the fraction and change the sign. 2/3 → −3/2; 4 → −¼.
Where they meetRead the point where the lines cross, then check it in BOTH equations.
The classic mistakes: run ÷ rise instead of rise ÷ run; losing a minus sign when you subtract a negative (5 − (−2) = 7); mixing the order (y₂ − y₁ on top, x₂ − x₁ underneath, both from the same point first); subtracting for the midpoint (you add, then halve); adding instead of squaring for distance (√(3² + 4²), not 3 + 4); reading c as the slope; forgetting to get y on its own first; giving the slope of a parallel line the opposite sign.
Exam corner

Where this shows up in the exam

Coordinate geometry of the line comes up most years, usually as a graph or a list of points with parts that build on each other: the midpoint, the slope, the length, the equation, then a parallel line, where two lines meet, or a question about a real graph (costs, journeys, tanks filling). Higher Level adds perpendicular lines and lines written as ax + by + c = 0.

How marks are won and lost

  • Write the formula, then put in the numbers with brackets for negatives: (5 − (−1)) ÷ (2 − (−3)). The formulas are in the Formulae and Tables booklet.
  • Label (x₁, y₁) and (x₂, y₂) before you start, so the signs don't get mixed up.
  • Check your answer: put the points back into your equation, and check a meeting point in both lines.
  • In a context question, say what the numbers mean with units: "€2 per km", "a €4 fixed charge".

Try these exam-style questions

Written by Léim in the style of the exam (not taken from past papers). Try each one on paper first.

  1. The segment [AB]. A is (−3, 1) and B is (3, 5). (a) Find the midpoint of [AB]. (b) Find the slope of AB. (c) Find |AB|, the length of [AB], to 1 decimal place. (d) Find the equation of the line AB. (e) Does the point C(6, 7) lie on the line AB?
    Show the worked answer

    (a) ((−3 + 3) ÷ 2, (1 + 5) ÷ 2) = (0, 3).
    (b) (5 − 1) ÷ (3 − (−3)) = 4 ÷ 6 = 2/3.
    (c) √(6² + 4²) = √52 = 7.2.
    (d) y − 1 = ⅔(x − (−3)) → y − 1 = ⅔x + 2 → y = ⅔x + 3. (It goes through the midpoint (0, 3), so c = 3 ✓.)
    (e) ⅔ × 6 + 3 = 4 + 3 = 7 ✓ Yes, C is on the line.

  2. Two lines. The lines l and k are drawn on the grid.
    (a) Write down the point where l crosses the y-axis, and find the slope of l. (b) Write the equation of l. (c) Find the equation of k. (d) Write down the point where l and k meet, and check it in both equations. (e) Higher Level: are l and k perpendicular? Give a reason.
    Show the worked answer

    (a) (0, −2). From (0, −2) to (1, 1): run 1, rise 3, so the slope is 3.
    (b) y = 3x − 2.
    (c) k meets the y-axis at (0, 6) and falls 1 for every 1 across (slope −1): y = −x + 6.
    (d) (2, 4). Check: 3 × 2 − 2 = 4 ✓ and −2 + 6 = 4 ✓.
    (e) 3 × (−1) = −3, not −1, so no, they are not perpendicular.

  3. Taxi fares. A taxi company's fares are shown by a straight-line graph through (0, 4) and (10, 24), where x is the distance in km and y is the fare in euro. (a) Find the slope of the line and say what it means. (b) What does the point (0, 4) tell you? (c) Write the equation of the line. (d) How much is a 15 km journey? (e) A second company charges €3 per km with no fixed charge. Show that both companies charge the same for a 4 km journey.
    Show the worked answer

    (a) (24 − 4) ÷ (10 − 0) = 2: the fare goes up by €2 per km.
    (b) A €4 fixed charge, before the taxi moves.
    (c) y = 2x + 4.
    (d) 2 × 15 + 4 = €34.
    (e) First company: 2 × 4 + 4 = €12. Second company: 3 × 4 = €12. Both €12 ✓. (On a graph, this is where the two lines meet.)

  4. Parallel and perpendicular. The line p has equation y = 2x − 3. (a) Show that (4, 5) is on p. (b) Find the equation of the line through (1, 6) that is parallel to p. (c) Where does p cross the x-axis? (d) Higher Level: find the equation of the line through (2, 1) that is perpendicular to p. (e) Higher Level: show that 4x − 2y − 6 = 0 is the same line as p.
    Show the worked answer

    (a) 2 × 4 − 3 = 5 ✓, so (4, 5) is on p.
    (b) Same slope, 2: y − 6 = 2(x − 1) → y = 2x + 4.
    (c) 0 = 2x − 3 → x = 1.5: (1.5, 0).
    (d) Perpendicular slope: 2 → −½. y − 1 = −½(x − 2) → y − 1 = −½x + 1 → y = −½x + 2.
    (e) −2y = −4x + 6 → y = 2x − 3 ✓, the same as p.

Came up in: we'll link the past-paper questions that use this topic here soon.

3 pages: rules, 34 practice questions, answers. Free to print for home or class.

Teachers: want a full class lesson on this? Get the Coordinate Geometry of the Line Teacher Pack (€5): Line Lab mingle cards, Line Swap A/B cards, Line Dominoes, poster and worksheet.

Tick this topic off on your Maths checklist →

Parents: get the free guide

How to Get Your Child into College: CAO points, the Maths bonus, entry requirements and every other route in, in plain English.

Get the free guide