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: The condition f(f(x)) = f(x) means every element in the image of f is a fixed point. This severely restricts the structure: the function maps all elements to a subset that consists entirely of fixed points.
<p><strong>Step 1: Understand the condition f(f(x)) = f(x)</strong></p><p>This means that for every x ∈ S, f(x) is a fixed point of f. If we denote y = f(x), then f(y) = y. So every element in the image of f must be a fixed point.</p><p><strong>Step 2: Characterize the structure</strong></p><p>Let F = {a ∈ S : f(a) = a} be the set of fixed points. The image of f must be a subset of F, and moreover, the image must equal F (every fixed point must be in the image, otherwise we could remove it from consideration). So f maps S onto some non-empty subset F ⊆ S where f(a) = a for all a ∈ F.</p><p><strong>Step 3: Count by cases based on fixed point sets</strong></p><p>For S = {1, 2, 3}, we consider all non-empty subsets as potential fixed point sets:</p><p><strong>Case 1: One fixed point</strong></p><p>Choose 1 element to be fixed: C(3,1) = 3 ways. The other 2 elements must map to this fixed point: 1 way each. Total: 3 × 1 = 3 functions.</p><p><strong>Case 2: Two fixed points</strong></p><p>Choose 2 elements to be fixed: C(3,2) = 3 ways. The remaining 1 element can map to either fixed point: 2 ways. Total: 3 × 2 = 6 functions.</p><p><strong>Case 3: Three fixed points</strong></p><p>All three elements are fixed: C(3,3) = 1 way. Each maps to itself: 1 way. Total: 1 × 1 = 1 function.</p><p><strong>Step 4: Sum all cases</strong></p><p>Total number of functions = 3 + 6 + 1 = 10</p><p><strong>Generalization for S = {1, 2, ..., n}:</strong></p><p>For each non-empty subset F of size k (where 1 ≤ k ≤ n), there are k^(n-k) functions mapping the n-k non-fixed elements to F. Thus, the total count is: ∑(k=1 to n) C(n,k) × k^(n-k)</p><p><strong>∴ Answer:</strong> B</p>
Correct Answer: B