Skip to main content

Derivatives of exponentials and logarithms: formulas, composition, and domains

2026-10-22 Cùng Học Toán Comments: 0

Apply exponential and logarithmic derivative formulas with the product, quotient, and chain rules, distinguishing ln u from ln|u|.

High schoolPowers & Logarithms

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

$$\begin{aligned}(a^x)^{\prime}&=a^x\ln a,&(e^x)^{\prime}&=e^x,\\(\log_a x)^{\prime}&=\frac1{x\ln a},&(\ln x)^{\prime}&=\frac1x\quad(x>0).\end{aligned}$$

The denominator $\ln a$ is not 0, since $a\ne1$. For $x\ne0$, we also have

$$\begin{aligned}(\ln|x|)^{\prime}&=\frac1x,\\(\log_a|x|)^{\prime}&=\frac1{x\ln a}.\end{aligned}$$

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

$$\begin{aligned}(a^{u(x)})^{\prime}&=u^{\prime}(x)a^{u(x)}\ln a,\\(e^{u(x)})^{\prime}&=u^{\prime}(x)e^{u(x)},\\(\ln u(x))^{\prime}&=\frac{u^{\prime}(x)}{u(x)}\quad(u(x)>0),\\(\ln|u(x)|)^{\prime}&=\frac{u^{\prime}(x)}{u(x)}\quad(u(x)\ne0).\end{aligned}$$

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,

$$\begin{aligned}y^{\prime}&=(2x-2)e^x+(x^2-2x+2)e^x\\&=x^2e^x.\end{aligned}$$

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,

$$y^{\prime}=\frac{(A+B)^2-(A-B)^2}{(A+B)^2}=\frac{4AB}{(A+B)^2}=\frac4{(e^x+e^{-x})^2}.$$

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

  1. Differentiate $y=3^{2x-1}$.
  2. Find the domain and derivative of $y=\log_2(x^2-1)$.
  3. Differentiate $y=x\ln x$ and state its domain.
Show hints and answers
  1. $y^{\prime}=2\ln3\cdot3^{2x-1}$ for every real $x$.
  2. 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.
  3. 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.

6. Related lessons

Leave a Reply

Your email address will not be published. Required fields are marked *