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.
- COMEDK 2023Set 2023-E1 markMCQQ.
[!FORMULA] ∫02x2+2x−3dx is equal to
(A) 3 (B) 6 (C) 2 (D) 4›Reveal solutionSolution
Splitting at the root x=1 where x2+2x−3 changes sign, the integral equals 35+37=4.
x2+2x−3=(x−1)(x+3) is ≤0 on [0,1] and ≥0 on [1,2]. With antiderivative F(x)=3x3+x2−3x:
∫01∣⋅∣=−[F(1)−F(0)]=−(−35−0)=35,
∫12∣⋅∣=F(2)−F(1)=32−(−35)=37.
Total =35+37=312=4.
✓Final answerThe correct option is (D) — 4
- COMEDK 2025Set 2025-E1 markMCQQ.−2∫2x−3∣x−3∣dx= (A) −4 (B) −2 (C) 0 (D) 2
›Reveal solutionSolution
The integrand x−3∣x−3∣ simplifies to −1 on the entire interval [−2,2], so the integral is the area of a rectangle of height −1 and width 4, giving −4. The correct option is (A).
Concept and Intuition
The absolute value ∣x−3∣ measures distance from 3. On the interval [−2,2], every x is less than 3, so x−3 is negative. For a negative number, ∣x−3∣=−(x−3). Thus the fraction x−3∣x−3∣ becomes x−3−(x−3)=−1 for every x in [−2,2]. The integral of a constant −1 over an interval is just that constant times the length of the interval. No splitting, no sign changes — it’s a flat line.
Step-by-step reasoning
-
Determine the sign of x−3 on [−2,2]
The interval runs from −2 to 2. Since 3 is larger than any number in this interval, x−3 is always negative. For example, at x=2, 2−3=−1; at x=−2, −2−3=−5.
-
Simplify the absolute value
For any real number a, ∣a∣=−a when a<0. Here a=x−3<0, so
∣x−3∣=−(x−3).
- Simplify the integrand Substitute into the fraction:
x−3∣x−3∣=x−3−(x−3).
As long as x=3 (and 3 is not in [−2,2]), we can cancel x−3, giving
x−3∣x−3∣=−1for all x∈[−2,2].
- Integrate the constant The integral of a constant c over [a,b] is c⋅(b−a). Here c=−1, a=−2, b=2, so
∫−22(−1)dx=−1⋅(2−(−2))=−1⋅4=−4.
Watch outA common mistake is to think the absolute value creates a sign change inside the interval, requiring splitting at x=3. But 3 is outside [−2,2], so no split is needed. The function is simply constant −1 throughout.
TipAlways check whether the point where the expression inside absolute value equals zero lies inside the integration limits. If it does, split; if not, the sign is fixed and simplification is immediate.
✓Final answerThe correct option is (A).
ANSWER: A
-
- COMEDK 2024Set 2024-M1 markMCQQ.
[!FORMULA] ∫−11dxd(tan−1x1)dx is
(A) 4π (B) −2π (C) −4π (D) 2π›Reveal solutionSolution
The integral of a derivative over an interval equals the difference of the antiderivative at the endpoints, but only if the antiderivative is continuous on the closed interval. Here, tan−1(1/x) has a jump discontinuity at x=0, so the Fundamental Theorem of Calculus does not apply directly; the correct value is −π/2, option (B).
Concept & Intuition
At first glance, this looks like a trivial application of the Fundamental Theorem of Calculus (FTC):
∫abf′(x)dx=f(b)−f(a).
If we let f(x)=tan−1(1/x), then the integral would seem to be
tan−1(1/1)−tan−1(1/(−1))=tan−1(1)−tan−1(−1)=4π−(−4π)=2π.
That would suggest option (D). But this is wrong — and the pitfall is subtle but crucial.
The FTC requires f to be differentiable and its derivative to be integrable on the closed interval [−1,1]. But f(x)=tan−1(1/x) is not continuous at x=0 (it has a jump), so the derivative f′(x) does not exist at x=0 in the usual sense, and the integral must be treated as an improper integral. The naive endpoint subtraction misses the jump.
We must split the integral at the discontinuity, handle each piece properly, and then combine.
Step-by-step solution
-
Identify the discontinuity
The function f(x)=tan−1(1/x) is undefined at x=0. As x→0+, 1/x→+∞, so tan−1(1/x)→π/2. As x→0−, 1/x→−∞, so tan−1(1/x)→−π/2. Hence there is a jump of size π at x=0.
-
Split the integral at the singularity
Write the integral as an improper integral:
I=∫−10−f′(x)dx+∫0+1f′(x)dx.
On each subinterval, f is continuous and differentiable, so the FTC applies separately.
- Evaluate each piece using the FTC For the right piece:
∫0+1f′(x)dx=limt→0+[f(1)−f(t)]=4π−limt→0+tan−1(t1)=4π−2π=−4π.
For the left piece:
∫−10−f′(x)dx=lims→0−[f(s)−f(−1)]=lims→0−tan−1(s1)−(−4π)=(−2π)+4π=−4π.
- Add the two contributions
I=(−4π)+(−4π)=−2π.
Watch outThe naive FTC application gives π/2, but the correct answer is −π/2. The sign flips because the jump at x=0 effectively subtracts π from the naive result. Always check for discontinuities in the antiderivative when integrating a derivative over an interval containing a singularity.
TipA quick sanity check: The derivative f′(x)=1+x2−1 (for x=0). Integrating that from −1 to 1 (ignoring the point x=0) gives −∫−111+x2dx=−[tan−1x]−11=−(4π−(−4π))=−2π. This matches our result and avoids the discontinuity trap entirely — because the derivative itself is well-defined almost everywhere and its integral is simply the area under the curve.
✓Final answerThe correct option is (B).
ANSWER: B
-
- KCET 2023Set A-21 markMCQQ.∫28x+510−x510−xdx= (A) 6 (B) 4 (C) 3 (D) 5
›Reveal solutionSolution
Use the king property ∫abf(x)dx=∫abf(a+b−x)dx: here a+b=10 and the integrand is built so that f(x)+f(10−x)=1, giving 2I=b−a.
Step 1 — Spot the design of the question.
The limits are 2 and 8, and a+b=2+8=10 — exactly the number appearing inside 10−x. That is never a coincidence; it signals the standard complementary-integrand family
I=∫abg(x)+g(a+b−x)g(a+b−x)dx,
whose value is always 2b−a.
Step 2 — The property being used.
For any integrable f,
∫abf(x)dx=∫abf(a+b−x)dx(substitute u=a+b−x)
This is the king property of definite integrals: reflecting the interval about its midpoint leaves the value unchanged.
Step 3 — Apply it.
With the integrand written as
f(x)=g(x)+g(10−x)g(10−x),where g is the ⋅-built factor,
replacing x→10−x swaps g(x) and g(10−x), so
f(10−x)=g(x)+g(10−x)g(x).
Step 4 — Add the two forms of the same integral.
I=∫28f(x)dxandI=∫28f(10−x)dx
2I=∫28[f(x)+f(10−x)]dx=∫28g(x)+g(10−x)g(10−x)+g(x)dx=∫281dx
The entire point: the two complementary fractions sum to exactly 1, and a constant is trivial to integrate.
Step 5 — Finish.
2I=[x]28=8−2=6⟹I=26=3
Step 6 — Cross-check by the general formula. 2b−a=28−2=3 ✓.
✓Final answerThe correct option is (C) 3.
ANSWER: C
- KCET 2021Set A-11 markMCQQ.If In=∫04πtannxdx where n is positive integer then I10+I8 is equal to (A) 9 (B) 71 (C) 81 (D) 91
›Reveal solutionSolution
Use the reduction formula tannx=tann−2x(sec2x−1) to relate successive integrals; the sum I10+I8 telescopes to 91.
The key insight is that powers of tangent can be rewritten using the identity tan2x=sec2x−1. This lets us break a high power into a lower power times sec2x (which integrates nicely) minus an even lower power. The result is a clean recurrence that makes sums like I10+I8 collapse to a simple number.
- Set up the reduction. For any n≥2, write
In=∫0π/4tannxdx=∫0π/4tann−2x⋅tan2xdx.
Replace tan2x with sec2x−1:
In=∫0π/4tann−2x(sec2x−1)dx=∫0π/4tann−2xsec2xdx−∫0π/4tann−2xdx.
- Integrate the first term. Notice that dxd(tanx)=sec2x, so substitute u=tanx, du=sec2xdx. When x=0, u=0; when x=π/4, u=1. Thus
∫0π/4tann−2xsec2xdx=∫01un−2du=[n−1un−1]01=n−11.
- Write the recurrence. The second term is just In−2. So for n≥2,
In=n−11−In−2.
In=n−11−In−2,n≥2
- Apply the recurrence to the sum we need. We want I10+I8. Using the formula with n=10:
I10=91−I8.
Therefore
I10+I8=(91−I8)+I8=91.
Watch outA common mistake is to try to compute I10 and I8 separately by repeatedly applying the recurrence all the way down to I0 or I1. That works but is unnecessary — the recurrence directly gives the sum in one step.
TipThe recurrence In=n−11−In−2 means that In+In−2=n−11 for any n≥2. So the sum I10+I8 is simply 10−11=91.
✓Final answerThe value is 91, which corresponds to option (D).
🎓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.