Junior Cycle Maths

Geometry and trigonometry · Chapter 31

Straight lines and their equations

Clear notes, 6 worked examples and 6 questions to try.

01 · Understand the idea

The essentials

Key terms

Y-intercept
The y-value when x is zero.
Point-slope form
An equation using one known point and the slope.
General form
A line written as ax+by+c=0\displaystyle ax+by+c=0 with a and b not both zero.

Key ideas

  • In y=mx+c\displaystyle y=mx+c, m is the slope and c is the y-intercept.
  • Given a point (x1,y1)\displaystyle (x_1,y_1) and slope m, use y−y1=m(x−x1)\displaystyle y-y_1=m(x-x_1).
  • Parallel non-vertical lines have equal slopes. Perpendicular lines with defined non-zero slopes satisfy m1m2=−1\displaystyle m_1m_2=-1.
  • For ax+by+c=0\displaystyle ax+by+c=0 with b≠0\displaystyle b\ne0, the slope is −ab\displaystyle -\frac ab. If b is zero, the line is vertical.
  • Find an intersection by solving both equations together. Interpret the point in the context.
The two lines meet at (1, 3), which satisfies both equations.
From A(0,1) to B(4,3), move 4 across and 2 up. The slope is vertical change over horizontal change: 2/4 = 1/2.

03 · Follow the working

Worked examples

Read the question first. Cover the working and decide what you would do next.

New step-by-step examples

Finding an equation from two points

Find the equation through (1, 5) and (4, 11).

m=y2−y1x2−x1m=\dfrac{y_2-y_1}{x_2-x_1}

Write the slope formula.

m=11−54−1m=\dfrac{11-5}{4-1}

Substitute both points in the same order.

m=63=2m=\dfrac{6}{3}=2

Simplify to get the slope.

y=2x+cy=2x+c

Insert the slope. If the slope is given, start here with that value.

5=2(1)+c5=2(1)+c

Use the point (1, 5).

5=2+c5=2+c

Multiply first.

c=5−2=3c=5-2=3

Subtract 2 from both sides.

Final answery=2x+3y=2x+3
Parallel and perpendicular lines

Find the parallel to y = 2x + 5 through (4, 1).

y=2x+cy=2x+c

Keep the slope 2.

1=2(4)+c1=2(4)+c

Substitute the point.

c=1−8=−7c=1-8=-7

Subtract 8 from both sides.

Final answery=2x−7y=2x-7

Find the perpendicular to y = 2x + 5 through (4, 1).

m2=−12m_2=-\dfrac{1}{2}

Flip the slope 2 over 1 and change the sign.

1=−12(4)+c1=-\dfrac{1}{2}(4)+c

Use the new slope and substitute the point.

1=−2+c1=-2+c

Multiply first.

c=1+2=3c=1+2=3

Add 2 to both sides.

Final answery=−12x+3y=-\dfrac{1}{2}x+3
Finding where two lines meet
xy-6-5-4-3-2-1123456-3-2-11234(1, 3)
The blue line is y = 2x + 1. The purple line is y = −x + 4.

Find the intersection of y = 2x + 1 and y = −x + 4.

2x+1=−x+42x+1=-x+4

Both expressions equal y, so set them equal.

3x=33x=3

Add x to both sides, then subtract 1.

x=1x=1

Divide both sides by 3.

y=2(1)+1=3y=2(1)+1=3

Substitute x into either original equation.

Final answer(1,3)(1,3)
01A parallel line through a point

A line passes through P(−2,−3)\displaystyle P \left(- 2 , - 3\right) and is parallel to y=−3x+2\displaystyle y = - 3x + 2. What is the y-intercept of this line?

Why this method? Identify the slope and any known point. Use these to form an equation, and check it using the original information.

  1. y=−3x+c\displaystyle y=-3x+c
    Why?The given line has slope −3\displaystyle - 3. A parallel line has the same slope, but may have a different intercept c.
  2. −3=−3(−2)+c\displaystyle -3=-3(-2)+c
    Why?The new line passes through (−2,−3),\displaystyle \left(- 2 , - 3\right) , so put x=−2\displaystyle x = - 2 and y=−3\displaystyle y = - 3 into its equation.
  3. −3=6+c\displaystyle -3=6+c
    Why?Calculate −3×(−2)=+6\displaystyle - 3 \times \left(- 2\right) = + 6.
  4. −3−6=c\displaystyle -3-6=c
    Why?Subtract 6\displaystyle 6 from both sides to leave c on its own.
  5. c=−9\displaystyle c=-9
    Why?The y-intercept value is −9,\displaystyle - 9 , at the point (0,−9)\displaystyle \left(0 , - 9\right).
  6. −3=−3(−2)−9\displaystyle -3=-3(-2)-9
    Why?Check the known point: the right side is 6−9=−3\displaystyle 6 - 9 = - 3.

Think about it: Before moving on: why does a parallel line have the same slope as the line it is parallel to?

02Where two lines meet

The lines y=1x+6\displaystyle y = 1x + 6 and y=2x+3\displaystyle y = 2x + 3 meet at one point. What is the x-coordinate of that point?

Why this method? Identify the slope and any known point. Use these to form an equation, and check it using the original information.

  1. x+6=2x+3\displaystyle x+6=2x+3
    Why?At the intersection both expressions have the same y-value. Set them equal.
  2. 6=x+3\displaystyle 6=x+3
    Why?Subtract x from both sides to leave one x on the right.
  3. x=3\displaystyle x=3
    Why?Subtract 3\displaystyle 3 from both sides.
  4. y=3+6=9\displaystyle y=3+6=9
    Why?The question asks only for x. To see the complete point, substitute x=3\displaystyle x = 3 into either line.
  5. y=2(3)+3=9\displaystyle y=2(3)+3=9. The intersection is (3,9)\displaystyle (3,9).
    Why?Check the other line; it must give the same y.

Think about it: Before moving on: why do the two lines have the same y-value at the point where they meet?

03Rate of change with a starting amount

A tank holds 55\displaystyle 55 litres and loses 6\displaystyle 6 litres each minute. How many litres are in the tank after 4\displaystyle 4 minutes?

Why this method? Identify the slope and any known point. Use these to form an equation, and check it using the original information.

  1. 6×4=24\displaystyle 6\times4=24
    Why?Find the total lost:6\displaystyle : 6 litres each minute for 4\displaystyle 4 minutes is 24\displaystyle 24 litres.
  2. 55−24=31\displaystyle 55-24=31
    Why?Subtract the loss from the starting 55\displaystyle 55 litres.
  3. There are 31\displaystyle 31 litres left.
    Why?The result is smaller than 55\displaystyle 55 litres, as expected for a leak.

Think about it: Before moving on: why is the starting amount needed as well as the rate?

04The equation of a line from its slope and a point

A straight line has slope −2\displaystyle - 2 and passes through the point (2,−5)\displaystyle \left(2 , - 5\right). Find its equation in the form y=\displaystyle y = mx +c\displaystyle + c.

Why this method? Identify the slope and any known point. Use these to form an equation, and check it using the original information.

  1. c=−5−(−2×2)=−1\displaystyle c = - 5 - \left(- 2 \times 2\right) = - 1
    Why?Substitute the slope m and the point (x₁, y₁) into c=y\displaystyle c = y₁ −m×x\displaystyle - m \times x₁
  2. y=−2x−1\displaystyle y = - 2x - 1
    Why?Write the line with that intercept

Think about it: Before moving on: why does the intercept c come from subtracting m×x\displaystyle m \times x₁ from y₁?

05Slope of a perpendicular line

A line has slope 3\displaystyle 3. Which is the slope of a line perpendicular to it?

Why this method? Identify the slope and any known point. Use these to form an equation, and check it using the original information.

  1. 3×\displaystyle 3 \times slope =−1\displaystyle = - 1
    Why?Perpendicular slopes multiply to −1\displaystyle - 1
  2. −13\displaystyle - \frac{1}{3}
    Why?So the perpendicular slope is the negative reciprocal

Think about it: Before moving on: why does the sign change as well as the fraction turning over?

06Slope of a line in the general form

The line 7x+2y+6=0\displaystyle 7x + 2y + 6 = 0 has a slope. What is its slope?

Why this method? Identify the slope and any known point. Use these to form an equation, and check it using the original information.

  1. y=−72x+−62\displaystyle y = - \frac{7}{2x} + - \frac{6}{2}
    Why?Rearrange to y=\displaystyle y = mx +k:\displaystyle + k : take ax and c to the other side, then divide by b
  2. m=−72\displaystyle m = - \frac{7}{2}
    Why?The slope is the coefficient of x

Think about it: Before moving on: why is the slope not simply the coefficient of x, but −ab\displaystyle - \frac{a}{b}?

Common mistake

Using a negative slope to mean “perpendicular.” A line of slope 2\displaystyle 2 is perpendicular to one of slope −12\displaystyle -\frac12, not −2\displaystyle - 2. For two finite slopes, the product must be −1\displaystyle - 1. A horizontal line is perpendicular to a vertical line, whose slope is undefined.

Exam technique

Substitute the given point into your final equation to check it.

Show your method, use units where appropriate and check whether the question asks for an exact or rounded answer.

04 · Try it yourself

Self-check questions

Work on paper first, then open the answer. These are practice questions, not submitted homework.

Question 1

A line passes through P(4,9)\displaystyle P \left(4 , 9\right) and is parallel to y=2x−3\displaystyle y = 2x - 3. What is the y-intercept of this line?

Show answer & check
1\displaystyle 1

Compare your result with the answer. If it differs, revisit a worked example and check each step.

Question 2

The lines y=3x+2\displaystyle y = 3x + 2 and y=−1x+10\displaystyle y = - 1x + 10 meet at one point. What is the x-coordinate of that point?

Two lines y = 3x + 2 and y = −x + 10 on numbered axes. Use their intersection to read the x-coordinate.
Show answer & check
2\displaystyle 2

Compare your result with the answer. If it differs, revisit a worked example and check each step.

Question 3

A tank holds 90\displaystyle 90 litres and loses 7\displaystyle 7 litres each minute. How many litres are in the tank after 5\displaystyle 5 minutes?

Show answer & check
55\displaystyle 55

Compare your result with the answer. If it differs, revisit a worked example and check each step.

Question 4

A straight line has slope 2\displaystyle 2 and passes through the point (3,1)\displaystyle \left(3 , 1\right). Find its equation in the form y=\displaystyle y = mx +c\displaystyle + c.

  1. y=2x+1\displaystyle y = 2x + 1
  2. y=2x+7\displaystyle y = 2x + 7
  3. y=2x\displaystyle y = 2x
  4. y=2x−5\displaystyle y = 2x - 5
Show answer & check
y=2x−5\displaystyle y = 2x - 5

Correct:c=1−2×3=−5,\displaystyle : c = 1 - 2 \times 3 = - 5 , so y=2x−5\displaystyle y = 2x - 5.

Question 5

A line has slope 14\displaystyle 14. Which is the slope of a line perpendicular to it?

  1. −114\displaystyle - \frac{1}{14}
  2. −14\displaystyle - 14
  3. 14\displaystyle 14
  4. 114\displaystyle \frac{1}{14}
Show answer & check
−114\displaystyle - \frac{1}{14}

Correct.

Question 6

The line 5x+2y+7=0\displaystyle 5x + 2y + 7 = 0 has a slope. What is its slope?

  1. −52\displaystyle - \frac{5}{2}
  2. 52\displaystyle \frac{5}{2}
  3. −25\displaystyle - \frac{2}{5}
Show answer & check
−52\displaystyle - \frac{5}{2}

Correct.

Watch an explanation

Videos for this chapter

Choose one explanation, pause to work an example, then return to the notes. All Maths videos →

Classroom resources

Open slides & animated PowerPoint →

Explore the interactive →

Open full-size image ↗
Enlarged maths diagram