AP Calculus AB and BC

Derivative of x e^x: Answer, Product Rule, Mistakes

The derivative of x times e^x with respect to x is e^x(x + 1). The product rule gives 1 times e^x plus x times e^x, and factoring out the common e^x leaves e^x(x + 1). The answer is not e^x, which would come from wrongly multiplying the two derivatives.

ddx[xex]=ex(x+1)\frac{d}{dx}\left[xe^x\right] = e^x(x+1)

How to differentiate x e^x

This is a product of xx and exe^{x}, so the product rule applies: differentiate each factor once while keeping the other fixed, then add.

ddx[f(x)g(x)]=f(x)g(x)+f(x)g(x)\frac{d}{dx}\left[f(x)g(x)\right] = f'(x)g(x) + f(x)g'(x)

Take f(x)=xf(x) = x and g(x)=exg(x) = e^{x}, so f(x)=1f'(x) = 1 and g(x)=exg'(x) = e^{x}, since the exponential is its own derivative.

ddx(xex)=1ex+xex\frac{d}{dx}\left(xe^{x}\right) = 1\cdot e^{x} + x\cdot e^{x}

Both terms share a factor of exe^{x}, so factor it out for the cleanest form.

ex+xex=ex(x+1)e^{x} + xe^{x} = e^{x}(x+1)

What the factored form tells you

Written as ex(x+1)e^{x}(x+1), the derivative is 00 only where x+1=0x + 1 = 0, since exe^{x} is never zero. So xexxe^{x} has exactly one critical point, at x=1x = -1.

The derivative is negative for x<1x < -1 and positive for x>1x > -1, so the function falls then rises and x=1x = -1 is a minimum. That minimum value is e1-e^{-1}, a number that turns up often in optimization problems.

The reverse operation is integration by parts: xexdx=ex(x1)+C\int xe^{x}\,dx = e^{x}(x-1) + C, closely related to the derivative but with a minus inside.

Where the derivative of x e^x shows up on the AP exam

The product rule is Topic 2.8, on both AB and BC, and pairing a polynomial with exe^{x} is a favorite example because exe^{x} differentiates to itself, so the factoring step is clean.

Common mistakes with the derivative of x e^x

  • Answering exe^{x}, multiplying the derivatives 11 and exe^{x} instead of using the product rule.
  • Answering xexxe^{x} and keeping only the second term, dropping the 1ex1\cdot e^{x}.
  • Answering ex(x1)e^{x}(x-1), which is the antiderivative, not the derivative. The derivative factors to ex(x+1)e^{x}(x+1).

Check yourself, not just the answer

Type derivatives and get graded on mathematical equivalence, with rule-level hints when you miss, in the Derivative Practice Checker.

Frequently asked questions

What is the derivative of x e^x?

ddx(xex)=ex(x+1)\frac{d}{dx}(xe^{x}) = e^{x}(x+1). The product rule gives 1ex+xex=ex+xex1\cdot e^{x} + x\cdot e^{x} = e^{x} + xe^{x}, and factoring out exe^{x} yields ex(x+1)e^{x}(x+1).

Why does e^x factor out?

Both terms of ex+xexe^{x} + xe^{x} contain exe^{x}, so it is a common factor. Pulling it out gives ex(1+x)e^{x}(1 + x), the standard simplified form and the easiest one for finding critical points.

Where is x e^x minimized?

Set the derivative ex(x+1)e^{x}(x+1) to 00. Since ex0e^{x} \ne 0, this needs x=1x = -1, where the function reaches its minimum value e10.368-e^{-1} \approx -0.368.