Horizontal and vertical lines
Picture a shelf and a flagpole. Every place on the shelf has the same height, even when you move across it. A horizontal line does that: y stays fixed while x can vary. Every place on the flagpole has the same across position, even when you move up it. A vertical line does that: x stays fixed while y can vary. These descriptions tell you which letter belongs in each equation. A horizontal line is a function because each input gives one height. A vertical line gives several heights at the same input, so it is a line but not a function of x.
- Coordinate order. In (7, 5), x = 7 and y = 5.
- Subtracting a negative. 5 − (−3) = 8 is the horizontal distance between those inputs.
- Zero in a fraction. = 0, while is undefined.
- Function requirement. One input may give one output: input 7 cannot give both 0 and 5 in a function.
- Slope formula. Slope = ; a rise of 0 over a run of 8 gives 0.
Say: horizontal keeps height; vertical keeps across position.
A constant coordinate identifies a horizontal or vertical line.
- horizontal: y = c
- vertical: x = c
- horizontal: m = 0
- vertical: slope undefined
A shelf holds one height; a flagpole holds one across position.
Walking horizontally changes only x. Walking vertically changes only y. The other coordinate must stay fixed.
The equation y = −4 assigns height −4 to every input. The equation x = 7 permits many heights at one input, so no single output rule can describe it as y = f(x).
| Line | Equation | Slope |
|---|---|---|
| Horizontal through (−3, 2) and (5, 2) | y = 2 | 0 |
| Horizontal through (−3, −4) and (5, −4) | y = −4 | 0 |
| Vertical through (7, 0) and (7, 5) | x = 7 | undefined |
.1Horizontal line
A horizontal line is like a level shelf. Its height is unchanged no matter how far you move left or right. A constant function gives that same output for every input. You can write it as f(x) = c or y = c.
- Rule: y = c = 0x + c has slope 0.
- Rule: Its y-intercept is (0, c). If c ≠ 0, it has no x-intercept.
- Rule: y = 0 is the x-axis itself, so every point on it has output 0.
- Zero multiplication. 0 × 7 − 4 = −4, which is why a constant function ignores the input.
Say: every input gets the same height.
A horizontal line is the graph of a constant function.
- y = c
- f(x) = c
- m = 0
Every spot on a level shelf is the same height.
You need the line through (−3, −4) and (5, −4).
- Both heights are −4, so write y = −4.The output stays constant while the input changes.
- Compute m = = = 0.There is no vertical change over the nonzero horizontal change.
- Check each point: its second coordinate is −4.The equation describes both original addresses.
- y = −4.
- Slope: 0.
- Tip: Memory device HOY: Horizontal, slope 0, equation uses Y. A shelf's fixed height explains the Y.
.2Vertical line
A vertical line is like a flagpole planted at one across position. Heights change but the across position never does. Its equation fixes x. Calling its slope undefined means there is no slope number, not a very large number and not zero.
- Rule: x = c has undefined slope because the run is 0.
- Rule: A vertical line fails the vertical line test and is not a function of x.
- Rule: x = c meets the x-axis at (c, 0). If c ≠ 0, it never meets the y-axis; x = 0 is the y-axis itself.
- Function requirement. A rule assigning both 0 and 5 to input 7 is not a function.
- Division by zero. has no value because no number multiplied by 0 makes 5.
Say: every height uses the same across position.
A vertical line fixes the input and permits many outputs.
- x = c
- run = 0
- is undefined
Different places up a flagpole are all above its same base.
You need the line through (7, 0) and (7, 5).
- Both input coordinates are 7, so write x = 7.The across position stays fixed while the heights differ.
- Compute rise 5 − 0 = 5 and run 7 − 7 = 0. The slope is undefined.The slope calculation would divide by zero.
- Check both points: each has x = 7.They both lie on the equation's fixed across position.
- On the x-axis, y = 0. Keeping x = 7 gives its x-intercept point (7, 0).The point's zero height puts it on the x-axis, and the original equation keeps its input 7.
- On the y-axis, x must be 0. That would require 0 = 7 in this equation, which is false, so this line has no y-intercept.The fixed input 7 cannot also be the y-axis input 0.
- x = 7.
- Slope: undefined.
- It is not a function of x.
- x-intercept point: (7, 0).
- No y-intercept.
- Tip: Memory device VUX: Vertical, Undefined slope, equation uses X. The flagpole fixes the across position.
- 1. Compare the coordinates of two distinct points.
- 2. If their y-values match, keep that output fixed: y = c.
- 3. If their x-values match, keep that input fixed: x = c.
- 4. Check both given points in the equation.
- 5. Do not force a vertical line into y = mx + b.
Strategy: identify the fixed coordinate
- Read the coordinates of at least two distinct points.
- Keep the repeated coordinate letter and value in the equation.
- Compute rise and run if a slope is requested.
- Use the function requirement to decide whether it can be y = f(x).
You need equations for the horizontal line through (−3, −4) and (5, −4), and the vertical line through (7, 0) and (7, 5).
- For the horizontal pair, both outputs are −4: y = −4.The second coordinate stays fixed, as on a shelf.
- Its slope is = = 0.Zero rise over a nonzero run is zero.
- For the vertical pair, both inputs are 7: x = 7.The first coordinate stays fixed, as on a flagpole.
- Its slope would be = , so it is undefined.A zero denominator has no division value.
- Check the pairs in their equations: the first pair has y = −4, and the second pair has x = 7.Each equation must include both given points.
- Horizontal equation: y = −4.
- Horizontal slope: 0.
- Vertical equation: x = 7.
- Vertical slope: undefined.
- The vertical line is not a function of x.
- Tip: Use HOY and VUX, then check a supplied point to make sure the remembered letter fits.
- Tip: The y-axis x = 0 does not have one special crossing with itself. Every point on it is already on the y-axis.