Vertical and horizontal lines answer different questions
Quick review (2 minutes)
Picture scanning shelves with a straight ruler.
Vertical line test: a graph represents a function exactly when every vertical line meets it at most once. Horizontal line test: a function is one-to-one exactly when every horizontal line meets its graph at most once.
Identify the input on the horizontal axis and the output on the vertical axis.
Try vertical lines across the graph. One line meeting two distinct graph points proves it is not a function.
If every vertical line meets at most once, the graph is a function. Some lines may miss the graph.
For a function, try horizontal lines. One line meeting two distinct points proves it is not one-to-one.
Passing every horizontal line proves one-to-one. State which test supports each conclusion.
Decide whether each relation is a function of x and then, if it is a function, whether it is one-to-one: (a) y = x, (b) y = |x|, and (c) + = 1.
(a) function and one-to-one.
(b) function, but not one-to-one.
(c) Not a function of x; therefore not a one-to-one function of x.
Using the horizontal line test to decide function status. Check vertical first, then horizontal, and label the conclusion from each test.
Identify the input on the horizontal axis and the output on the vertical axis.
Try vertical lines across the graph. One line meeting two distinct graph points proves it is not a function.
If every vertical line meets at most once, the graph is a function. Some lines may miss the graph.
For a function, try horizontal lines. One line meeting two distinct points proves it is not one-to-one.
Passing every horizontal line proves one-to-one. State which test supports each conclusion.
Relation
A set of ordered pairs that connects inputs with outputs. It can have conflicting outputs and need not be a function.
Set
A collection of distinct members. Braces list them, and repeating a member does not create a new member.
Real number
A number on the number line, including integers, fractions and numbers such as .
Function
A relation assigning exactly one output to every input in its domain.
Input
A value chosen for a function. The definition decides which values are allowed.
Output
The result a function assigns to a particular input.
Domain
The set of all inputs accepted by the defined relation or function.
Range
The set of all outputs actually produced by the defined relation or function.
Equation
A statement that two expressions are equal, shown with an equals sign.
Formula
A mathematical instruction connecting quantities, often written as an equation.
Evaluate
Find the output at a given input by applying the rule or reading its representation.
Solve
Find every allowed input that satisfies a stated equation or produces a specified output.
Graph
A picture of ordered pairs at their coordinate locations. A graph of a function contains every pair (x, f(x)) for its allowed inputs.
Coordinate
One number in a point's ordered address.
Horizontal axis
The left-right reference line on a graph, conventionally the input or x-axis.
Vertical axis
The up-down reference line on a graph, conventionally the output or y-axis.
One-to-one function
A function where every output in its range comes from exactly one input. Different inputs always give different outputs.
Vertical line test
A graph represents an output as a function of its horizontal input if every vertical line meets it at most once.
Horizontal line test
An established function is one-to-one if every horizontal line meets its graph at most once.
Cubic function
A function f(x) = a + b + cx + d with fixed real coefficients and a ≠ 0. Its toolkit form is f(x) = .
Even
An integer divisible by 2 into an integer result.
Parabola
The graph shape of a quadratic function, appearing as a rounded U or an upside-down U when y depends quadratically on x.
Intersection
A point where drawn graphs or lines meet. Touching at one included point counts as one intersection.
Circle
The set of points at one fixed positive distance from a center.
≠
A symbol saying two quantities are not equal.
1 In plain words
Picture scanning shelves with a straight ruler. Holding the ruler upright keeps one left-to-right position fixed. Laying it flat keeps one height fixed. A graph uses left-to-right position for input and height for output. The vertical line test uses the upright ruler to ask whether one input could have two outputs. The horizontal line test uses the flat ruler to ask whether one output could have two inputs. First make sure the graph is a function. Then decide whether that function is one-to-one. The two tests inspect different kinds of sharing, so a curve can pass the first and fail the second.
2 Picture it
Reminder
Reminder: Graph points, Domain and range
- Graph points. (x, f(x)) places input x horizontally and output f(x) vertically, by the graphing convention taught above.
- Domain and range. No contact at an input means outside the domain. No contact at an output height means outside the range.
3 Why
A vertical line goes straight up and down through one input position. The line through input 2 contains (2, −1), (2, 0), and (2, 5): every point has input 2. Two graph contacts on it would give that input two different outputs. A horizontal line runs level through one output height. The line at height 4 contains (−2, 4) and (2, 4): every point has output 4. Two contacts on it give one output two inputs. A line with no graph contact creates no conflicting pair.
4 The rule
Vertical line test: a graph represents a function exactly when every vertical line meets it at most once.
Horizontal line test: a function is one-to-one exactly when every horizontal line meets its graph at most once.
The same idea, five ways
A vertical line is one input. A horizontal line is one output.
The vertical line test checks whether each input has one output. The horizontal line test checks whether outputs are shared by distinct inputs.
- x = 2: all points with input 2
- y = 4: all points with output 4
- Vertical: at most one contact means a function.
- Horizontal, after the function check: at most one contact means one-to-one.
An upright ruler holds one aisle position. A level ruler holds one shelf height.
The same idea, other ways
An upright ruler locks the input position. A level ruler locks the output height. Two contacts reveal ambiguity in the locked value.
One input, two outputs breaks a function. One output, two inputs breaks one-to-one. The direction of the test line fixes whichever value you are investigating.
Points (2, 1) and (2, 3) fail the vertical test because the input 2 has two outputs. Points (−2, 4) and (2, 4) fail the horizontal test because output 4 has two inputs.
Check function status first with vertical lines, which hold one input. Then check one-to-one with horizontal lines, which hold one output. At most one means zero contacts or one contact.
Vertical: one input, one output?
Horizontal: one output, one input?
At most once includes zero contacts
Part 1: Vertical line test
Imagine choosing one aisle in a warehouse and asking which shelf holds your item. The aisle number should locate one height if the rule is a function. On a graph, a vertical line goes straight up and down through one input position. If it touches two different graph points, that one input has two different output heights. The graph fails the vertical line test. If every vertical line touches at most one point, the graph passes. A line can miss the graph entirely. That means its input is outside the domain, rather than that the graph has failed.
- Vertical means straight up and down. Every point on the vertical line through 2 has input 2, including (2, −1), (2, 0), and (2, 5).
- The test applies to separate dots as well as curves. Count distinct included graph points, not an imagined line joining data dots.
- One failing line is enough to disprove function status. Passing requires every vertical line to meet at most once.
- Reason: A graph point stores (input, output). Vertical lines collect exactly the points with the same input coordinate. A collection of two distinct points therefore records two outputs for one input. This is precisely the conflict excluded by the function definition. Counting zero intersections is acceptable because a function only needs an output for its allowed domain, not for every number on the axis.
Reminder
Reminder: Coordinates
- Coordinates. In (0, 1) and (0, −1), the first coordinate is 0 in both. That is the shared input.
The same idea, five ways
The vertical line through two holds input two.
Every point on one upright line has the same first coordinate.
- x = 2
- At most one graph contact: zero or one.
Choose one aisle and scan straight up and down for its shelves.
Worked example
One line passes; a circle fails
Apply the vertical line test to y = x and to + = 1. The question asks whether each fixed input x gives at most one output y.
What it asks. Does input x determine at most one y on the line and on the circle?
Show the steps and the answer
The plan. For the line, use y = x. For the circle, test input 0 and keep both signs that square to 1.
- Plan. For the line, use y = x. For the circle, test input 0 and keep both signs that square to 1.
- At input 0, the circle equation becomes = 1.
- Both y = 1 and y = −1 satisfy it.
- For , input 1 gives only output 1, and any other input x gives only the output x.The equation explicitly sets one output for each input.
- For , choose input . Then gives outputs 1 and .Both and (−1 equal 1.
- The line passes the vertical test. The circle fails it at .The line always gives one height, but the circle has two heights at the chosen input.
- y = x represents a function of x.
- + = 1 does not represent y as a function of x.
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Memory cue: a vertical line is one input.
- Write the witness on the exam: the circle is not a function of x because input 0 has outputs 1 and −1.
- As one aisle: Choose one horizontal address and scan its possible heights. Finding two heights would give two outputs for that one input.
- As pairs: (0, 1) and (0, −1) have the same first coordinate and different second coordinates. A vertical line through 0 catches both.
Part 2: Horizontal line test
Now imagine asking which aisle contains an item at a particular shelf height. A horizontal line runs level across the graph, keeping the output fixed. If it touches two points, that output came from two inputs. The function fails the horizontal line test and is not one-to-one. If every level line meets at most one point, each output the function actually produces identifies one input. Use this test after the vertical test has established that the graph is a function. The square curve passes the function test, but its left and right sides reach the same heights.
- Horizontal means level from left to right. Every point on the line at height 4 has output 4, including (−2, 4) and (2, 4).
- The horizontal line test checks one-to-one for a graph already known to represent a function.
- A nonhorizontal diagonal line passes. The square curve on all real inputs fails because positive heights have two matching inputs.
- Reason: All points on a horizontal line have the same output coordinate y. Two distinct intersections on a function graph must have different input coordinates, because the function already gives one output per input. Those intersections exhibit the repeated output forbidden by one-to-one. A level with no intersection is outside the range and causes no conflict. A level with one intersection identifies exactly one original input.
Reminder
Reminder: One-to-one
- One-to-one. A function may give f(−1) = f(1) = 1. One-to-one forbids that shared output from distinct inputs.
The same idea, five ways
The horizontal line at four holds output four.
Every point on one level line has the same second coordinate.
- y = 4
- (−2, 4) and (2, 4)
- Every horizontal line meets a one-to-one function at most once.
Choose one shelf height and search across all its aisle positions.
Worked example
Testing the parabola y = (x - 3 + 1 with vertical and horizontal lines
The graph shown is the parabola y = (x - 3 + 1, where x can be any real number. It opens upward, its lowest point (the vertex) is (3, 1), and it passes through the points (1, 5) and (5, 5).
(a) Use the vertical line test to decide whether the graph represents y as a function of x.
(b) If it does, call the function g, so g(x) = (x - 3 + 1. Use the horizontal line test to decide whether g is one-to-one.
For each conclusion, name the test that supports it.
Show the steps and the answer
- Name the axes. The input x is read along the horizontal axis, and the output is read up the vertical axis.A vertical line x = c fixes one input and asks how many outputs go with it. A horizontal line y = b fixes one output and asks how many inputs produce it. Knowing which axis holds which quantity tells us what each test measures.
- Try vertical lines. The line meets the graph only where , which is a single height. For example, meets the graph only at (1, 5), meets it only at the vertex (3, 1), and meets it only at (5, 5).Subtracting 3, squaring and adding 1 turns each number c into exactly one result. So no vertical line can meet the parabola at two different heights.
- Conclude from the vertical line test. Every vertical line meets the graph at most once, so the graph represents y as a function of x. Call it . Here every vertical line meets the graph exactly once, because any real x can go into the formula.The vertical line test says a graph is a function exactly when no vertical line meets it at two distinct points. A vertical line that missed the graph would not break the test, and here none miss.
- Try horizontal lines, starting with . Set . Then , so or , which gives or . The line meets the graph at (1, 5) and at (5, 5).A horizontal line y = b meets the graph wherever g(x) = b, so solving that equation finds every meeting point. The two points are distinct because their x-coordinates, 1 and 5, are different.
- Conclude from the horizontal line test. The line meets the graph at two distinct points, so g is not one-to-one. Lines that meet the graph once or miss it do not change this: meets the graph only at the vertex (3, 1), and misses it entirely. In fact every line with b > 1 meets the graph twice, at and at .The horizontal line test says a function is one-to-one exactly when every horizontal line meets its graph at most once, so one line meeting twice is enough to rule it out. Here g(1) = g(5) = 5. Two different inputs share one output, and that is exactly what one-to-one forbids.
Work to write
- Input x on the horizontal axis, output y on the vertical axis.
- Each vertical line x = c meets the graph exactly once, at (c, (c - 3 + 1).
- Vertical line test: the graph is a function, g(x) = (x - 3 + 1.
- (x - 3 + 1 = 5 gives (x - 3 = 4, so x = 1 or x = 5.
- The horizontal line y = 5 meets the graph at (1, 5) and (5, 5), two distinct points.
- Horizontal line test: g is not one-to-one, since g(1) = g(5) = 5 with 1 ≠ 5.
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Memory cue: a horizontal line is one output.
- On the exam, show the shared output: f(−1) = f(1) = 1, so the square function is not one-to-one.
- As one shelf height: Fix the output height and count the input positions that reach it. Two positions make backward recovery ambiguous.
- With square numbers: (−2 = = 4. The horizontal level 4 catches both curve points, so output 4 does not identify one input.
Part 3: A sideways U is another failing graph
A hoop is not the only graph that can give two heights over one input. Picture a U turned onto its side. Its upper and lower pieces sit above and below the same horizontal address. The equation = x + 3 describes the sideways U in this diagram. At input 1, both heights 2 and −2 satisfy the equation, so the upright ruler contacts two points.
- At x = 1, = 4 gives y = 2 or y = −2.
- The graph fails the vertical line test because one input has two outputs.
- This diagram shows a sideways U, not the circle. The circle fails for the same one-input reason at x = 0.
Reminder
Reminder: Squared equation
- Squared equation. = 4 has y = 2 and y = −2. The expression alone means 2.
The same idea, five ways
Input one gives output two and output negative two.
Two different heights over one input fail the function definition.
- x = 1 gives = 4
- (1, 2) and (1, −2)
One aisle contains two possible answer shelves.
Worked example
A sideways U fails the vertical line test
Does = x + 3 define y as a function of x? Use input x = 1.
What it asks. Can one input x give two different y outputs?
Show the steps and the answer
The plan. Test input 1, solve the squared equation with both signs, and write the conflicting output pair.
- Plan. Test input 1, solve the squared equation with both signs, and write the conflicting output pair.
- At input 1 the right side is 4.
- Both 2 and −2 square to 4.
- Put x = 1 into the equation: .This holds one input still while finding all its permitted outputs.
- Both and work. = 4 and (−2 = 4.
- Write not a function of x.One input, 1, has two different outputs, 2 and −2.
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- When checking a squared output, try an input that makes its square positive. Plus zero and minus zero are the same output.
- With the equation: input 1 gives = 4. Both signs, 2 and −2, square to 4.
- With the ruler: Hold horizontal position 1. The upright line contacts an upper point and a lower point.
- With the equation: Input 1 gives = 4. Both signs, 2 and −2, square to 4.
Part 4: A horizontal line may meet three times
Picture three trains reaching a station at the same time. Each train still has one arrival time, but the arrival time alone cannot name the train. A function graph can likewise have three different inputs at one output height. Two contacts already disprove one-to-one. Finding three makes the same conflict even clearer. The rule H(x) = − x gives output 0 at inputs −1, 0, and 1.
- A horizontal line with two or more contacts disproves one-to-one.
- H(x) = − x gives H(−1) = H(0) = H(1) = 0.
- The toolkit rule is one-to-one; adding other terms to a cubic can create shared outputs.
Reminder
Reminder: Subtracting a negative
- Subtracting a negative.
The same idea, five ways
Three inputs give the same output zero.
The horizontal line at output 0 meets this function at least three times.
- y = 0 is the common output level.
Three trains share one arrival time.
Worked example
A horizontal height can match three inputs
For H(x) = − x, compute H(−1), H(0), and H(1). Does the horizontal line test show that H is one-to-one?
What it asks. Find a shared output for three different inputs and use it to decide one-to-one.
Show the steps and the answer
The plan. Evaluate each input with parentheses, then compare the three outputs.
- Plan. Evaluate each input with parentheses, then compare the three outputs.
- −(−1) becomes +1.
- One repeated output from two inputs would already be enough; here there are three.
- .A negative cube stays negative, and subtracting a negative adds its opposite.
- , and .Evaluate the same rule at the other two inputs.
- The graph has points , (0, 0), and (1, 0), all on height 0.Each computed input-output pair is one graph point.
- H is a function, but not one-to-one.The formula gives one output per input, while the horizontal line at height 0 meets at least these three points.
- H(0) = 0.
- H(1) = 0.
- H is a function, but not one-to-one.
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Two different inputs with one shared output are enough to disprove one-to-one. You do not need to find every matching input.
- With arrows: Three separate input arrows arrive at output 0. The function definition permits this; one-to-one does not.
- With graph points: The three points have different first coordinates and the same second coordinate, so one level line contains all three.
5 How
- Identify the input on the horizontal axis and the output on the vertical axis.
- Try vertical lines across the graph. One line meeting two distinct graph points proves it is not a function.
- If every vertical line meets at most once, the graph is a function. Some lines may miss the graph.
- For a function, try horizontal lines. One line meeting two distinct points proves it is not one-to-one.
- Passing every horizontal line proves one-to-one. State which test supports each conclusion.
Check vertical, then horizontal
- Identify the input on the horizontal axis and the output on the vertical axis.
- Try vertical lines across the graph. One line meeting two distinct graph points proves it is not a function.
- If every vertical line meets at most once, the graph is a function. Some lines may miss the graph.
- For a function, try horizontal lines. One line meeting two distinct points proves it is not one-to-one.
- Passing every horizontal line proves one-to-one. State which test supports each conclusion.
6 Worked example
Worked example
A line, a V, and a circle
Decide whether each relation is a function of x and then, if it is a function, whether it is one-to-one: (a) y = x, (b) y = |x|, and (c) + = 1.
What it asks. Check one output per input for each relation; then check shared outputs for the ones that are functions.
Show the steps and the answer
The plan. For the line and V, count vertical and horizontal contacts. For the circle, compare the shown top and bottom points at the same input 0.
- Plan. For the line and V, count vertical and horizontal contacts. For the circle, compare the shown top and bottom points at the same input 0.
- The V has two points at height 3.
- The two circle pictures mark (0, 1) and (0, −1) on the same circle.
- (a) The diagonal line has one point for each fixed x and one point for each fixed y. It passes both tests.The rule copies the input. Output 3 comes only from input 3, and the same statement works for every output.
- (b) The V-shaped graph of has one height |x| for each input x, so it passes the vertical test.A fixed input has exactly one distance from 0.
- At height 3, the V has points and (3, 3), so it fails the horizontal test.One output is shared by two distinct inputs.
- (c) At , the circle equation gives or . It fails the vertical test.One vertical line meets two distinct points with the same input.
- Do not classify the circle relation as a one-to-one function.It has already failed the requirement to be a function of x.
- (a) function and one-to-one.
- (b) function, but not one-to-one.
- (c) Not a function of x; therefore not a one-to-one function of x.
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Use the memory cue V for vertical, the first function check. H holds the output height for the second check.
- Intersects means meets at a point. A test line touching one included graph point counts as one intersection.
- Write not a function with its shared input and different outputs. Write not one-to-one with its different inputs and shared output.
7 The trap
Using the horizontal line test to decide function status. Check vertical first, then horizontal, and label the conclusion from each test.