Subject: Class 12 Mathematics Chapter: One One and Onto Functions Topic: 1.6 One One and Onto Functions – Identify one one and onto functions
Not all functions behave the same way with respect to their inputs and outputs. Some functions send different inputs to different outputs, and these are called one-one or injective functions. Other functions manage to reach every element of the codomain, and these are called onto or surjective functions. A function that is both one-one and onto is called a bijection, and bijections are exactly the functions that possess inverses.
The concept of one-one functions is closely related to the horizontal line test on graphs: a function is one-one if and only if no horizontal line meets its graph more than once. The concept of onto functions is related to the range: a function is onto if and only if its range equals its codomain. These two properties are central to the study of inverse functions and to many counting arguments in mathematics.
In this chapter we define injective, surjective and bijective functions precisely, give algebraic methods to verify each property, and solve many worked examples including linear, quadratic, cubic, exponential and rational functions. We also explain the relationship between the two properties and how they combine in bijections.
A function f : A to B is called one-one or injective if different elements of the domain always have different images. In symbols, f is one-one if f(x1) = f(x2) implies x1 = x2. Equivalently, if x1 is not equal to x2, then f(x1) is not equal to f(x2).
To prove a function is one-one, we assume f(x1) = f(x2) and use algebra to deduce x1 = x2. To show a function is NOT one-one, it suffices to find two different inputs with the same output.
Example 1: Prove that f : R to R given by f(x) = 3x + 5 is one-one. Solution: - Step 1: Assume f(x1) = f(x2), so 3x1 + 5 = 3x2 + 5. - Step 2: Subtract 5 from both sides: 3x1 = 3x2. - Step 3: Divide by 3: x1 = x2. - Step 4: Hence f is one-one.
Example 2: Show that f : R to R given by f(x) = x squared is not one-one. Solution: - Step 1: Choose x1 = 2 and x2 = -2. - Step 2: Then f(2) = 4 and f(-2) = 4. - Step 3: Different inputs 2 and -2 produce the same output 4. - Step 4: Therefore f is not one-one.
Example 3: Determine whether f : R to R defined by f(x) = 2x + 1 is one-one. Solution: - Step 1: Suppose 2x1 + 1 = 2x2 + 1. - Step 2: Subtract 1 and divide by 2 to get x1 = x2. - Step 3: Therefore f is one-one. - Step 4: In general, every non-horizontal straight line represents a one-one function.
A function f : A to B is called onto or surjective if every element of the codomain is the image of at least one element of the domain. In other words, the range of f equals the codomain B. For every y in B there must exist some x in A such that f(x) = y.
To prove a function is onto, take an arbitrary element y in the codomain and solve the equation f(x) = y for x, showing that the solution lies in the domain. To show a function is NOT onto, find an element of the codomain that is never attained as an output.
Example 4: Prove that f : R to R given by f(x) = 2x - 3 is onto. Solution: - Step 1: Take any real number y. - Step 2: Solve 2x - 3 = y for x, giving x = (y + 3)/2. - Step 3: Since (y + 3)/2 is a real number, x lies in the domain. - Step 4: Hence every y is attained, so f is onto.
Example 5: Show that f : R to R given by f(x) = x squared is not onto. Solution: - Step 1: Take y = -1 in the codomain. - Step 2: Solving x squared = -1 has no real solution. - Step 3: Hence -1 is never an output. - Step 4: Therefore f is not onto.
Example 6: Let f : Z to Z be defined by f(x) = 2x. Show that f is not onto. Solution: - Step 1: Take y = 3 in the codomain Z. - Step 2: Solving 2x = 3 gives x = 1.5, which is not an integer. - Step 3: Hence 3 is never produced by the function. - Step 4: Therefore f is not onto; its range is only the even integers.
A function that is both one-one and onto is called bijective. A bijection pairs each element of the domain with exactly one element of the codomain, and each element of the codomain with exactly one element of the domain, like a perfect matching. Bijections are precisely the invertible functions.
To identify the type of a function, use this strategy: first check one-one by the equality method or the horizontal line test, then check onto by comparing the range with the codomain. For functions on the real numbers, an increasing or decreasing function is always one-one, and a function whose range is all of the codomain is onto.
Example 7: Determine whether f : R to R, f(x) = x cubed is bijective. Solution: - Step 1: One-one: if x1 cubed = x2 cubed, then x1 = x2, since the cube root is unique. - Step 2: Onto: for every real y, x = cube root of y gives f(x) = y. - Step 3: Hence f is both one-one and onto. - Step 4: Therefore f is bijective.
Example 8: Show that f : R to R, f(x) = x squared + 1 is neither one-one nor onto. Solution: - Step 1: One-one: f(1) = 2 and f(-1) = 2, so different inputs give the same output. - Step 2: Onto: y = 0 gives x squared + 1 = 0, which has no real solution. - Step 3: Hence f is not one-one and not onto. - Step 4: The function is neither injective nor surjective.
Example 9: Let f : R to R be f(x) = 4x - 7. Show that f is bijective. Solution: - Step 1: One-one: 4x1 - 7 = 4x2 - 7 implies x1 = x2. - Step 2: Onto: for any y, x = (y + 7)/4 is real and f(x) = y. - Step 3: Since f is both one-one and onto, it is bijective. - Step 4: Its graph is a straight line with nonzero slope, which passes both tests.
| Property | Definition | Graph test |
|---|---|---|
| One-one (injective) | f(x1) = f(x2) implies x1 = x2 | No horizontal line cuts twice |
| Onto (surjective) | Range equals codomain | Graph covers all y values |
| Bijective | Both one-one and onto | Passes both tests |
| Function | One-one | Onto on R | Type |
|---|---|---|---|
| f(x) = 3x + 2 | Yes | Yes | Bijective |
| f(x) = x squared | No | No | Neither |
| f(x) = x cubed | Yes | Yes | Bijective |
| f(x) = e to the x | Yes | No | Injective only |
flowchart TD
A[One One and Onto Functions] --> B[One One Injective]
A --> C[Onto Surjective]
A --> D[Bijective]
B --> E[f x1 = f x2 implies x1 = x2]
B --> F[Horizontal line test]
C --> G[Range equals codomain]
C --> H[Solve f x = y for every y]
D --> I[Both one one and onto]
D --> J[Possesses inverse]
B --> K[Strictly increasing or decreasing]
The notions of one-one and onto functions sharpen our understanding of how functions behave, revealing whether inputs remain distinguishable and whether every output is reached. A one-one function preserves information, an onto function covers its codomain, and a bijective function combines both so that the mapping can be reversed perfectly. The algebraic techniques for testing these properties, namely solving f(x1) = f(x2) for injectivity and f(x) = y for surjectivity, are the standard tools used throughout higher mathematics. Recognizing familiar functions as injective, surjective or bijective, such as linear functions, squares and cubes, builds intuition that carries directly into the study of composite and inverse functions. Mastery of these ideas is essential for the remaining chapters of this unit and for applications in calculus and linear algebra.