How to Integrate xe^x: Steps & Tutorial

An error occurred trying to load this video.

Try refreshing the page, or contact customer support.

Coming up next: How to Integrate sec(5x): Steps & Tutorial

You're on a roll. Keep up the good work!

Watch Next Lesson
Your next lesson will play in 10 seconds
  • 0:00 Solve Using the Product Rule
  • 1:40 Integration by Parts
  • 2:38 The Other Choice for…
  • 3:38 A Reduction Formula
  • 5:49 Lesson Summary
Add to Add to Add to

Want to watch this again later?

Log in or sign up to add this lesson to a Custom Course.

Login or Sign up


Recommended Lessons and Courses for You

Lesson Transcript
Instructor: Gerald Lemay

Gerald has taught engineering, math and science and has a doctorate in electrical engineering.

In this lesson, we use the product rule and integration by parts to find the integral of xe^x. The natural extension of integration by parts leads to a reduction formula which elegantly extends the integration results.

Solving Using the Product Rule

Let's start by differentiating xex using the product rule. According to this rule, we take the derivative of the first function multiplied with the second function and add the first function multiplied with the derivative of the second. This sounds more complicated than it is, so let's look at an example:


On the right-hand side, the derivative of x is 1 and the derivative of ex is ex.

To clean up the right-hand side:


Now, we integrate both sides:


On the left-hand side, the integral 'undoes' the derivative, so the integral of d(xex) is xex.

And, on the right-hand side, the integral of the sum is the sum of the integrals:


This next part is a re-ordering of the three terms. We are looking for the integral of xex so we place this term on the left-hand side by itself.


(In the next section, we will refer to this equation as the integration by parts formula.)

The integral of ex is just ex.


The constant 'C' is appended to the answer because this is an indefinite integral with unspecified limits of integration. And we are done!

Of course, we could factor out the ex:


Now to check this answer, we differentiate and the result should be just xex.

Once again, we use the product rule:


and then expand and simplify:


The answer checks out!

Integration by Parts

So we now know what the answer is. What we've actually done by integrating the expansion of the product rule is to derive the integration by parts formula:


The key is selecting a u and dv which will reduce the complexity of the problem by giving us a simpler integral to solve. A good choice is:


For u = x, du = dx. For dv = ex dx, v = ex.

Substituting u, dv, v and du into the integration by parts formula:


Now simplifying, we have the following:


This gives us the same answer that we found before.

The Other Choice for u and dv

Let's explore what would have happened had we made the other choice for u and dv. This will actually lead to an interesting result.

Instead of u = x, we choose u = ex. Also, instead of dv = ex dx, we choose dv = x dx.

Thus, we now have du = ex dx and v = x2/2. Summarizing this other choice:


Note the left-hand side of the integration by parts formula is the same, but the right-hand side has an integral, which has increased in complexity.


But the integral on the left-hand side is our friend ex (x - 1):


Thus, we can multiply by 2 and isolate the more complicated integral on the left-hand side:


To unlock this lesson you must be a Member.
Create your account

Register for a free trial

Are you a student or a teacher?

Unlock Your Education

See for yourself why 30 million people use

Become a member and start learning now.
Become a Member  Back
What teachers are saying about
Free 5-day trial

Earning College Credit

Did you know… We have over 160 college courses that prepare you to earn credit by exam that is accepted by over 1,500 colleges and universities. You can test out of the first two years of college and save thousands off your degree. Anyone can earn credit-by-exam regardless of age or education level.

To learn more, visit our Earning Credit Page

Transferring credit to the school of your choice

Not sure what college you want to attend yet? has thousands of articles about every imaginable degree, area of study and career path that can help you find the school that's right for you.

Create an account to start this course today
Try it free for 5 days!
Create An Account