Quarry School

Horizontal and vertical lines

Subject: MathematicsLeans on: Coordinate orderLeans on: Subtracting a negativeLeans on: Zero in a fractionLeans on: Function requirementLeans on: Slope formula
Level 2 · BuildingAbout 6 min read9 new terms
How this was estimated

Programmatic estimate. Rung levels, worked steps, prerequisites, terms and sentence length contribute to this level. It describes the lesson, not your ability.

Reading counts the whole lesson, including folded explanations, at 180 words a minute. Practice allows two minutes per item. These are planning assumptions; take the time you need.

AI estimate unavailable.

Path to here

Open the unit’s lesson list to follow the lesson order.

    Quick review (2 minutes)

    In plain words

    Picture a shelf and a flagpole.

    Rule

    Rule: A horizontal line has equation y = c and slope 0. A vertical line has equation x = c, undefined slope, and is not a function of x.

    Step

    1. 1. Compare the coordinates of two distinct points.

    2. 2. If their y-values match, keep that output fixed: y = c.

    3. 3. If their x-values match, keep that input fixed: x = c.

    4. 4. Check both given points in the equation.

    5. 5. Do not force a vertical line into y = mx + b.

    Question

    You need the line through (−3, −4) and (5, −4).

    Answer

    y = −4.
    Slope: 0.

    Strategy

    1. Read the coordinates of at least two distinct points.

    2. Keep the repeated coordinate letter and value in the equation.

    3. Compute rise and run if a slope is requested.

    4. Use the function requirement to decide whether it can be y = f(x).

    Trap

    Writing y = 7 for the vertical line. Say what stays fixed before choosing the letter. Fixed across position means x; fixed height means y.

    Term

    graph

    Definition

    A picture of number pairs. Each plotted point places its first number horizontally and its second number vertically. A function's graph shows its inputs and corresponding outputs.

    Term

    input

    Definition

    The number you put into a function's rule. It appears inside the function's parentheses and is usually the horizontal coordinate x on its graph.

    Term

    output

    Definition

    The number a function gives after using its input. It is written f(x), and it is the vertical coordinate y when the function is graphed.

    Term

    x-axis

    Definition

    The horizontal number line on a coordinate graph. Every point on it has y = 0. Positive x goes right and negative x goes left.

    Term

    y-axis

    Definition

    The vertical number line on a coordinate graph. Every point on it has x = 0. Positive y goes up and negative y goes down.

    Term

    y-intercept

    Definition

    Where a graph meets the y-axis. Its input is x = 0. For y = mx + b, the intercept value is b and the intercept point is (0, b).

    Term

    slope

    Definition

    A line's signed vertical change divided by its signed horizontal change. It tells the output change per input unit. A vertical line has no defined slope because its horizontal change is 0.

    Term

    rise

    Definition

    The signed vertical change between two points, y2 − y1. An upward move has positive rise, and a downward move has negative rise.

    Term

    run

    Definition

    The signed horizontal change between two points, x2 − x1. A rightward move has positive run, and a leftward move has negative run.

    Term

    x-intercept

    Definition

    Where a graph meets the x-axis. The output there is 0. The intercept value is the input x, and its full point is (x, 0).

    Term

    horizontal line

    Definition

    A line with the same vertical coordinate at every point. Its equation is y = c for a fixed number c, and its slope is 0.

    Term

    vertical line

    Definition

    A line with the same horizontal coordinate at every point. Its equation is x = c. Its slope is undefined, and it is not a function of x.

    Term

    constant function

    Definition

    A function that gives the same output for every input in its domain. Its graph is horizontal, and its rate of change is 0.

    Term

    undefined slope

    Definition

    The situation on a vertical line: its run is 0, so rise divided by run requires division by 0. No numerical slope exists. Undefined slope is different from slope 0.

    Term

    vertical line test

    Definition

    A graph represents y as a function of x exactly when every vertical line meets it at most once. Two meetings would give one input two different outputs.

    Term

    function

    Definition

    A rule assigning exactly one output to each allowed input. Different inputs may share an output, but one input cannot receive two different outputs.

    Term

    numerator

    Definition

    The top number of a fraction. It counts how many of the denominator's equal-sized parts you have, or names the amount being divided.

    Term

    denominator

    Definition

    The bottom number of a fraction. It specifies the equal parts in a whole, or the divisor. A denominator cannot be zero in a defined fraction.

    Term

    fraction

    Definition

    One number divided by another nonzero number, written with a top and bottom. It can describe part of a whole, a quotient or a comparison.

    Term

    equation

    Definition

    A statement that two expressions have equal values. A solution makes the equality true. Adding the same amount to both sides preserves their equality.

    Term

    constant

    Definition

    A fixed number. A constant term has no changing variable attached.

    1 In plain words

    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.

    2 Picture it

    HOY: Horizontal, 0 slope, Y equation

    VUX: Vertical, Undefined slope, X equation

    Reminder

    Reminder: Coordinate order, Subtracting a negative, Zero in a fraction, Function requirement, Slope formula
    • 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. 08 = 0, while 80 is undefined.
    • Function requirement. One input may give one output: input 7 cannot give both 0 and 5 in a function.
    • Slope formula. Slope = changeinychangeinx; a rise of 0 over a run of 8 gives 0.

    3 Why

    For a horizontal line through two distinct points, the height change is 0 and the across change is nonzero, so slope = 0 divided by a nonzero number = 0. For a vertical line, the across change is 0 while the height changes. Its slope would divide by 0, which has no value. It also breaks the function requirement of one output per input. The vertical line test records that failure: a vertical probe meets more than one point.

    4 The rule

    A horizontal line has equation y=c and slope 0.

    A vertical line has equation x=c, undefined slope, and is not a function of x.

    The same idea, five ways

    Say it

    horizontal keeps height; vertical keeps across position.

    Write it

    A constant coordinate identifies a horizontal or vertical line.

    In math
    • horizontal: y = c
    • vertical: x = c
    • horizontal: m = 0
    • vertical: slope undefined
    Like

    A shelf holds one height; a flagpole holds one across position.

    See it

    Horizontal: y = −4, points (−3, −4) and (5, −4)

    Vertical: x = 7, points (7, 0) and (7, 5)

    The same idea, other ways

    By movement

    Walking horizontally changes only x. Walking vertically changes only y. The other coordinate must stay fixed.

    square corner
    Horizontal and vertical directions form a square corner.
    By a rule

    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).

    705not a function
    Input 7 points to more than one output, which fails the function requirement.
    LineEquationSlope
    Horizontal through (−3, 2) and (5, 2)y = 20
    Horizontal through (−3, −4) and (5, −4)y=−40
    Vertical through (7, 0) and (7, 5)x = 7undefined

    Part 1: Horizontal 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.
    (0, −4)−4−2246−6−4−22
    y=−4.

    Reminder

    Reminder: Zero multiplication
    • Zero multiplication. 0 × 7 − 4 = −4, which is why a constant function ignores the input.

    The same idea, five ways

    Say it

    every input gets the same height.

    Write it

    A horizontal line is the graph of a constant function.

    In math
    • y = c
    • f(x) = c
    • m = 0
    Like

    Every spot on a level shelf is the same height.

    See it
    (0, −4)(−3, −4)(5, −4)−4−2246−6−4−22
    y = −4, its points labelled “(−3, −4)” and “(5, −4)”.

    Worked example

    A level line through two points

    You need the line through (−3, −4) and (5, −4).

    Show the steps and the answer
    (0, −4)firstsecond−4−2246−6−4−22
    y = −4, its points labelled “first” and “second”.
    1. Both heights are −4, so write y=−4.The output stays constant while the input changes.
    2. Compute m=−4−(−4)5−(−3)=08=0.There is no vertical change over the nonzero horizontal change.
    3. Check each point: its second coordinate is −4.The equation describes both original addresses.
    Answer
    • y=−4.
    • Slope: 0.
    Double-check Substituting either input in y = 0x − 4 gives −4, verifying the constant function.

    Counterexamples

    What it is not, and the tempting wrong moves.

    ✗ Not this: Counterexample: a horizontal line has undefined slope because it does not rise.
    A zero numerator is allowed when the denominator is nonzero.
    ✓ Instead: Its slope is 0: 08 = 0.

    Tips and tricks

    • Memory device HOY: Horizontal, slope 0, equation uses Y. A shelf's fixed height explains the Y.

    Part 2: Vertical 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.

    Vertical line: x = 7

    Run between any two points: 0

    Reminder

    Reminder: Function requirement, Division by zero
    • Function requirement. A rule assigning both 0 and 5 to input 7 is not a function.
    • Division by zero. 50 has no value because no number multiplied by 0 makes 5.

    The same idea, five ways

    Say it

    every height uses the same across position.

    Write it

    A vertical line fixes the input and permits many outputs.

    In math
    • x = c
    • run = 0
    • nonzerorise0 is undefined
    Like

    Different places up a flagpole are all above its same base.

    See it

    x = 7

    (7, 0), (7, 5)

    rise = 5, run = 0

    slope: undefined

    Counterexamples

    What it is not, and the tempting wrong moves.

    ✗ Not this: Counterexample: the line through (7, 0) and (7, 5) is y = 7.
    Neither point has height 7. The shared number 7 is the first coordinate.
    ✓ Instead: Write x = 7.
    ✗ Not this: The vertical line x = 0 has only one point on the y-axis.
    Its equation describes the entire y-axis. Both (0, 1) and (0, −2), along with every (0, y), satisfy it.
    ✓ Instead: Every point of x = 0 lies on the y-axis; it has no unique crossing with that same axis.

    Tips and tricks

    • Memory device VUX: Vertical, Undefined slope, equation uses X. The flagpole fixes the across position.

    5 How

    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.

    Identify the fixed coordinate

    1
    Do the points have equal y-coordinates?
    YesWrite y = that common height; slope is 0.
    NoCheck the x-coordinates.
    ↓
    2
    Do the points have equal x-coordinates?
    YesWrite x = that common input; slope is undefined.
    NoUse the ordinary two-point slope method.
    1. Read the coordinates of at least two distinct points.
    2. Keep the repeated coordinate letter and value in the equation.
    3. Compute rise and run if a slope is requested.
    4. Use the function requirement to decide whether it can be y = f(x).

    6 Worked example

    Worked example

    Keep the correct coordinate fixed

    You need equations for the horizontal line through (−3, −4) and (5, −4), and the vertical line through (7, 0) and (7, 5).

    Show the steps and the answer

    Horizontal: y = −4

    Vertical: x = 7

    1. For the horizontal pair, both outputs are −4: y=−4.The second coordinate stays fixed, as on a shelf.
    2. Its slope is −4−(−4)5−(−3)=08=0.Zero rise over a nonzero run is zero.
    3. For the vertical pair, both inputs are 7: x=7.The first coordinate stays fixed, as on a flagpole.
    4. Its slope would be 5−07−7=50, so it is undefined.A zero denominator has no division value.
    5. 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.
    Answer
    • Horizontal equation: y = −4.
    • Horizontal slope: 0.
    • Vertical equation: x = 7.
    • Vertical slope: undefined.
    • The vertical line is not a function of x.
    Double-check The horizontal pair has two different inputs with one output each; the vertical pair gives two outputs to input 7. That checks the function distinction.

    Counterexamples

    What it is not, and the tempting wrong moves.

    ✗ Not this: Counterexample: any straight line is the graph of a function of x.
    A vertical line contains many points with the same input and different outputs.
    ✓ Instead: Every nonvertical straight line is a graph y = mx + b. Vertical lines require x = c.

    Tips and tricks

    • Use HOY and VUX, then check a supplied point to make sure the remembered letter fits.
    • The y-axis x = 0 does not have one special crossing with itself. Every point on it is already on the y-axis.

    7 The trap

    Writing y = 7 for the vertical line. Say what stays fixed before choosing the letter. Fixed across position means x; fixed height means y.