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. …
- 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 …
-
- 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, …
- 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:
-
- 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. …
- 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: …
🎓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.