Question
Question: How do you find the integral of \[\int {(1 + \cos x} {)^2}dx\]?...
How do you find the integral of ∫(1+cosx)2dx?
Solution
We can solve this using the algebraic identity (a+b)2=a2+b2+2ab. The term inside the integral sign is called the integrand. First we expand the integrand using the identity then we integrate. Where a=1 and b=cosx. We know the integration of xn with respect to ‘x’, that is ∫xndx=n+1xn+1+c. Where ‘c’ is the integration constant.
Complete step by step solution:
Given ∫(1+cosx)2dx.
Now applying the identity (a+b)2=a2+b2+2ab, where a=1 and b=cosx.
(1+cosx)2=1+cos2x+2cosx
Thus we have,
∫(1+cosx)2dx=∫(1+cos2x+2cosx)dx
=∫(1+cos2x+2cosx)dx
Expanding the integration for each term,
∫(1+cosx)2dx=∫1.dx+∫cos2x.dx+∫2cosx.dx
We know that cos2x=21+cos2x, then
∫(cosx)2.dx=∫21+cos2x.dx
=∫21.dx+∫2cos2x.dx
=2x+2×2sin2x+c
∫(cosx)2.dx=2x+4sin2x+c −−−(1).
Also ∫1.dx=x+c −−−(2)
∫2cosx.dx=2sinx+c −−−(3)
Where ‘c’ is the integration constant.
Substituting (1) (2) and (3) in the above integral equation we have,
∫(1+cosx)2dx=x+2x+4sin2x+2sinx+3c
Since ‘3c’ is also a constant we denote this by “C”. Then we have
∫(1+cosx)2dx=x+2x+4sin2x+2sinx+C
Where ‘C’ is the integration constant
Note: In the given above problem we have an indefinite integral, that is no upper and lower limit. Hence we add the integration constant ‘c’ after integrating. In a definite integral we will have an upper and lower limit, we don’t need to add integration constant in the case of definite integral. We have different integration rule:
The power rule: If we have a variable ‘x’ raised to a power ‘n’ then the integration is given by ∫xndx=n+1xn+1+c.
The constant coefficient rule: if we have an indefinite integral of K.f(x), where f(x) is some function and ‘K’ represent a constant then the integration is equal to the indefinite integral of f(x) multiplied by ‘K’. That is ∫K.f(x)dx=c∫f(x)dx.
The sum rule: if we have to integrate functions that are the sum of several terms, then we need to integrate each term in the sum separately. That is
∫(f(x)+g(x))dx=∫f(x)dx+∫g(x)dx
For the difference rule we have to integrate each term in the integrand separately.