Q.Evaluate ∫−12x3−xdx
Concept understanding — Definite Integral Piecewise
Integrating a Piecewise Function
A piecewise function follows different rules on different parts of its domain — for example
f(x)={x,2−x,0≤x≤11<x≤2
To find a definite integral ∫abf(x)dx of such a function, you cannot use a single antiderivative across the whole interval, because there is no single formula for f over [a,b]. The key idea is to split the integral at every point where the rule changes and integrate each piece with its own formula.
The additivity property
The tool that makes this legal is the interval-additivity of the definite integral: for any point c between a and b,
∫abf(x)dx=∫acf(x)dx+∫cbf(x)dx.
So you place the split points exactly where the definition of f switches, and on each sub-interval you substitute the rule that applies there.
The method
- Find the break points — the x-values where the piecewise rule changes (and note whether any lie inside [a,b]).
- Split ∫ab into one integral per sub-interval.
- On each piece, replace f by its formula there and integrate normally.
- Add the results.
Example. For the f above,
∫02f(x)dx=∫01xdx+∫12(2−x)dx=[2x2]01+[2x−2x2]12=21+21=1.
Functions defined with ∣x∣ or the greatest-integer function [x] are secretly piecewise. To evaluate ∫−22∣x∣dx, write ∣x∣=−x on [−2,0] and ∣x∣=x on [0,2], then split at 0.
Never integrate straight across a break point with one formula. The single most common error is using ∫02xdx for the whole thing above — that ignores the second rule and gives the wrong area.
Because the value of the function at the single break point does not affect area, it doesn't matter which piece "owns" the boundary; the split still gives the correct total.
Integrating a piecewise-defined function by splitting at every break point is a direct application of the interval-additivity property taught in the NCERT Class 12 Integrals chapter, and it's a recurring CBSE board question whenever |x| or the greatest-integer function appears inside a definite integral. Students searching 'definite integral of piecewise function examples' or 'integration of modulus function class 12' will find this split-at-the-break-point method is exactly the approach board model solutions follow.
The key idea is that the absolute value forces us to split the integral at the points where x3−x=0, i.e., where the expression changes sign.
Step 1: Find the roots.
x3−x=x(x−1)(x+1)=0 gives x=−1,0,1. On [−1,2], the sign changes at 0 and 1.
Step 2: Determine the sign of x3−x on each subinterval.
- On (−1,0): test x=−0.5 → (−0.5)3−(−0.5)=−0.125+0.5=0.375>0.
- On (0,1): test x=0.5 → 0.125−0.5=−0.375<0.
- On (1,2): test x=1.5 → 3.375−1.5=1.875>0.
Thus ∣x3−x∣=x3−x on [−1,0] and [1,2], and equals −(x3−x)=x−x3 on [0,1].
Step 3: Write and evaluate the sum of integrals.
∫−12∣x3−x∣dx=∫−10(x3−x)dx+∫01(x−x3)dx+∫12(x3−x)dx
Compute each:
∫(x3−x)dx=4x4−2x2
- From −1 to 0: [0]−[41−21]=0−(−41)=41.
- From 1 to 2: [416−24]−[41−21]=(4−2)−(−41)=2+41=49.
- For ∫(x−x3)dx=2x2−4x4 from 0 to 1: [21−41]−0=41.
Sum: 41+41+49=411.
The value is 411.
Split the interval where x3−x=x(x−1)(x+1) changes sign. The value is 411.
The integrand x3−x=x(x−1)(x+1) has zeros at x=−1,0,1. Its sign on [−1,2] is:
- [−1,0]: positive, so ∣x3−x∣=x3−x;
- [0,1]: negative, so ∣x3−x∣=−(x3−x);
- [1,2]: positive, so ∣x3−x∣=x3−x.
With ∫(x3−x)dx=4x4−2x2=F(x):
F(x)=4x4−2x2,F(−1)=−41, F(0)=0, F(1)=−41, F(2)=2.
∫−10(x3−x)dx=F(0)−F(−1)=41,
∫01−(x3−x)dx=−(F(1)−F(0))=41,
∫12(x3−x)dx=F(2)−F(1)=2+41=49.
Adding: 41+41+49=411.
∫−12x3−xdx=411.
Method: Splitting a Definite Integral of an Absolute Value
Use this when the integrand contains ∣f(x)∣: break the interval at the points where f changes sign, and drop the modulus with the correct sign on each piece.
Steps
Step 1: Find where f(x)=0 inside the interval.
Factor f and locate its roots. For ∣x3−x∣=∣x(x−1)(x+1)∣, the roots are x=−1,0,1.
Step 2: Determine the sign of f on each subinterval.
Test a point in each piece. On [−1,0], f>0 so ∣f∣=f; on [0,1], f<0 so ∣f∣=−f; on [1,2], f>0 so ∣f∣=f.
Step 3: Integrate each piece with its sign and add.
Compute ∫ of the signed expression over each subinterval and sum the (non-negative) contributions:
∫−12∣x3−x∣dx=41+41+49=411.
Common Mistakes
Mistake 1: Integrating ∣x3−x∣ as x3−x over the whole interval.
Why it's wrong: ignoring the sign changes lets positive and negative areas cancel, giving too small a value. Correct approach: split at the roots and use ∣f∣ correctly.
Mistake 2: Getting the sign of f wrong on a subinterval.
Why it's wrong: on [0,1], x3−x<0, so ∣f∣=−(x3−x); using +f there flips a term. Correct approach: test the sign on each piece.
Mistake 3: Missing a root inside the interval.
Why it's wrong: overlooking x=0 merges two pieces of opposite sign. Correct approach: find all zeros of f in [a,b] before splitting.
🎓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.