AP Calculus AB and BC

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

The derivative of x squared times e^x with respect to x is e^x(x^2 + 2x). The product rule gives 2x times e^x plus x squared times e^x, and factoring out the common e^x leaves e^x(x^2 + 2x). The answer is not 2x e^x, which keeps only one of the two terms.

ddx[x2ex]=ex(x2+2x)\frac{d}{dx}\left[x^2 e^x\right] = e^x(x^2+2x)

How to differentiate x^2 e^x

This is a product of x2x^{2} and exe^{x}, so the product rule applies: differentiate each factor once while holding 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)=x2f(x) = x^{2} and g(x)=exg(x) = e^{x}, so f(x)=2xf'(x) = 2x and g(x)=exg'(x) = e^{x}, since the exponential is its own derivative.

ddx(x2ex)=2xex+x2ex\frac{d}{dx}\left(x^{2}e^{x}\right) = 2x\cdot e^{x} + x^{2}\cdot e^{x}

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

2xex+x2ex=ex(x2+2x)2xe^{x} + x^{2}e^{x} = e^{x}(x^{2} + 2x)

What the factored form tells you

Written as ex(x2+2x)=exx(x+2)e^{x}(x^{2} + 2x) = e^{x}\cdot x(x+2), the derivative is 00 only where x(x+2)=0x(x+2) = 0, since exe^{x} is never zero. So x2exx^{2}e^{x} has two critical points, at x=0x = 0 and x=2x = -2.

The reverse operation is integration by parts applied twice: x2exdx=ex(x22x+2)+C\int x^{2}e^{x}\,dx = e^{x}(x^{2} - 2x + 2) + C. Note the derivative and the antiderivative are different polynomials in front of exe^{x}.

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

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

Common mistakes with the derivative of x^2 e^x

  • Answering 2xex2xe^{x}, multiplying the derivatives 2x2x and exe^{x} instead of using the product rule.
  • Answering 2xex2xe^{x} by keeping only the first term and dropping x2exx^{2}e^{x}.
  • Answering ex(x22x+2)e^{x}(x^{2} - 2x + 2), which is the antiderivative, not the derivative.

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^2 e^x?

ex(x2+2x)e^{x}(x^{2} + 2x). The product rule gives 2xex+x2ex2xe^{x} + x^{2}e^{x}, and factoring out exe^{x} yields ex(x2+2x)e^{x}(x^{2} + 2x).

What are the critical points of x^2 e^x?

Set ex(x2+2x)=0e^{x}(x^{2} + 2x) = 0. Since ex0e^{x} \ne 0, solve x(x+2)=0x(x+2) = 0 to get x=0x = 0 and x=2x = -2.

What is the integral of x^2 e^x?

x2exdx=ex(x22x+2)+C\int x^{2}e^{x}\,dx = e^{x}(x^{2} - 2x + 2) + C, by integration by parts applied twice.