Skip to main content
Back to Definite Integration
JEE Main 2021
Definite Integration
Definite Integration
Hard

Question

Let f(x)=x2f(x) = \left| {x - 2} \right| and g(x) = f(f(x)), x[0,4]x \in \left[ {0,4} \right]. Then 03(g(x)f(x))dx\int\limits_0^3 {\left( {g(x) - f(x)} \right)} dx is equal to:

Options

Solution

Key Concepts and Formulas

  • Definition of Absolute Value: The absolute value function a|a| is defined as: a={aif a0aif a<0|a| = \begin{cases} a & \text{if } a \ge 0 \\ -a & \text{if } a < 0 \end{cases} This is crucial for breaking down the piecewise nature of the functions f(x)f(x) and g(x)g(x).
  • Function Composition: For two functions ff and gg, the composition g(f(x))g(f(x)) means substituting the entire expression of f(x)f(x) into the variable xx of the function gg. In this problem, we have g(x)=f(f(x))g(x) = f(f(x)).
  • Properties of Definite Integrals: We will use the linearity of integration, (ah(x)+bk(x))dx=ah(x)dx+bk(x)dx\int (a \cdot h(x) + b \cdot k(x)) dx = a \int h(x) dx + b \int k(x) dx, and the ability to split an integral over intervals, ach(x)dx=abh(x)dx+bch(x)dx\int_a^c h(x) dx = \int_a^b h(x) dx + \int_b^c h(x) dx. We will also need to evaluate integrals of simple polynomial functions.

Step-by-Step Solution

Step 1: Define f(x)f(x) as a piecewise function. The given function is f(x)=x2f(x) = |x - 2|. We can rewrite this using the definition of absolute value: f(x)={x2if x20    x2(x2)if x2<0    x<2f(x) = \begin{cases} x - 2 & \text{if } x - 2 \ge 0 \implies x \ge 2 \\ -(x - 2) & \text{if } x - 2 < 0 \implies x < 2 \end{cases} So, f(x)={x2if x22xif x<2f(x) = \begin{cases} x - 2 & \text{if } x \ge 2 \\ 2 - x & \text{if } x < 2 \end{cases}

Step 2: Determine the piecewise definition of g(x)=f(f(x))g(x) = f(f(x)). We need to evaluate f(f(x))f(f(x)). This means we substitute f(x)f(x) into the definition of ff. We need to consider the two cases for f(x)f(x):

Case 1: x2x \ge 2. In this case, f(x)=x2f(x) = x - 2. Now we need to evaluate f(x2)f(x-2). We need to know if x22x-2 \ge 2 or x2<2x-2 < 2. If x22x-2 \ge 2, which means x4x \ge 4, then f(x2)=(x2)2=x4f(x-2) = (x-2) - 2 = x - 4. If x2<2x-2 < 2, which means x<4x < 4, then f(x2)=2(x2)=2x+2=4xf(x-2) = 2 - (x-2) = 2 - x + 2 = 4 - x. Since we are considering x[0,4]x \in [0, 4], for x2x \ge 2, we have two sub-cases: - If 2x<42 \le x < 4, then f(x)=x2f(x) = x-2. Since 0x2<20 \le x-2 < 2, f(f(x))=f(x2)=2(x2)=4xf(f(x)) = f(x-2) = 2 - (x-2) = 4-x. - If x=4x = 4, then f(x)=42=2f(x) = 4-2 = 2. f(f(4))=f(2)=22=0f(f(4)) = f(2) = |2-2| = 0. Also, from 4x4-x, we get 44=04-4=0. So the formula 4x4-x holds for x=4x=4 as well.

Case 2: x<2x < 2. In this case, f(x)=2xf(x) = 2 - x. Now we need to evaluate f(2x)f(2-x). We need to know if 2x22-x \ge 2 or 2x<22-x < 2. If 2x22-x \ge 2, which means x0-x \ge 0, or x0x \le 0. Since we are in the domain x<2x < 2, this implies x0x \le 0. - If x0x \le 0, then f(x)=2xf(x) = 2-x. Since 2x22-x \ge 2, f(f(x))=f(2x)=(2x)2=xf(f(x)) = f(2-x) = (2-x) - 2 = -x. If 2x<22-x < 2, which means x<0-x < 0, or x>0x > 0. Since we are in the domain x<2x < 2, this implies 0<x<20 < x < 2. - If 0<x<20 < x < 2, then f(x)=2xf(x) = 2-x. Since 0<2x<20 < 2-x < 2, f(f(x))=f(2x)=2(2x)=xf(f(x)) = f(2-x) = 2 - (2-x) = x.

Combining these cases for x[0,4]x \in [0, 4]: g(x)={xif 0x0    x=0xif 0<x<24xif 2x<40if x=4g(x) = \begin{cases} -x & \text{if } 0 \le x \le 0 \implies x = 0 \\ x & \text{if } 0 < x < 2 \\ 4 - x & \text{if } 2 \le x < 4 \\ 0 & \text{if } x = 4 \end{cases} Let's re-evaluate carefully at the boundaries. If x=0x=0, f(0)=02=2f(0)=|0-2|=2. g(0)=f(f(0))=f(2)=22=0g(0)=f(f(0))=f(2)=|2-2|=0. Our formula x-x gives 0=0-0=0. If x0+x \to 0^+, f(x)2f(x) \to 2^-. g(x)=f(f(x))f(2)=22=2g(x) = f(f(x)) \to f(2^-) = |2^- - 2| = 2^-. This contradicts g(x)=xg(x)=x which tends to 0. Let's recheck.

Let's re-evaluate g(x)=f(f(x))g(x) = f(f(x)) for x[0,4]x \in [0, 4].

We know f(x)={x2if x22xif x<2f(x) = \begin{cases} x - 2 & \text{if } x \ge 2 \\ 2 - x & \text{if } x < 2 \end{cases}.

Consider x[0,2)x \in [0, 2): Here f(x)=2xf(x) = 2 - x. The range of f(x)f(x) for x[0,2)x \in [0, 2) is (0,2](0, 2]. So, we need to evaluate f(y)f(y) where y=2xy = 2-x and y(0,2]y \in (0, 2]. If y(0,2)y \in (0, 2), which means 2x(0,2)2-x \in (0, 2), so 0<2x<20 < 2-x < 2, which implies 0<x<20 < x < 2. In this case, f(y)=2yf(y) = 2 - y. So g(x)=f(2x)=2(2x)=xg(x) = f(2-x) = 2 - (2-x) = x. If y=2y = 2, which means 2x=22-x = 2, so x=0x = 0. In this case, f(y)=f(2)=22=0f(y) = f(2) = |2-2| = 0. So g(0)=0g(0) = 0. Thus, for x[0,2)x \in [0, 2), g(x)=xg(x) = x.

Consider x[2,4]x \in [2, 4]: Here f(x)=x2f(x) = x - 2. The range of f(x)f(x) for x[2,4]x \in [2, 4] is [0,2][0, 2]. So, we need to evaluate f(y)f(y) where y=x2y = x-2 and y[0,2]y \in [0, 2]. If y[0,2)y \in [0, 2), which means 0x2<20 \le x-2 < 2, so 2x<42 \le x < 4. In this case, f(y)=2yf(y) = 2 - y. So g(x)=f(x2)=2(x2)=4xg(x) = f(x-2) = 2 - (x-2) = 4 - x. If y=2y = 2, which means x2=2x-2 = 2, so x=4x = 4. In this case, f(y)=f(2)=22=0f(y) = f(2) = |2-2| = 0. So g(4)=0g(4) = 0. From the formula 4x4-x, for x=4x=4, we get 44=04-4=0. Thus, for x[2,4]x \in [2, 4], g(x)=4xg(x) = 4 - x.

Combining the piecewise definitions for g(x)g(x) on [0,4][0, 4]: g(x)={xif 0x<24xif 2x4g(x) = \begin{cases} x & \text{if } 0 \le x < 2 \\ 4 - x & \text{if } 2 \le x \le 4 \end{cases}

Step 3: Set up the integral for 03(g(x)f(x))dx\int_0^3 (g(x) - f(x)) dx. We need to evaluate the integral from 00 to 33. We will split the integral based on the piecewise definitions of f(x)f(x) and g(x)g(x). The interval of integration is [0,3][0, 3]. In [0,2)[0, 2), f(x)=2xf(x) = 2-x and g(x)=xg(x) = x. In [2,3][2, 3], f(x)=x2f(x) = x-2 and g(x)=4xg(x) = 4-x.

So, the integral can be split as: 03(g(x)f(x))dx=02(g(x)f(x))dx+23(g(x)f(x))dx\int_0^3 (g(x) - f(x)) dx = \int_0^2 (g(x) - f(x)) dx + \int_2^3 (g(x) - f(x)) dx

Step 4: Evaluate the first part of the integral: 02(g(x)f(x))dx\int_0^2 (g(x) - f(x)) dx. For x[0,2)x \in [0, 2), g(x)=xg(x) = x and f(x)=2xf(x) = 2 - x. g(x)f(x)=x(2x)=x2+x=2x2g(x) - f(x) = x - (2 - x) = x - 2 + x = 2x - 2 02(2x2)dx=[2x222x]02=[x22x]02\int_0^2 (2x - 2) dx = \left[ \frac{2x^2}{2} - 2x \right]_0^2 = \left[ x^2 - 2x \right]_0^2 =(222(2))(022(0))=(44)(0)=0= (2^2 - 2(2)) - (0^2 - 2(0)) = (4 - 4) - (0) = 0

Step 5: Evaluate the second part of the integral: 23(g(x)f(x))dx\int_2^3 (g(x) - f(x)) dx. For x[2,3]x \in [2, 3], g(x)=4xg(x) = 4 - x and f(x)=x2f(x) = x - 2. g(x)f(x)=(4x)(x2)=4xx+2=62xg(x) - f(x) = (4 - x) - (x - 2) = 4 - x - x + 2 = 6 - 2x 23(62x)dx=[6x2x22]23=[6xx2]23\int_2^3 (6 - 2x) dx = \left[ 6x - \frac{2x^2}{2} \right]_2^3 = \left[ 6x - x^2 \right]_2^3 =(6(3)32)(6(2)22)=(189)(124)= (6(3) - 3^2) - (6(2) - 2^2) = (18 - 9) - (12 - 4) =98=1= 9 - 8 = 1

Step 6: Combine the results from Step 4 and Step 5. The total integral is the sum of the two parts: 03(g(x)f(x))dx=02(g(x)f(x))dx+23(g(x)f(x))dx\int_0^3 (g(x) - f(x)) dx = \int_0^2 (g(x) - f(x)) dx + \int_2^3 (g(x) - f(x)) dx =0+1=1= 0 + 1 = 1

Common Mistakes & Tips

  • Incorrectly determining the piecewise definition of g(x)g(x): The composition f(f(x))f(f(x)) requires careful consideration of the nested absolute values and the different intervals. Always check the range of the inner function to determine which part of the outer function's definition to apply.
  • Errors in integration of piecewise functions: Ensure that the integral is split correctly at the points where the definitions of f(x)f(x) and g(x)g(x) change.
  • Algebraic errors in simplifying g(x)f(x)g(x) - f(x): Double-check the subtraction of the piecewise functions, especially when dealing with negative signs.

Summary

The problem involves evaluating a definite integral of the difference between two composite absolute value functions, g(x)=f(f(x))g(x) = f(f(x)) and f(x)f(x), over the interval [0,3][0, 3]. The solution begins by defining f(x)f(x) and g(x)g(x) as piecewise functions. This is done by carefully applying the definition of the absolute value function and considering the nested nature of g(x)g(x). The interval of integration [0,3][0, 3] is then split into sub-intervals [0,2)[0, 2) and [2,3][2, 3] where the piecewise definitions of f(x)f(x) and g(x)g(x) are consistent. The integral is then evaluated over each sub-interval by substituting the appropriate piecewise expressions and performing standard integration techniques. Finally, the results from each sub-interval are summed to obtain the total value of the definite integral.

The final answer is 1\boxed{1}.

Practice More Definite Integration Questions

View All Questions