Sets, Relations & Functions
Functions and their properties
Grade 11

Question:

<p>\( S = \{1, 2, 3\} \), \( f : S \to S \) satisfies the property: \( \forall x \in S,\, f(f(x)) = f(x) \). How many different functions are there for \( f(x) \)?<br>[Note: Can you generalize the result for \( S = \{1, 2, 3, \ldots, n\} \)?]</p>
<p>(a) 8</p>
<p>(b) 10</p>
<p>(c) 1</p>
<p>(d) 4</p>

Step-by-Step Solution

Key Concept: A function satisfying f(f(x)) = f(x) means every element in the range of f is a fixed point. The range must be a non-empty subset of S where f acts as identity on that subset, and all other elements map into this subset.
<p><strong>Step 1: Interpret the condition.</strong> f(f(x)) = f(x) means f(x) is always a fixed point. So if y is in the range of f, then f(y) = y.</p><p><strong>Step 2: Structure of f.</strong> Choose a non-empty subset R ⊆ S to be the range. On R, we must have f(x) = x (identity). For elements not in R, each must map to some element in R.</p><p><strong>Step 3: Count for S = {1,2,3}.</strong> For each non-empty R ⊆ S:</p><p>• |R| = 1: Choose 1 element for R (3 ways), f is determined. Each of 3 elements maps to this 1 fixed point = 3 functions</p><p>• |R| = 2: Choose 2 elements for R (3 ways), f is identity on R. Each of 1 remaining element maps to one of 2 elements in R = 3 × 2¹ = 6 functions</p><p>• |R| = 3: R = S (1 way), f is identity on all of S = 1 function</p><p><strong>Step 4: Total count.</strong> 3 + 6 + 1 = <strong>10 functions</strong></p><p><strong>Generalization:</strong> For S = {1,2,...,n}, the answer is: $$\sum_{k=1}^{n} \binom{n}{k} k^{n-k}$$</p><p>This equals the sum over all non-empty subsets of size k of (ways to choose k fixed points) × (ways to map remaining n−k elements to those k points).</p><p>∴ Answer: <strong>B (10)</strong></p>
Correct Answer: B

Master Sets, Relations & Functions with Mathbee

Practice this topic under real exam conditions with strict timers, or ask our AI Mentor to explain the concepts step-by-step.

Start Practicing for Free