The Elegance of Mapping
Unlocking Onto Functions
Welcome, fellow traveler on the path of JEE mastery! Today, we are going to explore a fundamental concept in set theory and functions: the onto function, or as mathematicians formally call it, the surjective function.
It might seem like a simple counting problem, but beneath the surface lies the beautiful logic of combinatorics. Let us dive in.
Defining the Battlefield
We are given two sets: the domain E={1,2,3,4} and the codomain F={1,2}. Our task is to find the number of onto functions from E to F.
Think of this as a scenario where you have 4 distinct items (the elements of E) that you need to distribute into 2 distinct bins (the elements of F).
The Surjective Condition
What does it mean for a function f:E→F to be onto? It means that every element in the codomain F must be 'hit' by at least one element from the domain E.
In our bin analogy, it means no bin can be left empty. If even one bin is empty, the function fails to be onto. This is the 'no-one-left-behind' policy of functions.
The Power of Complementary Counting
Directly counting the onto functions can be tedious. We would have to consider all the different ways to partition 4 elements into 2 non-empty sets.
Instead, we use a brilliant strategy: Complementary Counting. We calculate the total number of possible functions and subtract the 'bad' ones—the ones that are not onto, which we call 'into' functions.
Onto Functions=Total Functions−Into Functions
Calculating the Total
First, let's find the total number of functions. For each element in E, there are 2 choices in F.
Since there are 4 elements in E, the total number of functions is 2×2×2×2, or 24.
So, there are 16 possible ways to map E to F.
The 'Into' Trap
Now, what are the 'into' functions? These are the functions where the range is a proper subset of F.
Since F={1,2}, the only proper subsets are {1} and {2}. This means an 'into' function occurs if all elements of E map to just 1, or all elements of E map to just 2.
Case 1: All elements map to 1. There is only 1 such function.
Case 2: All elements map to 2. There is only 1 such function.
Thus, there are exactly 2 'into' functions.
The Final Victory
Now, we simply apply our subtraction strategy:
And there we have it! The number of onto functions is 14.
A Note for Your Toolkit
This problem highlights a general rule. For a domain of size n and a codomain of size 2, the number of onto functions is always 2n−2.
Keep this in your mental toolkit; it is a classic JEE Advanced concept that rewards those who understand the underlying logic rather than just memorizing formulas. Keep practicing, keep visualizing, and most importantly, keep falling in love with the process!