Skip to content
Miscellaneous Exercise · Q31

Q.Evaluate the definite integral ∫14[∣x−1∣+∣x−2∣+∣x−3∣]dx\int_{1}^{4}\left[|x-1|+|x-2|+|x-3|\right]dx

Karnataka PUCTextbookSubjective· 3mImportance★★★★★
Appeared in past exams:MHT-CET 2021· Set pcm-2021-09-21-M· 2mexact
79% · 293/373 Questions
🔒 Locked · start free trial →

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 →

The integral of a sum of absolute values is best handled by splitting the domain at each point where an expression inside an absolute value changes sign. For x∈[1,4]x \in [1,4], the integrand simplifies to a piecewise linear function, and the integral evaluates to 192\frac{19}{2}.

We need to evaluate

∫14(∣x−1∣+∣x−2∣+∣x−3∣) dx.\int_{1}^{4} \bigl( |x-1| + |x-2| + |x-3| \bigr) \, dx.

The key idea: an absolute value ∣x−a∣|x-a| is a piecewise linear function — it equals x−ax-a when x≥ax \ge a, and a−xa-x when x≤ax \le a. So the whole integrand changes its algebraic form at each of the points x=1x=1, x=2x=2, and x=3x=3. Since our integration limits are from 11 to 44, we must split the interval [1,4][1,4] into subintervals where each absolute value has a fixed sign.

Let’s list the breakpoints in order: 11, 22, 33. That gives us three subintervals to consider: [1,2][1,2], [2,3][2,3], and [3,4][3,4]. On each, we rewrite the integrand without absolute values.

  1. On [1,2][1,2]:

    • ∣x−1∣=x−1|x-1| = x-1 (since x≥1x \ge 1)
    • ∣x−2∣=2−x|x-2| = 2-x (since x≤2x \le 2)
    • ∣x−3∣=3−x|x-3| = 3-x (since x≤3x \le 3; actually x≤2x \le 2 so definitely x≤3x \le 3)

    So the integrand becomes:

(x−1)+(2−x)+(3−x)=x−1+2−x+3−x=(x−x−x)+(−1+2+3)=−x+4.(x-1) + (2-x) + (3-x) = x-1 + 2 - x + 3 - x = (x - x - x) + (-1+2+3) = -x + 4.

  1. On [2,3][2,3]:

    • ∣x−1∣=x−1|x-1| = x-1
    • ∣x−2∣=x−2|x-2| = x-2 (since x≥2x \ge 2)
    • ∣x−3∣=3−x|x-3| = 3-x (since x≤3x \le 3)

    Sum:

(x−1)+(x−2)+(3−x)=x−1+x−2+3−x=(x+x−x)+(−1−2+3)=x+0=x.(x-1) + (x-2) + (3-x) = x-1 + x-2 + 3 - x = (x + x - x) + (-1-2+3) = x + 0 = x.

  1. On [3,4][3,4]:

    • ∣x−1∣=x−1|x-1| = x-1
    • ∣x−2∣=x−2|x-2| = x-2
    • ∣x−3∣=x−3|x-3| = x-3 (since x≥3x \ge 3)

    Sum:

(x−1)+(x−2)+(x−3)=3x−6.(x-1) + (x-2) + (x-3) = 3x - 6.

Watch out

A common mistake is to forget that ∣x−3∣|x-3| changes sign at x=3x=3, not at x=2x=2. Always list all breakpoints in order and check each subinterval separately.

Now the original integral becomes the sum of three definite integrals:

∫14(… ) dx=∫12(−x+4) dx+∫23x dx+∫34(3x−6) dx.\int_{1}^{4} (\dots) \, dx = \int_{1}^{2} (-x+4) \, dx + \int_{2}^{3} x \, dx + \int_{3}^{4} (3x-6) \, dx.

Compute each:

  • First integral: …

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.