Value of \( \int_{-2}^{2}\displaystyle|2x+1|dx \) is:
Answer & explanation
Correct answer: option 1
The correct answer is Option (1) → \( \displaystyle\frac{17}{2} \)
2x + 1 changes sign at \( x=-\frac{1}{2} \):
\( \displaystyle |2x+1|=-(2x+1) \text{ for } x\lt -\frac{1}{2} \)
\( \displaystyle |2x+1|=2x+1 \text{ for } x\ge -\frac{1}{2} \)
\( \displaystyle \int_{-2}^{2}\displaystyle|2x+1|\,dx=\int_{-2}^{-1/2}\displaystyle -(2x+1)\,dx+\int_{-1/2}^{2}\displaystyle(2x+1)\,dx \)
\( \displaystyle =-\Big[x^2+x\Big]_{-2}^{-1/2}+\Big[x^2+x\Big]_{-1/2}^{2} \)
At \( x=-\frac{1}{2} \): \( x^2+x=\frac{1}{4}-\frac{1}{2}=-\frac{1}{4} \); at x = −2: 2; at x = 2: 6.
\( \displaystyle =-\left(-\frac{1}{4}-2\right)+\left(6+\frac{1}{4}\right) \)
\( \displaystyle =\frac{9}{4}+\frac{25}{4} \)
\( \displaystyle =\frac{34}{4} \)
\( \displaystyle =\frac{17}{2} \)