Question
Question: How do you find the integral of \(\cos \left( mx \right).\cos \left( nx \right)\) ?...
How do you find the integral of cos(mx).cos(nx) ?
Solution
We have been given the product of the same trigonometric function, cosine function but bearing two different angles as a function of the same x-variable. In order to solve such problems, we must have prior knowledge of basic trigonometric identities. Thus, we shall apply a trigonometric identity to a given function to simplify it further and we shall integrate it accordingly.
Complete step-by-step solution:
We are given the function, cos(mx).cos(nx).
We know that one of the basic trigonometric properties convert the product of the cosine functions into the sum of cosine functions. It is expressed as:
cosA.cosB=21[cos(A−B)+cos(A+B)]
Here, we have angle A=mx and angle B=nx. Applying this identity on given function, we get
cos(mx).cos(nx)=21[cos(mx−nx)+cos(mx+nx)]
Taking x common in both the terms in the right-hand side, we get
⇒cos(mx).cos(nx)=21[cos(m−n)x+cos(m+n)x]
We shall now integrate this modified expression to find the final solution.
⇒∫cos(mx).cos(nx)=∫21[cos(m−n)x+cos(m+n)x]
Since 21 is constant term, thus taking it out of integration function, we get
⇒∫cos(mx).cos(nx)=21∫cos(m−n)x+cos(m+n)x
By the basic properties of integration, we know that ∫cosax.dx=asinax+C. Applying this property, we get
⇒∫cos(mx).cos(nx)=21[m−nsin(m−n)x+C+m+nsin(m+n)x+C]
Taking the constants of integration (C) common, we get
⇒∫cos(mx).cos(nx)=21[m−nsin(m−n)x+m+nsin(m+n)x]+C
Now, we shall multiply the 21 outside the brackets with both the terms individually,
⇒∫cos(mx).cos(nx)=2(m−n)sin(m−n)x+2(m+n)sin(m+n)x+C
Therefore, the integral of cos(mx).cos(nx) is 2(m−n)sin(m−n)x+2(m+n)sin(m+n)x+C.
Note: The constant of integration represents indefinite integration of a function. This is when the limits of integration are not specified. Another method of solving this problem is by applying integration by parts. This is done by using the ILATE rule which is used when the product of two separately integrable functions is given. According to the preference order of the ILATE rule, we take one of the functions as the first function which must be easily integrable and the second function must be easily differentiable.