Derivatives of exponentials and logarithms: formulas, composition, and domains
Apply exponential and logarithmic derivative formulas with the product, quotient, and chain rules, distinguishing ln u from ln|u|.
Content updated: October 22, 2026
The derivative of an exponential retains the exponential function, whereas the derivative of a logarithm involves the reciprocal of its argument. For a composite function, multiply by the inner derivative; domain conditions remain necessary after differentiation.
Objectives: use formulas on the correct domains; apply the product, quotient, and chain rules; distinguish ln u from ln|u|.
Prerequisites: basic derivatives, the product, quotient, and chain rules, powers, and logarithms.
On this page: Idea · Method · Examples · Practice · Further learning
1. Formulas and domains
For $a>0$, $a\ne1$, the basic formulas are
The denominator $\ln a$ is not 0, since $a\ne1$. For $x\ne0$, we also have
For $x<0$, write $\ln|x|=\ln(-x)$ and use the chain rule: its derivative is $(-1)/(-x)=1/x$. This formula does not make $\ln x$ defined at negative inputs.
The exponential derivative formula also gives derivative 0 at $a=1$, but logarithmic formulas must always exclude base 1. These formulas concern real calculus.
2. Composite functions and checking results
Suppose $u$ is differentiable on an interval. Then
For $\log_a u(x)$ or $\log_a|u(x)|$, divide the corresponding natural-logarithm formula by $\ln a$, retaining the same argument conditions. Do not differentiate across a point $u(x)=0$, where the logarithm does not exist.
For an expression involving several operations, state its domain, identify the outermost operation, and apply the product or quotient rule before simplifying. Identical exponential factors may be collected to check coefficients. In the quotient rule, the new denominator is the square of the original denominator, but the domain remains the original one.
3. Worked examples
Example 1. A polynomial times an exponential
Let $y=(x^2-2x+2)e^x$, defined for every real $x$. By the product rule,
Since $e^x>0$, the derivative is nonnegative and equals 0 only at $x=0$. Check the calculation by adding the polynomials $(2x-2)+(x^2-2x+2)=x^2$.
Example 2. A quotient of exponential expressions
Let $y=(e^x-e^{-x})/(e^x+e^{-x})$. The denominator is positive for every $x$, so the domain is $\mathbb R$. Set $A=e^x$ and $B=e^{-x}$; then $AB=1$, $(A-B)^{\prime}=A+B$, and $(A+B)^{\prime}=A-B$. By the quotient rule,
The plus sign in the numerator's derivative comes from differentiating $-e^{-x}$; omitting it changes the result. The derivative is always positive because its denominator is the square of a positive number.
Example 3. The logarithm of an absolute value
Let $y=\ln|2x-1|$, with domain $x\ne1/2$. The inner derivative is 2, so $y^{\prime}=2/(2x-1)$ on each interval of the domain. If the function were $\ln(2x-1)$ instead, the same derivative formula would apply only for $x>1/2$.
4. Practice exercises
- Differentiate $y=3^{2x-1}$.
- Find the domain and derivative of $y=\log_2(x^2-1)$.
- Differentiate $y=x\ln x$ and state its domain.
Show hints and answers
- $y^{\prime}=2\ln3\cdot3^{2x-1}$ for every real $x$.
- We require $x^2-1>0$, so $x<-1$ or $x>1$. The derivative is $2x/[(x^2-1)\ln2]$ on that domain; inputs $-1<x<1$ are not allowed even though the derivative's rational expression can be evaluated there.
- The domain is $x>0$. The product rule implies $y^{\prime}=\ln x+1$.
5. Common mistakes
Retain the inner derivative. Do not incorrectly differentiate $e^{-x}$ as $e^{-x}$. Distinguish the domains of ln u and ln|u|; a simplified derivative formula does not enlarge the original function's domain.
Leave a Reply