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

Complete study of x e^(−x)

#curve sketching#inflection point#number of solutions

Statement

Study f(x)=xe−xf(x)=xe^{-x} on R\mathbb{R}: limits, variations, convexity, graph. Deduce the number of real solutions of xe−x=axe^{-x}=a according to the real number aa.

Hint

f′(x)=(1−x)e−xf'(x)=(1-x)e^{-x}. For the limit at +∞+\infty, recall xex→0\frac{x}{e^x}\to0.

Show solutionHide solution

Solution

Limits. f(x)→−∞f(x)\to-\infty as x→−∞x\to-\infty (since x→−∞x\to-\infty and e−x→+∞e^{-x}\to+\infty), and f(x)=xex→0f(x)=\frac x{e^x}\to0 as x→+∞x\to+\infty, so y=0y=0 is a horizontal asymptote at +∞+\infty.

Variations. f′(x)=(1−x)e−xf'(x)=(1-x)e^{-x}: increasing on (−∞,1](-\infty,1], decreasing on [1,∞)[1,\infty). Maximum f(1)=1e≈0.368f(1)=\frac1e\approx0.368.

Convexity. f′′(x)=(x−2)e−xf''(x)=(x-2)e^{-x}: concave on (−∞,2](-\infty,2], convex on [2,∞)[2,\infty), inflection point at (2,2e2)\left(2,\frac2{e^2}\right).

Graph. It rises from −∞-\infty through the origin, peaks at (1,1e)\left(1,\frac1e\right), then decays to 00 from above (it is positive for x>0x>0 and negative for x<0x<0).

Number of solutions of xe−x=axe^{-x}=a.
- a>1ea>\frac1e: none,
- a=1ea=\frac1e: one (x=1x=1),
- 0<a<1e0<a<\frac1e: two (one in (0,1)(0,1), one in (1,∞)(1,\infty)),
- a≤0a\le0: one. For a=0a=0, x=0x=0. For a<0a<0: on (−∞,1](-\infty,1] the function increases from −∞-\infty to 1e\frac1e and takes the value aa exactly once (at a negative xx, since f(0)=0>af(0)=0>a), while on [1,∞)[1,\infty) it is positive, so it never equals aa.

Remark. The solutions of xe−x=axe^{-x}=a are given by the Lambert WW function: the equation is (−x)e−x=−a(-x)e^{-x}=-a, so x=−W(−a)x=-W(-a). The two real branches of WW correspond to the two monotonic pieces of ff on either side of x=1x=1.