Mastering One-One and Onto Functions: NCERT Ex 1.2 Explained
Welcome, Class 12 Maths student! In your journey through Relations and Functions, Exercise 1.2 is a critical milestone. This exercise delves deep into the fascinating world of one-one (injective) and onto (surjective) functions, which are fundamental concepts not just for your board exams but also for higher mathematics. Understanding these function types is essential for solving problems related to inverse functions, permutations, and combinations, and even advanced topics like group theory. By the end of this page, you'll not only grasp the rigorous definitions but also gain the confidence to identify, prove, and solve problems involving one-one and onto functions with ease. We'll walk through step-by-step methods, clarify common misconceptions, and provide ample practice to solidify your understanding. Let's begin mastering these essential function types!
Understanding One-One and Onto Functions
Functions are a cornerstone of mathematics, mapping elements from one set (domain) to another (codomain). In Class 12, we refine our understanding by classifying functions based on how these mappings occur. Exercise 1.2 of NCERT focuses specifically on two crucial types: one-one functions and onto functions. A function f: A -> B is essentially a rule that assigns each element x from set A (the domain) to exactly one element y from set B (the codomain). The set of all actual output values f(x) is called the range, which is always a subset of the codomain.
One-one (Injective) Function: Imagine a scenario where each student in a class (domain) is assigned a unique roll number (codomain). No two different students can have the same roll number. This perfectly illustrates a one-one function. Mathematically, it means if f(x1) = f(x2), then it must imply x1 = x2. Conversely, if x1 ≠ x2, then f(x1) ≠ f(x2). Each distinct element in the domain maps to a distinct element in the codomain.
Onto (Surjective) Function: Now, consider a concert hall where every seat (codomain) is occupied by at least one person (domain). It means there are no empty seats. In function terms, for every element y in the codomain B, there exists at least one element x in the domain A such that f(x) = y. This implies that the range of the function is equal to its codomain. If there's even one element in the codomain that doesn't have a pre-image in the domain, the function is not onto.
Formal Definitions of Functions
- One-one Function (Injective)
- A function
f: A → Bis said to be one-one (or injective) if distinct elements ofAhave distinct images inB. That is, for allx1, x2 ∈ A, iff(x1) = f(x2), thenx1 = x2. Equivalently, ifx1 ≠ x2, thenf(x1) ≠ f(x2). - Onto Function (Surjective)
- A function
f: A → Bis said to be onto (or surjective) if every element ofBis the image of some element ofAunderf. That is, for everyy ∈ B, there exists an elementx ∈ Asuch thatf(x) = y. This implies that the range offis equal to the codomainB. - Bijective Function
- A function
f: A → Bis said to be bijective if it is both one-one (injective) and onto (surjective). Bijective functions are also known as one-to-one correspondence.
Step-by-Step Guide to Proving One-One and Onto
- Proving a Function is One-One (Injective) — To prove
f: A → Bis one-one: 1. Assumef(x1) = f(x2): Start by taking two arbitrary elementsx1, x2from the domainAand assume their images underfare equal. 2. Algebraic Manipulation: Perform algebraic steps to simplify the equationf(x1) = f(x2). 3. Concludex1 = x2: If you can successfully show thatf(x1) = f(x2)necessarily impliesx1 = x2, then the function is one-one. If you find a counterexample (i.e.,f(x1) = f(x2)butx1 ≠ x2), then the function is not one-one. - Proving a Function is Onto (Surjective) — To prove
f: A → Bis onto: 1. Take an arbitraryyfrom the codomainB: Letybe any element in the codomain. 2. Setf(x) = y: Equate the function definitionf(x)toy. 3. Solve forxin terms ofy: Rearrange the equation to expressxas a function ofy. Let's sayx = g(y). 4. Check ifxis in the domainA: Verify that for everyyin the codomainB, the correspondingx = g(y)exists and is an element of the domainA. If such anxalways exists within the domain for everyyin the codomain, then the function is onto. If there is anyyin the codomain for which no suchxexists in the domain, then the function is not onto.
Worked Examples: Applying One-One and Onto Proofs
- Example 1: Show that the function
f: N → Ngiven byf(x) = 2xis one-one but not onto, whereNis the set of natural numbers. Solution: Step 1: Check for One-one (Injectivity) Letx1, x2 ∈ Nsuch thatf(x1) = f(x2). Then,2x1 = 2x2. Dividing both sides by 2, we getx1 = x2. Sincef(x1) = f(x2)impliesx1 = x2, the functionf(x) = 2xis one-one. Step 2: Check for Onto (Surjectivity) Letybe an arbitrary element in the codomainN. We need to find anx ∈ Nsuch thatf(x) = y. So,2x = y. This impliesx = y/2. Now, considery = 1(which is in the codomainN). Thenx = 1/2. However,1/2is not a natural number, i.e.,1/2 ∉ N(the domain). Therefore, fory = 1(and many other odd natural numbers), there is noxin the domainNsuch thatf(x) = y. Hence, the functionf(x) = 2xis not onto. Final Answer: The functionf(x) = 2xis one-one but not onto. - Example 2: Show that the function
f: R → Rdefined byf(x) = x^3 + 1is a bijection (both one-one and onto). Solution: Step 1: Check for One-one (Injectivity) Letx1, x2 ∈ Rsuch thatf(x1) = f(x2). Then,x1^3 + 1 = x2^3 + 1. Subtracting 1 from both sides:x1^3 = x2^3. Taking the cube root of both sides:x1 = x2. Sincef(x1) = f(x2)impliesx1 = x2, the functionf(x) = x^3 + 1is one-one. Step 2: Check for Onto (Surjectivity) Letybe an arbitrary element in the codomainR. We need to find anx ∈ Rsuch thatf(x) = y. So,x^3 + 1 = y.x^3 = y - 1. Taking the cube root of both sides:x = (y - 1)^(1/3). For any real numbery,(y - 1)^(1/3)is always a real number. This means for everyyin the codomainR, there exists a real numberx = (y - 1)^(1/3)in the domainRsuch thatf(x) = y. Hence, the functionf(x) = x^3 + 1is onto. Final Answer: Sincef(x) = x^3 + 1is both one-one and onto, it is a bijective function.
Exam Tips and Common Pitfalls
When solving problems from Relations and Function Ex 1.2, paying attention to the details can make a huge difference. Here are some critical exam tips and common pitfalls to avoid:
- Always Check Domain and Codomain: This is the most crucial aspect! A function
f(x) = x^2is not one-one if its domain isR(sincef(2) = 4andf(-2) = 4). However, if its domain isN(natural numbers), it is one-one. Similarly,f(x) = x^2with codomainRis not onto (negative numbers inRhave no pre-image), but with codomain[0, ∞), it can be onto. The nature of the domain and codomain fundamentally determines if a function is one-one or onto. - Clear Steps for Proof: For board exams, present your one-one and onto proofs systematically. Clearly state your assumption (
f(x1) = f(x2)for one-one, andf(x) = yfor onto), show all algebraic manipulations, and state your conclusion explicitly. - Counterexamples for 'Not One-one' or 'Not Onto': If a function is not one-one or not onto, providing a single, clear counterexample is often sufficient and easier than trying to algebraically disprove it in general terms. For example, for
f: R → R, f(x) = x^2, state thatf(2) = 4andf(-2) = 4but2 ≠ -2, so it's not one-one. For not onto, show an element in the codomain with no pre-image (e.g., forf(x) = x^2,-1 ∈ Rhas no realxsuch thatf(x) = -1). - Graphical Interpretation: While not always a formal proof, visualizing functions graphically can give you a strong intuition. For one-one, a horizontal line should intersect the graph at most once. For onto, the range of the function should cover the entire codomain (e.g., extend infinitely up and down if the codomain is
R). - Don't Confuse Injective and Surjective: Ensure you understand the distinct requirements for each. A common mistake is to mix up the conditions or misapply the proof techniques.
Practice Questions with Solutions
- Q: Show that the function
f: R → Rdefined byf(x) = |x|is neither one-one nor onto. A: Step 1: Check for One-one. Letx1 = 2andx2 = -2. Thenf(x1) = |2| = 2andf(x2) = |-2| = 2. Here,f(x1) = f(x2)butx1 ≠ x2. Thus,f(x) = |x|is not one-one. Step 2: Check for Onto. Lety = -3be an element in the codomainR. We need to find anx ∈ Rsuch thatf(x) = -3. So,|x| = -3. However, the absolute value of any real number is always non-negative. There is no real numberxwhose absolute value is-3. Thus,f(x) = |x|is not onto. Final answer: The functionf(x) = |x|is neither one-one nor onto. - Q: Let
f: Z → Zbe defined byf(x) = x^2. Determine iffis one-one and onto. (Zis the set of integers). A: Step 1: Check for One-one. Letx1 = 1andx2 = -1. Thenf(x1) = 1^2 = 1andf(x2) = (-1)^2 = 1. Here,f(x1) = f(x2)butx1 ≠ x2. Thus,f(x) = x^2is not one-one. Step 2: Check for Onto. Lety = 2be an element in the codomainZ. We need to find anx ∈ Zsuch thatf(x) = 2. So,x^2 = 2. This impliesx = ±√2. Since±√2are not integers, there is nox ∈ Zsuch thatf(x) = 2. Thus,f(x) = x^2is not onto. Final answer: The functionf(x) = x^2is neither one-one nor onto. - Q: Show that the function
f: R → Rgiven byf(x) = 5 - 4xis a bijection. A: Step 1: Check for One-one. Letx1, x2 ∈ Rsuch thatf(x1) = f(x2). Then5 - 4x1 = 5 - 4x2. Subtracting 5 from both sides:-4x1 = -4x2. Dividing by -4:x1 = x2. Sincef(x1) = f(x2)impliesx1 = x2,fis one-one. Step 2: Check for Onto. Letybe an arbitrary element in the codomainR. We need to findx ∈ Rsuch thatf(x) = y. So,5 - 4x = y.4x = 5 - y.x = (5 - y)/4. For anyy ∈ R,(5 - y)/4is always a real number. Thus, for everyyin the codomain, there exists anxin the domain such thatf(x) = y. So,fis onto. Final answer: Sincef(x) = 5 - 4xis both one-one and onto, it is a bijective function. - Q: Consider
f: {1, 2, 3} → {a, b, c}given byf(1) = a, f(2) = b, f(3) = a. Isfone-one? Is it onto? A: Step 1: Check for One-one. We havef(1) = aandf(3) = a. Here,f(1) = f(3)but1 ≠ 3. Therefore, the functionfis not one-one. Step 2: Check for Onto. The codomain is{a, b, c}. The range offis{f(1), f(2), f(3)} = {a, b, a} = {a, b}. Sincecis in the codomain but not in the range (i.e.,chas no pre-image), the functionfis not onto. Final answer: The functionfis neither one-one nor onto.
Frequently Asked Questions
What is the main difference between a one-one and an onto function?
A one-one (injective) function ensures that every distinct input maps to a distinct output; no two different inputs share the same output. An onto (surjective) function guarantees that every element in the codomain is mapped to by at least one input from the domain, meaning the range covers the entire codomain.
Why are domain and codomain crucial when determining if a function is one-one or onto?
The nature of the domain and codomain fundamentally changes the function's properties. For example, `f(x) = x^2` from `R` to `R` is neither one-one nor onto, but from `N` to `N` it is one-one and not onto, and from `R+` to `R+` it's bijective. Always clearly state and consider these sets when solving problems.
What is a bijective function and why is it important?
A bijective function is one that is both one-one (injective) and onto (surjective). It establishes a perfect one-to-one correspondence between the elements of its domain and codomain. Bijective functions are important because they are precisely the functions that have an inverse function.
How can I easily remember the difference between one-one and onto?
Think of 'one-one' as 'unique outputs' (no two people share the same phone number). Think of 'onto' as 'all covered' (every seat in the auditorium is filled). If a horizontal line crosses a graph more than once, it's not one-one. If the graph doesn't cover the entire vertical extent of the codomain, it's not onto.