Skip to content
ihateDesmos

Derivative of e^(x²)

Updated 6 November 2026 · Checked numerically by the ihateDesmos engine
The derivative of e^(x²)
ddx(ex2)=2xex2

The derivative of e^(x²) is 2x e^(x²). The exponential stays as it is, and the chain rule multiplies it by the derivative of x², which is 2x.

−1.5−1.0−0.50.51.01.5−550
Open in calculator
y=ex2
in blue and its derivative
y=2xex2
in red.

How to find the derivative of e^(x²)

Method: chain rule.

  1. 1
    Let u = x², so the function is eᵘ.
  2. 2
    The derivative of eᵘ with respect to u is eᵘ.
  3. 3
    The derivative of the inside function is du/dx = 2x.
  4. 4
    Multiply them: e^(x²) · 2x = 2x e^(x²).

What it means on the graph

The curve has a minimum at x = 0, where the derivative is zero, and grows extremely fast either side. Interestingly, while this derivative is easy, the integral of e^(x²) has no formula in elementary functions.

In the window shown, the derivative is zero at x = 0. Those are the points where the graph of e^(x²) 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 e^(x²) and its derivative
xe^(x²)2x e^(x²)Slope, measured
−1e−2e−2e
−1/21.28403−1.28403−1.28403
0100
1/21.284031.284031.28403
1e2e2e

Second derivative

Differentiating once more gives:

d2dx2(ex2)=(2+4x2)ex2

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
e−x2
−2xe−x2
ex3
3x2ex3

Common mistakes

  • Writing e^(x²) on its own, without the 2x.
  • Writing x²·e^(x² − 1), which misuses the power rule.

Frequently asked questions

What is the derivative of e^(x²)?
The derivative of e^(x²) is 2x e^(x²).
What is the second derivative of e^(x²)?
Differentiate 2x e^(x²) 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