Show that the Modulus Function \( f : R → R,\) given by \( f(x) = |x|,\) is neither one- one nor onto, where \(|x|\) is \(x,\) If \(x\) is positive or 0 and \(|x|\) is \(-x,\) if \(x\) is negative.
CBSE Class 12 Maths · Relations and Functions
CBSE Class 12 Maths · Relations and Functions
Think of the modulus function like a machine that always spits out the distance from zero — so it turns both 3 and -3 into 3. That means two different numbers can give the same result, which breaks the one-one rule. Also, this machine can never output a negative number, so something like -2 has no input that produces it. A function is onto only when every possible output has at least one matching input. Since negative outputs are impossible here, the machine fails both tests.
Answer: The modulus function \( f(x) = |x| \) is not one-one because \( f(1) = f(-1) = 1 \) with \( 1 \ne -1 \), and it is not onto because negative values such as \( -2 \) in the codomain \( \mathbb{R} \) have no pre-image. Hence \( f \) is neither one-one nor onto.
The modulus function \( f : \mathbb{R} \to \mathbb{R} \) is defined as \[ f(x) = |x| = \begin{cases} x & x \ge 0 \\ -x & x < 0 \end{cases} \] To decide whether a function is one-one (injective), we check whether different inputs always give different outputs. If \( f(x_1) = f(x_2) \) forces \( x_1 = x_2 \), the function is one-one; otherwise it is not. To decide whether a function is onto (surjective), we check whether every element of the codomain \( \mathbb{R} \) is the image of at least some element of the domain. Since \( |x| \) is always non-negative, its outputs can never be negative, which is the key to showing it is not onto.
One-one: \( f(x_1) = f(x_2) \Rightarrow x_1 = x_2 \). Onto: for every \( y \) in codomain, there exists \( x \) with \( f(x) = y \). Here \( f(x) = |x| \ge 0 \) for all \( x \).
The modulus function \( f(x) = |x| \) is not one-one because \( f(1) = f(-1) = 1 \) with \( 1 \ne -1 \), and it is not onto because negative values such as \( -2 \) in the codomain \( \mathbb{R} \) have no pre-image. Hence \( f \) is neither one-one nor onto.
A common mistake is to think that since each \( x \) gives only one \( |x| \), the function must be one-one. Being a valid function only means each input has one output; one-one requires that different inputs give different outputs, which fails here since \( x \) and \( -x \) share the same image.
The modulus function \( f(x) = |x| \) is not one-one because \( f(1) = f(-1) = 1 \) with \( 1 \ne -1 \), and it is not onto because negative values such as \( -2 \) in the codomain \( \mathbb{R} \) have no pre-image. Hence \( f \) is neither one-one nor onto.
One common mistake: Students sometimes confuse the range with the codomain. The range of \( f(x) = |x| \) is \( [0, \infty) \), but the codomain is all of \( \mathbb{R} \); since these are not equal, the function is not onto, even though every non-negative real number is achieved as an output.
Answer: The modulus function \( f(x) = |x| \) is not one-one because \( f(1) = f(-1) = 1 \) with \( 1 \ne -1 \), and it is not onto because negative values such as \( -2 \) in the codomain \( \mathbb{R} \) have no pre-image. Hence \( f \) is neither one-one nor onto.
Question: Show that the function \( f : \mathbb{R} \to \mathbb{R} \) defined by \( f(x) = x^2 + 1 \) is neither one-one nor onto.
Solution: We test for one-one and onto separately. Step 1: Check whether f is one-one. Consider two values \( x_1 = 2 \) and \( x_2 = -2 \). These are distinct elements in \( \mathbb{R} \). Compute \( f(2) \): \[ f(2) = 2^2 + 1 = 5 \] Compute \( f(-2) \): \[ f(-2) = (-2)^2 + 1 = 5 \] Since \( f(2) = f(-2) = 5 \) but \( 2 \ne -2 \), the function is NOT one-one. Step 2: Check whether f is onto. For f to be onto, every \( y \in \mathbb{R} \) must have some \( x \in \mathbb{R} \) such that \( f(x) = y \), i.e., \( x^2 + 1 = y \), giving \( x^2 = y - 1 \). Since \( x^2 \ge 0 \) for all real \( x \), we need \( y - 1 \ge 0 \), i.e., \( y \ge 1 \). Take \( y = 0 \in \mathbb{R} \). Then \( x^2 = 0 - 1 = -1 \), which has no real solution. So \( y = 0 \) has no pre-image in \( \mathbb{R} \). The range of f is \( [1, \infty) \ne \mathbb{R} \), so the function is NOT onto. Conclusion: \( f(x) = x^2 + 1 \) is neither one-one nor onto.
Answer: f(x) = x^2 + 1 is neither one-one nor onto.
Question: Let \( f : \mathbb{R} \to \mathbb{R} \) be defined by \[ f(x) = \begin{cases} 2x & \text{if } x \ge 0 \\ -2x & \text{if } x < 0 \end{cases} \] Show that f is neither one-one nor onto.
Solution: We observe that \( f(x) = 2|x| \) for all \( x \in \mathbb{R} \). Step 1: Check whether f is one-one. Take \( x_1 = 3 \) and \( x_2 = -3 \). These are distinct real numbers. Compute \( f(3) \): \[ f(3) = 2(3) = 6 \] Compute \( f(-3) \): \[ f(-3) = -2(-3) = 6 \] Since \( f(3) = f(-3) = 6 \) but \( 3 \ne -3 \), the function is NOT one-one. Step 2: Check whether f is onto. For any \( x \in \mathbb{R} \), we have \( |x| \ge 0 \), so \( f(x) = 2|x| \ge 0 \). This means no negative real number can ever be in the range of f. Take \( y = -4 \in \mathbb{R} \). Suppose there exists \( x \in \mathbb{R} \) such that \( f(x) = -4 \). Then \( 2|x| = -4 \), giving \( |x| = -2 \), which is impossible since \( |x| \ge 0 \). Thus \( y = -4 \) has no pre-image in \( \mathbb{R} \), and the range of f is \( [0, \infty) \ne \mathbb{R} \). So the function is NOT onto. Conclusion: \( f(x) = 2|x| \) is neither one-one nor onto.
Answer: f(x) = 2|x| is neither one-one nor onto.
Question: Consider the Greatest Integer Function \( f : \mathbb{R} \to \mathbb{R} \) defined by \( f(x) = \lfloor x \rfloor \), where \( \lfloor x \rfloor \) denotes the greatest integer less than or equal to \( x \). Show that \( f \) is neither one-one nor onto.
Answer: The greatest integer function \( f(x) = \lfloor x \rfloor \) is not one-one because \( f(1.2) = f(1.9) = 1 \) with \( 1.2 \ne 1.9 \), and it is not onto because non-integer values such as \( 0.5 \) in the codomain \( \mathbb{R} \) have no pre-image (the range of \( f \) is only \( \mathbb{Z} \), not all of \( \mathbb{R} \)). Hence \( f \) is neither one-one nor onto.