Concept:Use trigonometric identities to simplify the integrand, then break the integral at points where the expression changes sign.
Explanation:Let
I=0∫π∣sin3x+sin2x+sinx∣dx.
Use identity:
sin3x+sinx=2sin2xcosx.
Thus, the integrand becomes
∣sin2x(2cosx+1)∣.
Find critical points in
[0,π] where either factor is zero.
sin2x=0⇒x=0,2π,π2cosx+1=0⇒cosx=−21⇒x=32πSign of
sin2x: positive on
(0,π/2), negative on
(π/2,π).
Sign of
2cosx+1: positive on
[0,2π/3), negative on
(2π/3,π].
Therefore the product
(sin2x)(2cosx+1) is:
positive on
(0,π/2), negative on
(π/2,2π/3), positive on
(2π/3,π).
Hence,
I=∫0π/2sin2x(2cosx+1)dx−∫π/22π/3sin2x(2cosx+1)dx+∫2π/3πsin2x(2cosx+1)dxRewrite
sin2x=2sinxcosx:
I=2∫0π/2sinx(2cos2x+cosx)dx−2∫π/22π/3sinx(2cos2x+cosx)dx+2∫2π/3πsinx(2cos2x+cosx)dxSubstitute
t=cosx,
dt=−sinxdx.
Limits:
x=0→t=1;
x=π/2→t=0;
x=2π/3→t=−1/2;
x=π→t=−1.
This gives:
I=2∫10(2t2+t)(−dt)−2∫0−1/2(2t2+t)(−dt)+2∫−1/2−1(2t2+t)(−dt)=2∫01(2t2+t)dt−2∫−1/20(2t2+t)dt+2∫−1−1/2(2t2+t)dtIntegrate:
∫(2t2+t)dt=32t3+2t2.
Compute each part:
First part:
[32t3+2t2]01=32+21=67=2428Second part:
[32t3+2t2]−1/20=0−(32(−81)+41)=−(−121+41)=−61=−244But careful: we have
I=2[first]−2[second]+2[third]. Actually we need to evaluate properly.
Let's compute each integral with limits:
A=∫01(2t2+t)dt=[32t3+2t2]01=32+21=67B=∫−1/20(2t2+t)dt=[32t3+2t2]−1/20=0−(32(−81)+41)=−(−121+41)=−61C=∫−1−1/2(2t2+t)dt=[32t3+2t2]−1−1/2=(32(−81)+41)−(32(−1)+21)=(−121+41)−(−32+21)=61−(−61)=31Thus
I=2A−2B+2C=2(67)−2(−61)+2(31)=37+31+32=310? This seems inconsistent with the original solution. Let's re-examine the sign handling.
In the original solution, they computed
I=2[(32t3+2t2)−1−1/2−(32t3+2t2)−1/20+(32t3+2t2)01]. That matches our expression because we had plus signs for the first and third, and minus for the second. Their bracket: first part (from -1 to -1/2), second part (from -1/2 to 0), third part (from 0 to 1). So the signs inside the bracket are + (first) - (second) + (third). Then multiplied by 2. Let's compute using their notation:
Let
F(t)=32t3+2t2.
First part:
F(−1/2)−F(−1)Second part:
F(0)−F(−1/2)Third part:
F(1)−F(0)Then bracket = [F(-1/2)-F(-1)] - [F(0)-F(-1/2)] + [F(1)-F(0)] = F(-1/2)-F(-1)-F(0)+F(-1/2)+F(1)-F(0) = 2F(-1/2) - F(-1) + F(1) - 2F(0).
Now compute:
F(1)=2/3+1/2=7/6=28/24
F(0)=0
F(-1)=2/3(-1)+1/2(1)= -2/3+1/2 = -4/6+3/6=-1/6 = -4/24
F(-1/2)=2/3(-1/8)+1/2(1/4)= -2/24+3/24=1/24
So bracket = 2*(1/24) - (-1/6) + (7/6) - 0 = 2/24 + 1/6 + 7/6 = 1/12 + 8/6 = 1/12 + 16/12 = 17/12.
Then I = 2 * (17/12) = 17/6.
Hence 6I = 17.
Thus the final answer is 17.
Our earlier direct integral evaluation gave I=10/3? That's incorrect because we mis-signed the second integral sign. The correct expression from original is:
I=∫0π/2sin2x(2cosx+1)dx−∫π/22π/3sin2x(2cosx+1)dx+∫2π/3πsin2x(2cosx+1)dx. The substitution yields
I=2∫01(2t2+t)dt−2∫−1/20(2t2+t)dt+2∫−1−1/2(2t2+t)dt. So we computed A=7/6, B=-1/6, C=1/3. Then I = 2A - 2B + 2C = 2*(7/6) - 2*(-1/6) + 2*(1/3) = 14/6 + 2/6 + 2/3 = 16/6 + 4/6 = 20/6 = 10/3. That gives 6I=20, not 17. So our direct evaluation must have a sign error. Let's re-check the substitution carefully.
Original integrals:
I1=∫0π/2sin2x(2cosx+1)dxI2=∫π/22π/3sin2x(2cosx+1)dxI3=∫2π/3πsin2x(2cosx+1)dxThen
I=I1−I2+I3.
Now substitute
t=cosx,
dt=−sinxdx, and
sin2x=2sinxcosx=2tsinx. So integrand becomes
2tsinx(2t+1)dx=2t(2t+1)sinxdx. But
sinxdx=−dt. So the integrand becomes
2t(2t+1)(−dt)=−2t(2t+1)dt.
For
I1: x from 0 to π/2, t from 1 to 0. So
I1=∫t=10−2t(2t+1)dt=∫012t(2t+1)dt=2∫01(2t2+t)dt=2A.
For
I2: x from π/2 to 2π/3, t from 0 to -1/2. So
I2=∫t=0−1/2−2t(2t+1)dt=−∫0−1/22t(2t+1)dt=∫−1/202t(2t+1)dt=2∫−1/20(2t2+t)dt=2B (where B is as before). But careful: B is integral from -1/2 to 0 of (2t^2+t) dt. So
I2=2B.
For
I3: x from 2π/3 to π, t from -1/2 to -1. So
I3=∫t=−1/2−1−2t(2t+1)dt=−∫−1/2−12t(2t+1)dt=∫−1−1/22t(2t+1)dt=2∫−1−1/2(2t2+t)dt=2C (where C is integral from -1 to -1/2). So
I3=2C.
Then
I=I1−I2+I3=2A−2B+2C.
Now compute A, B, C from earlier:
A=[32t3+2t2]01=67.
B=[32t3+2t2]−1/20=0−(32(−81)+41)=−(−121+41)=−(12−1+3)=−122=−61.
Wait:
−121+41=−121+123=122=61. So
F(−1/2)=−121+41=61. Then B = 0 - 1/6 = -1/6. So indeed B = -1/6.
C=[32t3+2t2]−1−1/2=F(−1/2)−F(−1).
F(-1) =
32(−1)+21(1)=−32+21=−64+63=−61.
So C =
61−(−61)=61+61=31.
Now compute
I=2A−2B+2C=2(67)−2(−61)+2(31)=614+62+32=616+64=620=310.
Then
6I=20. But original says 17. So either the original solution has a mistake or we misinterpret the signs. Let's re-read the original solution's sign table: they said sign of (sin2x)(2cosx+1) is + on (0,π/2), - on (π/2,2π/3), + on (2π/3,π). So the absolute value converts negative to positive. That means
I=∫0π/2+∫π/22π/3(−)+∫2π/3π+, but careful: the absolute value makes the negative part positive by taking - of the integral. So
I=I1+(−)I2+I3? Actually if the function is negative on (π/2,2π/3), then
∣f∣=−f, so integral over that interval is
−∫π/22π/3fdx. So
I=I1−I2+I3 where
I1,I2,I3 are integrals of f (without absolute) over the respective intervals. That's what we used.