Solveeit Logo

Question

Question: Solve \[\int{\dfrac{\cos 2x}{{{\left( \cos x+\sin x \right)}^{2}}}dx}\]...

Solve cos2x(cosx+sinx)2dx\int{\dfrac{\cos 2x}{{{\left( \cos x+\sin x \right)}^{2}}}dx}

Explanation

Solution

This question is from the topic of integration. In this question, we will first solve the term cos2x(cosx+sinx)2\dfrac{\cos 2x}{{{\left( \cos x+\sin x \right)}^{2}}} in simple form. After that, we will do the integration. We are going to use a substitution method for the integration. We will put the value of 1+sin2x1+\sin 2x as t. After that, we will write the integration in terms of t. After solving the further solution, we will get the value of integration. After that, we will replace t by 1+sin2x1+\sin 2x. After that, we will get our exact answer.

Complete step by step solution:
Let us solve this question.
In this question, we have asked to solve cos2x(cosx+sinx)2dx\int{\dfrac{\cos 2x}{{{\left( \cos x+\sin x \right)}^{2}}}dx}.
As we know that (a+b)2=a2+b2+2ab{{\left( a+b \right)}^{2}}={{a}^{2}}+{{b}^{2}}+2ab, so we can write the term cos2x(cosx+sinx)2\dfrac{\cos 2x}{{{\left( \cos x+\sin x \right)}^{2}}} as
cos2x(cosx+sinx)2=cos2x(cosx)2+(sinx)2+2cosxsinx\dfrac{\cos 2x}{{{\left( \cos x+\sin x \right)}^{2}}}=\dfrac{\cos 2x}{{{\left( \cos x \right)}^{2}}+{{\left( \sin x \right)}^{2}}+2\cos x\sin x}
As we know that sin2x+cos2x=1{{\sin }^{2}}x+{{\cos }^{2}}x=1, so we can write the above equation as
cos2x(cosx+sinx)2=cos2x1+2cosxsinx\Rightarrow \dfrac{\cos 2x}{{{\left( \cos x+\sin x \right)}^{2}}}=\dfrac{\cos 2x}{1+2\cos x\sin x}
As we know that sin2x=2cosxsinx\sin 2x=2\cos x\sin x, so we can write the above equation as
cos2x(cosx+sinx)2=cos2x1+sin2x\Rightarrow \dfrac{\cos 2x}{{{\left( \cos x+\sin x \right)}^{2}}}=\dfrac{\cos 2x}{1+\sin 2x}
Now, we can write the integration as
cos2x(cosx+sinx)2dx=cos2x1+sin2xdx\int{\dfrac{\cos 2x}{{{\left( \cos x+\sin x \right)}^{2}}}dx}=\int{\dfrac{\cos 2x}{1+\sin 2x}dx}
Now, using the substitution method we will solve this integration.
Let t=1+sin2xt=1+\sin 2x
Then, we will differentiate the term t with respect to x.
dtdx=ddx(1+sin2x)=ddx(1)+ddx(sin2x)=0+(cos2x)ddx(2x)\dfrac{dt}{dx}=\dfrac{d}{dx}\left( 1+\sin 2x \right)=\dfrac{d}{dx}(1)+\dfrac{d}{dx}(\sin 2x)=0+\left( \cos 2x \right)\dfrac{d}{dx}\left( 2x \right)
Using chain rule in the above equation, we get
dtdx=(cos2x)(2)=2cos2x\dfrac{dt}{dx}=\left( \cos 2x \right)\left( 2 \right)=2\cos 2x
The above equation can also be written as
12dt=cos2xdx\Rightarrow \dfrac{1}{2}dt=\cos 2xdx
So, in the integration, we can write
cos2x(cosx+sinx)2dx=cos2x1+sin2xdx=1t×12dt=121tdt\int{\dfrac{\cos 2x}{{{\left( \cos x+\sin x \right)}^{2}}}dx}=\int{\dfrac{\cos 2x}{1+\sin 2x}dx}=\int{\dfrac{1}{t}\times \dfrac{1}{2}dt}=\dfrac{1}{2}\int{\dfrac{1}{t}dt}
As we know that integration of 1t\dfrac{1}{t} with respect of t islnt+C\ln t+C, where C is any constant, so we can write
cos2x(cosx+sinx)2dx=12lnt+C\int{\dfrac{\cos 2x}{{{\left( \cos x+\sin x \right)}^{2}}}dx}=\dfrac{1}{2}\ln t+C
Now, putting the value of t in the above equation, we get
cos2x(cosx+sinx)2dx=12ln(1+sin2x)+C\int{\dfrac{\cos 2x}{{{\left( \cos x+\sin x \right)}^{2}}}dx}=\dfrac{1}{2}\ln \left( 1+\sin 2x \right)+C
In the above, we have found that 1+sin2x1+\sin 2x can also be written as (cosx+sinx)2{{\left( \cos x+\sin x \right)}^{2}}, so we can write
cos2x(cosx+sinx)2dx=12ln(cosx+sinx)2+C\Rightarrow \int{\dfrac{\cos 2x}{{{\left( \cos x+\sin x \right)}^{2}}}dx}=\dfrac{1}{2}\ln {{\left( \cos x+\sin x \right)}^{2}}+C
As we know that lnban=nlnba{{\ln }_{b}}{{a}^{n}}=n{{\ln }_{b}}a, so we can write
cos2x(cosx+sinx)2dx=2×12lncosx+sinx+C=lncosx+sinx+C\Rightarrow \int{\dfrac{\cos 2x}{{{\left( \cos x+\sin x \right)}^{2}}}dx}=2\times \dfrac{1}{2}\ln \left| \cos x+\sin x \right|+C=\ln \left| \cos x+\sin x \right|+C
Hence, we have solved the integration.
So, we can write
cos2x(cosx+sinx)2dx=lncosx+sinx+C\int{\dfrac{\cos 2x}{{{\left( \cos x+\sin x \right)}^{2}}}dx}=\ln \left| \cos x+\sin x \right|+C

Note:
We should have a better knowledge in the topic of integration to solve this type of question easily. We should remember the following formulas to solve this type of question:
(a+b)2=a2+b2+2ab{{\left( a+b \right)}^{2}}={{a}^{2}}+{{b}^{2}}+2ab
sin2x+cos2x=1{{\sin }^{2}}x+{{\cos }^{2}}x=1
sin2x=2cosxsinx\sin 2x=2\cos x\sin x
ddxsinx=cosx\dfrac{d}{dx}\sin x=\cos x
ddx1x=lnx\dfrac{d}{dx}\dfrac{1}{x}=\ln x
lnban=nlnba{{\ln }_{b}}{{a}^{n}}=n{{\ln }_{b}}a
We have used chain rule here, so remember that. The chain rule helps us to differentiate the composite functions likef(g(x))f\left( g\left( x \right) \right). So, ddxf(g(x))=f(g(x))×g(x)\dfrac{d}{dx}f\left( g\left( x \right) \right)=f'\left( g\left( x \right) \right)\times g'\left( x \right). Here, f and g are two different functions, and ff' andgg' are differentiation of f and g respectively.