Grade by GradeEssential student suppliesSign in
3. Patterning · Patterning: Linear Relations and Multi-Step Equations

Horizontal and Vertical Lines

BC MA 9: graphing BC MA 9: horizontal lines BC MA 9: vertical linesAbout 45 minutes
Learning goals
  • I can graph horizontal lines y = b and vertical lines x = a, including rational values.
  • I can write the equation of a horizontal or vertical line through given points.
  • I can describe situations that give a horizontal line, such as driving at a constant speed.

Words to know

horizontal line
A line going straight across. Every point on it has the same y-coordinate, so its equation is y = b.
vertical line
A line going straight up and down. Every point on it has the same x-coordinate, so its equation is x = a.
constant relation
A relation whose output stays the same whatever the input is, such as y = 4.
origin
The point (0, 0) where the axes cross.

When one coordinate never changes

In the relation y = 2.5, the output is 2.5 no matter what x is. The points (-3, 2.5), (0, 2.5) and (4, 2.5) all fit, so the graph is a horizontal line crossing the y-axis at 2.5. Its rate of change is 0.

In x = -1.5, every point has x-coordinate -1.5: (-1.5, -2), (-1.5, 0), (-1.5, 3). The graph is a vertical line crossing the x-axis at -1.5.

Two special cases: y = 0 is the x-axis itself, and x = 0 is the y-axis itself.

Point(-3, 2.5)(0, 2.5)(4, 2.5)(-1.5, -2)(-1.5, 3)
On y = 2.5?yesyesyesnono
On x = -1.5?nononoyesyes
Only the y-coordinate matters for y = 2.5; only the x-coordinate matters for x = -1.5.
y = 2.5 and x = -1.5-4-3-2-1012345-3-2-101234xy(-1.5, 2.5)y = 2.5x = -1.5
The two lines cross at (-1.5, 2.5), the only point on both.
Worked example

Example 1: Write the equation

Write the equation of the line through (3, -2) and (3, 5), and of the line through (-1, 4) and (6, 4).

  1. (3, -2) and (3, 5) share the x-coordinate 3, so the line is vertical.
  2. (-1, 4) and (6, 4) share the y-coordinate 4, so the line is horizontal.

x = 3 and y = 4

Worked example

Example 2: Area inside four lines

Find the area of the rectangle formed by the lines x = -2, x = 3, y = -1 and y = 4.

  1. Width: from x = -2 to x = 3 is 3 - (-2) = 5 units.
  2. Height: from y = -1 to y = 4 is 4 - (-1) = 5 units.
  3. Area = 5 × 5 = 25

25 square units (it is a square).

Worked example

Example 3: A horizontal line in real life

A car on the Coquihalla Highway uses cruise control at 100 km/h for 2 hours. Graph speed against time. What is the equation?

  1. Time is the input t and speed is the output s.
  2. At every time from 0 to 2 hours the speed is 100 km/h.
  3. So the graph is a horizontal line segment at s = 100 from t = 0 to t = 2. The rate of change of speed is 0.

s = 100, for 0 to 2 hours.

Which letter goes in the equation?

Look at what stays the same. If all the y-coordinates are equal, the line is horizontal and the equation is y = that number. If all the x-coordinates are equal, the line is vertical and the equation is x = that number. A common mistake is to think a vertical line is "y = ..." because it goes up and down.

Hands-on activity

Room on a grid

Draw a coordinate plane on graph paper with the origin at the centre.

  1. Draw a rectangle using only four lines of the form x = a and y = b, with at least one decimal value (such as x = 2.5).
  2. Write the four equations and work out the rectangle's perimeter and area.
  3. Give the equations to someone else and see if they draw the same rectangle.
Just for fun

Riddle: I go through (7, 1), (7, -20) and (7, 3/4), but I never touch the y-axis. What am I? (The line x = 7.)

Your turn

1

Write the equation of the horizontal line through (2.5, -1.5).

2

Write the equation of the vertical line through (-0.75, 6).

3

Where do x = 0.5 and y = -2 cross?

4

Which of these points are on y = -3: (-3, 1), (4, -3), (0, -3)?

5

Find the area of the rectangle formed by x = 1, x = 4.5, y = 0 and y = 2.

6

What is the equation of the x-axis? Of the y-axis?

More practice

1

A parking lot charges a flat $8 for any stay up to 4 hours. Describe the graph of cost against time for that range.

2

Find the perimeter of the rectangle formed by x = -3, x = 2, y = -1.5 and y = 1.

3

Is the line through (-2, 5) and (5, -2) horizontal, vertical or neither?

4

How far apart are the lines y = -2.5 and y = 1.75?

Check your understanding

Quiz

1.

Which equation describes a vertical line?

2.

What is the equation of the line through (-4, 1.5) and (3, 1.5)?

3.

Where do the lines x = -3 and y = 0.5 meet?

4.

What is the rate of change of the relation y = 7?

For parents and teachers

Your child is graphing horizontal lines (y = b) and vertical lines (x = a), including decimal values.

How to help: ask what stays the same in a list of points such as (3, -2), (3, 0), (3, 5). Point out flat stretches on graphs you see, such as a car on cruise control.

Common mistakes: writing y = 3 for a vertical line through x = 3 (the equation is x = 3); thinking a horizontal line has no rate of change at all, rather than a rate of change of 0.