y=xexy = x e^{-x}

Graph of the Function y=xexy = x e^{-x}

y=xexy = x e^{-x} is the product of the linear term xx and the decaying exponential exe^{-x}. Its domain is all real numbers and it passes through the origin (0,0)(0, 0); it is positive for x>0x > 0 and negative for x<0x < 0.

The factor xx tries to grow with xx, while exe^{-x} tries to push the value toward 00. The result of this tug-of-war is the characteristic shape that rises to a hump and then approaches 00. By the product rule, the derivative is

y=(1x)ex.y' = (1 - x)e^{-x}.

Since ex>0e^{-x} > 0, the sign is governed by 1x1 - x: increasing for x<1x < 1 and decreasing for x>1x > 1. Hence there is a maximum at x=1x = 1 with value 1e1=1e0.3681 \cdot e^{-1} = \dfrac{1}{e} \approx 0.368.

As x+x \to +\infty, the exponential decay beats the linear growth, so the function approaches 00 and the xx-axis is a horizontal asymptote. As xx \to -\infty, with x<0x < 0 and ex+e^{-x} \to +\infty, it diverges to -\infty. The second derivative y=(x2)exy'' = (x - 2)e^{-x} changes sign at x=2x = 2, which is therefore an inflection point (value 2e20.2712e^{-2} \approx 0.271).

Representative values are listed below; beyond the hump it tapers gently toward 00.

  • x=0y=0x = 0 \Rightarrow y = 0
  • x=1y=1e0.368x = 1 \Rightarrow y = \dfrac{1}{e} \approx 0.368 (maximum)
  • x=2y=2e20.271x = 2 \Rightarrow y = \dfrac{2}{e^2} \approx 0.271 (inflection)
  • x=3y=3e30.149x = 3 \Rightarrow y = \dfrac{3}{e^3} \approx 0.149

This is the simplest example (k=1k = 1) of the form xkexx^k e^{-x} and shares its skeleton with the probability densities of the gamma and Erlang distributions. It is widely used to model phenomena where a growing factor competes with a decaying one, as in queueing theory, signal processing, and chains of radioactive decay.