NDA · Question 93
Consider the following for the next two (02) items that follow: Let f(x) = |x - 1|, g(x) = [x] and h(x) = f(x)g(x), where [·] is the greatest integer function. What is ∫[0 → 2] h(x) dx equal to?
Show answer & explanationShow explanation
Answer: (D) 1/2
Splitting the integral at x = 1: for x ∈ [0, 1), [x] = 0, so h(x) = 0; for x ∈ [1, 2), |x - 1| = x - 1 and [x] = 1, so h(x) = x - 1. Therefore, ∫[0 → 2] h(x) dx = ∫[0 → 1] 0 dx + ∫[1 → 2] (x - 1) dx = [x²/2 - x]₁² = (2 - 2) - (1/2 - 1) = 1/2.