1−sin2x can be simplified using sin2x=2sinxcosx:
1−sin2x=1−2sinxcosx
Expanding (sinx−cosx)2:
(sinx−cosx)2=sin2x−2sinxcosx+cos2x
=1−2sinxcosx
Therefore:
1−sin2x=(sinx−cosx)2
=∣sinx−cosx∣
For x∈[0,π/2], the sign of sinx−cosx changes at x=π/4:
- At x=0: sin0=0<cos0=1
- At x=π/4: sin(π/4)=cos(π/4)
- At x=π/2: sin(π/2)=1>cos(π/2)=0
So:
∣sinx−cosx∣={cosx−sinxsinx−cosxfor 0≤x≤π/4for π/4≤x≤π/2
The integral splits at x=π/4:
∫0π/21−sin2xdx=∫0π/4(cosx−sinx)dx+∫π/4π/2(sinx−cosx)dx
For the first integral:
∫0π/4(cosx−sinx)dx=[sinx+cosx]0π/4
=(22+22)−(0+1)
=2−1
For the second integral:
∫π/4π/2(sinx−cosx)dx=[−cosx−sinx]π/4π/2
=(0−1)−(−22−22)
=−1+2
=2−1
The total value:
(2−1)+(2−1)=2(2−1)
Therefore, the answer is 2(2−1).