Background image of landing

Unrivalled
Education
Solutions for your
Family

How to integrate x^2*sin(x)?

To integrate the function x2sin(x)x^2 \sin(x), we will use the technique known as integration by parts.

Integration by parts is a method employed to integrate the product of two functions. This technique involves selecting one function to differentiate and the other to integrate. The formula for integration by parts is given by:

udv=uvvdu\int u \, dv = uv - \int v \, du

In this formula, uu and vv are functions of xx, and du/dxdu/dx and dv/dxdv/dx denote their respective derivatives.

For the integration of x2sin(x)x^2 \sin(x), we can set:

  • u=x2u = x^2
  • dv=sin(x)dxdv = \sin(x) \, dx

Calculating the derivatives, we find:

  • du=2xdxdu = 2x \, dx
  • v=cos(x)v = -\cos(x) (since the integral of sin(x)\sin(x) is cos(x)-\cos(x)).

Substituting these into the integration by parts formula, we obtain:

x2sin(x)dx=x2cos(x)+2xcos(x)dx\int x^2 \sin(x) \, dx = -x^2 \cos(x) + \int 2x \cos(x) \, dx

Next, we need to integrate the term 2xcos(x)dx\int 2x \cos(x) \, dx. For this, we will again apply integration by parts. We choose:

  • u=2xu = 2x
  • dv=cos(x)dxdv = \cos(x) \, dx

Calculating the derivatives gives us:

  • du=2dxdu = 2 \, dx
  • v=sin(x)v = \sin(x) (since the integral of cos(x)\cos(x) is sin(x)\sin(x)).

Applying the integration by parts formula once more, we have:

2xcos(x)dx=2xsin(x)2sin(x)dx\int 2x \cos(x) \, dx = 2x \sin(x) - \int 2 \sin(x) \, dx

Now, we compute the integral 2sin(x)dx\int 2 \sin(x) \, dx:

2sin(x)dx=2cos(x)\int 2 \sin(x) \, dx = -2 \cos(x)

Putting it all together, we substitute back into our previous expression:

x2sin(x)dx=x2cos(x)+2xsin(x)(2cos(x))\int x^2 \sin(x) \, dx = -x^2 \cos(x) + 2x \sin(x) - (-2 \cos(x))

This simplifies to:

x2sin(x)dx=x2cos(x)+2xsin(x)+2cos(x)+C\int x^2 \sin(x) \, dx = -x^2 \cos(x) + 2x \sin(x) + 2 \cos(x) + C

where CC is the constant of integration. Thus, the final result for the integral of x2sin(x)x^2 \sin(x) is:

x2sin(x)dx=x2cos(x)+2xsin(x)+2cos(x)+C\int x^2 \sin(x) \, dx = -x^2 \cos(x) + 2x \sin(x) + 2 \cos(x) + C
Answered by: Dr. Michael Green
A-Level Maths Tutor
Medal Icon

100%

Globe Icon

Global

Crest Icon

97%

Professional Tutors

International Tuition

Independent School Entrance Success

All of our elite tutors are full-time professionals, with at least five years of tuition experience and over 5000 accrued teaching hours in their subject.

Based in Cambridge, with operations spanning the globe, we can provide our services to support your family anywhere.

Our families consistently gain offers from at least one of their target schools, including Eton, Harrow, Wellington and Wycombe Abbey.

Medal Icon

100%

Professional Tutors

All of our elite tutors are full-time professionals, with at least five years of tuition experience and over 5000 accrued teaching hours in their subject.

Globe Icon

Global

International Tuition

Based in Cambridge, with operations spanning the globe, we can provide our services to support your family anywhere.

Crest Icon

97%

Independent School Entrance Success

Our families consistently gain offers from at least one of their target schools, including Eton, Harrow, Wellington and Wycombe Abbey.

Book a free
30-minute consultation
session

At the Beyond Tutors we recognise that no two students are the same. 

That’s why we’ve transcended the traditional online tutoring model of cookie-cutter solutions to intricate educational problems. Instead, we devise a bespoke tutoring plan for each individual student, to support you on your path to academic success.

To help us understand your unique educational needs, we provide a free 30-minute consultation with one of our founding partners, so we can devise the tutoring plan that’s right for you.

To ensure we can best prepare for this consultation, we ask you to fill out the short form below.

Hire a Tutor

All the form fields are optional, but we ask you to provide as much information as possible so that we are in a better position to quickly meet your tutoring requirements.

Still have questions?
Let's get in touch