Understanding Relations and Functions
A relation records input-output pairs; a function gives each input exactly one output. Use ticket-price data and other examples to write ordered pairs, collect domain and range in set notation, and connect the function rule to the Vertical Line Test.

A Table with a Question
Star Cinema posts one ticket price each year. Its ticket-price record provides a way to investigate when a table of data counts as a function
| Year | 2005 | 2010 | 2015 | 2020 | 2021 |
|---|---|---|---|---|---|
| Ticket price | $6.50 | $7.75 | $8.50 | $9.25 | $9.25 |
In 2005 a ticket cost $6.50; in 2015 it cost $8.50. The years 2020 and 2021 both have the price $9.25. Is a repeated price a problem, or can this record still be a function? To answer, first identify the inputs and outputs and write their pairings precisely
The learning tasks are to convert input-output data into ordered pairs, state domain and range with each distinct value listed once, decide whether each input has exactly one output, and explain how the Vertical Line Test checks the same condition on a graph
Relations as Ordered Pairs
A relation is a pairing of inputs with outputs. Every relation can be written as a set of ordered pairs (x, y), with the input first and the output second
In the ticket-price relation, the year is the input and independent variable, written as x. The ticket price depends on the year, so it is the output and dependent variable, written as y. Thus the 2005 column becomes (2005, $6.50), not a pair with the price first
Writing the whole ticket-price relation
Given the Star Cinema table, write the relation as a set of ordered pairs. Pair each year with the price in its own column: 2005 with $6.50, 2010 with $7.75, 2015 with $8.50, 2020 with $9.25, and 2021 with $9.25. Keep the year first in every pair and enclose the complete collection in curly braces
{(2005, $6.50), (2010, $7.75), (2015, $8.50), (2020, $9.25), (2021, $9.25)}
The two columns with the price $9.25 still produce two separate pairs: (2020, $9.25) and (2021, $9.25). Their inputs are different
Practice 1: A bus-fare relation
A city bus kept its fare the same all year, changing it only in these years: 2012 → $1.50, 2016 → $1.75, and 2020 → $2.00. Complete the first ordered pair of the bus-fare relation, with the independent variable first. The supplied choices are 2012, $1.50, $1.75, and 2020
Answer: (2012, $1.50). The year is the independent variable and belongs in the first position. The earliest listed year is 2012, and its matching fare is $1.50; a fare from another row would not preserve the pairing
Domain and Range
Consider the relation {(10, -2), (20, 0), (30, 3), (40, 3)}. The domain is the set of all input values: the first coordinate of every ordered pair. Reading those coordinates gives 10, 20, 30, and 40, so Domain = $$\{10, 20, 30, 40\}$$
The range is the set of all output values: the second coordinate of every ordered pair. The outputs are -2, 0, 3, and 3. A set lists each distinct value exactly once, so Range = $$\{-2, 0, 3\}$$. Although the relation has four pairs, its range has only three elements
Practice 2: Identify coordinate positions
For the relation {(3, 7), (5, 0), (8, 7), (9, 4)}, determine whether each of the supplied values 9, 0, and 7 belongs to the domain or the range
Answer: 9 belongs to the domain because it is the first coordinate in (9, 4). Both 0 and 7 belong to the range because they appear as second coordinates: 0 in (5, 0), and 7 in (3, 7) and (8, 7). The repeated output 7 contributes just one distinct value to the range
When a Relation Is a Function
Before applying the formal rule, consider three situations: one x-value appears twice with two different y-values; two different x-values share the same y-value; or every x-value appears exactly once. Which situations preserve one output for each input?
The first situation fails: one input points to two different outputs. The second is allowed: different inputs may share an output. The third is also allowed: each input has exactly one output
Return to Star Cinema's ticket record. Each year—2005, 2010, 2015, 2020, and 2021—appears exactly once and has one price. Therefore the ticket-price relation is a function. The repeated price $9.25 in 2020 and 2021 is not a problem: two different inputs share one output
One input, three outputs?
A club sign-up log pairs each student ID with a club. It records ID 4127 → Chess Club, ID 4127 → Robotics Club, and ID 4127 → Art Club. Is this pairing a function?
No. The ID is the input and the club is the output. The same input, 4127, is paired with three different outputs: Chess Club, Robotics Club, and Art Club. One input with three outputs violates the function rule, so this relation is not a function
Practice 3: Classify the relations
Determine whether each relation is a function: A = {(2, 9), (4, 9), (6, 9)}; B = {(3, 1), (3, 5), (8, 2)}; C = {(1, 6), (7, 1)}
A is a function: the distinct inputs 2, 4, and 6 each have one output, even though all three outputs are 9. B is not a function: input 3 has two different outputs, 1 and 5. C is a function: input 1 has output 6, and input 7 has output 1. The decision depends on whether an input has different outputs, not on whether outputs repeat
The Vertical Line Test
One line, how many crossings?
For a graph, the function question is still whether one input can have different outputs. Consider the right-opening curve x = y² - 1, shown for -2 ≤ y ≤ 2. Its vertex is (-1, 0), and it passes through (0, 1), (0, -1), (3, 2), and (3, -2). How many times can a vertical line meet this curve?
A vertical line at x = -4 does not meet the shown curve. At x = -1 it meets the vertex once. At x = 3 it meets the curve twice, at (3, 2) and (3, -2). Those last two points assign two outputs, 2 and -2, to the same input, 3
Every point on a vertical line shares one x-value, so the line represents a single input. More than one intersection means that input has more than one output. Thus the curve x = y² - 1 fails the test. Only one failing position is needed to show that a graph is not a function; checking just one position with a single crossing does not establish that it is a function
Testing a left-opening curve
Is the left-opening curve x = 1 - y² a function? It has vertex (1, 0) and passes through (0, 1), (0, -1), (-3, 2), and (-3, -2). The vertical line x = 0 meets the graph at both (0, 1) and (0, -1). Input 0 has outputs 1 and -1, so this graph is not a function
A graph that passes
The next example is a smooth wavy curve running continuously from the lower left near (-4, -3) to the upper right near (4, 3), rising and dipping gently. Is this shown graph a function? At every position from x = -4 to x = 4, a vertical line meets it exactly once. Every input in the shown graph has exactly one output, so the graph passes the Vertical Line Test and is a function
Practice 4: Compare four graphs
The four graphs are an upward-opening V with vertex (0, -1); a circle of radius 2 centered at the origin; a sideways S whose intersections with x = 0 number three; and a right-opening curve with vertex (-2, 0), whose upper and lower branches share x-values to the right of the vertex. Use these descriptions to answer the original question
Summary
1. Write a relation as a set of ordered pairs. Put the independent variable first: (x, y), as in the ticket-price pair (2005, $6.50)
2. State domain and range in set notation. The domain contains all x-values; the range contains all y-values. List each distinct value exactly once within its set
3. Check for exactly one output per input. Repeated outputs are allowed, as in Star Cinema's repeated $9.25 price. A repeated input with different outputs makes a relation not a function
4. Apply the Vertical Line Test. A vertical line represents one x-value. More than one intersection means more than one output for that input, so the graph is not a function. A graph is a function if every vertical line meets it at most once
Quiz
Quiz 1: Domain and range
A taco truck logged its yearly sales: 2019 → 300 tacos sold, 2021 → 450 tacos sold, and 2023 → 450 tacos sold. Complete the domain and range of the taco-truck relation in set notation. The supplied choices for the entries inside the braces are “2019, 2021, 2023,” “300, 450,” “300, 450, 450,” and “2019, 300.”
Answer: Domain = $$\{2019, 2021, 2023\}$$; Range = $$\{300, 450\}$$. The years are the inputs and the sales numbers are the outputs. Although 450 occurs in two pairs, a set lists it only once. Mixing a year with a sales number would mix the two coordinate roles
Quiz 2: Judge two relations
Quiz 3: Find a failing vertical line
The graph has two disconnected pieces: a horizontal segment from (-4, 2) to (0, 2), including the endpoint (0, 2), and a rising curve from the included endpoint (0, -1) to (4, 3). Both endpoints at x = 0 are closed, so both points belong to the graph. No other x-value has two points. The candidate vertical-line positions are x = -3, x = 0, and x = 3