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

Question

Let f,g:RRf, g: \mathbf{R} \rightarrow \mathbf{R} be defined as : f(x)=x1 and g(x)={ex,x0x+1,x0.f(x)=|x-1| \text { and } g(x)= \begin{cases}\mathrm{e}^x, & x \geq 0 \\ x+1, & x \leq 0 .\end{cases} Then the function f(g(x))f(g(x)) is

Options

Solution

Key Concepts and Formulas

  • Composite Function f(g(x))f(g(x)): For two functions ff and gg, the composite function f(g(x))f(g(x)) is obtained by substituting the function g(x)g(x) into the function f(x)f(x). The domain of f(g(x))f(g(x)) consists of all xx in the domain of gg such that g(x)g(x) is in the domain of ff.
  • One-one (Injective) Function: A function h:ABh: A \rightarrow B is one-one if for every x1,x2Ax_1, x_2 \in A, h(x1)=h(x2)h(x_1) = h(x_2) implies x1=x2x_1 = x_2. Graphically, any horizontal line intersects the graph of a one-one function at most once.
  • Onto (Surjective) Function: A function h:ABh: A \rightarrow B is onto if for every yBy \in B, there exists at least one xAx \in A such that h(x)=yh(x) = y. This means the range of the function must be equal to its codomain.

Step-by-Step Solution

Step 1: Define the functions f(x)f(x) and g(x)g(x) in piecewise form.

We are given f(x)=x1f(x) = |x-1| and g(x)={ex,x0x+1,x0g(x) = \begin{cases} \mathrm{e}^x, & x \geq 0 \\ x+1, & x \leq 0 \end{cases}.

The function f(x)=x1f(x) = |x-1| can be written as: f(x)={x1,if x10    x1(x1),if x1<0    x<1f(x) = \begin{cases} x-1, & \text{if } x-1 \geq 0 \implies x \geq 1 \\ -(x-1), & \text{if } x-1 < 0 \implies x < 1 \end{cases} So, f(x)={x1,if x11x,if x<1f(x) = \begin{cases} x-1, & \text{if } x \geq 1 \\ 1-x, & \text{if } x < 1 \end{cases} The domain of ff is R\mathbf{R}, and its range is [0,)[0, \infty).

The function g(x)g(x) is already given in piecewise form: g(x)={ex,if x0x+1,if x0g(x) = \begin{cases} \mathrm{e}^x, & \text{if } x \geq 0 \\ x+1, & \text{if } x \leq 0 \end{cases} The domain of gg is R\mathbf{R}.

Let's analyze the range of g(x)g(x):

  • For x0x \geq 0, g(x)=exg(x) = \mathrm{e}^x. As xx ranges from 00 to \infty, ex\mathrm{e}^x ranges from e0=1\mathrm{e}^0 = 1 to \infty. So, the range for this part is [1,)[1, \infty).
  • For x0x \leq 0, g(x)=x+1g(x) = x+1. As xx ranges from -\infty to 00, x+1x+1 ranges from -\infty to 11. So, the range for this part is (,1](-\infty, 1].

Combining both parts, the range of g(x)g(x) is (,1][1,)=R(-\infty, 1] \cup [1, \infty) = \mathbf{R}.

Step 2: Determine the composite function f(g(x))f(g(x)).

The composite function f(g(x))f(g(x)) means we substitute g(x)g(x) into f(x)f(x). We need to consider the two cases for g(x)g(x) based on its definition and apply the definition of ff accordingly.

Case 1: x0x \geq 0. In this case, g(x)=exg(x) = \mathrm{e}^x. Now we need to apply ff to g(x)=exg(x) = \mathrm{e}^x. We must check whether g(x)1g(x) \geq 1 or g(x)<1g(x) < 1. Since x0x \geq 0, exe0=1\mathrm{e}^x \geq \mathrm{e}^0 = 1. So, for x0x \geq 0, g(x)=ex1g(x) = \mathrm{e}^x \geq 1. Therefore, we use the first case of f(x)f(x), where f(y)=y1f(y) = y-1 for y1y \geq 1. Substituting y=g(x)=exy = g(x) = \mathrm{e}^x: f(g(x))=f(ex)=ex1f(g(x)) = f(\mathrm{e}^x) = \mathrm{e}^x - 1, for x0x \geq 0.

Case 2: x0x \leq 0. In this case, g(x)=x+1g(x) = x+1. Now we need to apply ff to g(x)=x+1g(x) = x+1. We must check whether g(x)1g(x) \geq 1 or g(x)<1g(x) < 1. For x0x \leq 0, x+10+1=1x+1 \leq 0+1 = 1. So, for x0x \leq 0, g(x)=x+11g(x) = x+1 \leq 1. This means we need to consider two sub-cases for g(x)=x+1g(x) = x+1: when g(x)1g(x) \geq 1 and when g(x)<1g(x) < 1. However, we already established that for x0x \leq 0, g(x)1g(x) \leq 1. So, if g(x)=1g(x) = 1, which happens when x+1=1    x=0x+1=1 \implies x=0, we use f(1)=11=0f(1) = 1-1 = 0. If g(x)<1g(x) < 1, which happens when x+1<1    x<0x+1 < 1 \implies x < 0, we use the second case of f(x)f(x), where f(y)=1yf(y) = 1-y for y<1y < 1. Substituting y=g(x)=x+1y = g(x) = x+1: f(g(x))=f(x+1)=1(x+1)=1x1=xf(g(x)) = f(x+1) = 1 - (x+1) = 1 - x - 1 = -x, for x<0x < 0.

Let's combine these results. We need to be careful at x=0x=0. For x=0x=0: g(0)=e0=1g(0) = \mathrm{e}^0 = 1 (using the x0x \geq 0 case for gg). f(g(0))=f(1)=11=0f(g(0)) = f(1) = |1-1| = 0. From Case 1 (x0x \geq 0), f(g(x))=ex1f(g(x)) = \mathrm{e}^x - 1. At x=0x=0, this gives e01=11=0\mathrm{e}^0 - 1 = 1 - 1 = 0. From Case 2 (x0x \leq 0), if we consider x=0x=0, g(0)=0+1=1g(0) = 0+1 = 1 (using the x0x \leq 0 case for gg). f(g(0))=f(1)=11=0f(g(0)) = f(1) = |1-1| = 0. If we use f(g(x))=xf(g(x)) = -x for x<0x < 0, at x=0x=0 this would give 00. So, the composite function f(g(x))f(g(x)) is: f(g(x))={ex1,if x0x,if x<0f(g(x)) = \begin{cases} \mathrm{e}^x - 1, & \text{if } x \geq 0 \\ -x, & \text{if } x < 0 \end{cases}

Step 3: Check if f(g(x))f(g(x)) is one-one.

To check for one-one property, we see if distinct inputs map to distinct outputs.

Consider the interval x0x \geq 0, where f(g(x))=ex1f(g(x)) = \mathrm{e}^x - 1. The function ex\mathrm{e}^x is strictly increasing for all xx. Therefore, ex1\mathrm{e}^x - 1 is also strictly increasing for x0x \geq 0. This means that for any x1,x20x_1, x_2 \geq 0, if x1x2x_1 \neq x_2, then ex11ex21\mathrm{e}^{x_1} - 1 \neq \mathrm{e}^{x_2} - 1. So, the function is one-one on [0,)[0, \infty).

Consider the interval x<0x < 0, where f(g(x))=xf(g(x)) = -x. The function x-x is strictly decreasing for all xx. Therefore, for any x1,x2<0x_1, x_2 < 0, if x1x2x_1 \neq x_2, then x1x2-x_1 \neq -x_2. So, the function is one-one on (,0)(-\infty, 0).

Now we need to check if there are any overlaps in the outputs between the two intervals. For x0x \geq 0, the range of f(g(x))=ex1f(g(x)) = \mathrm{e}^x - 1 is [e01,)=[0,)[\mathrm{e}^0 - 1, \infty) = [0, \infty). For x<0x < 0, the range of f(g(x))=xf(g(x)) = -x is (0,)(0, \infty) (since xx approaches 0 from the negative side, x-x approaches 0 from the positive side, and as xx \to -\infty, x-x \to \infty).

Let's check if different inputs from different intervals can map to the same output. Consider an output yy. If y0y \geq 0, we can find an x0x \geq 0 such that ex1=y    ex=y+1    x=ln(y+1)\mathrm{e}^x - 1 = y \implies \mathrm{e}^x = y+1 \implies x = \ln(y+1). This xx is valid if y+11    y0y+1 \geq 1 \implies y \geq 0. If y>0y > 0, we can find an x<0x < 0 such that x=y    x=y-x = y \implies x = -y. This xx is valid if y<0    y>0-y < 0 \implies y > 0.

Let's test some values. If x1=1x_1 = 1 (from x0x \geq 0), f(g(1))=e11=e1f(g(1)) = \mathrm{e}^1 - 1 = e-1. If x2=(e1)x_2 = -(e-1) (from x<0x < 0), f(g((e1)))=((e1))=e1f(g(-(e-1))) = -(-(e-1)) = e-1. Since 1(e1)1 \neq -(e-1) (as e11.718>0e-1 \approx 1.718 > 0), but f(g(1))=f(g((e1)))f(g(1)) = f(g(-(e-1))), the function f(g(x))f(g(x)) is not one-one.

Step 4: Check if f(g(x))f(g(x)) is onto.

The codomain of f(g(x))f(g(x)) is R\mathbf{R}. We need to see if the range of f(g(x))f(g(x)) covers all real numbers.

From Step 3, we found the range of f(g(x))f(g(x)) for x0x \geq 0 is [0,)[0, \infty). And the range of f(g(x))f(g(x)) for x<0x < 0 is (0,)(0, \infty).

The total range of f(g(x))f(g(x)) is the union of these two ranges: [0,)(0,)=[0,)[0, \infty) \cup (0, \infty) = [0, \infty).

Since the range of f(g(x))f(g(x)) is [0,)[0, \infty), and the codomain is R\mathbf{R}, the range is not equal to the codomain. Specifically, negative real numbers are not in the range of f(g(x))f(g(x)). Therefore, the function f(g(x))f(g(x)) is not onto.

Step 5: Conclude the properties of f(g(x))f(g(x)).

We have determined that f(g(x))f(g(x)) is neither one-one nor onto.

This corresponds to option (A).

Common Mistakes & Tips

  • Careful with piecewise function composition: When composing piecewise functions, ensure you correctly identify the conditions on the inner function's output that determine which piece of the outer function to apply.
  • Check endpoints of intervals: Pay close attention to the values of the composite function at the boundaries of the piecewise intervals. This is crucial for determining continuity and the exact range.
  • Range of g(x)g(x): Before composing, understanding the range of the inner function g(x)g(x) is helpful in determining the domain for the outer function ff and subsequently the range of the composite function.

Summary

To find the composite function f(g(x))f(g(x)), we first defined both f(x)f(x) and g(x)g(x) in piecewise forms. We then substituted g(x)g(x) into f(x)f(x), considering the different definitions of g(x)g(x) and the conditions under which f(x)f(x) is defined. This resulted in a piecewise definition for f(g(x))f(g(x)). We then analyzed the one-one and onto properties of f(g(x))f(g(x)) by examining its behavior over its domain and determining its range. We found that f(g(x))f(g(x)) is not one-one because different inputs can lead to the same output, and it is not onto because its range does not cover all real numbers.

The final answer is \boxed{A}.

Practice More Sets, Relations & Functions Questions

View All Questions