Horizontal and Vertical Lines
The lines and : what they look like, their gradients, the axes as lines, where they meet other lines, and the areas they enclose.
Before you start
- A horizontal line has gradient : going along it, the vertical change is (Secondary 1).
- The graph of is a straight line. Its -intercept is found by putting and its -intercept by putting (lesson 2.2).
Horizontal Lines: y = k
In , may be . Then the equation has no term: for example , which is , or .
The equation says nothing about , so can be any number, and is always : , and are all solutions. These points are all at the same height, so they lie on a horizontal line.
The line y = k
The graph of , where is a number, is the horizontal line through . Every point on it has -coordinate .
It is parallel to the -axis. Its gradient is : between any two of its points the vertical change is .
Vertical Lines: x = h
If , the equation has no term: for example , which is , or . Now can be any number and is always : , and all lie on it, one above another, on a vertical line.
The line x = h
The graph of , where is a number, is the vertical line through . Every point on it has -coordinate .
It is parallel to the -axis. Its gradient is undefined: between any two of its points the horizontal change is , and a vertical change cannot be divided by .
A vertical line cannot be written in the form (lesson 2.3): on it one value of goes with every value of , so cannot be found from . (Its equation has no term, so cannot be made the subject.)
Example 1: Drawing horizontal and vertical lines
On one pair of axes, draw the lines , , and . State the gradient of each.
Solution
: the horizontal line through , units above the -axis.
: the horizontal line through , units below the -axis.
: the vertical line through , units to the right of the -axis.
: the vertical line through , unit to the left of the -axis.
and are horizontal, with gradient ; and are vertical, with gradient undefined.
The Axes, Lines Through a Point, and Tidying an Equation
The axes as lines
Every point on the -axis has -coordinate , so the -axis is the line .
Every point on the -axis has -coordinate , so the -axis is the line .
Example 2: Lines through a given point
Write down the equation of the line through that is (a) parallel to the -axis, (b) parallel to the -axis.
Solution
(a) A line parallel to the -axis is horizontal. Every point on it has the same -coordinate as , which is : .
(b) A line parallel to the -axis is vertical. Every point on it has the same -coordinate, : .
(a) (b)
An equation with only one variable in it may need tidying before you can see which line it is. Solve it for that variable.
Example 3: Tidying an equation
Write each equation in the form or and say whether its graph is horizontal or vertical. (a) (b) (c) (d)
Solution
(a) Add : . Divide by : . Horizontal.
(b) Subtract : . Divide by : . Vertical.
(c) Add to both sides and subtract : , so . Horizontal.
(d) Divide by : . Vertical: it is the -axis itself.
(a) , horizontal (b) , vertical (c) , horizontal (d) , vertical (the -axis)
Example 4: Which points lie on the line?
Which of the points , , and lie on (a) , (b) ?
Solution
(a) A point lies on when its -coordinate is , whatever its -coordinate: and .
(b) A point lies on when its -coordinate is : and .
Take care with and : they contain the number , but as the -coordinate, so they are not on .
(a) and (b) and
Where Lines Meet
The point where two lines meet lies on both, so its coordinates make both equations true.
A vertical line and a horizontal line always meet, at . To find where meets a sloping line, put into the sloping line's equation and solve for ; for , put in and solve for .
Example 5: Meeting points
Find the point where (a) meets , (b) meets , (c) meets .
Solution
(a) The point has and : .
(b) The point has . Put it into : , so . The point is . Check: .
(c) The point has . Put it into : , so , and . The point is . Check:
(a) (b) (c)
Areas Enclosed by Lines
Horizontal and vertical lines, the axes and a sloping line can enclose a rectangle or a triangle. Find the corners as meeting points first. A length along a horizontal or vertical side is the difference of the coordinates at its ends, and it is never negative.
Example 6: A rectangle
The lines and and the two axes enclose a rectangle. Find its area and its perimeter.
Solution
The axes are and . The corners are where the lines meet: , , and .
Width: from to , units. Height: from to , units.
Area square units. Perimeter units.
The area is square units and the perimeter is units.
Example 7: A triangle with a sloping side
The lines , and enclose a triangle. Find the coordinates of its corners and its area.
Solution
meets at .
meets : , so , at .
meets : , so , at .
The triangle has a right angle at . Its base along is units and its height along is units.
Area square units.
The corners are , and , and the area is square units.
Equations from a Graph
Example 8: Reading the equations
Write down the equations of the lines , , and .
Solution
is horizontal and crosses the -axis at : every point on it has .
is vertical and crosses the -axis at : every point on it has .
is horizontal, halfway between and on the -axis: .
is vertical through on the -axis: .
: ; : ; : ; : .
Common Mistakes
- Drawing across the page. is the line where is always , so it runs up and down through . runs across.
- Calling the -axis . On the -axis it is that is : the -axis is and the -axis is .
- Saying a vertical line has gradient . Gradient belongs to a horizontal line; the gradient of a vertical line is undefined.
- Losing a minus sign in a length. The side from to is units long, not .
Practice Questions
Work each question on paper before you open its solution. The questions get harder as you go.
Question 1
For each equation, say whether its graph is horizontal or vertical, and give its gradient. (a) (b) (c) (d)
ShowHide solution
(a) Horizontal; gradient .
(b) Vertical; gradient undefined.
(c) , so : horizontal; gradient .
(d) , so : vertical; gradient undefined.
(a) horizontal, (b) vertical, undefined (c) , horizontal, (d) , vertical, undefined
Question 2
On one pair of axes, draw the lines , , and .
ShowHide solution
and are vertical, through and . and are horizontal, through and .
Two vertical lines through and on the -axis, and two horizontal lines through and on the -axis.
Question 3
Write down the equation of (a) the -axis, (b) the line through parallel to the -axis, (c) the line through parallel to the -axis, (d) the line through and , (e) the line through and .
ShowHide solution
(a) Every point on the -axis has : .
(b) Vertical, with the -coordinate of : .
(c) Horizontal, with the -coordinate of : .
(d) Both points have -coordinate , so the line is vertical: .
(e) Both points have -coordinate , so the line is horizontal: .
(a) (b) (c) (d) (e)
Question 4
Write each equation in the form or . (a) (b) (c) (d)
ShowHide solution
(a) , so .
(b) , so .
(c) Divide by : , so .
(d) Subtract : , so .
(a) (b) (c) (d)
Question 5
Which of the points , , and lie on (a) , (b) ?
ShowHide solution
(a) -coordinate : and .
(b) -coordinate : and .
(a) and (b) and
Question 6
Find the point where (a) meets , (b) meets , (c) meets , (d) the -axis meets .
ShowHide solution
(a) .
(b) Put : , so and : . Check: .
(c) Put : , so and : . Check: .
(d) The -axis is : , so : .
(a) (b) (c) (d)
Question 7
Write down the equations of the lines , and , and the coordinates of the point where and meet.
ShowHide solution
is vertical through on the -axis: .
is horizontal through on the -axis: .
is vertical through on the -axis: .
and meet where and : .
: ; : ; : . and meet at .
Question 8
The lines , , and enclose a rectangle. Find its area and its perimeter.
ShowHide solution
Width: from to is units. Height: from to is units.
Area square units. Perimeter units.
Area square units, perimeter units.
Question 9
The -axis and the lines and enclose a triangle. Find its corners and its area.
ShowHide solution
The -axis is . It meets at .
in : , , at .
in : , , at .
The right angle is at . Base units, height units. Area square units.
Corners , and ; area square units.
Question 10
The lines , , and enclose a rectangle of area square units. Find the two possible values of .
ShowHide solution
The width is units, so the height is units.
The line is units above or below : or .
or
Question 11
A car park charges a flat $ for any stay of up to 4 hours. (a) Draw the graph of the charge, $, against the time, hours, for . (b) Write down its equation and its gradient, and say what the gradient means.
ShowHide solution
(a) Whatever the time, the charge is $: a horizontal line at from to , with an open circle at , since is not included, and a filled dot at , since is.
(b) The equation is , with gradient : the charge does not change as the time goes on.
(b) ; gradient , because the charge stays at $ however long the stay (up to 4 hours).
Question 12
A rectangular garden plot is marked out by the lines , , and , where and 1 unit stands for 1 m. Fencing all round it costs $ per metre, and the fence costs $. Find and the area of the plot.
ShowHide solution
Length of fence m.
The plot is m by m, so its perimeter is . Divide by : , so .
Area m.
; the area is m.
Key Points
- is the horizontal line through ; its gradient is . It is with .
- is the vertical line through ; its gradient is undefined. It is with .
- The -axis is and the -axis is .
- The line through parallel to the -axis is ; parallel to the -axis, .
- Tidy an equation in one variable by solving it: is .
- and meet at . To meet a sloping line, substitute and solve.
- For an enclosed area, find the corners first; lengths are differences of coordinates and never negative.