M8MATH-6.1

Identifying Functions

Learn to identify functions and test whether a relation is a function using tables, mappings, ordered pairs, and graphs. A function assigns exactly one output to each input.

What you'll do in this lesson

A voice-first session with the Crimsora tutor on Identifying Functions, then targeted practice and FRQs — with the tutor adapting to where you get stuck.

What this lesson covers

A function is one of the most important ideas in mathematics. At its core, a function is simply a rule that connects inputs to outputs—but with one special requirement: each input must produce exactly one output. In this lesson, you'll learn how to recognize functions and how to test whether a relationship between two quantities is a function. You'll see how to check functions in tables, mapping diagrams, ordered pairs, and graphs.

What Is a Function?

A function is a rule that assigns exactly one output to each input. Think of a function like a machine: you put something in (the input), the machine follows its rule, and out comes exactly one result (the output). For example, a coffee machine is like a function—when you press the button for cappuccino (input), the machine always makes a cappuccino (output). If pressing the same button sometimes gave you coffee and sometimes gave you tea, it wouldn't be a reliable machine.

Mathematically, we say that the input is also called the independent variable (usually written as xx), and the output is called the dependent variable (usually written as yy). The key rule is: no input can have more than one output. An input can be used only once, or it can appear multiple times, but it must always connect to the same output.

For example, the rule "add 3 to the input" is a function because every input xx gives exactly one output y=x+3y = x + 3. The input 2 always gives output 5; the input 5 always gives output 8. Every input has one home, and that home is always the same.

Testing Functions in Tables and Mappings

One way to check whether a relation is a function is to look at a table or mapping diagram. Look at the input column (or the left side of a mapping). If any input appears more than once, check whether it connects to the same output every time.

In a table, scan the input column from top to bottom. If an input repeats with different outputs, the relation is not a function. For example:
InputOutput
14
25
16
The input 1 appears twice but gives two different outputs (4 and 6). This is not a function.

In a mapping diagram, arrows show which outputs connect to each input. If any input has more than one arrow coming out of it pointing to different outputs, it is not a function. If every input has at most one arrow leaving it (and that arrow goes to only one output), then it is a function.

A common mistake is confusing the input and output. Always check the input column or the left side of the mapping. It's okay for two different inputs to have the same output—that doesn't break the function rule. Only repeated inputs with different outputs break it.

Testing Functions in Ordered Pairs and Graphs

A set of ordered pairs (x,y)(x, y) represents a function if no xx-value appears more than once, or if an xx-value appears multiple times, it is always paired with the same yy-value. For example, the set {(1,2),(2,4),(3,6),(4,8)}\{(1, 2), (2, 4), (3, 6), (4, 8)\} is a function because each input (xx-value) appears only once. The set {(1,2),(1,3),(2,4)}\{(1, 2), (1, 3), (2, 4)\} is not a function because the input 1 is paired with both 2 and 3.

On a graph, you can use the Vertical Line Test: if you imagine drawing a vertical line at any xx-value, that line should intersect the graph at most one point. If a vertical line passes through two or more points on the graph, then that xx-value has more than one yy-value, and the relation is not a function.

For example, a parabola opening upward (y=x2y = x^2) passes the vertical line test—every vertical line hits it at most once—so it is a function. A circle, however, fails the vertical line test because a vertical line through the middle of the circle intersects it at two points. So a circle is not a function.

The graph of a function is simply the set of all its (x,y)(x, y) pairs plotted on a coordinate plane. That visual picture tells you immediately whether you have a function: look for vertical lines crossing the curve more than once.

Why the One-Output Rule Matters

The one-output rule is what makes functions reliable and useful in the real world. When you know the input, you must be able to predict the output with certainty. A function gives you that certainty.

Consider a real-world example: a distance-time relationship for a car. If the car's distance depends only on the time elapsed (and the car doesn't teleport), then at any moment in time, the car is in exactly one location. Time is the input, and distance is the output. This is a function—you cannot have the same time paired with two different distances.

On the other hand, a relation like "name to favorite color" might not be a function. A person's name is the input, and their favorite color is the output. But if some people have no favorite color, or have changed their favorite color multiple times, then one name could connect to many outputs. That's not reliable enough to be a function.

Understanding what makes something a function helps you recognize when a rule or relationship can be trusted to have a unique answer.

Key terms

Function.
A rule that assigns exactly one output to each input. No input can produce more than one output.
Input (Independent Variable).
The value you put into a function, usually represented by xx. It is the starting value or cause.
Output (Dependent Variable).
The value that results from applying the function rule to an input, usually represented by yy. It depends on the input.
Vertical Line Test.
A graphical test: a relation is a function if and only if every vertical line intersects its graph at most once.
Ordered Pair.
A pair of numbers written as (x,y)(x, y) where xx is the input and yy is the output. A point on a coordinate plane.
Mapping Diagram.
A visual representation showing inputs on the left and outputs on the right, with arrows connecting each input to its output(s).
Relation.
A set of ordered pairs or a rule connecting inputs to outputs. A function is a special type of relation.

Worked example

Determine whether each relation is a function. Explain your reasoning.

(a) The set of ordered pairs: {(2,5),(3,7),(4,9),(2,6)}\{(2, 5), (3, 7), (4, 9), (2, 6)\}

(b) The table:
Input (xx)Output (yy)
01
12
23
34
(a) Look at the xx-values in the ordered pairs: 2, 3, 4, 2. The input 2 appears twice—once paired with 5 and once paired with 6. Since the input 2 produces two different outputs (5 and 6), this relation is not a function. A function cannot assign more than one output to any input.

(b) Look at the xx-values in the table: 0, 1, 2, 3. Each input appears exactly once, and each has exactly one output: 0 maps to 1, 1 maps to 2, 2 maps to 3, and 3 maps to 4. Since every input has exactly one output, this relation is a function. In fact, you can see the rule: y=x+1y = x + 1.

Key insight: When checking a table, scan the input column. If you see any input value repeat with a different output, stop—it's not a function. If every input appears only once, or if an input repeats with the same output, then it is a function.

Practice questions

Which of the following relations is a function?
  1. The set of ordered pairs {(1,3),(2,5),(1,4),(3,7)}\{(1, 3), (2, 5), (1, 4), (3, 7)\}
  2. A mapping diagram where input 5 points to outputs 2 and 8
  3. The set of ordered pairs {(1,3),(2,5),(3,7),(4,9)}\{(1, 3), (2, 5), (3, 7), (4, 9)\}
  4. A table where input 2 appears twice with outputs 6 and 8

Answer: The set of ordered pairs {(1,3),(2,5),(3,7),(4,9)}\{(1, 3), (2, 5), (3, 7), (4, 9)\}

A function must assign exactly one output to each input. In this set, each input (1, 2, 3, 4) appears exactly once and connects to exactly one output. In the first choice, input 1 connects to both 3 and 4, which violates the function rule. In the second choice, input 5 has two different outputs (2 and 8), also violating the rule. In the fourth choice, input 2 produces two different outputs. Only the third choice satisfies the definition of a function.
The graph below shows a curved line. When you apply the vertical line test, a vertical line at x=2x = 2 passes through two different points on the curve. What does this tell you about whether the relation is a function? Explain.

Answer: This relation is not a function because the vertical line at x=2x = 2 intersects the graph at two different points, meaning the input 2 is paired with two different outputs. A function must assign exactly one output to each input. When a vertical line passes through more than one point on a graph, it proves that the relation fails the function test.

The vertical line test is a quick way to check if a graph represents a function. If any vertical line crosses the graph more than once, that xx-value has multiple yy-values, which violates the definition of a function. This is why the vertical line test works: it directly checks whether any input is paired with more than one output.

FAQ

Can two different inputs have the same output?
Yes. A function can have two different inputs paired with the same output. For example, in the function y=x2y = x^2, both x=2x = 2 and x=2x = -2 produce the output y=4y = 4. The rule is that each input must have exactly one output, but it's perfectly fine for two inputs to produce the same output.
What is the difference between a function and a relation?
A relation is any set of ordered pairs or any rule connecting inputs to outputs. A function is a special type of relation that follows the rule: each input must have exactly one output. Every function is a relation, but not every relation is a function.
How does the vertical line test work?
The vertical line test works because a vertical line at x=ax = a represents all points where the input is aa. If that vertical line intersects the graph at more than one point, then the input aa connects to more than one output, which means it's not a function. If every vertical line intersects the graph at most once, then every input has exactly one output, so it is a function.
If I see an input value repeated in a table, is it automatically not a function?
Not necessarily. If an input value repeats but always connects to the same output, the relation can still be a function. For example, if a table shows input 3 twice, both times with output 7, it is still a function. The relation is not a function only if the same input appears with two different outputs.

Learn this with a teacher, not a page

The Crimsora tutor teaches Identifying Functions live — explaining on a whiteboard, asking you questions, and adapting to where you get stuck.