Question
Question: Evaluate the given integral – \(\int{x\sin 2xdx}\)...
Evaluate the given integral –
∫xsin2xdx
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=u∫vdx−∫dxdu(∫vdx)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=u∫vdx−∫dxdu(∫vdx)dx
In this case, u = x and v = sin2x, thus, we have,
L = ∫xsin2xdx
L = x∫sin2xdx−∫dxd(x)(∫sin2xdx)dx
We know that ∫sinnxdx=−ncosnx and dxd(xn)=nxn−1, thus, applying this formula here, we have,
L = x(−2cos2x)−∫(−2cos2x)dx
L = −x(2cos2x)+∫(2cos2x)dx
We will now use the formula, ∫cosnxdx=nsinnx
L = −x(2cos2x)+21(2sin2x)
L = −x(2cos2x)+41(sin2x)
Further, since this is an indefinite integral, we need to have an integration constant to the final answer. Hence, the correct answer is −x(2cos2x)+41(sin2x) + c. Here, c is a constant.
Note: In general, if we have to solve the integration of the form ∫xnsinnxdx, 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(−ncosnx)−∫nxn−1(−ncosnx)dx. Thus, we can see that we have to differentiate the term xn, 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(2cos2x)+41(sin2x) + 2, −x(2cos2x)+41(sin2x) + 5 or any other term would be correct. Thus, we represent the end term by a general constant term, c.