Question
Question: How do you integrate the given function \(x.{{\cos }^{2}}x\)?...
How do you integrate the given function x.cos2x?
Solution
We start solving the problem by equating the given indefinite integral to a variable. We then make use of the result that cos2x=21+cos2x to proceed through the problem. We then recall the integration by parts as ∫f(x)×g(x)dx=f(x)∫g(x)dx−∫(dxd(f(x))∫g(x)dx)dx to proceed through the problem. We then make the necessary calculations and make use of the results that dxd(x)=1, ∫adx=ax+C and ∫cosaxdx=asinax+C to proceed further through the problem. We then make use of the results that ∫axdx=2ax2+C, ∫sinaxdx=a−cosax+C and then make the necessary calculations to get the required answer.
Complete step by step answer:
According to the problem, we are asked to find the result of the given indefinite integral ∫x.cos2xdx.
Let us assume I=∫x.cos2xdx ---(1).
We know that cos2x=21+cos2x. Let us use this result in equation (1).
⇒I=∫x.(21+cos2x)dx ---(2).
We can see that the integrand is in the form of ∫f(x)×g(x)dx. From integration by parts, we know that ∫f(x)×g(x)dx=f(x)∫g(x)dx−∫(dxd(f(x))∫g(x)dx)dx. Let us use this result in equation (2).
⇒I=x∫(21+cos2x)dx−∫(dxd(x)∫(21+cos2x)dx)dx ---(3).
We know that dxd(x)=1. Let us use this result in equation (3).
⇒I=2x∫(1+cos2x)dx−∫(21∫(1+cos2x)dx)dx ---(4).
We know that ∫adx=ax+C, ∫cosaxdx=asinax+C. Let us use these results in equation (4).
⇒I=2x(x+2sin2x)−∫(21(x+2sin2x))dx.
⇒I=2x(x+2sin2x)−∫(21(22x+sin2x))dx.
⇒I=2x(x+2sin2x)−41∫(2x+sin2x)dx ---(5).
We know that ∫axdx=2ax2+C, ∫sinaxdx=a−cosax+C. Let us use these results in equation (5).
⇒I=2x(x+2sin2x)−41(22x2−2cos2x)+C.
⇒I=2x2+4xsin2x−4x2+8cos2x+C.
⇒I=4x2+4xsin2x+8cos2x+C.
∴ We have found the result of integration of the function x.cos2x as 4x2+4xsin2x+8cos2x+C.
Note:
We can see that the given problem contains a huge amount of calculation, so we need to perform each step carefully to avoid confusion and calculation mistakes. We should not forget to add constant integration while solving this type of problem as this is the common mistake done by students. Similarly, we can expect problems to find the value of the definite integral 0∫2πx.cos2xdx.