Solveeit Logo

Question

Question: Evaluate the given integral – \(\int{x\sin 2xdx}\)...

Evaluate the given integral –
xsin2xdx\int{x\sin 2xdx}

Explanation

Solution

- Hint: To solve this problem, we will use the property of integration by parts to find the answer to the above integral. The formula for integration by parts is given by –
uvdx=uvdxdudx(vdx)dx\int{uvdx=u\int{vdx-\int{\dfrac{du}{dx}\left( \int{vdx} \right)}}}dx

Complete step-by-step solution -

Here, u and v are two functions of x. In our case, u = x and v = sin2x. We will use this to approach this problem.

To solve this problem, we have a combination of algebraic and trigonometric terms together. Thus, in such cases, we have to use integration by parts. For this, we will use the formula given by –uvdx=uvdxdudx(vdx)dx\int{uvdx=u\int{vdx-\int{\dfrac{du}{dx}\left( \int{vdx} \right)}}}dx
In this case, u = x and v = sin2x, thus, we have,
L = xsin2xdx\int{x\sin 2xdx}
L = xsin2xdxd(x)dx(sin2xdx)dxx\int{\sin 2xdx-\int{\dfrac{d(x)}{dx}\left( \int{\sin 2xdx} \right)}}dx
We know that sinnxdx=cosnxn\int{\sin nx dx=-\dfrac{\cos nx}{n}} and d(xn)dx=nxn1\dfrac{d({{x}^{n}})}{dx}=n{{x}^{n-1}}, thus, applying this formula here, we have,
L = x(cos2x2)(cos2x2)dxx\left( -\dfrac{\cos 2x}{2} \right)-\int{\left( -\dfrac{\cos 2x}{2} \right)}dx
L = x(cos2x2)+(cos2x2)dx-x\left( \dfrac{\cos 2x}{2} \right)+\int{\left( \dfrac{\cos 2x}{2} \right)}dx
We will now use the formula, cosnxdx=sinnxn\int{\cos nxdx=\dfrac{\sin nx}{n}}
L = x(cos2x2)+12(sin2x2)-x\left( \dfrac{\cos 2x}{2} \right)+\dfrac{1}{2}\left( \dfrac{\sin 2x}{2} \right)
L = x(cos2x2)+14(sin2x)-x\left( \dfrac{\cos 2x}{2} \right)+\dfrac{1}{4}\left( \sin 2x \right)
Further, since this is an indefinite integral, we need to have an integration constant to the final answer. Hence, the correct answer is x(cos2x2)+14(sin2x)-x\left( \dfrac{\cos 2x}{2} \right)+\dfrac{1}{4}\left( \sin 2x \right) + c. Here, c is a constant.

Note: In general, if we have to solve the integration of the form xnsinnxdx\int{{{x}^{n}}\sin nx dx}, we have to perform the integration by part n number of times. This can be observed in the solution as by performing integration by parts, we would have xn(cosnxn)nxn1(cosnxn)dx{{x}^{n}}\left( -\dfrac{\cos nx}{n} \right)-\int{n{{x}^{n-1}}\left( -\dfrac{\cos nx}{n} \right)}dx. Thus, we can see that we have to differentiate the term xn{{x}^{n}}, n number of times for x to disappear. Further, we have to remember to add the integration constant at the end since integration is basically the reverse of differentiation. Thus, since, the differentiation of a constant term is 0 and such any answer say x(cos2x2)+14(sin2x)-x\left( \dfrac{\cos 2x}{2} \right)+\dfrac{1}{4}\left( \sin 2x \right) + 2, x(cos2x2)+14(sin2x)-x\left( \dfrac{\cos 2x}{2} \right)+\dfrac{1}{4}\left( \sin 2x \right) + 5 or any other term would be correct. Thus, we represent the end term by a general constant term, c.