Solveeit Logo

Question

Question: How do you integrate \(\int {x\sin xdx} \) using integration by parts?...

How do you integrate xsinxdx\int {x\sin xdx} using integration by parts?

Explanation

Solution

In this problem, we are given an expression for integration, where the integrand is a combination of algebraic and trigonometric terms. Here, we are asked to integrate the given problem by using integration by parts. By using integration by parts, we are going to expand the differential of a product of functions.

Formula used: Integration by parts udv=uvvdu\int {udv = uv - \int {vdu} } , where uu is a function of u(x)u\left( x \right) , dvdv is a variable dvdv , vv is the function of v(x)v\left( x \right) and dudu is a variable dudu .

Complete step-by-step solution:
Given integration is xsinxdx\int {x\sin xdx} .
Take I=xsinxdxI = \int {x\sin xdx} .
We want to integrate by parts, taking u=xu = x , dv=sinxdv = \sin x .
Differentiating u=xu = x we get, du=dxdu = dx and integrating dv=sinxdv = \sin x we get, v=cosxv = - \cos x .
udv=uvvdu\Rightarrow \int {udv = uv - \int {vdu} }
Now, let’s substitute all the values in the formula, we get,
xsinxdx=xcosx+cosxdx\Rightarrow \int {x\sin xdx = - x\cos x + \int {\cos xdx} }
Now integrating cosx\cos x in the right-hand side, we get,
xsinxdx=xcosx+sinx+C\Rightarrow \int {x\sin xdx = - x\cos x + \sin x + C}, where C is the constant of integration.
,I=sinxxcosx+C\therefore ,I = \sin x - x\cos x + C

Therefore, the given integration by using integration by parts is equal to sinxxcosx+C\sin x - x\cos x + C.

Additional Information: Integration by parts is a technique for performing indefinite integration or definite integration by expanding the differential of a product of functions and expressing the original integral in terms of a known integral. Integration by parts is for functions that can be written as the product of another function and a third function’s derivative.

Note: In this problem we have given the algebraic and trigonometric terms as integrands. And we used integration by parts to solve this problem. In that we have taken uu as xx and dvdv as sinx\sin x and we have to be careful while integrating sinx\sin x because integration of sinx\sin x gives cosx - \cos x but in differentiation, there won’t be a negative sign.