Mathematical-Reasoning Β· Unit 24 Β· Video 1 Β· Interactive Practice

A Function as a Set of Ordered Pairs: Each Input Once

IKey Formulas

StatementMeaning
AΓ—B={(x,y)∣x∈AΒ andΒ y∈B}A \times B = \{ (x, y) \mid x \in A \text{ and } y \in B \}The Cartesian product: every pair with first coordinate in AA and second coordinate in BB
f={(x,f(x))∣x∈A}={(x,y)∈AΓ—B∣y=f(x)}f = \{ (x, f(x)) \mid x \in A \} = \{ (x, y) \in A \times B \mid y = f(x) \}Any function f:Aβ†’Bf : A \to B is a subset of AΓ—BA \times B: input first, output second
F={(1,a),(2,b),(3,b)}F = \{ (1, a), (2, b), (3, b) \}, Β g={(x,x2βˆ’2)∣x∈R}\ g = \{ (x, x^2 - 2) \mid x \in \mathbb{R} \}A finite function by roster; an infinite one in set builder notation
Every element of AA is a first coordinate exactly onceWhen a subset of AΓ—BA \times B is a function from AA to BB; there is no condition on second coordinates

Key Insight: A set of ordered pairs fails to be a function from AA to BB in exactly two ways: some input appears in two pairs with different outputs, or some input appears in no pair at all.

IIWhich Subsets of A Γ— B Are Functions?

A subset of AΓ—BA \times B is a function from AA to BB when each row of the grid holds exactly one chosen pair.

IIIInfinitely Many Pairs

The function g(x)=x2βˆ’2g(x) = x^2 - 2 on R\mathbb{R} is the infinite set of its graph's points (x,x2βˆ’2)(x, x^2 - 2).

πŸ’‘ The integer function f(m)=3m+5f(m) = 3m + 5 can be written by roster, {…,(βˆ’1,2),(0,5),(1,8),…}\{ \ldots, (-1, 2), (0, 5), (1, 8), \ldots \}, because the integers can be listed in order; no such list exists for R\mathbb{R}, so gg needs set builder notation.

IVQuiz Questions

Problem 1 Β· From Arrows to Pairs

Given: A={1,2,3}A = \{1, 2, 3\}, B={p,q}B = \{p, q\}, and h:A→Bh : A \to B with h(1)=qh(1) = q, h(2)=ph(2) = p, h(3)=qh(3) = q. Which set of ordered pairs is hh?

βœ… Correct! Each input is paired with its output: (x,h(x))(x, h(x)) for x=1,2,3x = 1, 2, 3. The repeated output qq is allowed.
❌ Order matters. The input is the first coordinate. These pairs have the output first, so they lie in BΓ—AB \times A, not AΓ—BA \times B.
❌ An input is missing. Every element of AA must appear as a first coordinate; this set gives 33 no output.
❌ Not quite. Read the outputs again: h(1)=qh(1) = q, not pp.
Show solution

The function hh is the set {(x,h(x))∣x∈A}\{ (x, h(x)) \mid x \in A \}. Its pairs are (1,h(1))=(1,q)(1, h(1)) = (1, q), (2,h(2))=(2,p)(2, h(2)) = (2, p) and (3,h(3))=(3,q)(3, h(3)) = (3, q), so

h={(1,q),(2,p),(3,q)}βŠ†AΓ—B.h = \{ (1, q), (2, p), (3, q) \} \subseteq A \times B.

Two inputs share the output qq; that is allowed, since the conditions only concern first coordinates.

Problem 2 Β· Which Set Is a Function?

Given: A={1,2,3}A = \{1, 2, 3\} and B={a,b}B = \{a, b\}. Which of these subsets of AΓ—BA \times B is a function from AA to BB?

βœ… Correct! Each of 11, 22, 33 is a first coordinate exactly once. Every input sharing the output aa is fine: outputs may repeat, and bb may go unused.
❌ An input has no output. The element 33 is the first coordinate of no pair.
❌ An input has two outputs. One element of AA appears in two pairs with different second coordinates.
❌ Not quite. Check each element of AA: it must be a first coordinate exactly once.
Show solution

Test each set: every element of AA must be the first coordinate of exactly one pair.

  • (a) 33 is a first coordinate of no pair: not a function.
  • (b) 11, 22, 33 each appear once: a function, with every output equal to aa.
  • (c) 11 appears in (1,a)(1, a) and (1,b)(1, b): not a function.
  • (d) 33 appears in (3,a)(3, a) and (3,b)(3, b): not a function.

Problem 3 Β· An Integer Function as a Set

Given: f:Zβ†’Zf : \mathbb{Z} \to \mathbb{Z} with f(m)=2mβˆ’3f(m) = 2m - 3.

Which ordered pair belongs to ff?

Which set builder description is ff?

βœ… Correct! f(βˆ’1)=2(βˆ’1)βˆ’3=βˆ’5f(-1) = 2(-1) - 3 = -5, and f={(m,2mβˆ’3)∣m∈Z}f = \{ (m, 2m - 3) \mid m \in \mathbb{Z} \} is the same set as {(m,n)∈ZΓ—Z∣n=2mβˆ’3}\{ (m, n) \in \mathbb{Z} \times \mathbb{Z} \mid n = 2m - 3 \}.
❌ Input first. (βˆ’5,βˆ’1)(-5, -1) would mean f(βˆ’5)=βˆ’1f(-5) = -1, but f(βˆ’5)=βˆ’13f(-5) = -13.
❌ Check the output. A pair (m,n)(m, n) is in ff exactly when n=2mβˆ’3n = 2m - 3; compute 2mβˆ’32m - 3 for the first coordinate.
❌ The roles are reversed. In this set the first coordinate is computed from the second, so it describes the swapped pairs, not ff.
❌ Check the description. The second coordinate must be the output 2mβˆ’32m - 3 of the first coordinate mm.
Show solution

A pair (m,n)∈ZΓ—Z(m, n) \in \mathbb{Z} \times \mathbb{Z} belongs to ff exactly when n=f(m)=2mβˆ’3n = f(m) = 2m - 3.

  • (βˆ’1,βˆ’5)(-1, -5): 2(βˆ’1)βˆ’3=βˆ’52(-1) - 3 = -5 βœ“.
  • (βˆ’5,βˆ’1)(-5, -1): 2(βˆ’5)βˆ’3=βˆ’13β‰ βˆ’12(-5) - 3 = -13 \ne -1; (0,3)(0, 3): 2(0)βˆ’3=βˆ’3β‰ 32(0) - 3 = -3 \ne 3; (1,βˆ’5)(1, -5): 2(1)βˆ’3=βˆ’1β‰ βˆ’52(1) - 3 = -1 \ne -5.
f={(m,2mβˆ’3)∣m∈Z}={(m,n)∈ZΓ—Z∣n=2mβˆ’3}.f = \{ (m, 2m - 3) \mid m \in \mathbb{Z} \} = \{ (m, n) \in \mathbb{Z} \times \mathbb{Z} \mid n = 2m - 3 \}.

The set {(2mβˆ’3,m)}\{ (2m - 3, m) \} lists the same pairs with the coordinates swapped, so it is not ff.

Problem 4 Β· Counting the Functions Inside A Γ— B

Given: A={1,2,3,4}A = \{1, 2, 3, 4\} and B={x,y}B = \{x, y\}, so AΓ—BA \times B has 88 elements and 28=2562^8 = 256 subsets. How many of those subsets are functions from AA to BB?

βœ… Correct! Each of the 44 inputs must be paired with exactly one of the 22 outputs, independently: 24=162^4 = 16.
❌ Not every subset qualifies. Most subsets give some input no pair or two pairs.
❌ That counts pairs, not functions. A function is a set of 44 pairs, one for each input.
❌ Not quite. Count the choices: each input independently picks one output.
Show solution

A subset of AΓ—BA \times B is a function from AA to BB exactly when each element of AA is a first coordinate exactly once. So the subset is built by choosing, for each input 1,2,3,41, 2, 3, 4, one of the two pairs (k,x)(k, x) or (k,y)(k, y).

2β‹…2β‹…2β‹…2=24=16.2 \cdot 2 \cdot 2 \cdot 2 = 2^4 = 16.

The other 256βˆ’16=240256 - 16 = 240 subsets either miss an input or give an input two outputs.

Solved: 0 / 4