Discrete Math Quiz: Injections Surjections And Bijections
18 questions · exam conditions
0:00
Injections Surjections And BijectionsQuestion 1 of 18

Let F={f:{1,2,3}{1,2,3}:f is injective}\mathcal{F} = \{f: \{1,2,3\} \to \{1,2,3\} : f \text{ is injective}\} and G={g:{1,2,3}{1,2,3}:g is surjective}\mathcal{G} = \{g: \{1,2,3\} \to \{1,2,3\} : g \text{ is surjective}\}. What are F|\mathcal{F}|, G|\mathcal{G}|, and FG|\mathcal{F} \cap \mathcal{G}|?

F=6|\mathcal{F}| = 6, G=6|\mathcal{G}| = 6, and FG=6|\mathcal{F} \cap \mathcal{G}| = 6, since injectivity and surjectivity are equivalent for finite sets of equal size
F=9|\mathcal{F}| = 9, G=6|\mathcal{G}| = 6, and FG=3|\mathcal{F} \cap \mathcal{G}| = 3, since some injective functions are not surjective
F=6|\mathcal{F}| = 6, G=9|\mathcal{G}| = 9, and FG=3|\mathcal{F} \cap \mathcal{G}| = 3, since some surjective functions are not injective
F=3|\mathcal{F}| = 3, G=3|\mathcal{G}| = 3, and FG=6|\mathcal{F} \cap \mathcal{G}| = 6, based on the number of ways to assign elements
← Back to quizzes

Discrete Math Quiz

Discrete Math Quiz: Injections Surjections And Bijections

Practice Injections Surjections And Bijections in Discrete Math with focused quiz questions that help you check what you know, review explanations, and build confidence with test-style prompts.

What this quiz covers

This quiz focuses on Injections Surjections And Bijections, giving you a quick way to practice the rules, question types, and explanations that matter most for Discrete Math.

How to use this quiz

Try each quiz question before looking at the correct answer. Use the explanations to review missed ideas, then come back to similar questions until the pattern feels familiar.

All questions

Question 1

Let F={f:{1,2,3}{1,2,3}:f is injective}\mathcal{F} = \{f: \{1,2,3\} \to \{1,2,3\} : f \text{ is injective}\} and G={g:{1,2,3}{1,2,3}:g is surjective}\mathcal{G} = \{g: \{1,2,3\} \to \{1,2,3\} : g \text{ is surjective}\}. What are F|\mathcal{F}|, G|\mathcal{G}|, and FG|\mathcal{F} \cap \mathcal{G}|?

  1. F=6|\mathcal{F}| = 6, G=6|\mathcal{G}| = 6, and FG=6|\mathcal{F} \cap \mathcal{G}| = 6, since injectivity and surjectivity are equivalent for finite sets of equal size (correct answer)
  2. F=9|\mathcal{F}| = 9, G=6|\mathcal{G}| = 6, and FG=3|\mathcal{F} \cap \mathcal{G}| = 3, since some injective functions are not surjective
  3. F=6|\mathcal{F}| = 6, G=9|\mathcal{G}| = 9, and FG=3|\mathcal{F} \cap \mathcal{G}| = 3, since some surjective functions are not injective
  4. F=3|\mathcal{F}| = 3, G=3|\mathcal{G}| = 3, and FG=6|\mathcal{F} \cap \mathcal{G}| = 6, based on the number of ways to assign elements
Explanation: For functions between finite sets of the same size, injectivity and surjectivity are equivalent to bijectivity. Since {1,2,3}={1,2,3}=3|\{1,2,3\}| = |\{1,2,3\}| = 3, an injective function from {1,2,3}\{1,2,3\} to {1,2,3}\{1,2,3\} must also be surjective (if three distinct inputs map to three distinct outputs, all outputs must be used). Similarly, a surjective function must be injective (if all three outputs are achieved by three inputs, no two inputs can map to the same output). Therefore, F=G=FG\mathcal{F} = \mathcal{G} = \mathcal{F} \cap \mathcal{G} = the set of all bijections from {1,2,3}\{1,2,3\} to {1,2,3}\{1,2,3\}. The number of bijections is the number of permutations of 3 elements, which is 3!=63! = 6. So F=G=FG=6|\mathcal{F}| = |\mathcal{G}| = |\mathcal{F} \cap \mathcal{G}| = 6. Choice B incorrectly calculates F=9|\mathcal{F}| = 9 (this would be 323^2, but not all functions are injective). Choice C incorrectly calculates G=9|\mathcal{G}| = 9. Choice D gives completely wrong values, including an impossible intersection size larger than either individual set.

Question 2

Consider the function Φ:P(N){0,1}N\Phi: \mathcal{P}(\mathbb{N}) \to \{0,1\}^\mathbb{N} that maps each subset SNS \subseteq \mathbb{N} to its characteristic function χS\chi_S, where χS(n)=1\chi_S(n) = 1 if nSn \in S and χS(n)=0\chi_S(n) = 0 if nSn \notin S. Which property does Φ\Phi possess?

  1. Φ\Phi is injective but not surjective because not every sequence in {0,1}N\{0,1\}^\mathbb{N} corresponds to a finite subset of N\mathbb{N}
  2. Φ\Phi is surjective but not injective because multiple subsets can have the same characteristic function pattern
  3. Φ\Phi is neither injective nor surjective due to the fundamental differences between discrete sets and function spaces
  4. Φ\Phi is bijective, establishing a one-to-one correspondence between subsets of N\mathbb{N} and binary sequences (correct answer)
Explanation: When analyzing functions between sets, you need to determine two key properties: injectivity (one-to-one) and surjectivity (onto). For characteristic functions, this connection between subsets and binary sequences is fundamental in discrete mathematics. The function Φ\Phi is bijective because it establishes a perfect one-to-one correspondence. To see why, consider that each subset SNS \subseteq \mathbb{N} produces a unique binary sequence: for any natural number nn, either nSn \in S (giving χS(n)=1\chi_S(n) = 1) or nSn \notin S (giving χS(n)=0\chi_S(n) = 0). This makes Φ\Phi injective—different subsets must produce different characteristic functions. Conversely, every possible binary sequence f:N{0,1}f: \mathbb{N} \to \{0,1\} corresponds to exactly one subset: S={nN:f(n)=1}S = \{n \in \mathbb{N} : f(n) = 1\}. This makes Φ\Phi surjective. Option A incorrectly assumes the mapping only works for finite subsets, but characteristic functions handle infinite subsets perfectly well—like the subset of even numbers producing the sequence (0,1,0,1,0,1,)(0,1,0,1,0,1,\ldots). Option B falsely claims multiple subsets can share the same characteristic function, which is impossible since the characteristic function completely determines which elements belong to the subset. Option C incorrectly suggests fundamental incompatibility between sets and functions, missing that this is precisely what characteristic functions elegantly resolve. Remember: characteristic functions create natural bijections between subsets and binary sequences. This bijection is a cornerstone result showing these seemingly different mathematical objects are essentially equivalent.

Question 3

Let AA be a finite set with A=n|A| = n, and let Inj(A,A)\text{Inj}(A,A) denote the set of all injective functions from AA to AA. If we randomly select a function fInj(A,A)f \in \text{Inj}(A,A) and then randomly select a distinct function gInj(A,A)g \in \text{Inj}(A,A), what is the probability that gfg \circ f is also injective?

  1. 11, because the composition of any two injective functions is always injective, regardless of the domain and codomain (correct answer)
  2. n!1n!\frac{n!-1}{n!}, because there are n!1n!-1 choices for gg after fixing ff, and n!1n!-1 of them yield injective compositions
  3. 1n\frac{1}{n}, because only 1n\frac{1}{n} of the possible compositions result in injective functions due to the constraint structure
  4. (n1)!n!1\frac{(n-1)!}{n!-1}, because we must account for the reduced number of valid choices after excluding the original function
Explanation: Since AA is finite with A=n|A| = n, every injective function f:AAf: A \to A is automatically bijective (an injective function from a finite set to itself must be surjective). Similarly, every gInj(A,A)g \in \text{Inj}(A,A) is bijective. The composition of two bijective functions is always bijective, hence injective. This is true regardless of which specific bijections ff and gg we choose, as long as they're both in Inj(A,A)\text{Inj}(A,A). Therefore, for any choice of distinct f,gInj(A,A)f, g \in \text{Inj}(A,A), the composition gfg \circ f is guaranteed to be injective (in fact, bijective). The probability is 1. Choice B incorrectly suggests some compositions might not be injective. Choice C gives an arbitrary small probability. Choice D provides a complex expression that doesn't apply to this situation where all compositions are guaranteed to be injective.

Question 4

Consider the function g:{1,2,3,4,5}{a,b,c,d}g: \{1, 2, 3, 4, 5\} \to \{a, b, c, d\} defined by g(1)=ag(1) = a, g(2)=bg(2) = b, g(3)=cg(3) = c, g(4)=dg(4) = d, and g(5)=bg(5) = b. How many elements must be removed from the domain to make gg injective while maintaining surjectivity?

  1. Exactly 1 element, and there are 2 different ways to choose which element (correct answer)
  2. Exactly 1 element, and there are 3 different ways to choose which element
  3. Exactly 2 elements, and there are 4 different ways to choose which elements
  4. It is impossible to maintain surjectivity while making gg injective by removing elements
Explanation: Currently gg is surjective (every element in codomain is hit) but not injective because g(2)=g(5)=bg(2) = g(5) = b. To make it injective, we must eliminate this collision by removing either 2 or 5 from the domain. If we remove 2, we get g:{1,3,4,5}{a,b,c,d}g: \{1,3,4,5\} \to \{a,b,c,d\} with g(1)=a,g(3)=c,g(4)=d,g(5)=bg(1)=a, g(3)=c, g(4)=d, g(5)=b, which is bijective. If we remove 5, we get g:{1,2,3,4}{a,b,c,d}g: \{1,2,3,4\} \to \{a,b,c,d\} with g(1)=a,g(2)=b,g(3)=c,g(4)=dg(1)=a, g(2)=b, g(3)=c, g(4)=d, which is also bijective. Removing any other single element (1, 3, or 4) would eliminate a unique image and destroy surjectivity. So exactly 1 element must be removed, with exactly 2 choices. Choice B gives wrong count of ways. Choice C suggests removing 2 elements, but this would make domain<codomain|\text{domain}| < |\text{codomain}|, preventing surjectivity. Choice D is incorrect as we showed two valid solutions exist.

Question 5

Let S={(x,y)R2:x2+y21}S = \{(x,y) \in \mathbb{R}^2 : x^2 + y^2 \leq 1\} and T={(x,y)R2:0x1,0y1}T = \{(x,y) \in \mathbb{R}^2 : 0 \leq x \leq 1, 0 \leq y \leq 1\}. Consider the function f:STf: S \to T defined by f(x,y)=(x+12,y+12)f(x,y) = \left(\frac{x+1}{2}, \frac{y+1}{2}\right). What can be concluded about ff?

  1. ff is injective but not surjective, since it preserves distinctness but maps the unit disk to only part of the unit square (correct answer)
  2. ff is surjective but not injective, since the unit disk has smaller area than the unit square
  3. ff is bijective, since it's a linear transformation that maps the unit disk onto the unit square
  4. ff is neither injective nor surjective, since the transformation is not well-defined on the boundary of the disk
Explanation: The function f(x,y)=(x+12,y+12)f(x,y) = \left(\frac{x+1}{2}, \frac{y+1}{2}\right) is a linear transformation (translation and scaling). Linear transformations are injective, so if (x1,y1)(x2,y2)(x_1,y_1) \neq (x_2,y_2), then f(x1,y1)f(x2,y2)f(x_1,y_1) \neq f(x_2,y_2). For surjectivity, note that SS is the closed unit disk (x2+y21x^2 + y^2 \leq 1), so 1x,y1-1 \leq x,y \leq 1. Thus ff maps SS to {(u,v):0u,v1,(2u1)2+(2v1)21}\{(u,v) : 0 \leq u,v \leq 1, (2u-1)^2 + (2v-1)^2 \leq 1\}, which is a disk inside TT, not all of TT. So ff is not surjective. Choice B reverses the properties. Choice C incorrectly claims bijection. Choice D is wrong - the function is well-defined everywhere.

Question 6

Let A={1,2,3,4,5}A = \{1, 2, 3, 4, 5\} and consider functions f:AAf: A \to A. If ff satisfies the condition that f(f(x))=xf(f(x)) = x for all xAx \in A, which statement about ff must be true?

  1. ff may be neither injective nor surjective, since the condition only constrains the composition fff \circ f, not ff itself
  2. ff must be injective but may not be surjective, since f(f(x))=xf(f(x)) = x prevents any element from mapping to itself
  3. ff must be surjective but may not be injective, since every element must be in the range of fff \circ f
  4. ff must be bijective, since the condition ff=idAf \circ f = \text{id}_A implies ff is its own inverse function (correct answer)
Explanation: When you encounter a function satisfying f(f(x))=xf(f(x)) = x for all elements in its domain, you're looking at a function that is its own inverse. This condition is called an involution, and it has powerful implications for the function's properties. The key insight is that if f(f(x))=xf(f(x)) = x holds for every xx in the domain, then ff=idAf \circ f = \text{id}_A (the identity function). This means ff has a left inverse (itself) and a right inverse (also itself). For functions between finite sets of the same size, having both a left and right inverse guarantees the function is bijective. To see why ff must be injective: if f(a)=f(b)f(a) = f(b) for some aba \neq b, then applying ff again gives f(f(a))=f(f(b))f(f(a)) = f(f(b)), which means a=ba = b by our condition—a contradiction. To see why ff must be surjective: for any yAy \in A, we have y=f(f(y))y = f(f(y)), so yy is in the range of ff (specifically, y=f(f(y))y = f(f(y))). Answer choice A incorrectly suggests the condition is too weak to determine ff's properties. Answer choice B wrongly claims ff prevents self-mapping (elements can map to themselves in involutions). Answer choice C has the injectivity and surjectivity backwards in terms of what "may not" hold. Answer choice D correctly identifies that ff must be bijective since it serves as its own inverse. Remember: when ff=idf \circ f = \text{id}, the function ff is automatically bijective on finite domains of equal size.

Question 7

Let f:RRf: \mathbb{R} \to \mathbb{R} be defined by f(x)=xxf(x) = x|x|. Consider the restriction g:R[0,)g: \mathbb{R} \to [0,\infty) where g(x)=f(x)g(x) = |f(x)|. Which statement correctly describes the relationship between the injectivity and surjectivity of ff and gg?

  1. ff is bijective and gg is injective but not surjective, since both preserve order but gg has restricted codomain
  2. ff is bijective and gg is surjective but not injective, since f(x)=xxf(x) = x|x| is strictly increasing while g(±x)=x2g(±x) = x^2 (correct answer)
  3. ff is bijective and gg is neither injective nor surjective, since gg maps both positive and negative inputs to the same outputs
  4. ff is bijective and gg is bijective, since f(x)=x2|f(x)| = x^2 establishes a bijection from R\mathbb{R} to [0,)[0,\infty)
Explanation: When analyzing functions for injectivity and surjectivity, you need to examine how inputs map to outputs and whether the mapping covers the entire codomain without repetition. First, let's analyze f(x)=xxf(x) = x|x|. For x0x \geq 0, we have f(x)=xx=x2f(x) = x \cdot x = x^2. For x<0x < 0, we have f(x)=x(x)=x2f(x) = x \cdot (-x) = -x^2. This means f(x)=x2f(x) = x^2 when x0x \geq 0 and f(x)=x2f(x) = -x^2 when x<0x < 0. The function ff is strictly increasing: as xx increases, f(x)f(x) increases without bound in both directions, mapping R\mathbb{R} onto R\mathbb{R} with no repeated outputs. Therefore, ff is bijective. Now for g(x)=f(x)g(x) = |f(x)|. Since f(x)=x2f(x) = x^2 for x0x \geq 0 and f(x)=x2f(x) = -x^2 for x<0x < 0, we get g(x)=x2=x2g(x) = |x^2| = x^2 for x0x \geq 0 and g(x)=x2=x2g(x) = |-x^2| = x^2 for x<0x < 0. Thus g(x)=x2g(x) = x^2 for all xRx \in \mathbb{R}. Since every non-negative real number has a square root, gg is surjective onto [0,)[0,\infty). However, gg is not injective because g(2)=g(2)=4g(2) = g(-2) = 4. Answer choice A incorrectly claims gg is injective. Answer choice C wrongly states gg is not surjective. Answer choice D incorrectly claims gg is bijective when it's clearly not injective. Strategy tip: When dealing with absolute value compositions, always check both positive and negative inputs separately, and remember that absolute values typically destroy injectivity by making f(x)=f(x)f(x) = f(-x).

Question 8

Define g:R{1}R{2}g: \mathbb{R} \setminus \{1\} \to \mathbb{R} \setminus \{2\} by g(x)=2xx1g(x) = \frac{2x}{x-1}. To show that gg is bijective, which of the following correctly identifies both the inverse function and the key step in proving surjectivity?

  1. The inverse is g1(y)=y+1y2g^{-1}(y) = \frac{y+1}{y-2}, and surjectivity follows from verifying gg maps R{1}\mathbb{R} \setminus \{1\} onto R{2}\mathbb{R} \setminus \{2\}
  2. The inverse is g1(y)=y+2y2g^{-1}(y) = \frac{y+2}{y-2}, and surjectivity follows from showing the range equals R{2}\mathbb{R} \setminus \{2\}
  3. The inverse is g1(y)=yy2g^{-1}(y) = \frac{y}{y-2}, and surjectivity follows from showing limx±g(x)=2\lim_{x \to \pm\infty} g(x) = 2
  4. The inverse is g1(y)=yy2g^{-1}(y) = \frac{y}{y-2}, and surjectivity follows from solving y=2xx1y = \frac{2x}{x-1} for any y2y \neq 2 (correct answer)
Explanation: When proving a function is bijective, you need to establish both injectivity (one-to-one) and surjectivity (onto). For rational functions like this one, finding the inverse function is often the most efficient approach since it simultaneously proves both properties. To find the inverse of g(x)=2xx1g(x) = \frac{2x}{x-1}, start with y=2xx1y = \frac{2x}{x-1} and solve for xx. Cross-multiplying gives y(x1)=2xy(x-1) = 2x, which expands to yxy=2xyx - y = 2x. Rearranging: yx2x=yyx - 2x = y, so x(y2)=yx(y-2) = y, yielding x=yy2x = \frac{y}{y-2}. Therefore, g1(y)=yy2g^{-1}(y) = \frac{y}{y-2}. For surjectivity, you must show that for every yR{2}y \in \mathbb{R} \setminus \{2\}, there exists some xR{1}x \in \mathbb{R} \setminus \{1\} such that g(x)=yg(x) = y. The key step is demonstrating that the equation y=2xx1y = \frac{2x}{x-1} has a solution for any y2y \neq 2, which we just showed: x=yy2x = \frac{y}{y-2}. Option A has the wrong inverse function (y+1y2\frac{y+1}{y-2} instead of yy2\frac{y}{y-2}). Option B also gives an incorrect inverse (y+2y2\frac{y+2}{y-2}). Option C has the correct inverse but incorrectly identifies the surjectivity approach—limits don't prove surjectivity directly. Study tip: When proving bijection for rational functions, always find the inverse algebraically by solving y=f(x)y = f(x) for xx. This inverse both proves the function is bijective and gives you the explicit formula you need.

Question 9

Let h:[0,1][0,1]h: [0,1] \to [0,1] be defined by h(x)={2xif 0x1222xif 12<x1h(x) = \begin{cases} 2x & \text{if } 0 \leq x \leq \frac{1}{2} \\ 2-2x & \text{if } \frac{1}{2} < x \leq 1 \end{cases} . Analyzing the properties of hh, which conclusion is correct?

  1. hh is injective but not surjective, since hh is strictly increasing on each piece but has range [0,1]{1}[0,1] \setminus \{1\}
  2. hh is surjective but not injective, since hh achieves every value in [0,1][0,1] but h(x)=h(1x)h(x) = h(1-x) for all xx (correct answer)
  3. hh is bijective, since hh is continuous and maps the compact interval [0,1][0,1] onto itself
  4. hh is neither injective nor surjective, since hh fails the horizontal line test and has maximum value 11
Explanation: When analyzing whether a function is injective (one-to-one) or surjective (onto), you need to examine how inputs map to outputs and whether every possible output is achieved. Let's check if hh is surjective by finding its range. On [0,12][0, \frac{1}{2}], h(x)=2xh(x) = 2x ranges from h(0)=0h(0) = 0 to h(12)=1h(\frac{1}{2}) = 1. On (12,1](\frac{1}{2}, 1], h(x)=22xh(x) = 2-2x ranges from values approaching h(12)=1h(\frac{1}{2}) = 1 down to h(1)=0h(1) = 0. So hh achieves every value in [0,1][0,1], making it surjective. For injectivity, notice that hh is not one-to-one because different inputs can produce the same output. For example, h(14)=214=12h(\frac{1}{4}) = 2 \cdot \frac{1}{4} = \frac{1}{2} and h(34)=2234=12h(\frac{3}{4}) = 2 - 2 \cdot \frac{3}{4} = \frac{1}{2}. The pattern h(x)=h(1x)h(x) = h(1-x) holds generally, confirming the function is not injective. Choice A is wrong because hh is surjective—it does achieve the value 1 at x=12x = \frac{1}{2}. Choice C is wrong because continuity and mapping a compact set to itself doesn't guarantee bijectivity; the function must also be injective. Choice D is wrong because hh is surjective—it does achieve its maximum value of 1 and every other value in [0,1][0,1]. Study tip: For piecewise functions, check injectivity by looking for symmetries or repeated values, and check surjectivity by carefully finding the range of each piece. The horizontal line test is your friend for visualizing injectivity.

Question 10

Consider the function ϕ:P({1,2,3}){0,1}3\phi: \mathcal{P}(\{1,2,3\}) \to \{0,1\}^3 defined by ϕ(S)=(x1,x2,x3)\phi(S) = (x_1, x_2, x_3) where xi=1x_i = 1 if iSi \in S and xi=0x_i = 0 if iSi \notin S. Here P({1,2,3})\mathcal{P}(\{1,2,3\}) denotes the power set. Which property does ϕ\phi have?

  1. ϕ\phi is injective but not surjective, since distinct subsets map to distinct bit strings but not all bit strings correspond to valid subsets
  2. ϕ\phi is surjective but not injective, since every bit string corresponds to some subset but multiple subsets can yield the same bit string
  3. ϕ\phi is bijective, since it establishes a one-to-one correspondence between subsets of {1,2,3}\{1,2,3\} and binary strings of length 3 (correct answer)
  4. ϕ\phi is neither injective nor surjective, since the power set has more elements than the set of binary strings of length 3
Explanation: The function ϕ\phi maps each subset S{1,2,3}S \subseteq \{1,2,3\} to its characteristic vector. For injectivity: if STS \neq T, then there exists ii such that iSi \in S and iTi \notin T (or vice versa), so ϕ(S)\phi(S) and ϕ(T)\phi(T) differ in the ii-th coordinate. For surjectivity: given any (x1,x2,x3){0,1}3(x_1,x_2,x_3) \in \{0,1\}^3, take S={i:xi=1}S = \{i : x_i = 1\}; then ϕ(S)=(x1,x2,x3)\phi(S) = (x_1,x_2,x_3). Since P({1,2,3})=23=8={0,1}3|\mathcal{P}(\{1,2,3\})| = 2^3 = 8 = |\{0,1\}^3|, the bijection can also be seen by counting. Choice A incorrectly claims not all bit strings correspond to subsets. Choice B incorrectly claims multiple subsets can yield the same bit string. Choice D incorrectly states the cardinalities are different.

Question 11

A function ϕ:NN\phi: \mathbb{N} \to \mathbb{N} satisfies the property that for any m,nNm, n \in \mathbb{N}, if gcd(m,n)=1\gcd(m,n) = 1, then ϕ(mn)=ϕ(m)ϕ(n)\phi(mn) = \phi(m)\phi(n). Additionally, ϕ(pk)=pk1(p1)\phi(p^k) = p^{k-1}(p-1) for any prime pp and k1k \geq 1. Which statement about ϕ\phi is correct?

  1. ϕ\phi is injective because ϕ(pk)ϕ(qj)\phi(p^k) \neq \phi(q^j) whenever pqp \neq q are primes and k,j1k,j \geq 1
  2. ϕ\phi is not injective because ϕ(3)=ϕ(4)=2\phi(3) = \phi(4) = 2, but it is surjective since every positive integer appears as ϕ(n)\phi(n) for some nn
  3. ϕ\phi is not injective because ϕ(3)=ϕ(4)=ϕ(6)=2\phi(3) = \phi(4) = \phi(6) = 2, and it is not surjective since some integers like 14 are not in the range (correct answer)
  4. ϕ\phi is surjective because the multiplicative property ensures all positive integers are achieved, but not injective due to overlapping values
Explanation: This function is Euler's totient function ϕ(n)\phi(n). Let's check specific values: ϕ(3)=311(31)=12=2\phi(3) = 3^{1-1}(3-1) = 1 \cdot 2 = 2, ϕ(4)=ϕ(22)=221(21)=21=2\phi(4) = \phi(2^2) = 2^{2-1}(2-1) = 2 \cdot 1 = 2, and ϕ(6)=ϕ(23)=ϕ(2)ϕ(3)=12=2\phi(6) = \phi(2 \cdot 3) = \phi(2)\phi(3) = 1 \cdot 2 = 2 since ϕ(2)=211(21)=1\phi(2) = 2^{1-1}(2-1) = 1. So ϕ\phi is not injective. For surjectivity, the totient function is known to not be surjective - for example, no positive integer nn satisfies ϕ(n)=14\phi(n) = 14. Choice A incorrectly claims injectivity. Choice B incorrectly claims surjectivity. Choice D incorrectly claims surjectivity.

Question 12

Define ψ:R{1}R{2}\psi: \mathbb{R} \setminus \{1\} \to \mathbb{R} \setminus \{2\} by ψ(x)=2xx1\psi(x) = \frac{2x}{x-1}. Which statement about ψ\psi and its inverse is correct?

  1. ψ\psi is bijective with inverse ψ1(y)=yy2\psi^{-1}(y) = \frac{y}{y-2}, and both functions have the same domain exclusion pattern
  2. ψ\psi is bijective with inverse ψ1(y)=2yy2\psi^{-1}(y) = \frac{2y}{y-2}, but the domain exclusions are different for ψ\psi and ψ1\psi^{-1}
  3. ψ\psi is not bijective because the function has vertical and horizontal asymptotes that prevent surjectivity onto the specified codomain
  4. ψ\psi is bijective with inverse ψ1(y)=yy2\psi^{-1}(y) = \frac{y}{y-2}, and the domain exclusions correspond to the codomain exclusions (correct answer)
Explanation: When you encounter a function between restricted domains, you need to verify three things: injectivity (one-to-one), surjectivity (onto), and find the correct inverse formula. To find the inverse of ψ(x)=2xx1\psi(x) = \frac{2x}{x-1}, start with y=2xx1y = \frac{2x}{x-1} and solve for xx. Cross-multiplying gives y(x1)=2xy(x-1) = 2x, so yxy=2xyx - y = 2x. Rearranging: yx2x=yyx - 2x = y, which factors as x(y2)=yx(y-2) = y. Therefore x=yy2x = \frac{y}{y-2}, making ψ1(y)=yy2\psi^{-1}(y) = \frac{y}{y-2}. Notice the beautiful symmetry: ψ\psi excludes x=1x = 1 from its domain (where the denominator x1=0x-1 = 0), while ψ1\psi^{-1} excludes y=2y = 2 from its domain (where y2=0y-2 = 0). This isn't coincidental—the domain exclusion of ψ\psi corresponds exactly to the codomain exclusion {2}\{2\}, and vice versa. You can verify bijectivity by checking that ψ\psi maps R{1}\mathbb{R} \setminus \{1\} onto R{2}\mathbb{R} \setminus \{2\} and that the inverse relationship holds. Choice A has the wrong inverse formula (missing the factor of 2). Choice B has an incorrect inverse 2yy2\frac{2y}{y-2} and misunderstands the domain-codomain relationship. Choice C incorrectly claims the function isn't bijective—while asymptotes exist, they don't prevent bijectivity between the specified sets. Study tip: For rational functions, the domain exclusions of a function become the codomain exclusions of its inverse, and vice versa. Always check this correspondence when verifying inverse functions.

Question 13

Let A={1,2,3,4}A = \{1, 2, 3, 4\} and consider all functions f:AAf: A \to A such that f(f(x))=xf(f(x)) = x for all xAx \in A. How many of these functions are bijective?

  1. All such functions are bijective, and there are exactly 10 of them in total (correct answer)
  2. All such functions are bijective, and there are exactly 9 of them in total
  3. Not all such functions are bijective, but exactly 8 of the total are bijective involutions
  4. Not all such functions are bijective, but exactly 6 of the total are bijective involutions
Explanation: A function ff satisfying f(f(x))=xf(f(x)) = x for all xx is called an involution. We need to prove that every involution on a finite set is bijective. For injectivity: if f(a)=f(b)f(a) = f(b), then a=f(f(a))=f(f(b))=ba = f(f(a)) = f(f(b)) = b. For surjectivity: given any yAy \in A, we have f(f(y))=yf(f(y)) = y, so y=f(f(y))y = f(f(y)), meaning yy is the image of f(y)f(y). Thus every involution is bijective. Now we count involutions on {1,2,3,4}\{1,2,3,4\}. An involution partitions the set into fixed points (where f(x)=xf(x) = x) and 2-cycles (where f(x)=y,f(y)=xf(x) = y, f(y) = x with xyx \neq y). Possible structures: (1) All 4 fixed points: 1 way. (2) 2 fixed points, 1 two-cycle: (42)=6\binom{4}{2} = 6 ways to choose the 2-cycle. (3) 0 fixed points, 2 two-cycles: 12!(42)(22)=612=3\frac{1}{2!}\binom{4}{2}\binom{2}{2} = \frac{6 \cdot 1}{2} = 3 ways. Total: 1+6+3=101 + 6 + 3 = 10 involutions. Choice B gives the wrong count. Choices C and D incorrectly suggest some involutions aren't bijective.

Question 14

Let f:RRf: \mathbb{R} \to \mathbb{R} be defined by f(x)=x33x+2f(x) = x^3 - 3x + 2. Which statement about ff is correct?

  1. ff is injective because f(x)=3x23>0f'(x) = 3x^2 - 3 > 0 for all xRx \in \mathbb{R}
  2. ff is not injective because f(x)=3x23=0f'(x) = 3x^2 - 3 = 0 has real solutions at x=±1x = \pm 1
  3. ff is surjective but not injective, making it neither bijective nor one-to-one (correct answer)
  4. ff is bijective because it is a cubic polynomial with positive leading coefficient
Explanation: To check injectivity, we examine if f(x1)=f(x2)f(x_1) = f(x_2) implies x1=x2x_1 = x_2. Since f(x)=3x23=3(x21)f'(x) = 3x^2 - 3 = 3(x^2 - 1), we have f(x)=0f'(x) = 0 at x=±1x = \pm 1. This creates local extrema: f(1)=4f(-1) = 4 (local max) and f(1)=0f(1) = 0 (local min). Since ff has both a local maximum and minimum, there exist distinct values that map to the same output, so ff is not injective. However, as x±x \to \pm\infty, f(x)±f(x) \to \pm\infty respectively, and ff is continuous, so by the Intermediate Value Theorem, ff is surjective. Choice A is wrong because f(x)f'(x) is not always positive. Choice B correctly identifies why ff is not injective but doesn't address surjectivity. Choice D is wrong because being cubic doesn't guarantee bijectivity.

Question 15

Let f:{0,1,2,,n1}{0,1,2,,n1}f: \{0,1,2,\ldots,n-1\} \to \{0,1,2,\ldots,n-1\} be defined by f(x)=axmodnf(x) = ax \bmod n where gcd(a,n)=d>1\gcd(a,n) = d > 1. Which statement about the range of ff is correct?

  1. The range has exactly nd\frac{n}{d} elements, and ff is injective on its domain but not surjective
  2. The range has exactly nd\frac{n}{d} elements, and ff is neither injective nor surjective on its full domain (correct answer)
  3. The range has exactly dd elements, and ff is surjective but not injective on its domain
  4. The range has exactly ndn-d elements, and the function properties depend on the specific values of aa and nn
Explanation: Since gcd(a,n)=d>1\gcd(a,n) = d > 1, we can write a=daa = da' and n=dnn = dn' where gcd(a,n)=1\gcd(a',n') = 1. Then f(x)=axmodn=daxmoddnf(x) = ax \bmod n = da'x \bmod dn'. The range of ff consists of all values {daxmoddn:x=0,1,,n1}\{da'x \bmod dn' : x = 0,1,\ldots,n-1\}. Since gcd(a,n)=1\gcd(a',n') = 1, as xx runs through {0,1,,n1}\{0,1,\ldots,n'-1\}, axmodna'x \bmod n' takes all values {0,1,,n1}\{0,1,\ldots,n'-1\}. Therefore, daxmoddnda'x \bmod dn' takes values {0,d,2d,,(n1)d}={kd:k=0,1,,n1}\{0,d,2d,\ldots,(n'-1)d\} = \{kd : k = 0,1,\ldots,n'-1\}. This gives exactly n=ndn' = \frac{n}{d} distinct values. For injectivity: f(x1)=f(x2)f(x_1) = f(x_2) means ax1ax2(modn)ax_1 \equiv ax_2 \pmod{n}, so a(x1x2)0(modn)a(x_1-x_2) \equiv 0 \pmod{n}. This means na(x1x2)n | a(x_1-x_2), so dnda(x1x2)dn' | da'(x_1-x_2), giving na(x1x2)n' | a'(x_1-x_2). Since gcd(a,n)=1\gcd(a',n') = 1, we need n(x1x2)n' | (x_1-x_2). For x1,x2{0,1,,n1}x_1,x_2 \in \{0,1,\ldots,n-1\} with x1x2x_1 \neq x_2, we can have x1x2=n<n|x_1-x_2| = n' < n, so ff is not injective. Since range=nd<n|\text{range}| = \frac{n}{d} < n, ff is not surjective. Choice A incorrectly claims injectivity.

Question 16

Consider the function F:R2R2F: \mathbb{R}^2 \to \mathbb{R}^2 defined by F(x,y)=(2xy,x+y)F(x,y) = (2x - y, x + y). Which statement correctly describes the properties of FF?

  1. FF is injective but not surjective because the determinant of its matrix representation is positive
  2. FF is surjective but not injective because the system F(x,y)=(a,b)F(x,y) = (a,b) always has solutions but not unique ones
  3. FF is neither injective nor surjective because its matrix representation is singular with determinant zero
  4. FF is bijective because its matrix representation has determinant 3, making it invertible as a linear transformation (correct answer)
Explanation: When you encounter a linear function from R2\mathbb{R}^2 to R2\mathbb{R}^2, the key insight is that its injectivity and surjectivity properties are completely determined by whether its matrix representation is invertible. The function F(x,y)=(2xy,x+y)F(x,y) = (2x - y, x + y) can be written as matrix multiplication: F(v)=AvF(\mathbf{v}) = A\mathbf{v} where A=(2111)A = \begin{pmatrix} 2 & -1 \\ 1 & 1 \end{pmatrix} . The determinant is det(A)=2(1)(1)(1)=2+1=3\det(A) = 2(1) - (-1)(1) = 2 + 1 = 3. Since the determinant is non-zero, the matrix is invertible, which means FF is bijective (both injective and surjective). Looking at the wrong answers: Choice A incorrectly claims FF is injective but not surjective. While it correctly notes the positive determinant, it misses that a non-zero determinant guarantees both properties, not just injectivity. Choice B states FF is surjective but not injective with non-unique solutions. This contradicts the invertible matrix having exactly one solution for each output. Choice C claims FF is neither injective nor surjective with determinant zero. This is factually wrong—we calculated the determinant as 3, not 0. Choice D correctly identifies that the non-zero determinant (specifically 3) makes the linear transformation invertible, ensuring bijectivity. Study tip: For linear transformations between spaces of equal dimension, always compute the determinant first. Non-zero determinant means bijective; zero determinant means neither injective nor surjective. This single calculation tells you everything about the function's properties.

Question 17

Let h:ZZh: \mathbb{Z} \to \mathbb{Z} be defined by h(n)={2nif n02n+1if n<0h(n) = \begin{cases} 2n & \text{if } n \geq 0 \\ 2n + 1 & \text{if } n < 0 \end{cases} . Which property does hh satisfy?

  1. hh is injective but not surjective because negative integers are not in the range
  2. hh is surjective but not injective because h(0)=h(1)=0h(0) = h(-1) = 0
  3. hh is bijective because it maps non-negative integers to even integers and negative integers to odd integers (correct answer)
  4. hh is neither injective nor surjective because the piecewise definition creates overlapping ranges
Explanation: Let's analyze both properties. For injectivity: if n0n \geq 0, then h(n)=2n0h(n) = 2n \geq 0 and even. If n<0n < 0, then h(n)=2n+1<1h(n) = 2n + 1 < 1 and odd (since 2n2n is even). The ranges don't overlap: non-negative even integers vs. negative odd integers. Within each piece, the functions n2nn \mapsto 2n and n2n+1n \mapsto 2n+1 are strictly increasing, so no collisions occur. Thus hh is injective. For surjectivity: every non-negative even integer 2k2k equals h(k)h(k) where k0k \geq 0. Every negative odd integer 2k+1<02k+1 < 0 can be written as 2k+12k+1 where k<0k < 0, so it equals h(k)h(k). Every positive odd integer 2k+1>02k+1 > 0 equals h(k)h(k) where k=2k+112<0k = -\frac{2k+1-1}{2} < 0. Thus hh is surjective. Choice A is wrong about surjectivity and the range. Choice B incorrectly claims h(0)=h(1)h(0) = h(-1), but h(0)=0h(0) = 0 and h(1)=1h(-1) = -1. Choice D incorrectly suggests the ranges overlap.

Question 18

Let f:RRf: \mathbb{R} \to \mathbb{R} be defined by f(x)=x33x+2f(x) = x^3 - 3x + 2. Consider the restriction g:[1,)Rg: [1, \infty) \to \mathbb{R} where g(x)=f(x)g(x) = f(x). Which statement about gg is correct?

  1. gg is injective but not surjective, since gg is strictly increasing on [1,)[1, \infty) but its range is [0,)[0, \infty) (correct answer)
  2. gg is surjective but not injective, since gg achieves all real values but fails the horizontal line test
  3. gg is bijective, since gg is strictly increasing on [1,)[1, \infty) and limxg(x)=\lim_{x \to \infty} g(x) = \infty
  4. gg is neither injective nor surjective, since gg has a local minimum at x=1x = 1 and range [0,)[0, \infty)
Explanation: First, find critical points: f(x)=3x23=3(x21)=3(x1)(x+1)f'(x) = 3x^2 - 3 = 3(x^2 - 1) = 3(x-1)(x+1). So f(x)=0f'(x) = 0 at x=±1x = \pm 1. For x>1x > 1, f(x)>0f'(x) > 0, so gg is strictly increasing on [1,)[1, \infty), making it injective. Since g(1)=13+2=0g(1) = 1 - 3 + 2 = 0 and gg is increasing with limxg(x)=\lim_{x \to \infty} g(x) = \infty, the range of gg is [0,)[0, \infty), not all of R\mathbb{R}, so gg is not surjective. Choice B is wrong because gg is injective. Choice C is wrong because gg is not surjective onto R\mathbb{R}. Choice D is wrong because gg is injective.