Mathematical-Reasoning ยท Unit 26 ยท Video 4 ยท Interactive Practice

Which Relations Are Functions? The Circle vs the Parabola

IKey Formulas

StatementAs a condition on pairs
A function is a set of pairsf={(x,f(x))โˆฃxโˆˆA}={(x,y)โˆˆAร—Bโˆฃy=f(x)}โІAร—Bf = \{ (x, f(x)) \mid x \in A \} = \{ (x, y) \in A \times B \mid y = f(x) \} \subseteq A \times B
Condition (1): every input has an outputfor every xโˆˆAx \in A, there exists yโˆˆBy \in B with (x,y)โˆˆf(x, y) \in f
Condition (2): no input has two outputsfor all xโˆˆAx \in A and y,zโˆˆBy, z \in B, if (x,y)โˆˆf(x, y) \in f and (x,z)โˆˆf(x, z) \in f, then y=zy = z
Function from AA to BBa relation from AA to BB that satisfies (1) and (2)

Key Insight: Condition (2) restricts only pairs that share a first coordinate. Two inputs may share an output; one input may not have two.

IIBuilding a Relation Arrow by Arrow

A relation from AA to BB is a function exactly when every element of AA sends out one arrow.

IIIOne Input, How Many Outputs?

At x=ax = a, the pairs of the relation with first coordinate aa sit on the vertical line through aa.

IVQuiz Questions

Problem 1 ยท Which Set of Pairs Is a Function?

Given: A={1,2,3}A = \{1, 2, 3\} and B={4,5}B = \{4, 5\}. Which relation from AA to BB is a function from AA to BB?

โœ… Correct! Each of 1,2,31, 2, 3 is a first coordinate exactly once. All three share the output 44, which condition (2) allows.
โŒ Not quite. 33 is not the first coordinate of any pair, so condition (1) fails at 33.
โŒ Not quite. (1,4)(1, 4) and (1,5)(1, 5) share the first coordinate 11 with 4โ‰ 54 \neq 5, so condition (2) fails.
โŒ Not quite. These pairs have first coordinates in BB, so this set is not even a subset of Aร—BA \times B; it is a relation from BB to AA.
โŒ Not quite. Check conditions (1) and (2) for each set.
Show solution
  • {(1,4),(2,5)}\{ (1, 4), (2, 5) \}: no pair starts with 33, so condition (1) fails.
  • {(1,4),(1,5),(2,4),(3,5)}\{ (1, 4), (1, 5), (2, 4), (3, 5) \}: (1,4)(1, 4) and (1,5)(1, 5) with 4โ‰ 54 \neq 5, so condition (2) fails.
  • {(1,4),(2,4),(3,4)}\{ (1, 4), (2, 4), (3, 4) \}: every element of AA occurs once as a first coordinate, so (1) and (2) hold. It is the constant function with value 44.
  • {(4,1),(5,2),(4,3)}\{ (4, 1), (5, 2), (4, 3) \}: a subset of Bร—AB \times A, not of Aร—BA \times B.

Problem 2 ยท A Counterexample on the Circle

Given: T={(x,y)โˆˆRร—Rโˆฃx2+y2=64}T = \{ (x, y) \in \mathbb{R} \times \mathbb{R} \mid x^2 + y^2 = 64 \}. Which two pairs in TT show that TT fails condition (2) at the input 66?

โœ… Correct! 36+28=6436 + 28 = 64 for both pairs, they share the first coordinate 66, and 27โ‰ โˆ’272\sqrt{7} \neq -2\sqrt{7}.
โŒ Not quite. Both pairs are in TT, but their first coordinates differ. Condition (2) only restricts pairs with the same first coordinate; two inputs may share an output.
โŒ Not quite. 62+82=100โ‰ 646^2 + 8^2 = 100 \neq 64, so neither pair is in TT. At x=0x = 0 the outputs are ยฑ8\pm 8; at x=6x = 6 they are smaller.
โŒ Not quite. 62+102=1366^2 + 10^2 = 136. Solve 36+y2=6436 + y^2 = 64 instead.
โŒ Not quite. Substitute x=6x = 6 and solve for yy.
Show solution

Substitute x=6x = 6: 36+y2=6436 + y^2 = 64, so y2=28y^2 = 28 and y=ยฑ28=ยฑ27y = \pm\sqrt{28} = \pm 2\sqrt{7}. Both (6,27)(6, 2\sqrt{7}) and (6,โˆ’27)(6, -2\sqrt{7}) lie in TT.

They have the same first coordinate 66 and different second coordinates, since 27โ‰ โˆ’272\sqrt{7} \neq -2\sqrt{7}. That is a counterexample to condition (2), so TT is not a function from R\mathbb{R} to R\mathbb{R}.

Problem 3 ยท Which Conditions Fail?

Given: H={(x,y)โˆˆRร—Rโˆฃโˆฃyโˆฃ=x}H = \{ (x, y) \in \mathbb{R} \times \mathbb{R} \mid |y| = x \}, viewed as a relation from R\mathbb{R} to R\mathbb{R}. Which of conditions (1) and (2) does HH fail?

โœ… Correct! The input โˆ’1-1 has no output, since โˆฃyโˆฃ=โˆ’1|y| = -1 has no solution; the input 33 has two, (3,3)(3, 3) and (3,โˆ’3)(3, -3).
โŒ Close, butโ€ฆ Condition (2) fails at x=3x = 3, but condition (1) fails too: no real yy has โˆฃyโˆฃ=โˆ’1|y| = -1, so the input โˆ’1-1 has no output.
โŒ Close, butโ€ฆ Condition (1) fails at negative inputs, and condition (2) fails at x=3x = 3: (3,3)โˆˆH(3, 3) \in H and (3,โˆ’3)โˆˆH(3, -3) \in H.
โŒ Not quite. That holds for y=โˆฃxโˆฃy = |x|, with the roles of the coordinates the other way round. Here xx is the absolute value: (3,3)(3, 3) and (3,โˆ’3)(3, -3) are both in HH.
โŒ Not quite. Test a negative input and a positive one.
Show solution

Condition (1) fails. For x=โˆ’1x = -1, a pair (โˆ’1,y)โˆˆH(-1, y) \in H would need โˆฃyโˆฃ=โˆ’1|y| = -1, which is impossible because โˆฃyโˆฃโ‰ฅ0|y| \ge 0. So โˆ’1-1 is not a first coordinate of any pair in HH.

Condition (2) fails. โˆฃ3โˆฃ=3|3| = 3 and โˆฃโˆ’3โˆฃ=3|-3| = 3, so (3,3)โˆˆH(3, 3) \in H and (3,โˆ’3)โˆˆH(3, -3) \in H, with 3โ‰ โˆ’33 \neq -3.

So HH fails both conditions; it is a relation on R\mathbb{R} but not a function from R\mathbb{R} to R\mathbb{R}.

Problem 4 ยท A Relation on the Integers

Given: R={(x,y)โˆˆZร—Zโˆฃx=2y}R = \{ (x, y) \in \mathbb{Z} \times \mathbb{Z} \mid x = 2y \}. Is RR a function from Z\mathbb{Z} to Z\mathbb{Z}?

โœ… Correct! An odd input such as 11 has no partner, since 1=2y1 = 2y has no integer solution; and 2y=2z2y = 2z forces y=zy = z, so no input has two outputs.
โŒ Not quite. For x=1x = 1, the output 12\tfrac{1}{2} is not an integer, so no pair (1,y)(1, y) lies in RR.
โŒ Not quite. If (x,y)โˆˆR(x, y) \in R and (x,z)โˆˆR(x, z) \in R, then 2y=x=2z2y = x = 2z, so y=zy = z: condition (2) holds. It is condition (1) that fails, at every odd xx.
โŒ Close, butโ€ฆ Condition (1) fails at odd inputs, but condition (2) holds: 2y=2z2y = 2z gives y=zy = z.
โŒ Not quite. Check whether the input 11 has an integer partner, and whether one input can have two.
Show solution

Condition (1) fails. For x=1x = 1, a pair (1,y)โˆˆR(1, y) \in R would need 1=2y1 = 2y, so y=12โˆ‰Zy = \tfrac{1}{2} \notin \mathbb{Z}. So 1โˆ‰domโก(R)1 \notin \operatorname{dom}(R); in fact domโก(R)\operatorname{dom}(R) is the set of even integers.

Condition (2) holds. Let x,y,zโˆˆZx, y, z \in \mathbb{Z} with (x,y)โˆˆR(x, y) \in R and (x,z)โˆˆR(x, z) \in R. Then x=2yx = 2y and x=2zx = 2z, so 2y=2z2y = 2z and y=zy = z.

So RR is not a function from Z\mathbb{Z} to Z\mathbb{Z}, because the inputs that are odd have no output.

Solved: 0 / 4