Mathematical-Reasoning ยท Unit 22 ยท Video 3 ยท Interactive Practice

Surjections and Bijections: Is 3m + 2 Onto?

IKey Formulas

StatementMeaning
f:Aโ†’Bf: A \to B is a surjection provided range(f)=codom(f)\text{range}(f) = \text{codom}(f), that is, โˆ€yโˆˆB,โˆƒxโˆˆA,f(x)=y\forall y \in B, \exists x \in A, f(x) = yOnto: every element of BB receives at least one arrow; the input xx may depend on the target yy
f:Aโ†’Bf: A \to B is not a surjection provided โˆƒyโˆˆB,โˆ€xโˆˆA,f(x)โ‰ y\exists y \in B, \forall x \in A, f(x) \ne yOne named element of the codomain that no input reaches is a complete disproof
f:Aโ†’Bf: A \to B is a bijection provided ff is an injection and a surjectionOne-to-one and onto: every element of BB receives exactly one arrow, so ff pairs off the elements of AA with the elements of BB
To prove f:Aโ†’Bf: A \to B onto: let yโˆˆBy \in B; solve f(x)=yf(x) = y for xx (scratch work); check xโˆˆAx \in A; check f(x)=yf(x) = yFor f(x)=3x+2f(x) = 3x + 2 the scratch input is x=yโˆ’23x = \frac{y - 2}{3}, a real number for every real yy but an integer only for some integers yy

Key Insight: The rule 3x+23x + 2 is a bijection from R\mathbb{R} to R\mathbb{R}, but from Z\mathbb{Z} to Z\mathbb{Z} it is one-to-one and not onto, because 00 is never an output. Whether a function is a surjection depends on its domain and codomain, not on its formula alone.

IISolve Backward, Check Forward

The scratch input yโˆ’23\frac{y - 2}{3} always exists, but it proves yy is reached only when it lies in the domain.

IIICounting Arrows into the Codomain

Onto means every element of BB receives at least one arrow; a bijection means every element receives exactly one.

IVQuiz Questions

Problem 1 ยท Construct the Input

Given: g:Qโ†’Qg: \mathbb{Q} \to \mathbb{Q} defined by g(x)=4xโˆ’7g(x) = 4x - 7. A proof that gg is a surjection begins "Let yโˆˆQy \in \mathbb{Q}." Which input xx should the proof produce?

โœ… Correct! y+74\frac{y + 7}{4} is rational whenever yy is, and g(y+74)=(y+7)โˆ’7=yg\left(\frac{y + 7}{4}\right) = (y + 7) - 7 = y.
โŒ Not quite. That applies the rule to yy instead of undoing it: g(4yโˆ’7)=16yโˆ’35g(4y - 7) = 16y - 35, which is not yy (for y=0y = 0 it is โˆ’35-35).
โŒ Check the sign. Solving 4xโˆ’7=y4x - 7 = y adds 77 to both sides. Here g(yโˆ’74)=yโˆ’14g\left(\frac{y - 7}{4}\right) = y - 14.
โŒ Not quite. The 77 must be divided by 44 too: g(y4+7)=y+28โˆ’7=y+21g\left(\frac{y}{4} + 7\right) = y + 28 - 7 = y + 21.
Show solution

Scratch work. We need 4xโˆ’7=y4x - 7 = y, so 4x=y+74x = y + 7 and x=y+74x = \frac{y + 7}{4}.

Check 1: xx is in the domain. y+7y + 7 is rational, and a rational number divided by the nonzero integer 44 is rational, so xโˆˆQx \in \mathbb{Q}.

Check 2: xx maps to yy.

g(y+74)=4โ‹…y+74โˆ’7=(y+7)โˆ’7=y.g\left(\frac{y + 7}{4}\right) = 4 \cdot \frac{y + 7}{4} - 7 = (y + 7) - 7 = y.

So for every yโˆˆQy \in \mathbb{Q} there is an xโˆˆQx \in \mathbb{Q} with g(x)=yg(x) = y, and gg is a surjection. Since 4x1โˆ’7=4x2โˆ’74x_1 - 7 = 4x_2 - 7 forces x1=x2x_1 = x_2, gg is also an injection, so gg is a bijection.

Problem 2 ยท Same Scratch Work, Smaller Domain

Given: h:Zโ†’Zh: \mathbb{Z} \to \mathbb{Z} defined by h(m)=5mโˆ’3h(m) = 5m - 3. Which statement is true?

โœ… Correct! One integer target with no integer input is a complete disproof.
โŒ Not quite. That is only the scratch work. The proof must also check that mm is in the domain Z\mathbb{Z}, and for y=0y = 0 it gives m=35m = \frac{3}{5}, which is not an integer.
โŒ Not quite. 22 is reached: h(1)=5โˆ’3=2h(1) = 5 - 3 = 2. Test the target with the scratch input: 2+35=1โˆˆZ\frac{2 + 3}{5} = 1 \in \mathbb{Z}.
โŒ Not quite. hh is an injection: 5m1โˆ’3=5m2โˆ’35m_1 - 3 = 5m_2 - 3 gives m1=m2m_1 = m_2. And the two properties are independent, so failing one would not settle the other.
Show solution

Scratch work. 5mโˆ’3=y5m - 3 = y gives m=y+35m = \frac{y + 3}{5}, an integer only when y+3y + 3 is a multiple of 55. The target y=0y = 0 fails that test.

Proof that 0โˆ‰range(h)0 \notin \text{range}(h). Suppose some mโˆˆZm \in \mathbb{Z} has h(m)=0h(m) = 0. Then 5mโˆ’3=05m - 3 = 0, so 5m=35m = 3 and m=35m = \frac{3}{5}. But 35\frac{3}{5} is not an integer, which contradicts mโˆˆZm \in \mathbb{Z}. So for every mโˆˆZm \in \mathbb{Z}, h(m)โ‰ 0h(m) \ne 0.

Since 00 is in the codomain and not in the range, hh is not a surjection. The range consists of the integers that are 33 less than a multiple of 55: โ€ฆ\ldots, โˆ’8-8, โˆ’3-3, 22, 77, 1212, โ€ฆ\ldots The function hh is one-to-one but not onto, so it is not a bijection.

Problem 3 ยท A Piecewise Rule on the Integers

Given: f:Zโ†’Zf: \mathbb{Z} \to \mathbb{Z} defined by f(n)={n2,ifย nย isย even;nโˆ’12,ifย nย isย odd.f(n) = \begin{cases} \dfrac{n}{2}, & \text{if } n \text{ is even;} \\[4pt] \dfrac{n - 1}{2}, & \text{if } n \text{ is odd.} \end{cases} For example, f(4)=2f(4) = 2 and f(5)=2f(5) = 2.

Is f a surjection?

Is f a bijection?

โœ… Correct! Every integer yy is reached (by 2y2y, and also by 2y+12y + 1), so ff is onto; two inputs per output make it not one-to-one.
โŒ Not quite. Odd outputs occur: f(2)=1f(2) = 1 and f(โˆ’2)=โˆ’1f(-2) = -1.
โŒ Not quite. y2\frac{y}{2} is not an integer when yy is odd, and even when it is, it does not map to yy: for y=4y = 4, f(2)=1f(2) = 1.
โŒ Not quite. 2y2y is even for every integer yy, so the even case of the rule applies and f(2y)=yf(2y) = y for odd yy too, e.g. f(6)=3f(6) = 3.
โŒ Not quite. A bijection must be one-to-one as well as onto. Compare f(0)f(0) and f(1)f(1).
โŒ Not quite. Exactly one output per input is what makes ff a function. A bijection needs every element of the codomain to receive exactly one arrow.
โŒ Not quite. ff is a surjection: every yโˆˆZy \in \mathbb{Z} equals f(2y)f(2y). The failure is elsewhere.
Show solution

A few outputs: f(โˆ’2)=โˆ’1f(-2) = -1, f(โˆ’1)=โˆ’1f(-1) = -1, f(0)=0f(0) = 0, f(1)=0f(1) = 0, f(2)=1f(2) = 1, f(3)=1f(3) = 1. Each integer seems to be hit twice.

Surjection. Let yโˆˆZy \in \mathbb{Z} and set n=2yn = 2y. Then nโˆˆZn \in \mathbb{Z} and nn is even, so the first case applies:

f(2y)=2y2=y.f(2y) = \frac{2y}{2} = y.

So every integer is in the range, and ff is a surjection.

Not an injection. 00 is even and 11 is odd, so f(0)=02=0f(0) = \frac{0}{2} = 0 and f(1)=1โˆ’12=0f(1) = \frac{1 - 1}{2} = 0. Two different inputs share an output, so ff is not an injection.

Onto but not one-to-one, ff is not a bijection.

Problem 4 ยท The Floor Function

Given: for a real number xx, โŒŠxโŒ‹\lfloor x \rfloor is the greatest integer less than or equal to xx; for example โŒŠ2.7โŒ‹=2\lfloor 2.7 \rfloor = 2 and โŒŠโˆ’1.5โŒ‹=โˆ’2\lfloor -1.5 \rfloor = -2. Define F:Rโ†’ZF: \mathbb{R} \to \mathbb{Z} by F(x)=โŒŠxโŒ‹F(x) = \lfloor x \rfloor.

Which input proves that a target y in โ„ค is in range(F)?

Is F a bijection?

โœ… Correct! Every integer yy is its own floor, so FF is onto; but the whole interval from yy up to (not including) y+1y + 1 maps to yy, so FF is not one-to-one.
โŒ Not quite. y+1y + 1 is an integer, so โŒŠy+1โŒ‹=y+1โ‰ y\lfloor y + 1 \rfloor = y + 1 \ne y.
โŒ Not quite. The greatest integer below yโˆ’12y - \frac{1}{2} is yโˆ’1y - 1, so F(yโˆ’12)=yโˆ’1F\left(y - \frac{1}{2}\right) = y - 1.
โŒ Not quite. โŒŠโˆ’yโŒ‹=โˆ’y\lfloor -y \rfloor = -y, which equals yy only when y=0y = 0.
โŒ Not quite. Exactly one floor per real number is what makes FF a function. A bijection must also be one-to-one, and many inputs share each output.
โŒ Not quite. The codomain is Z\mathbb{Z}, so 12\frac{1}{2} is not a target at all. (For the same rule with codomain R\mathbb{R}, this argument would be right.)
โŒ Not quite. The definition asks only for one-to-one and onto; k:{a,b}โ†’{1,2}k: \{a, b\} \to \{1, 2\} with k(a)=1k(a) = 1, k(b)=2k(b) = 2 is a bijection between different sets.
Show solution

Surjection. Let yโˆˆZy \in \mathbb{Z} and take x=yx = y. Since ZโІR\mathbb{Z} \subseteq \mathbb{R}, xx is in the domain. The greatest integer less than or equal to the integer yy is yy itself, so F(y)=โŒŠyโŒ‹=yF(y) = \lfloor y \rfloor = y. Hence FF is a surjection. (The input is not unique: F(y+12)=yF\left(y + \frac{1}{2}\right) = y as well.)

Not an injection. F(0)=โŒŠ0โŒ‹=0F(0) = \lfloor 0 \rfloor = 0 and F(12)=โŒŠ12โŒ‹=0F\left(\frac{1}{2}\right) = \left\lfloor \frac{1}{2} \right\rfloor = 0, with 0โ‰ 120 \ne \frac{1}{2}. So FF is not an injection, and therefore not a bijection.

The codomain matters. The same rule viewed as a function Rโ†’R\mathbb{R} \to \mathbb{R} is not a surjection: its outputs are all integers, so the real number 12\frac{1}{2} is in the codomain but not in the range.

Solved: 0 / 4