Question
Question: Integrate \(\int {{e^{2x}}\cos x} \) by integration by parts method?...
Integrate ∫e2xcosx by integration by parts method?
Solution
This question will be solved by integration by parts. In the integration by parts method if we integrate f(x)g(x) we can write ∫f(x)g(x)dx=f(x)∫g(x)dx−∫f′(x)(∫g(x)dx)dx where f′(x)=dxdf(x). While choosing f(x) and g(x) choose in such a way that solving ∫f′(x)(∫g(x)dx)dx would be easier. For example, while integrating xex our f(x) would be x and g(x) will be ex so that solving ∫f′(x)(∫g(x)dx)dx is easier.
Complete step by step answer:
The integration by parts formula can be further written as integral of the product of any two functions = (First function × Integral of the second function) – Integral of [ (differentiation of the first function) × Integral of the second function]
The formula for integration by parts is
∫f(x)g(x)dx=f(x)∫g(x)dx−∫f′(x)(∫g(x)dx)dx
Where f′(x)=dxdf(x).
Let I=∫e2xcosxdx
In the given question we have to integrate e2xcosx by integration by parts method.
So, we can choose f(x)=cosx and g(x)=e2x.
Substituting the values in the formula for integration by parts, we get
⇒I=cosx∫e2xdx−∫dxd(cosx)(∫e2xdx)dx
We know that dxd(cosx)=−sinx and ∫e2xdx=2e2x. Substituting these values in the above equation,
⇒I=2e2xcosx−∫−sinx×2e2xdx
Simplify the terms,
⇒I=2e2xcosx+21∫e2xsinxdx ---- (1)
Now apply integration by parts for e2xsinx.
⇒∫e2xsinxdx=sinx∫e2xdx−∫dxd(sinx)(∫e2xdx)dx
Simplify the terms,
⇒∫e2xsinxdx=2e2xsinx−∫cosx×2e2xdx
Simplify the terms,
⇒∫e2xsinxdx=2e2xsinx−21I
Substitute the value in equation (1),
⇒I=2e2xcosx+2e2xsinx−21I+C
Move 21I on the left side and simplify,
⇒23I=2e2x(sinx+cosx)+C
Multiply both sides with 32 and simplify,
⇒I=3e2x(sinx+cosx)+C
Hence, the integral of e2xcosx is 3e2x(sinx+cosx)+C.
Note: Always remember the formula for integrating into the integration by parts method. Some people make mistakes while choosing f(x) and g(x) so carefully choose f(x) and g(x) such that integration would be easier to solve. Sometimes when we solve a problem we find the function of L.H.S on the right-hand side, in that case, we should take our L.H.S as a variable I like we did in the above question then it would be easier to solve we just have to find the value of I.