Skip to content
Worked Examples · Example 13

Q.Evaluate the following definite integrals:

(a) ∫04∣x−2∣ dx\int_0^4 |x-2|\,dx
(b) ∫−12∣x3−x∣ dx\int_{-1}^{2} |x^3-x|\,dx
Chandigarh CbseNCERTSubjective· 3mImportance★★★★★
22% · 13/59 Questions
✓ Free question

Split each modulus integral at the points where the inside changes sign, then integrate piecewise: (a) =4=4,

(b) =114=\dfrac{11}{4}.

∣f(x)∣={f(x),f(x)≥0−f(x),f(x)<0|f(x)|=\begin{cases} f(x), & f(x)\ge 0\\ -f(x), & f(x)<0\end{cases}; break ∫\int at each sign change of ff and add the pieces.

(a) ∫04∣x−2∣ dx\displaystyle\int_0^4 |x-2|\,dx

  1. x−2≥0x-2\ge 0 for x≥2x\ge 2. So ∣x−2∣=2−x|x-2|=2-x on [0,2][0,2] and x−2x-2 on [2,4][2,4].
  2. ∫02(2−x) dx=[2x−x22]02=4−2=2.\displaystyle\int_0^2 (2-x)\,dx=\Big[2x-\tfrac{x^2}{2}\Big]_0^2=4-2=2.
  3. ∫24(x−2) dx=[x22−2x]24=(8−8)−(2−4)=0+2=2.\displaystyle\int_2^4 (x-2)\,dx=\Big[\tfrac{x^2}{2}-2x\Big]_2^4=(8-8)-(2-4)=0+2=2.
  4. Total =2+2=4.=2+2=4.

(b) ∫−12∣x3−x∣ dx\displaystyle\int_{-1}^{2} |x^3-x|\,dx

  1. x3−x=x(x−1)(x+1)x^3-x=x(x-1)(x+1), zeros at −1,0,1-1,0,1. Sign on (−1,0)(-1,0): ++; on (0,1)(0,1): −-; on (1,2)(1,2): ++.
  2. Antiderivative of x3−xx^3-x is F(x)=x44−x22F(x)=\tfrac{x^4}{4}-\tfrac{x^2}{2}.
  3. [−1,0][-1,0]: ∫−10(x3−x) dx=F(0)−F(−1)=0−(14−12)=14.\displaystyle\int_{-1}^{0}(x^3-x)\,dx=F(0)-F(-1)=0-\big(\tfrac14-\tfrac12\big)=\tfrac14.
  4. [0,1][0,1]: ∫01−(x3−x) dx=−(F(1)−F(0))=−(14−12)=14.\displaystyle\int_{0}^{1}-(x^3-x)\,dx=-\big(F(1)-F(0)\big)=-\big(\tfrac14-\tfrac12\big)=\tfrac14.
  5. [1,2][1,2]: ∫12(x3−x) dx=F(2)−F(1)=(4−2)−(14−12)=2+14=94.\displaystyle\int_{1}^{2}(x^3-x)\,dx=F(2)-F(1)=(4-2)-(\tfrac14-\tfrac12)=2+\tfrac14=\tfrac94.
  6. Total =14+14+94=114=2.75.=\tfrac14+\tfrac14+\tfrac94=\tfrac{11}{4}=2.75.
✓Final answer

(a) ∫04∣x−2∣ dx=4\displaystyle\int_0^4|x-2|\,dx=4;

(b) ∫−12∣x3−x∣ dx=114\displaystyle\int_{-1}^{2}|x^3-x|\,dx=\dfrac{11}{4}.

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.