Question
Question: Integrate the following. \(\int\limits_{0}^{\dfrac{\pi }{2}}{\dfrac{a\sin x+b\cos x}{\sin x+\cos x...
Integrate the following.
0∫2πsinx+cosxasinx+bcosxdx
Solution
We are required to know the basic trigonometric and integral formulae in order to solve this question. We know a basic property of an integral is given as 0∫pf(x)dx=0∫pf(p−x)dx. Here, the function value of the integral remains the same if the variable of integration inside the function is replaced by a term given by the sum of limits minus the variable of integration. Using this, we simplify the above equation and get two equations. We add the two and simplify to get the solution.
Complete step by step solution:
Given the question as 0∫2πsinx+cosxasinx+bcosxdx, Let us assume this is equal to a variable I.
⇒I=0∫2πsinx+cosxasinx+bcosxdx……(1)
Now we use the basic integration property,
⇒0∫pf(x)dx=0∫pf(p−x)dx
Using this in the above equation,
⇒I=0∫2πsin(2π−x)+cos(2π−x)asin(2π−x)+bcos(2π−x)dx
We also know the basic relation between sin and cos is given as,
⇒sin(2π−x)=cosx
Similarly, it works the other way around too,
⇒cos(2π−x)=sinx
Substituting these in the above equation,
⇒I=0∫2πcosx+sinxacosx+bsinxdx……(2)
Adding the two equations 1 and 2,
⇒I+I=0∫2πsinx+cosxasinx+bcosxdx+0∫2πcosx+sinxacosx+bsinxdx
Adding the terms on both left-hand and right-hand sides,
⇒2I=0∫2πsinx+cosxasinx+bcosx+acosx+bsinxdx
Taking the terms, a and b common out,
⇒2I=0∫2πsinx+cosxa(sinx+cosx)+b(sinx+cosx)dx
Taking the sinx+cosx term common out in the numerator,
⇒2I=0∫2πsinx+cosx(a+b)(sinx+cosx)dx
We can cancel the sinx+cosx terms in the numerator and denominator and taking (a+b) term outside the integral since they are constants,
⇒2I=(a+b)0∫2π1.dx
Integrating and substituting the limits,
⇒2I=(a+b)x∣02π
⇒2I=(a+b)(2π−0)
Multiplying the terms on right-hand side and dividing both sides of the equation by 2,
⇒I=4π(a+b)
Hence, the solution to the above question is 4π(a+b).
Note: It is important to know the basic integration formulae and their properties. Knowing the relation between the different trigonometric functions is important too. We need to note that the addition of two integrals with the same variable of integration and same limits can be considered as the sum under a single limit.