The product rule

A function in the form of a product is not differentiated by differentiating each factor and multiplying1. We check it with f(x)=xexf(x) = xe^{-x}.

The formula

(uv)=uv+uv(uv)' = u'v + uv'

Taking u=xu = x and v=exv = e^{-x} gives u=1u' = 1 and v=exv' = -e^{-x}, so the derivative is as follows.

f(x)=1ex+x(ex)=(1x)exf'(x) = 1 \cdot e^{-x} + x \cdot (-e^{-x}) = (1 - x)e^{-x}

Note that this is not the same as uv=exu'v' = -e^{-x}.

Monotonicity

Since ex>0e^{-x} > 0, the sign is decided by 1x1 - x alone.

Rangeff'Behavior
x<1x < 1positiveincreasing
x>1x > 1negativedecreasing

At x=1x = 1 the function has its local maximum f(1)=1e0.368f(1) = \dfrac{1}{e} \approx 0.368.

Behavior far out

As xx \to \infty the decay of exe^{-x} beats the growth of xx, so f0f \to 0. As xx \to -\infty the factor xx is negative and exe^{-x} is large, so ff \to -\infty.

Differentiating once more

The same formula gives the second derivative.

f(x)=ex(1x)ex=(x2)exf''(x) = -e^{-x} - (1 - x)e^{-x} = (x - 2)e^{-x}

The sign changes at x=2x = 2, so the inflection point is (2,2e2)\left( 2, \dfrac{2}{e^2} \right), numerically (2,0.271)(2, 0.271).

xxf(x)f(x)Position
0000passes through the origin
111e0.368\dfrac{1}{e} \approx 0.368local maximum
222e20.271\dfrac{2}{e^2} \approx 0.271inflection point

Why the formula holds

The area of a rectangle makes it visible. For a rectangle with sides uu and vv, increasing uu by Δu\Delta u and vv by Δv\Delta v increases the area by the following.

uΔv+vΔu+ΔuΔvu\Delta v + v\Delta u + \Delta u \Delta v

The last term is a product of two small quantities, so dividing by Δx\Delta x and letting it go to 00 makes it vanish. What remains is uv+uvu'v + uv'.

Applications

Functions of this form appear wherever a quantity grows while decaying. The expression xexxe^{-x} is used as a distribution of waiting times, and the position x=1x = 1 of its peak is the most likely value.

The humped curve on the graph is y=xexy = xe^{-x}, the curve crossing it is the derivative, and the large dots are the local maximum and the origin.

  1. Product rule, Wikipedia