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

Question

\text { Let } f(x)=\left\{\begin{array}{lr} -2, & -2 \leq x \leq 0 \\ x-2, & 0< x \leq 2 \end{array} \text { and } \mathrm{h}(x)=f(|x|)+|f(x)| \text {. Then } \int_\limits{-2}^2 \mathrm{~h}(x) \mathrm{d} x\right. \text { is equal to: }

Options

Solution

Key Concepts and Formulas

  1. Piecewise Functions: Understanding how to define and work with functions that have different definitions over different intervals of their domain.
  2. Modulus Function Properties: The behavior of x|x| and f(x)|f(x)|, specifically a=a|a|=a if a0a \ge 0 and a=a|a|=-a if a<0a < 0.
  3. Definite Integration of Piecewise Functions: The integral of a piecewise function over an interval is the sum of the integrals over each sub-interval where the function's definition is constant. abg(x)dx=i=1naiai+1gi(x)dx\int_a^b g(x) \mathrm{d}x = \sum_{i=1}^n \int_{a_i}^{a_{i+1}} g_i(x) \mathrm{d}x where a=a1<a2<<an+1=ba=a_1 < a_2 < \dots < a_{n+1}=b and g(x)=gi(x)g(x)=g_i(x) on [ai,ai+1][a_i, a_{i+1}].

Step-by-Step Solution

We are asked to evaluate the definite integral 22 h(x)dx\int_{-2}^2 \mathrm{~h}(x) \mathrm{d} x, where h(x)=f(x)+f(x)\mathrm{h}(x)=f(|x|)+|f(x)|. To do this, we first need to determine the explicit form of h(x)h(x) over the interval [2,2][-2, 2].

Step 1: Analyze the function f(x)f(x). The given function f(x)f(x) is defined as: f(x)={2,2x0x2,0<x2f(x)=\left\{\begin{array}{lr} -2, & -2 \leq x \leq 0 \\ x-2, & 0< x \leq 2 \end{array}\right.

Step 2: Determine f(x)f(|x|) for x[2,2]x \in [-2, 2]. We need to substitute x|x| into the definition of f(x)f(x). For x[2,2]x \in [-2, 2], the value of x|x| ranges from 00 to 22. Let t=xt = |x|.

  • If x[2,0)x \in [-2, 0), then x=x|x| = -x. Since 2x<0-2 \le x < 0, we have 0<x20 < -x \le 2. Thus, t(0,2]t \in (0, 2]. In this range, f(t)=t2f(t) = t-2. So, f(x)=x2=(x)2=x2f(|x|) = |x|-2 = (-x)-2 = -x-2.
  • If x=0x = 0, then x=0|x| = 0. According to the definition of f(x)f(x), f(0)=2f(0) = -2. So, f(x)=2f(|x|) = -2.
  • If x(0,2]x \in (0, 2], then x=x|x| = x. Since 0<x20 < x \le 2, we have t(0,2]t \in (0, 2]. In this range, f(t)=t2f(t) = t-2. So, f(x)=x2=x2f(|x|) = |x|-2 = x-2.

Combining these, we get f(x)f(|x|) for x[2,2]x \in [-2, 2]: f(x)={x2,2x<02,x=0x2,0<x2f(|x|)=\left\{\begin{array}{lr} -x-2, & -2 \leq x < 0 \\ -2, & x=0 \\ x-2, & 0< x \leq 2 \end{array}\right. We can simplify this by noting that when x=0x=0, x2=02=2-x-2 = -0-2=-2, and x2=02=2x-2 = 0-2=-2. So, we can combine the intervals: f(x)={x2,2x0x2,0<x2f(|x|)=\left\{\begin{array}{lr} -x-2, & -2 \leq x \leq 0 \\ x-2, & 0< x \leq 2 \end{array}\right.

Step 3: Determine f(x)|f(x)| for x[2,2]x \in [-2, 2]. We need to consider the sign of f(x)f(x) in its defined intervals.

  • For 2x0-2 \leq x \leq 0, f(x)=2f(x) = -2. Since 2-2 is negative, f(x)=2=2|f(x)| = |-2| = 2.
  • For 0<x20 < x \leq 2, f(x)=x2f(x) = x-2.
    • If 0<x<20 < x < 2, then x2x-2 is negative. So, f(x)=x2=(x2)=2x|f(x)| = |x-2| = -(x-2) = 2-x.
    • If x=2x = 2, then f(2)=22=0f(2) = 2-2 = 0. So, f(2)=0|f(2)| = 0. Note that 2x2-x is 00 when x=2x=2, so we can write: f(x)={2,2x02x,0<x<20,x=2|f(x)|=\left\{\begin{array}{lr} 2, & -2 \leq x \leq 0 \\ 2-x, & 0< x < 2 \\ 0, & x=2 \end{array}\right. For integration purposes, the value at a single point does not affect the integral, so we can consider f(x)=2x|f(x)| = 2-x for 0<x20 < x \le 2. Thus, for x[2,2]x \in [-2, 2]: f(x)={2,2x02x,0<x2|f(x)|=\left\{\begin{array}{lr} 2, & -2 \leq x \leq 0 \\ 2-x, & 0< x \leq 2 \end{array}\right.

Step 4: Determine h(x)=f(x)+f(x)h(x) = f(|x|) + |f(x)| for x[2,2]x \in [-2, 2]. We need to combine the definitions of f(x)f(|x|) and f(x)|f(x)| over the interval [2,2][-2, 2]. The critical point for splitting the interval is x=0x=0.

  • Interval 1: 2x0-2 \leq x \leq 0. In this interval, f(x)=x2f(|x|) = -x-2 and f(x)=2|f(x)| = 2. So, h(x)=(x2)+2=xh(x) = (-x-2) + 2 = -x.

  • Interval 2: 0<x20 < x \leq 2. In this interval, f(x)=x2f(|x|) = x-2 and f(x)=2x|f(x)| = 2-x. So, h(x)=(x2)+(2x)=0h(x) = (x-2) + (2-x) = 0.

Therefore, the function h(x)h(x) over the interval [2,2][-2, 2] is: h(x)={x,2x00,0<x2h(x)=\left\{\begin{array}{lr} -x, & -2 \leq x \leq 0 \\ 0, & 0< x \leq 2 \end{array}\right.

Step 5: Evaluate the definite integral 22 h(x)dx\int_{-2}^2 \mathrm{~h}(x) \mathrm{d} x. We split the integral based on the piecewise definition of h(x)h(x): 22 h(x)dx=20 h(x)dx+02 h(x)dx\int_{-2}^2 \mathrm{~h}(x) \mathrm{d} x = \int_{-2}^0 \mathrm{~h}(x) \mathrm{d} x + \int_{0}^2 \mathrm{~h}(x) \mathrm{d} x Substitute the respective definitions of h(x)h(x): =20(x)dx+02(0)dx= \int_{-2}^0 (-x) \mathrm{d} x + \int_{0}^2 (0) \mathrm{d} x Now, we evaluate each integral: 20(x)dx=[x22]20=(022)((2)22)=0(42)=0(2)=2\int_{-2}^0 (-x) \mathrm{d} x = \left[-\frac{x^2}{2}\right]_{-2}^0 = \left(-\frac{0^2}{2}\right) - \left(-\frac{(-2)^2}{2}\right) = 0 - \left(-\frac{4}{2}\right) = 0 - (-2) = 2 02(0)dx=0\int_{0}^2 (0) \mathrm{d} x = 0 Summing the results: 22 h(x)dx=2+0=2\int_{-2}^2 \mathrm{~h}(x) \mathrm{d} x = 2 + 0 = 2

Common Mistakes & Tips

  • Careful handling of x|x|: When substituting x|x|, remember that x|x| is always non-negative. This means you need to consider how the original intervals of f(x)f(x) map to the intervals of x|x|.
  • Sign analysis of f(x)f(x): Properly determine when f(x)f(x) is positive, negative, or zero to correctly evaluate f(x)|f(x)|.
  • Combining piecewise functions: Ensure that when defining h(x)h(x), you correctly add the corresponding pieces of f(x)f(|x|) and f(x)|f(x)| for each interval.

Summary

To solve this problem, we first broke down the definition of h(x)=f(x)+f(x)h(x) = f(|x|) + |f(x)| by analyzing f(x)f(|x|) and f(x)|f(x)| separately over the interval [2,2][-2, 2]. This resulted in a piecewise definition for h(x)h(x). We then used the property of definite integrals for piecewise functions to split the integral into sub-integrals over the relevant intervals and evaluated each part. The sum of these integrals yielded the final answer.

The final answer is 2\boxed{2}.

Practice More Definite Integration Questions

View All Questions