Derivatives: rules and functions

Increase, decrease and graph shape (exp and log functions)

For functions with e−xe^{-x} or log⁡x\log x as well, the sign of y′y' tells you where the function increases, decreases and has extrema.

(xne−x)′=xn−1(n−x)e−x(x^n e^{-x})'=x^{n-1}(n-x)e^{-x}

Differentiating y=xne−xy=x^n e^{-x} with the product rule lets you factor out e−xe^{-x}.

(xne−x)′=(nxn−1−xn)e−x=xn−1(n−x)e−x\begin{gathered} (x^n e^{-x})' \\[4pt] =(nx^{n-1}-x^n)e^{-x} \\[4pt] =x^{n-1}(n-x)e^{-x} \end{gathered}

Since e−x>0e^{-x}>0, the sign of y′y' is decided by xn−1(n−x)x^{n-1}(n-x) alone. For y=xe−xy=xe^{-x}, y′=(1−x)e−xy'=(1-x)e^{-x} changes from positive to negative at x=1x=1, so there is a local maximum 1e\frac{1}{e} at x=1x=1.

For a function with log⁡x\log x, first check the domain x>0x>0. For y=log⁡xxy=\frac{\log x}{x}, y′=1−log⁡xx2y'=\frac{1-\log x}{x^2}, and the local maximum is 1e\frac{1}{e} at x=ex=e.

Examples

  1. 01For which x is y'=0? (other than 0)y=x2e−x,  y′=x1(2−x)e−x\displaystyle y=x^{2}e^{-x},\; y'=x^{1}(2-x)e^{-x}AnswerHide
    Answer2\displaystyle 2
  2. 02Differentiate:y=x3e−x\displaystyle y=x^{3}e^{-x}AnswerHide
    Answer(3x2−x3)e−x\displaystyle (3x^{2}-x^{3})e^{-x}
  3. 03What is the domain?y=xlog⁡ex\displaystyle y=x\log_e xAnswerHide
    Answerx>0\displaystyle x > 0
  4. 04For which x is y'=0?y=xe−x,  y′=(1−x)e−x\displaystyle y=xe^{-x},\; y'=(1-x)e^{-x}AnswerHide
    Answer1\displaystyle 1
  5. 05Differentiate:y=x2e−x\displaystyle y=x^{2}e^{-x}AnswerHide
    Answer(2x−x2)e−x\displaystyle (2x-x^{2})e^{-x}
  6. 06Differentiate:y=log⁡exx\displaystyle y=\frac{\log_e x}{x}AnswerHide
    Answer1−log⁡exx2\displaystyle \frac{1-\log_e x}{x^{2}}

FAQ

Q1How do I find the sign of y′=(1−x)e−xy'=(1-x)e^{-x}?AnswerHide
A
e−xe^{-x} is always positive, so the sign depends only on 1−x1-x: positive for x<1x<1 and negative for x>1x>1.
Q2Does the sign table for y=xlog⁡xy=x\log x include x<0x<0?AnswerHide
A
No. log⁡x\log x is defined only for x>0x>0, so the table covers x>0x>0 only.

Published 2026-10-14 · Updated 2026-10-14