Question:

The value of the integral $\int_0^4 (x - f(x))\,dx$, where 
 

is:
 

Show Hint

For piecewise constant functions, integrate each segment separately. The total integral is simply the sum of areas under each linear section.
Updated On: Dec 5, 2025
  • 2
  • 1
  • –1
  • –2
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

Step 1: Break the integral into parts.
\[ \int_0^4 (x - f(x)) dx = \int_0^1 (x - 0) dx + \int_1^2 (x - 1) dx + \int_2^3 (x - 2) dx + \int_3^4 (x - 3) dx \] Step 2: Compute each term.
\[ \int_0^1 x\,dx = \frac{1}{2} \] \[ \int_1^2 (x - 1) dx = \frac{1}{2} \] \[ \int_2^3 (x - 2) dx = \frac{1}{2} \] \[ \int_3^4 (x - 3) dx = \frac{1}{2} \] Step 3: Add results.
\[ I = \frac{1}{2} + \frac{1}{2} + \frac{1}{2} + \frac{1}{2} = 2 \] Step 4: Conclusion.
Therefore, the value of the integral is 2.
Was this answer helpful?
0
0