StepWorking
01Given
The expression to evaluate is I=6∫0π∣sin3x+sin2x+sinx∣dx.
02Approach
Combine sin3x+sinx=2sin2xcosx to factor out sin2x, then express entirely in terms of sinx and cosx. Since sinx≥0 on [0,π], factor out sinx from the absolute value and use the substitution t=cosx.
03Execute
Factor the integrand: sin3x+sinx+sin2x=2sin2xcosx+sin2x=sin2x(2cosx+1)=2sinxcosx(2cosx+1)=2sinx(2cos2x+cosx). Thus, I=12∫0πsinx∣2cos2x+cosx∣dx.
04Execute
Substitute t=cosx, so dt=−sinxdx. When x=0, t=1; when x=π, t=−1. The integral becomes I=12∫−11∣2t2+t∣dt.
05Execute
Analyze the sign of 2t2+t=t(2t+1): it is positive on [−1,−1/2] and [0,1], and negative on (−1/2,0). Split the integral: I=12[∫−1−1/2(2t2+t)dt−∫−1/20(2t2+t)dt+∫01(2t2+t)dt]. Computing the antiderivative F(t)=32t3+21t2: F(−1)=−1/6, F(−1/2)=1/24, F(0)=0, F(1)=7/6. Therefore, I=12[(1/24−(−1/6))−(0−1/24)+(7/6−0)]=12[5/24+1/24+28/24]=12×2434=17.
✓Verify
Check piecewise: ∫−1−1/2∣2t2+t∣dt=5/24, ∫−1/20∣2t2+t∣dt=1/24, ∫01∣2t2+t∣dt=7/6=28/24. Sum = 34/24. Multiplying by 12 gives exactly 17.