Question
Question: The integral $\int_{0}^{\pi/4} \frac{cosx-sinx}{2+sin(2x)} dx$ equals...
The integral ∫0π/42+sin(2x)cosx−sinxdx equals

arctan(2)−4π
Solution
The integral to evaluate is I=∫0π/42+sin(2x)cosx−sinxdx.
We observe the numerator cosx−sinx. This is the derivative of sinx+cosx. Let's make the substitution t=sinx+cosx. Then, differentiating t with respect to x, we get dt=(cosx−sinx)dx.
Next, we need to express the term sin(2x) in the denominator in terms of t. We know that t2=(sinx+cosx)2=sin2x+cos2x+2sinxcosx. Since sin2x+cos2x=1 and 2sinxcosx=sin(2x), we have: t2=1+sin(2x) From this, we can write sin(2x)=t2−1.
Now, we need to change the limits of integration according to the substitution: When x=0: t=sin(0)+cos(0)=0+1=1. When x=π/4: t=sin(π/4)+cos(π/4)=21+21=22=2.
Substitute these into the integral: I=∫122+(t2−1)dt I=∫12t2+1dt This is a standard integral of the form ∫a2+x21dx=a1arctan(ax)+C. Here, a=1. I=[arctan(t)]12 Now, apply the limits of integration: I=arctan(2)−arctan(1) We know that arctan(1)=4π. Therefore, the value of the integral is: I=arctan(2)−4π