Question
Question: Find the solution of the integral \[\int_{ - \pi }^\pi {{{\left( {\cos ax - \sin bx} \right)}^2}dx} ...
Find the solution of the integral ∫−ππ(cosax−sinbx)2dx where a and b are integers. Choose the correct option.
a. −π
b. 0
c. π
d. 2π
Solution
Hint—We will use the property (a−b)2=a2+b2−2ab and then integrate each value separately and applying the limits also from −π to π. The value of the integral 2cosaxsinbx=0 as cosaxsinbx is an odd function in the interval [−π,π].
Complete step-by-step solution
Consider the given integral,
I=∫−ππ(cosax−sinbx)2dx
Use the property (a−b)2=a2+b2−2ab to expand the given function,
We get,
Here, we know that cosaxsinbx is an odd function in the interval [−π,π].
Thus, from this we get, 2cosaxsinbx=0.
Hence, put the value in the integral,
I=∫−ππcos2axdx+∫−ππsin2bxdx−0
Since, we know that cos2ax and sin2bx are even functions in the interval so, we will change the interval from [−π,π] to [0,π] and multiply the integral by 2.
Thus, we get,
I=∫0π2cos2axdx+∫0π2sin2bxdx
Further, we know that, cos2ax=21+cos2ax and sin2bx=21−cos2bx
Thus, put the values in the integral to simply further.
Thus, we get,
Now, we will integrate each part individually in the integral.
Thus,
Now, as we know that sinnπ=0
Here, sin2aπ=0 and sin2bπ=0 as a and b are integers.
Thus, we get that,
I=2π
The option (d) is the correct option, as the solution of the integral is I=2π.
Note: The properties cos2x=21+cos2x and sin2x=21−cos2x makes the calculation of the integral easier. We must know that the function cos2x and sin2x are even functions and the function cosxsinx forms an odd function. Use the fact that sinnπ=0 for all the values of n.