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.
Homework
Section titled “Homework”Try these independently after the practice questions. Show your setup and explain your reasoning. Use exact answers where possible, and check that your answers fit the question. Homework solutions are not provided on the published site.
Foundations
Section titled “Foundations”H1. (Foundations) Decide whether each relation is a function. For every function, say whether it is one-to-one or many-to-one. A repeated listing of the same pair represents the same point.
- (a)
- (b)
- (c)
H2. (Foundations) A mapping diagram has input set and possible output set . Its arrows are , , and . Is this a function on the stated input set? Does not using outputs and violate the function rule? What changes if an arrow is added?
H3. (Core) Convert this table into ordered pairs and sketch the discrete points. Use a vertical line argument to classify the relation. Is it one-to-one?
H4. (Core) For each equation, determine whether is a function of over all points satisfying the equation. Support a negative answer with one input and two distinct outputs.
- (a)
- (b)
- (c)
- (d)
H5. (Core) Consider the circle .
- (a) Is the whole circle a function of ?
- (b) Keep only points with . Write an equation for this part and explain why it is a function.
- (c) Is this restricted function one-to-one? Give a pair of distinct inputs to support your answer.
H6. (Core) Decide whether each rule defines a function on its stated input set. Explain any assumptions needed.
- (a) Each library member is paired with their unique membership number.
- (b) Each member who currently has at least one borrowed book is paired with every book they have borrowed.
- (c) Each membership number currently issued is paired with its registered member.
- (d) Each book title in the catalogue is paired with all physical copies of that title.
Challenge
Section titled “Challenge”H7. (Challenge) For which real values of is a function? Among those values, when is the function one-to-one? Explain repeated pairs separately from conflicting outputs.
H8. (Challenge) You may delete ordered pairs, but cannot change any coordinates, from
- (a) What is the smallest number of deletions needed to leave a function?
- (b) List every resulting function obtainable with that smallest number.
- (c) Which of them are one-to-one?
H9. (Challenge) Compare the graphs and . Explain why exactly one is a function of . For the graph that is a function, classify it as one-to-one or many-to-one. Why does using a horizontal line test answer a different question?
H10. (Challenge) Consider the relation .
- (a) Explain why it is not a function of .
- (b) Does restricting only fix the problem?
- (c) Restrict instead to , with all real allowed. Write the resulting function and determine whether it is one-to-one.
- (d) Restrict both and . Write the resulting function and classify it.