Vertical and horizontal lines answer different questions
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.
- 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.
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.
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.
.1Vertical 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.
- Coordinates. In (0, 1) and (0, −1), the first coordinate is 0 in both. That is the shared input.
The vertical line through two holds input two.
Every point on one upright line has the same first coordinate.
- x = 2
- (2, −1), (2, 0), (2, 5)
- At most one graph contact: zero or one.
Choose one aisle and scan straight up and down for its shelves.
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.
- At input 0, the circle equation becomes = 1.
- Both y = 1 and y = −1 satisfy it.
- For y = x, 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 + = 1, choose input x = 0. Then = 1 gives outputs 1 and −1.Both and (−1 equal 1.
- The line passes the vertical test. The circle fails it at x = 0.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.
- 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.
.2Horizontal 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.
- One-to-one. A function may give f(−1) = f(1) = 1. One-to-one forbids that shared output from distinct inputs.
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.
For the functions y = x and y = , find the input or inputs at output 1. Then decide whether each graph passes the horizontal line test for all output heights, meaning whether each output the function actually produces has one input.
- The identity rule has x = y.
- Both (−1, 1) and (1, 1) lie on the square curve.
- For y = x, output 1 gives input x = 1. More generally, output y always gives input x = y.The identity rule copies its input, so every backward lookup has one answer.
- For y = , output 1 gives x = −1 or x = 1.Both inputs square to 1.
- The line passes the horizontal test; the square curve fails it.The line has one input for any given output, while height 1 already supplies two square inputs.
- For y = x, output 1 gives x = 1. The function is one-to-one.
- For y = , output 1 gives:
- x = −1.
- x = 1.
- The square function is not one-to-one on all real inputs.
- 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.
.3A 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.
- Squared equation. = 4 has y = 2 and y = −2. The expression alone means 2.
Input one gives output two and output negative two.
Two different heights over one input fail the function definition.
- = x + 3
- x = 1 gives = 4
- (1, 2) and (1, −2)
One aisle contains two possible answer shelves.
Does = x + 3 define y as a function of x? Use input x = 1.
- At input 1 the right side is 4.
- Both 2 and −2 square to 4.
- Put x = 1 into the equation: = 1 + 3 = 4.This holds one input still while finding all its permitted outputs.
- Both y = 2 and y = −2 work. = 4 and (−2 = 4.
- Write not a function of x.One input, 1, has two different outputs, 2 and −2.
- 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.
.4A 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.
- Subtracting a negative. −1 − (−1) = −1 + 1 = 0.
Three inputs give the same output zero.
The horizontal line at output 0 meets this function at least three times.
- H(−1) = H(0) = H(1) = 0
- (−1, 0), (0, 0), (1, 0)
- y = 0 is the common output level.
Three trains share one arrival time.
For H(x) = − x, compute H(−1), H(0), and H(1). Does the horizontal line test show that H is one-to-one?
- −(−1) becomes +1.
- One repeated output from two inputs would already be enough; here there are three.
- H(−1) = (−1 − (−1) = −1 + 1 = 0.A negative cube stays negative, and subtracting a negative adds its opposite.
- H(0) = − 0 = 0, and H(1) = − 1 = 0.Evaluate the same rule at the other two inputs.
- The graph has points (−1, 0), (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(−1) = 0.
- H(0) = 0.
- H(1) = 0.
- H is a function, but not one-to-one.
- 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.
- 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.
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.
- 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 y = x 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 y = |x| 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 (−3, 3) and (3, 3), so it fails the horizontal test.One output is shared by two distinct inputs.
- (c) At x = 0, the circle equation gives y = 1 or y = −1. 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.
- 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.