Mathematics Topic
Functions and the Vertical Line Test
- Read notes
- Flashcards
- Quiz
- Confident
Study focus - 3 things
- A function is a relation in which every input has exactly one output: an input may never be paired with two outputs
- Repeated outputs are fine, so one-one and many-one relations are functions while one-many and many-many relations are not
- Check with ordered pairs (no repeated first number with different second numbers), arrows (one per input) or the vertical line test
Visual notes
Each input has one arrow. Two inputs may share an output.
The input 1 has two arrows, so the relation is not a function.
Every vertical line meets y = x^2 - 4 once, so it is a function. The line x = 1 is shown.
The vertical line x = 4 meets x = y^2 twice, so it is not a function.
Section 1What makes a relation a function
A function is a relation in which every input is matched with exactly one output. Here's the trick: ask what each input does. An input is allowed to have one output and never two. Two different inputs may share an output, because that does not give any single input a choice. So you can say "one input, one output" and be right.
Section 2Functions and the four types
Go back to the four types of relation. One-one and many-one relations are functions, because no input has more than one image. One-many and many-many relations are not functions, because at least one input branches. When a problem says the inputs come from a given set, every member of that set needs exactly one arrow, so an input with no arrow also breaks the rule.
Section 3Checking ordered pairs
Scan the first numbers. If the same first number appears in two pairs with different second numbers, it is not a function. {(1, 3), (2, 5), (3, 5)} is a function: the first numbers 1, 2, 3 are all different, and the repeated 5 does not matter. {(1, 3), (1, 5), (2, 6)} is not a function: the input 1 has the two outputs 3 and 5. Easy to mix up: check the first numbers, not the second ones.
Section 4Checking an arrow diagram
Count the arrows leaving each input. A function has exactly one from every input. In the first diagram below the arrows are 1 → 3, 2 → 5, 3 → 5, 4 → 7: one per input, and 5 is reached twice, which is fine. In the second diagram the arrows are 1 → 2, 1 → 4, 2 → 4, 3 → 6: the input 1 has two arrows, to 2 and to 4, so it is not a function.
Section 5The vertical line test
On a graph, every point on a vertical line has the same input. So a graph is the graph of a function exactly when no vertical line meets it more than once. The curve y = x^2 - 4 passes: the line x = 1 meets it once, at (1, -3). The curve x = y^2 fails: the line x = 4 meets it at (4, 2) and (4, -2). Watch out: finding one line that meets the graph once proves nothing, but one line that meets it twice is enough to fail it. A vertical line x = c fails the test itself, and a horizontal line y = c passes it.
Section 6Checking an equation
Solve the equation for y and ask whether each x gives only one y. y = 2x + 5 and y = x^2 - 4 do. 2x + 3y = 12 gives y = (12 - 2x)/3, so it does too. x = y^2 does not: x = 4 gives y = 2 or y = -2, so (4, 2) and (4, -2) are both on it. The equation x = 3 does not mention y, so y can be any number and every point on it has input 3, so it fails. Suppose a taxi charges J$150 plus J$40 for each kilometre: the fare is a function of the distance, because each distance gives one fare.
Examples
Decide which of these relations are functions. For each function, state the domain and the range and say whether it is one-one or many-one. (a) P = {(0, 5), (1, 7), (2, 9)} (b) Q = {(2, 3), (2, 8), (4, 1)} (c) T = {(1, 6), (2, 6), (3, 6)}
(a) The inputs 0, 1, 2 are all different, so each has one output: P is a function. The domain is {0, 1, 2}, the range is {5, 7, 9}, and no output is shared, so it is one-one. (b) The input 2 has the two outputs 3 and 8, so Q is not a function. (c) The inputs 1, 2, 3 are different, so T is a function. The domain is {1, 2, 3} and the range is {6}. All three inputs share the output 6, so it is many-one. The repeated 6 does not stop it being a function.
For each equation, say whether y is a function of x. If it is not, give two points on it with the same x-value. (a) y = x^2 - 4 (b) x = y^2 (c) 2x + 3y = 12 (d) x = 3
(a) Each x gives one y, for example x = 3 gives y = 3^2 - 4 = 5 only, so y = x^2 - 4 is a function. (b) Put x = 4: y^2 = 4 gives y = 2 or y = -2. The points (4, 2) and (4, -2) share the input 4, so x = y^2 is not a function. (c) Solve for y: 3y = 12 - 2x, so y = (12 - 2x)/3. For example x = 3 gives y = 2 only, and every x gives one y, so it is a function. (d) Every point on x = 3 has input 3 and y can be any number, for example (3, 0) and (3, 1). The vertical line x = 3 lies on the graph, so it fails the test and is not a function.
Now let's water it
Session runs notes to flashcards to quiz back-to-back.
Where this comes from
- CSEC Mathematics Syllabus (CXC 05/G/SYLL 16, revised 2016; registry URL names an Oct 2025 amendment) · Caribbean Examinations Council (CXC) · Section 7, Specific Objectives 7.3 and 7.5 · Syllabus scope
- Precalculus, 3rd Corrected Edition (2013) · Carl Stitz and Jeff Zeager · Chapter 1, Section 1.3 Introduction to Functions, checked against (https://www.stitz-zeager.com/szprecalculus07042013.pdf) · Facts
- Beginning and Intermediate Algebra (2nd ed.) · Tyler Wallace (wallace.ccfaculty.org) · Chapter 10, 10.1 Function Notation, checked against (https://www.wallace.ccfaculty.org/book/10.1%20Function%20Notation.pdf) · Facts