Question:

Let \( f(x) = \begin{cases} -2, & -2 \leq x \leq 0 \\ x - 2, & 0 < x \leq 2 \end{cases} \) and \( h(x) = f(|x|) + |f(x)| \). Then \(\int_{-2}^{2} h(x) \, dx\) is equal to:

Updated On: Nov 26, 2024
  • 2
  • 4
  • 1
  • 6
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

Define \( h(x) \) in Terms of \( f(x) \): 

Since \( h(x) = f(x) + |f(x)| \), we can evaluate \( h(x) \) separately on the intervals where \( f(x) \) takes different forms: 

For \(-2 \leq x < 0\), \( f(x) = -x \), so \( |f(x)| = x \). Therefore: 
\[ h(x) = f(x) + |f(x)| = -x + x = 0 \] 
For \( 0 < x \leq 2 \), \( f(x) = x - 2 \), so \( |f(x)| = 2 - x \) (since \( x - 2 < 0 \)). Thus:
\[ h(x) = f(x) + |f(x)| = (x - 2) + (2 - x) = 0 \] 
This implies \( h(x) = 0 \) on both intervals. 

Calculate \( \int_{-2}^2 h(x) dx \): Since \( h(x) = 0 \) on the entire interval \(-2 \leq x \leq 2\), we have: \[ \int_{-2}^2 h(x) dx = \int_{-2}^2 0 \, dx = 0 \] 

Conclusion: \( \int_{-2}^0 h(x) dx = 0 \) and \( \int_0^2 h(x) dx = 2 \). 

Therefore, the answer is \(2\).

Was this answer helpful?
0
0

Questions Asked in JEE Main exam

View More Questions