Learn · Grade 8 Mathematics

When is a relationship a function?

Check ordered pairs, mappings, tables, and graphs.

Lesson 3 of 3About 35 minutesTEKS 8.5(G)

Original curriculum. These lessons and questions have not been independently reviewed.

01 · Learn the idea

One output for each input

A function assigns exactly one output to each allowed input. In {(1,4),(2,4),(3,7)}, different inputs share output 4, which is allowed. In {(1,4),(1,6),(3,7)}, input 1 has two outputs, so the relation is not a function of that input.

Create a table and arrow mapping for each set. Count outgoing arrows from each input, not incoming arrows to an output. A table can repeat an identical pair without breaking the rule; the problem is conflicting outputs for the same input.

02 · Build understanding

Graphs reveal the same condition

A vertical line fixes an x-value. If it hits a relation’s graph at two different y-values, that x has two outputs: the graph fails the vertical-line test. A horizontal line can be a function; several inputs may all have the same output. The test is about the chosen input variable.

Consider a student-to-locker assignment: if each student has one assigned locker, it is a function from students to lockers even if students share. The reverse relation may not be a function because a shared locker points to more than one student.

03 · Build understanding

Worked example: test a table

A table shows x: 3, 5, 8, 5, 10 and y: 2, 6, 6, 9, 2. Decide whether y is a function of x.

Step 1: Scan the inputs for repeats, because only a repeated input can break the rule. The inputs are 3, 5, 8, 5 and 10. The input 5 appears twice.

Step 2: Compare the outputs for the repeated input. One row pairs 5 with 6. Another row pairs 5 with 9.

Step 3: Decide. The input 5 has two different outputs, 6 and 9, so the table is not a function.

Step 4: Ignore repeated outputs. The output 2 goes with the inputs 3 and 10. Sharing an output is allowed, because 3 and 10 each still have just one output.

Step 5: Check by fixing the table. If the row (5, 9) becomes (7, 9), the inputs are 3, 5, 8, 7 and 10, with no repeats. Every input then has exactly one output, and the table is a function.

04 · Build understanding

Worked example: a price list as a mapping

A school store sells a pencil for $1, an eraser for $1, a folder for $2 and a notebook for $3. Picture it as a mapping: items in the left oval, prices in the right oval, and an arrow from each item to its price.

Step 1: Name the input and the output. Here the input is the item and the output is the price in dollars.

Step 2: Count the arrows leaving each input. Pencil has one arrow, to $1. Eraser has one arrow, to $1. Folder has one arrow, to $2. Notebook has one arrow, to $3.

Step 3: Decide. Every item has exactly one arrow leaving it, so price is a function of item. Two arrows land on $1, and that is fine.

Step 4: Reverse the mapping and test again. Now the input is the price and the output is the item. The input $1 has two arrows leaving it, one to pencil and one to eraser. So item is not a function of price.

Step 5: Check with questions a store clerk could face. "What does an eraser cost?" has one reply, $1. "Which item costs $1?" has two replies, pencil and eraser. A function gives one reply for every input.

05 · Build understanding

Worked example: test a graph of points

The graph shows six points: (−4, 2), (−2, 4), (1, 4), (3, −1), (3, 3) and (5, 1). Decide whether the graph shows a function.

Step 1: Picture a vertical line sliding across the graph from left to right. A vertical line marks one x-value at a time.

Step 2: Watch for any place where the line touches two points at once. At x = 3, the dashed line passes through (3, −1) and (3, 3).

Step 3: Decide. The input 3 has two outputs, −1 and 3, so the graph is not a function.

Step 4: Look at the points (−2, 4) and (1, 4). They sit at the same height, so a horizontal line touches them together. That only means two inputs share the output 4, which is allowed.

Step 5: Check by listing the x-values: −4, −2, 1, 3, 3, 5. Only 3 repeats, and its two y-values differ. If the point (3, 3) were erased, every x-value would have one y-value and the graph would show a function.

(−4, 2)(−2, 4)(1, 4)(3, −1)(3, 3)(5, 1)
Six points: (−4, 2), (−2, 4), (1, 4), (3, −1), (3, 3) and (5, 1). A dashed vertical line at x = 3 passes through two of them.

06 · Build understanding

Three mistakes to watch for

Rejecting a relation because an output repeats. The set {(2, 6), (5, 6), (9, 6)} is a function. The inputs 2, 5 and 9 are all different, and each has one output. It does not matter that the output is 6 every time.

Testing with a horizontal line. In the graph, the horizontal line y = 3 passes through (0, 3) and (6, 3), yet it is a function: each x-value on it has one y-value, 3. The vertical line x = 4 passes through (4, 0) and (4, 5), so the input 4 has more than one output and that line is not a function. Slide a vertical line across a graph, never a horizontal one.

Counting arrows at the wrong end of a mapping. If 1 → 8 and 2 → 8, two arrows arrive at 8, and the mapping is still a function. If 7 → 0 and 7 → 9, two arrows leave 7, and the mapping is not a function. Count the arrows leaving each input.

(0, 3)(6, 3)(4, 0)(4, 5)
  • y = 3
  • x = 4
The horizontal line y = 3 through (0, 3) and (6, 3) is a function. The vertical line x = 4 through (4, 0) and (4, 5) is not.

Apply and explain

Your turn

Represent {(−2,5),(0,5),(3,8)} as a table, mapping, and graph; explain why it is a function. Add one ordered pair that breaks the function rule and one that does not. Compare the graphs y = 2 and x = 2 using the vertical-line test.

Use paper or explain your thinking aloud before opening the solution.

Check your reasoning

The original inputs each have one output. Adding (0,7) breaks the rule, while (4,5) does not. y = 2 is a function of x; x = 2 has many y-values for one x and is not.

  • Use all four representations.
  • Allow different inputs to share an output.
  • Explain the test in terms of input-output uniqueness.

Ready to practice?

Try the questions, get feedback, and review your reasoning.

When is a relationship a function? practice →