AP Calculus AB and BC

Derivative of e^x/x: Answer, Proof, Mistakes

The derivative of e^x/x with respect to x is e^x(x - 1)/x^2. The quotient rule gives x times e^x minus e^x, all over x squared, and factoring e^x out of the numerator leaves e^x(x - 1)/x^2. The formula holds for every x except 0, where the original function is undefined.

ddx[exx]=ex(x1)x2\frac{d}{dx}\left[\frac{e^x}{x}\right] = \frac{e^x(x-1)}{x^2}

The proof: quotient rule, then factor e^x

With f(x)=exf(x) = e^x on top and g(x)=xg(x) = x underneath, f(x)=exf'(x) = e^x and g(x)=1g'(x) = 1.

ddx(exx)=exxex1x2=ex(x1)x2\frac{d}{dx}\left(\frac{e^x}{x}\right) = \frac{e^x\cdot x - e^x\cdot 1}{x^2} = \frac{e^x(x - 1)}{x^2}

Both numerator terms carry a factor of exe^x, because exe^x is its own derivative (Topic 2.7). Factoring it out is the last step graders expect, and it is what makes the sign of the derivative readable.

What the factored form tells you

ex>0e^x > 0 for every xx, and x2>0x^2 > 0 for every x0x \neq 0, so the sign of the derivative is the sign of x1x - 1 by itself.

The function decreases on x<0x < 0 and on 0<x<10 < x < 1, then increases for x>1x > 1. On the branch x>0x > 0 that makes x=1x = 1 a minimum.

e11=e2.718\frac{e^1}{1} = e \approx 2.718

There is a vertical asymptote at x=0x = 0. The numerator approaches 1 while the denominator approaches 0, so the quotient runs to ++\infty from the right and to -\infty from the left.

Common mistakes

  • Answering exe^x by differentiating the top and the bottom separately.
  • Reversing the numerator to ex(1x)x2\frac{e^x(1 - x)}{x^2}, which flips the sign everywhere.
  • Cancelling an xx from x1x - 1 against the x2x^2. The x1x - 1 is a difference, not a factor of xx, so nothing cancels.
  • Rewriting as exx1e^x x^{-1} and then keeping only one product rule term. Both survive: exx1exx2e^x x^{-1} - e^x x^{-2}, which factors straight back to ex(x1)x2\frac{e^x(x - 1)}{x^2}.

Check yourself, not just the answer

Type derivatives and get graded on mathematical equivalence, with rule-level hints when you miss, in the Derivative Practice Checker.

Frequently asked questions

What is the derivative of e^x/x?

It is ex(x1)x2\frac{e^x(x - 1)}{x^2}, from the quotient rule.

Where is e^x/x smallest?

At x=1x = 1 on the positive branch, where the value is ee. The derivative changes from negative to positive there, so it is a minimum.

What is the integral of e^x/x?

It has no elementary antiderivative. Mathematicians name it the exponential integral Ei(x)\mathrm{Ei}(x), and AP Calculus never asks you to find it, even though the derivative is routine.