Solveeit Logo

Question

Question: Find the solution of \( \int{x\sin xdx} \) by integration by parts?...

Find the solution of xsinxdx\int{x\sin xdx} by integration by parts?

Explanation

Solution

Hint : We first discuss the integration by parts method. Integration by parts method is usually used for the multiplication of the functions and their integration. We take two arbitrary functions to express the theorem. We take the u=x,v=sinxu=x,v=\sin x for our integration xsinxdx\int{x\sin xdx} . We use the formulas sinxdx=cosx,cosxdx=sinx\int{\sin xdx}=-\cos x,\int{\cos xdx}=\sin x , ddx(xn)=nxn1\dfrac{d}{dx}\left( {{x}^{n}} \right)=n{{x}^{n-1}} .

Complete step-by-step answer :
We need to find the integration of xsinxdx\int{x\sin xdx} using integration by parts method.
Integration by parts method is usually used for the multiplication of the functions and their integration.
Let’s assume f(x)=g(x)h(x) f\left( x \right)=g\left( x \right)h\left( x \right) .
We need to find the integration of
f(x)dx=g(x)h(x)dx\int{f\left( x \right)dx}=\int{g\left( x \right)h\left( x \right)dx} .
We take
u=g(x),v=h(x)u=g\left( x \right),v=h\left( x \right) . This gives f(x)dx=uvdx\int{f\left( x \right)dx}=\int{uvdx} .
The theorem of integration by parts gives
uvdx=uvdx(dudxvdx)dx\int{uvdx}=u\int{vdx}-\int{\left( \dfrac{du}{dx}\int{vdx} \right)dx} .
For our integration xsinxdx\int{x\sin xdx} , we take u=x,v=sinxu=x,v=\sin x .
Now we complete the integration
xsinxdx=xsinxdx(d(x)dxsinxdx)dx\int{x\sin xdx}=x\int{\sin xdx}-\int{\left( \dfrac{d\left( x \right)}{dx}\int{\sin xdx} \right)dx}.
We have the differentiation formula for u=xu=x where
ddx(xn)=nxn1\dfrac{d}{dx}\left( {{x}^{n}} \right)=n{{x}^{n-1}} .
The integration formula for
sinxdx=cosx,cosxdx=sinx\int{\sin xdx}=-\cos x,\int{\cos xdx}=\sin x .
We apply these formulas to complete the integration and get
xsinxdx=x(cosx)(cosx)dx=xcosx+cosxdx\int{x\sin xdx}=x\left( -\cos x \right)-\int{\left( -\cos x \right)dx}=-x\cos x+\int{\cos xdx}.
We have one more integration part remaining.
So, xsinxdx=xcosx+cosxdx=xcosx+sinx+c\int{x\sin xdx}=-x\cos x+\int{\cos xdx}=-x\cos x+\sin x+c. Here cc is the integral constant.
Therefore, the integration by parts of xsinxdx\int{x\sin xdx} gives xcosx+sinx+c-x\cos x+\sin x+c.
So, the correct answer is “ xcosx+sinx+c-x\cos x+\sin x+c”.

Note : In case one of two functions are missing and we need to form the by parts method, we will take the multiplying constant 1 as the second function.
For example: if we need to find lnxdx\int{\ln xdx}, we have only one function. So, we take constant 1 as the second function where u=lnx,v=1u=\ln x,v=1 . But we need to remember that we won’t perform by parts by taking u=1u=1 .