Skip to content
Exercise 7.6 · Q1

Q.Integrate the following function: xsin⁡xx \sin x

Uttar Pradesh UpmspTextbookSubjective· 3mImportance★★★★★
42% · 158/373 Questions
✓ Free question

The integral of xsin⁡xx \sin x is solved using integration by parts (the product rule in reverse). Choosing u=xu = x and dv=sin⁡x dxdv = \sin x\,dx gives the result ∫xsin⁡x dx=sin⁡x−xcos⁡x+C\int x \sin x\,dx = \sin x - x \cos x + C.

Why integration by parts?

When you see a product of two different kinds of functions — here a polynomial (xx) and a trigonometric function (sin⁡x\sin x) — the standard tool is integration by parts. It comes from the product rule for derivatives:

ddx(uv)=udvdx+vdudx\frac{d}{dx}(uv) = u \frac{dv}{dx} + v \frac{du}{dx}

Rearranging and integrating both sides gives the formula:

∫u dv=uv−∫v du\int u \, dv = uv - \int v \, du

The art is in choosing which part to call uu and which to call dvdv. A good rule of thumb: pick uu to be the function that simplifies when differentiated, and dvdv to be the one that doesn't get more complicated when integrated.

Here, xx becomes simpler when differentiated (it becomes 11), while sin⁡x\sin x integrates nicely to −cos⁡x-\cos x. So we set:

  • u=xu = x
  • dv=sin⁡x dxdv = \sin x \, dx

Step-by-step

1. Differentiate uu and integrate dvdv

du=dxv=∫sin⁡x dx=−cos⁡xdu = dx \qquad v = \int \sin x \, dx = -\cos x

(We can ignore the constant of integration here; it will be absorbed at the end.)

2. Apply the integration by parts formula

∫xsin⁡x dx=uv−∫v du=x(−cos⁡x)−∫(−cos⁡x) dx\int x \sin x \, dx = u v - \int v \, du = x(-\cos x) - \int (-\cos x) \, dx

3. Simplify the expression

The minus signs need care:

=−xcos⁡x+∫cos⁡x dx= -x \cos x + \int \cos x \, dx

4. Integrate cos⁡x\cos x

∫cos⁡x dx=sin⁡x+C\int \cos x \, dx = \sin x + C

5. Write the final result

∫xsin⁡x dx=−xcos⁡x+sin⁡x+C\int x \sin x \, dx = -x \cos x + \sin x + C

Tip

A quick check: differentiate sin⁡x−xcos⁡x\sin x - x \cos x. Using the product rule on −xcos⁡x-x \cos x gives −cos⁡x+xsin⁡x-\cos x + x \sin x, and the derivative of sin⁡x\sin x is cos⁡x\cos x. The cos⁡x\cos x terms cancel, leaving xsin⁡xx \sin x — perfect.

Watch out

A common mistake is to swap the roles: if you set u=sin⁡xu = \sin x and dv=x dxdv = x\,dx, then du=cos⁡x dxdu = \cos x\,dx and v=x22v = \frac{x^2}{2}. The resulting integral ∫x22cos⁡x dx\int \frac{x^2}{2} \cos x\,dx is harder than the original — always choose uu so that dudu is simpler.

✓Final answer

The integral is sin⁡x−xcos⁡x+C\boxed{\sin x - x \cos x + C}.

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.