Q.Evaluate ∫−13/2∣xsin(πx)∣dx
🔒You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
🔒 Start your 14-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 absolute value forces a split wherever xsin(πx) changes sign on [−1,23].
Sign of xsin(πx):
- On (−1,0): x<0 and sin(πx)<0, so the product is positive.
- On (0,1): x>0 and sin(πx)>0, so positive.
- On (1,23): x>0 and sin(πx)<0, so negative.
Hence ∣xsinπx∣=xsinπx on [−1,1] and =−xsinπx on [1,23].
Antiderivative (by parts): with u=x, dv=sin(πx)dx,
G(x)=∫xsin(πx)dx=−πxcosπx+π2sinπx.
Values: G(−1)=−π1, G(0)=0, G(1)=π1, G(23)=−π21.
Pieces: …
Split by the sign of xsin(πx) on [−1,23], integrate each piece by parts, and add. The value is π3+π21.
Intuition
An absolute value can never be integrated with one formula across a sign change — ∣f∣ equals f where f≥0 and −f where f≤0. So the first job is to track the sign of xsin(πx) across [−1,23].
Step 1 — Sign analysis
Look at the two factors on each subinterval (note sin(πx)=0 at the integers x=−1,0,1):
- (−1,0): x<0; and πx∈(−π,0) so sin(πx)<0. Negative × negative = positive.
- (0,1): x>0; and πx∈(0,π) so sin(πx)>0. Positive.
- (1,23): x>0; and πx∈(π,23π) so sin(πx)<0. Negative.
Therefore
∣xsinπx∣={xsinπx,−xsinπx,−1≤x≤1,1≤x≤23.
Step 2 — An antiderivative of xsin(πx)
Integrate by parts with u=x (so du=dx) and dv=sin(πx)dx (so v=−πcosπx):
G(x)=∫xsin(πx)dx=−πxcosπx+π1∫cosπxdx=−πxcosπx+π2sinπx.
Evaluate at the break points (using cos(−π)=cosπ=−1, cos23π=0, sin23π=−1):
G(−1)=−π(−1)(−1)+0=−π1,G(0)=0, …
Method: Integrating an absolute value — split at the sign changes
Use this for any ∫ab∣f(x)∣dx. An absolute value has no single antiderivative across a sign change, so you must break the interval where f changes sign and integrate each piece with the correct sign.
Steps
Step 1: Find where the inside changes sign.
Solve f(x)=0 inside [a,b] and determine the sign of f on each resulting subinterval (test a point, or reason factor-by-factor — e.g. for xsin(πx) track the signs of x and of sin(πx) separately).
Step 2: Rewrite ∣f∣ piecewise.
On subintervals where f≥0, ∣f∣=f; where f≤0, ∣f∣=−f. This converts the modulus into ordinary signed integrals.
Step 3: Find one antiderivative of f (here by parts). …
Common Mistakes
Mistake 1: Integrating ∣xsinπx∣ as if it were xsinπx over the whole interval.
Why it's wrong: the product changes sign at x=1 inside [−1,23], so a single antiderivative undercounts the area (the negative part subtracts instead of adding). Correct approach: split at every sign change and flip the sign where the inside is negative.
Mistake 2: Getting the sign wrong on (−1,0).
Why it's wrong: there x<0 and sin(πx)<0, so the product is positive (negative times negative); assuming it is negative flips a piece. Correct approach: check the sign of both factors on each subinterval. …
- CBSE 2020Set 65/1/11 markQ.Evaluate : ∫13∣2x−1∣dx
›Reveal solutionSolution
The integral ∫13∣2x−1∣dx is evaluated by noting that 2x−1 is positive on the entire interval [1,3], so the absolute value drops directly. The result is 6.
The key to integrating an absolute value function is to understand where the expression inside the absolute value changes sign. The absolute value "breaks" the integral into pieces where the expression is either non-negative or negative, because ∣f(x)∣=f(x) when f(x)≥0 and ∣f(x)∣=−f(x) when f(x)≤0.
Here, the expression is 2x−1. This is a linear function — it crosses zero at exactly one point. Let's find that point: set 2x−1=0, which gives x=21.
Now, look at the interval of integration: from x=1 to x=3. Since 21<1, the entire interval lies to the right of the zero. For any x>21, the value 2x−1 is positive. Check: at x=1, 2(1)−1=1>0; at x=3, 2(3)−1=5>0. So on [1,3], the expression is always positive.
That means the absolute value does nothing — ∣2x−1∣=2x−1 for all x in [1,3]. The integral simplifies immediately.
- Set up the simplified integral Since ∣2x−1∣=2x−1 on [1,3], we have:
∫13∣2x−1∣dx=∫13(2x−1)dx
- Integrate term by term The antiderivative of 2x is x2, and the antiderivative of −1 is −x. So:
∫(2x−1)dx=x2−x+C
- Evaluate the definite integral Apply the limits x=3 and x=1: …
- CBSE 2026Set A1 markMCQQ.∫02π∣sinx∣dx=(a) 2(b) 4(c) 1(d) 3
›Reveal solutionSolution
By symmetry ∫02π∣sinx∣dx=2∫0πsinxdx=4.
On [0,π], sinx≥0; on [π,2π], sinx≤0 so ∣sinx∣=−sinx. The two humps have equal area, so
…
- CBSE 2026Set A1 markMCQQ.∫−22∣x∣dx=(a) 4(b) 3(c) 2(d) 0
›Reveal solutionSolution
Even function: ∫−22∣x∣dx=2∫02xdx=4.
∣x∣ is even, so ∫−22∣x∣dx=2∫02∣x∣dx=2∫02xdx (since x≥0 on [0,2]).
…
- CBSE 2025Set 65/1/11 markMCQQ.∫−11x∣x∣dx, x=0 is equal to: (A) −1 (B) 0 (C) 1 (D) 2
›Reveal solutionSolution
x∣x∣=−1 for x<0 and +1 for x>0, an odd function, so the integral over the symmetric interval [−1,1] is 0 — option (B).
Solution
x∣x∣={+1,x>0 −1,x<0
Split the integral at x=0:
∫−11x∣x∣dx=∫−10(−1)dx+∫01(1)dx=(−1)(0−(−1))+(1)(1−0)=−1+1=0. …
- CBSE 2025Set ANNUAL1 markMCQQ.What is the value of ∫12ex+[x]dx?(i) (e+1)e(ii) (1−e)e(iii) (e−1)e(iv) (e−1)e2
›Reveal solutionSolution
On [1,2) the greatest-integer function gives [x]=1, so the integral becomes a simple exponential integral.
For x∈[1,2), the integer part [x]=1 (the single point x=2 does not affect the value of a definite integral). So on this interval:
ex+[x]=ex+1
…
- CBSE 2024Set ANNUAL1 markMCQQ.The value of ∫13∣x−3∣dx is ............... .(a) 1(b) –2(c) 2(d) 0
›Reveal solutionSolution
On [1,3], x−3≤0, so ∣x−3∣=3−x; integrate this directly.
For x∈[1,3], x≤3, so x−3≤0 and ∣x−3∣=3−x.
∫13∣x−3∣dx=∫13(3−x)dx=[3x−2x2]13
…
- CBSE 2022Set ANNUAL1 markQ.∫02[x]dx= ____ (where [x] denotes the greatest integer function). Choices given: [−1, 0, 1, 2]
›Reveal solutionSolution
Split the integral at the integer break-point, since [x] (greatest integer function) is a different constant on each sub-interval.
…
- CBSE 2021Set NC1 markQ.Find the value of ∫23∣x∣dx. OR Find the value of ∫0π/2cos2xdx.
›Reveal solutionSolution
Since the interval [2,3] contains only positive numbers, ∣x∣=x there, reducing this to a standard power-rule integral.
For x∈[2,3], x>0, so ∣x∣=x. Thus
∫23∣x∣dx=∫23xdx=[2x2]23=29−24=25
Check: this is the area of a trapezium with parallel sides 2 and 3, width 1: 2(2+3)×1=25 correct.
…
- CBSE 2020Set 65/3/11 markQ.Evaluate: ∫−22∣x∣dx.(OR)Find: ∫9+4x2dx.
›Reveal solutionSolution
Part (a): ∫−22∣x∣dx=4. Part (b): ∫9+4x2dx=61tan−1(32x)+C.
Part (a)
Idea. ∣x∣ is even; split at the corner x=0 (or use the even-function property).
- ∣x∣={x,−x,x≥0x<0, so split the integral:
∫−22∣x∣dx=∫−20(−x)dx+∫02xdx.
- Evaluate:
∫−20(−x)dx=[−2x2]−20=0−(−2)=2,∫02xdx=[2x2]02=2.
- Sum: 2+2=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.