Relations and Functions
A relation is any rule or set of ordered pairs that connects inputs to outputs. A function is a special relation where every input has exactly one output. Almost everything you’ll study this year is a function, so learning to recognize one is the first step.
Key ideas
Section titled “Key ideas”Relations
Section titled “Relations”A relation pairs each input with an output , written as ordered pairs . You can show the same relation in several ways:
- a list of ordered pairs, like
- a table of values
- a mapping diagram, with arrows from each input to its output(s), like
- a graph
- an equation, like
Functions
Section titled “Functions”A relation is a function if each input has exactly one output.
- Two different inputs can share the same output. That’s fine.
- One input with two different outputs is not allowed.
Think of a vending machine: press B4 and you should get the same snack every time. If B4 sometimes gave chips and sometimes gave a granola bar, the machine wouldn’t be a function.
One-to-one and many-to-one
Section titled “One-to-one and many-to-one”- One-to-one function: every output comes from just one input. Example: .
- Many-to-one function: some output comes from more than one input. Example: , where both and give .
- One-to-many (one input, several outputs) is not a function.
The vertical line test
Section titled “The vertical line test”On a graph, an input is an -value, so all the points with that input lie on one vertical line.
A graph is a function if no vertical line crosses it more than once.
Functions from equations
Section titled “Functions from equations”To check an equation, ask: can one -value give two different -values? A quick way is to try a value of and solve for .
- : each gives one . Function.
- : gives , so or . Not a function.
Worked examples
Section titled “Worked examples”Example 1: Ordered pairs
Section titled “Example 1: Ordered pairs”Is each relation a function?
(a)
(b)
Solution.
(a) The inputs are , and each appears once. It’s a function. The output appears twice (from and ), which is allowed. It’s a many-to-one function.
(b) The input is paired with both and . Not a function.
Example 2: A table of values
Section titled “Example 2: A table of values”Is this relation a function? If so, is it one-to-one or many-to-one?
Solution. Each input appears once, so it’s a function. The output comes from two inputs ( and ), so it is many-to-one.
Example 3: Equations
Section titled “Example 3: Equations”Which of these are functions?
(a) (b) (c)
Solution.
(a) Each gives one value of . Function (one-to-one; its graph is a slanted line).
(b) Try : , so or . One input, two outputs. Not a function. (Its graph is a circle, which fails the vertical line test.)
(c) means the positive square root, so each gives exactly one . Function.
Common mistakes
Section titled “Common mistakes”Thinking a repeated output breaks the rule. is a function. The rule is about inputs: one input can’t have two outputs.
Using a horizontal line instead of a vertical one. The vertical line test checks for a function. A horizontal line test checks something else (whether the function is one-to-one), which matters later for inverse functions.
Worrying about a repeated pair. If is listed twice, it’s still the same input with the same output. That’s fine.
Assuming every equation is a function. Circles, like , and sideways parabolas, like , are relations but not functions. Test a value of when you’re unsure.
Practice
Section titled “Practice”1. (Warm-up) Is a function?
Solution
Yes. Each input (, , ) has exactly one output. All three share the output , which is allowed (many-to-one).
2. (Warm-up) Is a function?
Solution
No. The input is paired with both and .
3. (Warm-up) The points and are both on a graph. Can the graph be a function?
Solution
No. Both points have the input but different outputs, so the vertical line crosses the graph twice.
4. (Core) Is this relation a function? If so, is it one-to-one or many-to-one?
Solution
Each input appears once, so it’s a function. Outputs and each come from two inputs, so it’s many-to-one. (These values fit .)
5. (Core) Decide whether each equation is a function.
- (a)
- (b)
- (c)
- (d)
Solution
(a) Function. Each gives one value of .
(b) Not a function. For , , so or .
(c) Function. Each gives one value of . It’s one-to-one.
(d) Not a function. Every point on this graph has , so the single input has infinitely many outputs. (The graph is itself a vertical line.)
6. (Core) Is each relation a function? Explain.
- (a) Each student in your class is paired with the month they were born in.
- (b) Each month is paired with the students in your class born in that month.
Solution
(a) Function. Every student has exactly one birth month. Many students can share a month, so it’s many-to-one.
(b) Not a function (in most classes). A month like March could be paired with several students, so one input has several outputs.
7. (Challenge) For which values of is a function?
Solution
The only problem would be the input having two different outputs. That happens if , because then and are both in the relation.
If , the pair just appears twice, which is fine.
So the relation is a function for every value of except .
8. (Challenge) The circle is not a function, but its top half, , is. Explain why.
Solution
Solving the circle’s equation for gives . For any between and , that’s two outputs (one positive, one negative), so the circle fails the vertical line test.
The top half keeps only the positive square root, . Now each from to gives exactly one , so every vertical line crosses it at most once.