Skip to main content
Back to Sets, Relations & Functions
JEE Main 2021
Sets, Relations & Functions
Functions
Medium

Question

Let A = {x \in R : x is not a positive integer}. Define a function ff : A \to R as f(x)f(x) = 2xx1{{2x} \over {x - 1}}, then ff is :

Options

Solution

Key Concepts and Formulas

  • Injectivity (One-to-One Function): A function f:ABf: A \to B is injective if for any x1,x2Ax_1, x_2 \in A, f(x1)=f(x2)f(x_1) = f(x_2) implies x1=x2x_1 = x_2. Graphically, a function is injective if no horizontal line intersects its graph more than once. For differentiable functions, if f(x)f'(x) is strictly positive or strictly negative over its domain, the function is injective.
  • Surjectivity (Onto Function): A function f:ABf: A \to B is surjective if for every element yy in the codomain BB, there exists at least one element xx in the domain AA such that f(x)=yf(x) = y. In other words, the range of the function is equal to its codomain.

Step-by-Step Solution

Step 1: Define the Domain and Codomain of the Function The problem states that A={xR:x is not a positive integer}A = \{x \in \mathbb{R} : x \text{ is not a positive integer}\}. This means the domain AA includes all real numbers except for 1,2,3,1, 2, 3, \ldots. The codomain of the function ff is given as R\mathbb{R} (all real numbers).

Step 2: Check for Injectivity To check if ff is injective, we assume f(x1)=f(x2)f(x_1) = f(x_2) for x1,x2Ax_1, x_2 \in A and try to prove that x1=x2x_1 = x_2.

Let f(x1)=f(x2)f(x_1) = f(x_2). 2x1x11=2x2x21\frac{2x_1}{x_1 - 1} = \frac{2x_2}{x_2 - 1} Since x1,x2Ax_1, x_2 \in A, neither x1x_1 nor x2x_2 can be 11. Thus, x110x_1 - 1 \neq 0 and x210x_2 - 1 \neq 0. Cross-multiply: 2x1(x21)=2x2(x11)2x_1(x_2 - 1) = 2x_2(x_1 - 1) Divide both sides by 2: x1(x21)=x2(x11)x_1(x_2 - 1) = x_2(x_1 - 1) Expand both sides: x1x2x1=x2x1x2x_1x_2 - x_1 = x_2x_1 - x_2 Subtract x1x2x_1x_2 from both sides: x1=x2-x_1 = -x_2 Multiply by -1: x1=x2x_1 = x_2 Since f(x1)=f(x2)f(x_1) = f(x_2) implies x1=x2x_1 = x_2, the function ff is injective.

Alternatively, we can examine the derivative of f(x)f(x). f(x)=ddx(2xx1)f'(x) = \frac{d}{dx} \left( \frac{2x}{x - 1} \right) Using the quotient rule, (u/v)=(uvuv)/v2(u/v)' = (u'v - uv')/v^2: Let u=2xu = 2x, so u=2u' = 2. Let v=x1v = x - 1, so v=1v' = 1. f(x)=2(x1)2x(1)(x1)2f'(x) = \frac{2(x - 1) - 2x(1)}{(x - 1)^2} f(x)=2x22x(x1)2f'(x) = \frac{2x - 2 - 2x}{(x - 1)^2} f(x)=2(x1)2f'(x) = \frac{-2}{(x - 1)^2} For any xAx \in A, (x1)2>0(x-1)^2 > 0. Therefore, f(x)=2positive<0f'(x) = \frac{-2}{\text{positive}} < 0 for all xAx \in A. Since f(x)<0f'(x) < 0 for all xx in the domain AA, the function ff is strictly decreasing on its domain and thus is injective.

Step 3: Check for Surjectivity To check if ff is surjective, we need to determine if for every yRy \in \mathbb{R} (the codomain), there exists an xAx \in A such that f(x)=yf(x) = y. Let y=f(x)y = f(x). We need to solve for xx in terms of yy. y=2xx1y = \frac{2x}{x - 1} We must ensure that any solution for xx is in the domain AA (i.e., xx is a real number and xx is not a positive integer). Multiply both sides by (x1)(x-1): y(x1)=2xy(x - 1) = 2x yxy=2xyx - y = 2x Rearrange the terms to group xx: yx2x=yyx - 2x = y Factor out xx: x(y2)=yx(y - 2) = y If y2y \neq 2, we can divide by (y2)(y-2): x=yy2x = \frac{y}{y - 2} Now we need to check if this value of xx is always in the domain AA.

  1. Is xx always a real number? The expression for xx is well-defined as long as y2y \neq 2. If y=2y=2, the equation x(y2)=yx(y-2)=y becomes x(0)=2x(0)=2, which has no solution for xx. This means that y=2y=2 is not in the range of ff. Since 22 is in the codomain R\mathbb{R}, but not in the range of ff, the function is not surjective.

  2. Is xx never a positive integer for any yy in the range? We found that y=2y=2 is not in the range. Let's consider the case when xx is a positive integer. If xx is a positive integer (x{1,2,3,}x \in \{1, 2, 3, \ldots\}), then xx is not in the domain AA. We need to see if there is any yRy \in \mathbb{R} such that the calculated x=yy2x = \frac{y}{y-2} results in a positive integer. Let x=kx = k, where k{1,2,3,}k \in \{1, 2, 3, \ldots\}. k=yy2k = \frac{y}{y - 2} k(y2)=yk(y - 2) = y ky2k=yky - 2k = y kyy=2kky - y = 2k y(k1)=2ky(k - 1) = 2k If k1k \neq 1: y=2kk1y = \frac{2k}{k - 1} We need to check if these values of yy are in the codomain R\mathbb{R} and if the corresponding x=kx=k is excluded from the domain AA.

    • If k=1k=1, then x=1x=1. However, x=1x=1 is not in the domain AA. From the equation y(k1)=2ky(k-1)=2k, if k=1k=1, we get y(0)=2y(0)=2, which is 0=20=2, an impossibility. This confirms that x=1x=1 cannot be generated from any yy.
    • If k=2k=2, then x=2x=2. This xx is not in AA. The corresponding yy is y=2(2)21=41=4y = \frac{2(2)}{2-1} = \frac{4}{1} = 4. So, if y=4y=4, then x=2x=2. Since x=2x=2 is not in AA, y=4y=4 is not in the range of ff for the domain AA.
    • If k=3k=3, then x=3x=3. This xx is not in AA. The corresponding yy is y=2(3)31=62=3y = \frac{2(3)}{3-1} = \frac{6}{2} = 3. So, if y=3y=3, then x=3x=3. Since x=3x=3 is not in AA, y=3y=3 is not in the range of ff for the domain AA.
    • In general, for any positive integer k2k \ge 2, the value x=kx=k is not in the domain AA. The corresponding y=2kk1y = \frac{2k}{k-1}. We can rewrite this as y=2(k1)+2k1=2+2k1y = \frac{2(k-1) + 2}{k-1} = 2 + \frac{2}{k-1}. For k=2k=2, y=2+21=4y = 2 + \frac{2}{1} = 4. For k=3k=3, y=2+22=3y = 2 + \frac{2}{2} = 3. For k=4k=4, y=2+23=83y = 2 + \frac{2}{3} = \frac{8}{3}. The values y=3,4,83,y = 3, 4, \frac{8}{3}, \ldots are in the codomain R\mathbb{R}, but they are not in the range of ff because the required xx values (3,4,83,3, 4, \frac{8}{3}, \ldots) are positive integers and thus not in the domain AA.

    We have shown that y=2y=2 is not in the range of ff. We have also shown that for any positive integer k2k \ge 2, the value y=2kk1y = \frac{2k}{k-1} is not in the range of ff because the corresponding xx value (x=kx=k) is not in the domain AA. Since there are values in the codomain R\mathbb{R} (e.g., y=2y=2, y=3y=3, y=4y=4) that are not attained by f(x)f(x) for any xAx \in A, the function ff is not surjective.

Step 4: Determine the Nature of the Function From Step 2, we concluded that ff is injective. From Step 3, we concluded that ff is not surjective.

Therefore, ff is injective but not surjective.

Common Mistakes & Tips

  • Domain Restrictions: Always pay close attention to the domain of the function. Here, the exclusion of positive integers is crucial for determining surjectivity.
  • Solving for x: When checking for surjectivity, be careful about the values of yy that make the denominator zero or lead to xx values outside the domain.
  • Derivative Test: The derivative test for injectivity is a powerful shortcut, but it only works if the function is differentiable on its entire domain (or on each connected component).

Summary

We analyzed the function f(x)=2xx1f(x) = \frac{2x}{x-1} with domain A={xR:x is not a positive integer}A = \{x \in \mathbb{R} : x \text{ is not a positive integer}\} and codomain R\mathbb{R}. We proved injectivity by showing that f(x1)=f(x2)f(x_1) = f(x_2) implies x1=x2x_1 = x_2, or by observing that f(x)<0f'(x) < 0 for all xAx \in A. We demonstrated that the function is not surjective by showing that y=2y=2 is not in the range, and also that values of yy corresponding to positive integer xx values are not in the range of ff for the given domain. Thus, ff is injective but not surjective.

Final Answer The function ff is injective but not surjective. This corresponds to option (D).

The final answer is \boxed{A}.

Practice More Sets, Relations & Functions Questions

View All Questions