Q.By using the properties of definite integrals, evaluate the integral ∫−55∣x+2∣dx
🔒You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
🔒 Start your 10-day free trial to unlock the full solution →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. …
The key idea is that ∣x+2∣ is not differentiable at x=−2, so we split the integral at that point.
Step 1: Write the absolute value as a piecewise function:
∣x+2∣={−(x+2),x+2,x<−2x≥−2
Step 2: Split the integral at x=−2:
∫−55∣x+2∣dx=∫−5−2−(x+2)dx+∫−25(x+2)dx
Step 3: Evaluate each part:
∫−5−2−(x+2)dx=−[2x2+2x]−5−2=−((2−4)−(225−10))=−(−2−25)=29 …
The integral ∫−55∣x+2∣dx is the area under the V-shaped absolute value function. By splitting the interval at the point where x+2=0 (i.e., x=−2), we evaluate two separate integrals and sum them. The final value is 29.
The absolute value function ∣x+2∣ creates a sharp corner at x=−2, where the expression inside changes sign. To integrate, we must remove the absolute value by considering the piecewise definition:
∣x+2∣={x+2,−(x+2),x≥−2x<−2
This is the core idea: break the integral at the point where the expression inside the absolute value equals zero. The given interval [−5,5] spans both sides of x=−2, so we split the integral into two parts.
- Identify the split point. Solve x+2=0⇒x=−2. This lies inside [−5,5], so we write:
∫−55∣x+2∣dx=∫−5−2∣x+2∣dx+∫−25∣x+2∣dx
- Evaluate the left part (x from −5 to −2). Here x<−2, so x+2<0, meaning ∣x+2∣=−(x+2)=−x−2.
∫−5−2(−x−2)dx
Compute the antiderivative: ∫(−x−2)dx=−2x2−2x.
Apply the limits:
[−2x2−2x]−5−2=(−2(−2)2−2(−2))−(−2(−5)2−2(−5))
Simplify term by term:
- At x=−2: −24+4=−2+4=2
- At x=−5: −225+10=−12.5+10=−2.5
So the difference is 2−(−2.5)=4.5=29.
- Evaluate the right part (x from −2 to 5). Here x≥−2, so x+2≥0, meaning ∣x+2∣=x+2.
∫−25(x+2)dx
Antiderivative: ∫(x+2)dx=2x2+2x.
Apply limits:
[2x2+2x]−25=(225+10)−(24−4)
Simplify:
- At x=5: 12.5+10=22.5=245
- At x=−2: 2−4=−2 …
Method: Integrating an absolute value — split where the inside changes sign
∣expression∣ is a piecewise function, so break the interval at the point where the inside is zero and integrate each piece with the correct sign.
Steps
Step 1: Find the break point.
Solve inside=0. If that value lies inside the limits, it is the split point; if it lies outside, no split is needed.
Step 2: Write the piecewise definition.
∣x−k∣={−(x−k),x−k,x<kx≥k. …
Common Mistakes
Mistake 1: Splitting the interval at x=0 instead of where x+2=0.
Why it's wrong: ∣x+2∣ changes form at x=−2, not x=0; splitting at the wrong point gives a wrong sign on part of the range. Correct approach: solve x+2=0⇒x=−2 and break there.
Mistake 2: Integrating x+2 over the whole [−5,5] without the sign flip. …
Showing the 12 most recent of 81 on this concept.
- KEAM 2026Set eng-2026-04184 marksMCQQ.The value of ∫033x2−3dx is equal to (A) 16 (B) 18 (C) 20 (D) 22 (E) 24
›Reveal solutionSolution
Split at x=1 where x2−1 changes sign; the two pieces give 3⋅322=22.
Write ∫03∣3x2−3∣dx=3∫03∣x2−1∣dx. Since x2−1<0 on [0,1] and >0 on [1,3]:
∫01(1−x2)dx=[x−3x3]01=1−31=32, …
- KEAM 2026Set eng-2026-04204 marksMCQQ.Let [x] be the greatest integer function. Then ∫−44(x−[x])dx is equal to (A) 8 (B) 6 (C) 4 (D) 16 (E) 12
›Reveal solutionSolution
x−[x]={x} is periodic with period 1 and integral 21 over each unit interval.
On [−4,4] there are 8 unit intervals, and ∫nn+1{x}dx=21 on each. …
- KEAM 2026Set eng-2026-04224 marksMCQQ.The value of ∫−21x∣x∣dx is equal to (A) −1 (B) −2 (C) 1 (D) 2 (E) 3
›Reveal solutionSolution
Split at 0 since ∣x∣/x=−1 for x<0 and +1 for x>0.
For x<0, x∣x∣=−1; for x>0, x∣x∣=+1. …
- KEAM 2026Set eng-2026-04224 marksMCQQ.The value of ∫03x2[x]dx is equal to (A) 18 (B) 15 (C) 12 (D) 10 (E) 8
›Reveal solutionSolution
Split by the step values of [x] on [1,2) and [2,3) (it is 0 on [0,1)).
[x]=0 on [0,1), =1 on [1,2), =2 on [2,3). …
- JEE Main 2026Set 2026-04-02-s14 marksMCQQ.Let [·] denote the greatest integer function. Then the value of ∫(0 to 3) (e^x + e^−x)/[x]! dx is : (A) e^2 + e^3 − 1/e^2 − 1/e^3 (B) (1/2)(e^2 + e^3 − 1/e^2 − 1/e^3) (C) e^2 + e^3 − 1/(2e^2) − 1/(2e^3) (D) (1/2)(e^2 + e^3) − 1/e^2 − 1/e^3
›Reveal solutionSolution
Breaking the integral at the integer points where [x] jumps turns it into two pieces, each with constant denominator; the result simplifies to 21(e2+e3−e−2−e−3).
The greatest integer function [x] is constant on each unit interval [n,n+1), so the trick for any integral involving [x] is to break the range at integers first — only then does the integrand become an ordinary continuous function on each piece.
- On (0,1): [x]=0⇒[x]!=0!=1.
- On (1,2): [x]=1⇒[x]!=1!=1.
- On (2,3): [x]=2⇒[x]!=2!=2.
- So ∫03[x]!ex+e−xdx=∫01(ex+e−x)dx+∫12(ex+e−x)dx+21∫23(ex+e−x)dx=∫02(ex+e−x)dx+21∫23(ex+e−x)dx.
∫(ex+e−x)dx=ex−e−x+C …
- JEE Main 2026Set 2026-01-21-s14 marksQ.6∫_0^π |(sin 3x + sin 2x + sin x)| dx is equal to ____.
›Reveal solutionSolution
Factoring f(x) reveals it changes sign at x=π/2 and 2π/3 within (0,π); piecewise integration gives ∫0π∣f∣dx=17/6, so 6 times that is 17.
Factoring the sum of sines first makes the sign analysis of the integrand tractable.
- f(x)=sin3x+sin2x+sinx=(sin3x+sinx)+sin2x=2sin2xcosx+sin2x=sin2x(2cosx+1)=2sinxcosx(2cosx+1).
- On (0,π), sinx>0 always, so sign(f)=sign(cosx(2cosx+1)), which changes at x=π/2 (where cosx=0) and x=2π/3 (where cosx=−1/2): f>0 on (0,π/2), f<0 on (π/2,2π/3), f>0 on (2π/3,π). …
- JEE Main 2026Set 2026-04-04-s14 marksMCQQ.The area of the region {(x, y): y ≤ π − |x|, y ≤ |x sin x|, y ≥ 0} is: (A) 1 + π²/8 (B) 2 + π²/4 (C) π²/8 − 1 (D) 4 + π²/2
›Reveal solutionSolution
The two upper-boundary curves cross exactly at x=π/2; integrating the smaller one on each side and doubling for symmetry gives area 2+π2/4.
With two competing upper bounds (y≤π−∣x∣ and y≤∣xsinx∣), the region's true upper boundary is whichever is SMALLER at each x — finding where they cross is the essential first step before any integration.
- Both bounding functions are even, so compute the area for x≥0 and double.
- For x∈[0,π], sinx≥0, so ∣xsinx∣=xsinx.
- Check the crossing point: at x=π/2, π−x=π/2 and xsinx=(π/2)(1)=π/2 — equal! This is the exact crossover.
- For x<π/2 (e.g. x=0.5): xsinx≈0.24<π−x≈2.64 — so xsinx is the binding (smaller) upper bound.
- For x>π/2 (e.g. x=2π/3): π−x≈1.05<xsinx≈1.81 — so π−x is binding here. …
- JEE Main 2026Set 2026-04-04-s14 marksMCQQ.Let ∫ from −2 to 2 of (|sin x| + [x sin x]) dx = 2(3 − cos 2) + β, where [·] is the greatest integer function. Then β sin(β/2) equals: (A) 1 (B) 2 (C) 4 (D) 8
›Reveal solutionSolution
The floor function's single jump point x0 (defined by x0sinx0=1) never needs to be solved explicitly, because β=−2x0 combines with sin(β/2)=−sinx0 to give exactly βsin(β/2)=2x0sinx0=2 by the very definition of x0.
The cleverness here is recognizing that even though x0 (where xsinx=1) has no closed form, the SPECIFIC combination the question asks for cancels perfectly using x0's own defining equation — no numerical solving is actually needed.
- ∣sinx∣ is even and non-negative on [−2,2] (since 2<π): ∫−22∣sinx∣dx=2∫02sinxdx=2[1−cos2]=2−2cos2.
- g(x)=xsinx is even, and on [0,2] its derivative sinx+xcosx stays positive (checked at several points), so g increases monotonically from g(0)=0 to g(2)=2sin2≈1.818.
- Since g never reaches 2, [g(x)] takes only the values 0 (for x<x0) and 1 (for x≥x0), where x0 is the unique point with x0sinx0=1. …
- JEE Main 2026Set 2026-04-06-s24 marksMCQQ.The value of the integral ∫₋₁¹ (x³+|x|+1)/(x²+2|x|+1) dx is equal to : (A) 3 log_e 2 (B) 2 log_e 2 (C) 5 log_e 3 (D) 3 log_e 3
›Reveal solutionSolution
Factor the denominator as a perfect square, then split the numerator into an odd piece (which vanishes on a symmetric interval) and an even piece.
- Denominator: x^2+2|x|+1=(|x|+1)^2 since x^2=|x|^2.
- f(x)=\dfrac{x^3+|x|+1}{(|x|+1)^2}=\dfrac{x^3}{(|x|+1)^2}+\dfrac{|x|+1}{(|x|+1)^2}=\dfrac{x^3}{(|x|+1)^2}+\dfrac{1}{|x|+1} …
- JEE Main 2026Set 2026-04-08-s24 marksMCQQ.Let f(x) = { 1/3 , x ≤ π/2 ; b(1-sinx)/(π-2x)² , x > π/2 }. If f is continuous at x=π/2, then the value of ∫₀^(3b-6) |x²+2x-3| dx is : (A) 5 (B) 2 (C) 3 (D) 4
›Reveal solutionSolution
Find b from the continuity condition (a 0/0 limit resolved via the half-angle identity), get the upper limit 3b-6=2, then integrate the absolute value by splitting at the sign-change point x=1.
Step-by-step:
- Let x=π/2+h, h→0⁺. Then sinx=cos h, so 1-sinx=1-cos h=2sin²(h/2); and π-2x=-2h, so (π-2x)²=4h².
- lim_{h→0} (1-sinx)/(π-2x)² = lim 2sin²(h/2)/(4h²) = (1/2)·[sin(h/2)/h]² = (1/2)·(1/4) = 1/8.
- Continuity at x=π/2: b·(1/8) = 1/3 ⇒ b = 8/3.
- 3b-6 = 3(8/3)-6 = 8-6 = 2. …
- JEE Main 2026Set 2026-01-22-s14 marksMCQQ.The value of ∫ from -π/2 to π/2 of (1/([x] + 4)) dx, where [·] denotes the greatest integer function, is (A) (1/60)(π - 7) (B) (1/60)(21π - 1) (C) (7/60)(3π - 1) (D) (7/60)(π - 3)
›Reveal solutionSolution
Breaking the integral at integer boundaries and summing the four constant-denominator pieces gives 607(3π−1).
- On [−π/2,−1), [x]=−2, length =π/2−1, contributes 2π/2−1.
- On [−1,0), [x]=−1, length =1, contributes 31.
- On [0,1), [x]=0, length =1, contributes 41.
- On [1,π/2), [x]=1, length =π/2−1, contributes 5π/2−1.
Total =(π/2−1)(21+51)+31+41 …
- JEE Main 2026Set 2026-01-22-s24 marksMCQQ.Let f(x) = [x]² − [x+3] − 3, x ∈ R, where [·] is the greatest integer function. Then (A) ∫₀² f(x) dx = −6 (B) f(x) = 0 for finitely many values of x (C) f(x) > 0 only for x ∈ [4, ∞) (D) f(x) < 0 only for x ∈ [−1, 3)
›Reveal solutionSolution
f(x)=([x]−3)([x]+2) is negative exactly when [x]∈{−1,0,1,2}, i.e. x∈[−1,3).
- f(x)=[x]2−[x+3]−3=[x]2−([x]+3)−3=[x]2−[x]−6=([x]−3)([x]+2), constant on each interval [n,n+1).
f<0⟺−2<n<3⟺n∈{−1,0,1,2}
- These four integer values of n=[x] correspond to x∈[−1,0)∪[0,1)∪[1,2)∪[2,3)=[−1,3), matching option (D) exactly.
- Checking (A): on [0,2), f=−6 throughout (both n=0,1 give f=−6), so ∫02fdx=−12=−6 — false. …
🎓Unlock everything free for 10 days
- ✓Full step-by-step solutions
- ✓Concept-first explanations
- ✓Methods, shortcuts & mistakes
- ✓PYQ mapping + timed mock tests
Full access for 10 days. No credit card required.