QlarIITy

MathematicsJEE Main 2026 · 21 JanuaryInteger

6∫0π∣(sin⁡3x+sin⁡2x+sin⁡x)∣dx6\int_0^{\pi} |(\sin 3x + \sin 2x + \sin x)| dx is equal to ______.

Try it before you look.The full solution is on this page, below the answer box, the moment you check. No sign-in needed.

Solution

Core idea. The integral of a modulus needs every sign change of the integrand, found here by factorising the sum of sines.

Concept refresher. For a function FF that changes sign only at c1<c2c_1 < c_2 inside [a,b][a, b],

∫ab∣F(x)∣ dx=∣∫ac1F∣+∣∫c1c2F∣+∣∫c2bF∣\int_a^b |F(x)|\ dx = \left|\int_a^{c_1} F\right| + \left|\int_{c_1}^{c_2} F\right| + \left|\int_{c_2}^{b} F\right|

The sum to product formula is sin⁡A+sin⁡B=2sin⁡A+B2cos⁡A−B2\sin A + \sin B = 2\sin\frac{A + B}{2}\cos\frac{A - B}{2} for all A,BA, B.

Picture the situation. The curve is above the axis on most of [0,π][0, \pi] and dips just below it between π2\frac{\pi}{2} and 2π3\frac{2\pi}{3}. The modulus turns that dip into a positive area.

Graph of the integrand on 0 to pi, shaded to the axis, above the axis except for a small dip between pi by 2 and 2 pi by 3.

Approach. Factorise the integrand to find its sign changes, integrate the antiderivative over the three pieces, and add the absolute values.

  1. Step 1: Factorise the integrand

    Pairing sin⁡3x\sin 3x with sin⁡x\sin x by the sum to product formula:

    sin⁡3x+sin⁡x+sin⁡2x=2sin⁡2xcos⁡x+sin⁡2x=sin⁡2x(2cos⁡x+1)\begin{aligned} &\sin 3x + \sin x + \sin 2x \\[4pt] &= 2\sin 2x\cos x + \sin 2x \\[4pt] &= \sin 2x(2\cos x + 1) \end{aligned}

    On (0,π)(0, \pi), sin⁡2x\sin 2x changes sign at π2\frac{\pi}{2} and 2cos⁡x+12\cos x + 1 changes sign at 2π3\frac{2\pi}{3}.

  2. Step 2: Values of the antiderivative

    An antiderivative is G(x)=−cos⁡3x3−cos⁡2x2−cos⁡xG(x) = -\frac{\cos 3x}{3} - \frac{\cos 2x}{2} - \cos x, and at the four points:

    G(0)=−116, G(π2)=12G(2π3)=512, G(π)=56\begin{aligned} G(0) &= -\frac{11}{6}, \ G\left(\frac{\pi}{2}\right) = \frac{1}{2} \\[4pt] G\left(\frac{2\pi}{3}\right) &= \frac{5}{12}, \ G(\pi) = \frac{5}{6} \end{aligned}
  3. Step 3: The three pieces

    Subtracting consecutive values gives the signed integrals over the three pieces:

    12+116=73512−12=−11256−512=512\begin{aligned} \frac{1}{2} + \frac{11}{6} &= \frac{7}{3} \\[4pt] \frac{5}{12} - \frac{1}{2} &= -\frac{1}{12} \\[4pt] \frac{5}{6} - \frac{5}{12} &= \frac{5}{12} \end{aligned}

    with signs ++, −-, ++ as found from the factors.

  4. Step 4: Add the absolute values

    The integral of the modulus is the sum of the absolute values, and then the factor 66:

    6(73+112+512)=6⋅3412=176\left(\frac{7}{3} + \frac{1}{12} + \frac{5}{12}\right) = 6 \cdot \frac{34}{12} = 17

Answer. 17

Sanity check. Without the modulus the integral is 6(73−112+512)=166\left(\frac{7}{3} - \frac{1}{12} + \frac{5}{12}\right) = 16; the modulus adds twice the small dip, 6⋅212=16 \cdot \frac{2}{12} = 1, giving 1717.

Common wrong answers

  • 16: Dropping the modulus integrates each sine over [0,π][0, \pi] and gives 6(23+0+2)=166\left(\frac{2}{3} + 0 + 2\right) = 16; the small negative part between π2\frac{\pi}{2} and 2π3\frac{2\pi}{3} must be added, not subtracted.
  • 12: Splitting only at π2\frac{\pi}{2} and taking the whole of (π2,π)\left(\frac{\pi}{2}, \pi\right) as negative gives 6(73−13)=126\left(\frac{7}{3} - \frac{1}{3}\right) = 12; the integrand turns positive again after 2π3\frac{2\pi}{3}.
  • 11: Splitting only at 2π3\frac{2\pi}{3} and taking the part after it as negative gives 6(94−512)=116\left(\frac{9}{4} - \frac{5}{12}\right) = 11; in fact the part after 2π3\frac{2\pi}{3} is positive, and the negative part lies between π2\frac{\pi}{2} and 2π3\frac{2\pi}{3}.

Key takeaway

The trap. Missing the second sign change at two pi by three, because the negative dip is small.

How toppers think. They factorise first, since a product shows every sign change at a glance.

Remember. sin⁡A+sin⁡B=2sin⁡A+B2cos⁡A−B2\sin A + \sin B = 2\sin\frac{A + B}{2}\cos\frac{A - B}{2}.

More on Symmetry & Periodicity