Skip to content
ihateDesmos

Derivative of x eˣ

Updated 6 November 2026 · Checked numerically by the ihateDesmos engine
The derivative of x eˣ
ddx(xex)=(x+1)ex

The derivative of x eˣ is eˣ(x + 1). The eˣ stays, and the product rule adds an extra term.

−4−3−2−11240
Open in calculator
y=xex
in blue and its derivative
y=(x+1)ex
in red.

How to find the derivative of x eˣ

Method: product rule.

  1. 1
    Use the product rule, with f = x and g = eˣ.
  2. 2
    f′ = 1 and g′ = eˣ.
  3. 3
    So the derivative is 1 · eˣ + x · eˣ.
  4. 4
    Factor out eˣ: eˣ(x + 1).

What it means on the graph

The derivative is zero at x = −1, which is the minimum of x eˣ, with a value of −1/e. Repeating the derivative adds 1 each time: the nth derivative is eˣ(x + n).

In the window shown, the derivative is zero at x = −1. Those are the points where the graph of x eˣ has a horizontal tangent.

Table of values

The derivative column uses the formula. The last column estimates the slope directly from the original function, as an independent check.

Values of x eˣ and its derivative
xx eˣeˣ(x + 1)Slope, measured
−3−0.149361−0.0995741−0.0995741
−1−0.36787900
0011
1e2e2e

Second derivative

Differentiating once more gives:

d2dx2(xex)=(x+2)ex

The second derivative tells you which way the graph bends: positive means it curves upward, and negative means it curves downward.

Related derivatives

The same result with the chain or product rule. Each of these is checked numerically too.

Related derivatives
FunctionDerivative
xe2x
e2x(2x+1)
x2ex
(x2+2x)ex

Common mistakes

  • Writing eˣ, which only differentiates one factor.

Frequently asked questions

What is the derivative of x eˣ?
The derivative of x eˣ is eˣ(x + 1).
What is the second derivative of x eˣ?
Differentiate eˣ(x + 1) again to get the second derivative. The result is shown on this page under “Second derivative”.

Keep going

Differentiate any function

Type your own function into the derivative calculator and see every rule applied, step by step.

Open the derivative calculator