Question
Question: Evaluate the integral: \(\int{\cos x\log \left( \tan \dfrac{x}{2} \right)dx}\)...
Evaluate the integral: ∫cosxlog(tan2x)dx
Solution
To integrate the given integration using integration by parts, we are going to use the following integration by parts formula which is equal to: ∫f(x)g(x)dx=f(x)∫g(x)dx−∫f′(x)∫g(x)dx. The catch in this integration is what could be the first term and what could be the second term. And this priority of the function is decided by the mnemonics named “ILATE” and we will discuss each letter in the solution below.
Complete step-by-step solution:
The integration which we have to find is as follows:
∫cosxlog(tan2x)dx
Now, we are going to integrate by using integration by parts. The formula for integration by parts is as follows:
∫f(x)g(x)dx=f(x)∫g(x)dx−∫f′(x)∫g(x)dx …………… (1)
In the above formula, f(x)&g(x) are two functions but here, we should know which function will get the priority over another. To decide the priority there is mnemonic which is equal to:
ILATE
Now, in the above mnemonic, “I” represents inverse functions, “L” represents a logarithmic function, “A” represents algebraic functions, “T” represents trigonometric functions and “E” represents exponential functions. Now, the order of the letters in this word “ILATE” will be the order of priority for the functions.
So, using this mnemonic in the given integration, in the given integration, we have two functions, logarithmic and trigonometric functions, so logarithm will get priority over trigonometric functions. Now, f(x)=log(tan2x)&g(x)=cosx then substituting these values of f(x) and g(x) in eq. (1) we get,
∫log(tan2x)cosxdx=log(tan2x)∫cosdx−∫(log(tan2x))′∫cosxdx ……………. (2)
We know the integration of cosx with respect to x we get,
∫cosxdx=sinx
∫log(tan2x)cosxdx=log(tan2x)(sinx)−∫(log(tan2x))′(sinx)dx…………(3)
Now, we are going to show the derivative of log(tan2x) with respect to x as follows:
dxdlog(tan2x)=tan2x1(sec22x)(21)
We know that tan2x=cos2xsin2x&sec2x=cos2x1 so using the relation in the above we get,
dxdlog(tan2x)=cos2xsin2x1cos22x1(21)⇒dxdlog(tan2x)=1sin2x1cos2x1(21)⇒dxdlog(tan2x)=2sin2xcos2x1
We know the identity of sine of double angle as follows:
sinx=2sin2xcos2x
Using the above relation in the above equation we get,
⇒dxdlog(tan2x)=sinx1
Using the above relation in (3) we get,
∫log(tan2x)cosxdx=log(tan2x)(sinx)−∫(log(tan2x))′(sinx)dx⇒∫log(tan2x)cosxdx=log(tan2x)(sinx)−∫(sinx1)(sinx)dx⇒∫log(tan2x)cosxdx=log(tan2x)(sinx)−∫dx⇒∫log(tan2x)cosxdx=log(tan2x)(sinx)−x+C
From the above solution, we have shown the integration of ∫cosxlog(tan2x)dx which is equal to log(tan2x)(sinx)−x+C.
Note: The point of making a mistake is in the integration of sinx&cosx and the mistake is in putting the sign before the result of integration.
In the integration of cosx with respect to x we get a negative sign in the result whereas in the integration of sinx with respect to x we get a positive sign in the result.
∫cosdx=sinx∫sinxdx=−cosx