Maths WorkshopMaths problems with full solutions
Exercise 167Calculus › Single-variable calculus › Differentiation › Optimisation and curve sketchingL1Added 4 Nov 2026

The maximum of xⁿe^(−x)

#extrema#inequalities#exponential#growth

Statement

Let n≥1n\ge1 be an integer.

  1. Find the maximum of f(x)=xne−xf(x)=x^ne^{-x} on [0,+∞)[0,+\infty).
  2. Deduce that ex≥(en)nxne^x\ge\left(\dfrac en\right)^nx^n for all x≥0x\ge0.
  3. Apply it with n=2n=2 to show that ex≥e24x2e^x\ge\dfrac{e^2}4x^2, and compare with ex≥1+x+x22e^x\ge1+x+\frac{x^2}2.
Hint

f′(x)=xn−1(n−x)e−xf'(x)=x^{n-1}(n-x)e^{-x}.

Show solutionHide solution

Solution

1. f′f' is positive on (0,n)(0,n) and negative on (n,∞)(n,\infty), so ff attains its maximum at x=nx=n:
max⁡f=f(n)=nne−n=(ne)n.\max f=f(n)=n^ne^{-n}=\left(\frac ne\right)^n.

2. xne−x≤(ne)nx^ne^{-x}\le\left(\frac ne\right)^n, i.e. ex≥(en)nxne^x\ge\left(\frac en\right)^nx^n.

3. For n=2n=2: ex≥e24x2≈1.85 x2e^x\ge\frac{e^2}4x^2\approx1.85\,x^2, with equality only at x=2x=2. Compare with the series bound ex≥1+x+x22e^x\ge1+x+\frac{x^2}2: for large xx the new bound is better (it grows like 1.85 x21.85\,x^2 against 0.5 x20.5\,x^2), while for small xx the series bound is better (the new one tends to 00).

Remark. Part 2 shows that exe^x dominates every power of xx in a quantitative way: exxn≥(en)n>0\dfrac{e^x}{x^n}\ge\left(\dfrac en\right)^n>0 for all x>0x>0, and the bound is sharp.