The value of the integral \(\int_{-1}^{1}\displaystyle |x|\,dx\) is:
Answer & explanation
Correct answer: option 3
The correct answer is Option (3) → 1
Since |x| = −x for x < 0 and |x| = x for x ≥ 0, the integral is split at x = 0:
\( \displaystyle \int_{-1}^{1}|x|\,dx = \int_{-1}^{0}(-x)\,dx + \int_{0}^{1}x\,dx \)
\( \displaystyle = \left[-\frac{x^2}{2}\right]_{-1}^{0} + \left[\frac{x^2}{2}\right]_{0}^{1} \)
\( \displaystyle = \frac{1}{2} + \frac{1}{2} = 1 \)
Why the other options are incorrect
Option (1) 2 — Incorrect. Each half contributes \(\frac{1}{2}\), so the total is 1.
Option (2) \(\displaystyle\frac{1}{2}\) — Incorrect. This is only one half, \(\int_{0}^{1}x\,dx\); the part from −1 to 0 adds another \(\frac{1}{2}\).
Option (4) 0 — Incorrect. This is the integral of x, an odd function. |x| is even and never negative, so its integral over [−1, 1] is positive.