practicecalculus
Exponential and log derivatives

Derivative of xeˣ: Formula, Steps and Examples

The derivative of xeˣ is eˣ(x + 1). See the product rule steps, the minimum at x = −1, the nth derivative pattern, a graph and worked examples.

Exponential and log derivatives Updated 2 min read

At a glance

\frac{d}{dx}\,xe^x = e^x(x + 1)
Derivative
e^x(x + 1)
Second derivative
e^x(x + 2)
nth derivative
e^x(x + n)
Minimum
x = -1, value -\frac{1}{e} \approx -0.368
Integral
\int xe^x\,dx = e^x(x - 1) + C
On this page
  1. Step by step with the product rule
  2. Graph of xeˣ and its derivative
  3. Minimum and inflection point
  4. The nth derivative pattern
  5. Worked examples
  6. Common mistakes

The derivative of xe^x is e^x(x + 1). It is a product of x and e^x, so the product rule is the tool to use.

\frac{d}{dx}\,xe^x = e^x + xe^x = e^x(x + 1)

Step by step with the product rule

With f = x and g = e^x, the product rule (fg)' = f'g + fg' gives:

  1. f' = 1.
  2. g' = e^x, since the derivative of eˣ is itself.
  3. Combine: 1\cdot e^x + x\cdot e^x = e^x + xe^x.
  4. Factor out e^x: e^x(x + 1).

The factored form is more useful. Because e^x is never zero, the derivative is zero only where x + 1 = 0.

Graph of xeˣ and its derivative

Graph of y = xeˣ and its derivative y = eˣ(x + 1)
The function has its lowest point at x = -1, where the derivative crosses zero. To the left it flattens toward 0; to the right it shoots up.

Minimum and inflection point

Minimum. The derivative e^x(x + 1) is negative for x < -1 and positive for x > -1. So x = -1 is a minimum, with value

(-1)e^{-1} = -\frac{1}{e} \approx -0.368

Inflection point. The second derivative is

\frac{d}{dx}\,e^x(x + 1) = e^x(x + 1) + e^x = e^x(x + 2)

It changes sign at x = -2, so the graph switches from concave down to concave up there. The point is \left(-2, -\frac{2}{e^2}\right) \approx (-2, -0.271).

The nth derivative pattern

Every time you differentiate e^x(x + k), you get e^x(x + k) + e^x = e^x(x + k + 1). So:

Derivative Result
f'(x) e^x(x + 1)
f''(x) e^x(x + 2)
f'''(x) e^x(x + 3)
f^{(n)}(x) e^x(x + n)

Worked examples

Example 1: decaying version. For f(x) = xe^{-x}, use the chain rule on e^{-x} (see e^(−x)):

f'(x) = e^{-x} - xe^{-x} = e^{-x}(1 - x)

Now the critical point is a maximum at x = 1.

Example 2: a bigger power. For g(x) = x^2e^x,

g'(x) = 2xe^x + x^2e^x = xe^x(x + 2)

Critical points are at x = 0 and x = -2.

Example 3: a scaled exponent. For h(x) = xe^{3x},

h'(x) = e^{3x} + 3xe^{3x} = e^{3x}(1 + 3x)

Example 4: a tangent line. At x = 0, xe^x = 0 and the slope is e^0(0 + 1) = 1. The tangent line is y = x.

Common mistakes

  1. Multiplying the two derivatives. 1\cdot e^x = e^x is not the product rule; it drops the xe^x term.
  2. Writing xe^x as the answer. The derivative of e^x is e^x, but the product with x still needs the product rule.
  3. Not factoring. Leaving e^x + xe^x is correct, but factoring makes it far easier to find critical points.

Going backwards, \int xe^x\,dx = e^x(x - 1) + C by integration by parts; see the integral of xeˣ. Check it: \frac{d}{dx}e^x(x - 1) = e^x(x - 1) + e^x = xe^x. Practise with product and quotient rule problems.

Practice it now

The product rule

Solve real problems on this topic with instant feedback, hints and a step-by-step walkthrough for every answer. Free, no sign-up needed to start.

Practice this lesson

Frequently asked questions

What is the derivative of xe^x?

The derivative of xe^x is e^x + xe^x, which factors as e^x(x + 1).

What is the second derivative of xe^x?

Differentiate e^x(x + 1) with the product rule: e^x(x + 1) + e^x = e^x(x + 2).

What is the nth derivative of xe^x?

It is e^x(x + n). Each derivative adds one more e^x term.

What is the derivative of xe^(−x)?

By the product rule, e^{-x} - xe^{-x} = e^{-x}(1 - x).

Written by the PracticeCalculus team

We build interactive calculus lessons and write every page to be clear and correct. Spotted something off? Tell us and we will fix it.