Tutorials › Calculus I › Mixed Exponential and Logarithmic Derivative Workshop

Exponential and Logarithmic Derivatives · Tutorial 542 of 1495

Mixed Exponential and Logarithmic Derivative Workshop

Learn to combine exponential and logarithmic derivative rules systematically, including the chain factors and domain restrictions that mixed products and quotients require.

Intermediate 9 min read

What You'll Learn

  • Differentiate natural exponentials with composite exponents.
  • Differentiate general-base exponentials and logarithms with composite arguments.
  • Apply the product rule to factors involving exponentials and logarithms.
  • Apply the quotient rule when the numerator or denominator has multiple factors or terms.
  • Check domain conditions and diagnose common missing-factor errors.

Combining Exponential and Logarithmic Derivatives

Exponential and logarithmic functions often appear together in a single expression. Differentiating such an expression is usually not a matter of finding one new rule. It is a matter of identifying the outer structure of the expression, applying the product or quotient rule at that level, and then using the chain rule to differentiate each factor.

The main challenge is keeping the pieces organized. A product has two derivative contributions; a quotient has a specific numerator order; and a composite exponential or logarithm contributes an inner derivative. The examples below make each of these steps visible.

The Rules Used in This Workshop

Let \(u\) be differentiable. The chain rule formulas for exponential and logarithmic functions are:

$$ \frac{d}{dx}e^{u(x)}=e^{u(x)}u'(x), \qquad \frac{d}{dx}a^{u(x)}=a^{u(x)}\ln(a)\,u'(x), $$

where the second formula requires a constant base \(a>0\). For logarithms, the corresponding formulas are

$$ \frac{d}{dx}\ln(u(x))=\frac{u'(x)}{u(x)} \quad\text{when }u(x)>0, \qquad \frac{d}{dx}\log_b(u(x)) =\frac{u'(x)}{u(x)\ln(b)} \quad\text{when }u(x)>0, $$

where \(b>0\) and \(b\ne 1\). These conditions ensure that the real-valued functions in question are defined.

For differentiable functions \(f\) and \(g\), the product rule and quotient rule are

$$ (fg)'=f'g+fg', \qquad \left(\frac{f}{g}\right)'=\frac{f'g-fg'}{g^2}, $$

with the quotient rule requiring \(g(x)\ne 0\). In a mixed expression, these rules govern the outer product or quotient; the exponential and logarithmic formulas then differentiate the individual factors.

Key takeaway: For a product, differentiate one factor at a time and add the contributions. For a quotient, differentiate the numerator times the denominator, subtract the numerator times the derivative of the denominator, and divide by the denominator squared. Apply the chain rule inside each factor.

Why the Product and Quotient Rules Work

The product rule follows directly from the definition of a derivative. Suppose \(f\) and \(g\) are differentiable at \(x\). Add and subtract \(f(x+h)g(x)\) in the difference quotient:

$$ \frac{f(x+h)g(x+h)-f(x)g(x)}{h} = f(x+h)\frac{g(x+h)-g(x)}{h} + g(x)\frac{f(x+h)-f(x)}{h}. $$

As \(h\) approaches zero, differentiability of \(f\) implies continuity of \(f\), so \(f(x+h)\) approaches \(f(x)\). The difference quotients approach \(g'(x)\) and \(f'(x)\), respectively. Therefore, the limit is \(f(x)g'(x)+g(x)f'(x)\), which is the product rule.

For the quotient rule, assume \(g(x)\ne 0\). Near \(x\), the reciprocal \(1/g\) is defined, and the chain rule gives \((1/g)'=-g'/g^2\). Since \(f/g=f(1/g)\), applying the product rule yields

$$ \left(\frac{f}{g}\right)' =f'\frac{1}{g}+f\left(-\frac{g'}{g^2}\right) =\frac{f'g-fg'}{g^2}. $$

This derivation explains both the order of the two terms in the quotient-rule numerator and the square in its denominator.

Worked Example: A Natural Exponential Times a Natural Logarithm

Worked Example: A Natural Exponential Times a Natural Logarithm

Differentiate \(y=e^{x^2}\ln(2x+3)\), and state its domain.

The logarithm requires \(2x+3>0\), so \(x>-\frac{3}{2}\). The exponential is defined for every real \(x\). Set \(f(x)=e^{x^2}\) and \(g(x)=\ln(2x+3)\). The chain rule gives

$$ f'(x)=e^{x^2}(2x), \qquad g'(x)=\frac{2}{2x+3}. $$

Apply the product rule, retaining both contributions:

$$ \begin{aligned} y' &=f'g+fg'\\ &=e^{x^2}(2x)\ln(2x+3) +e^{x^2}\frac{2}{2x+3}\\ &=e^{x^2}\left(2x\ln(2x+3)+\frac{2}{2x+3}\right). \end{aligned} $$

Check at \(x=0\), which lies in the domain. The factors have values \(f(0)=1\), \(f'(0)=0\), \(g(0)=\ln 3\), and \(g'(0)=2/3\). Thus the product rule gives \(y'(0)=0\cdot\ln 3+1\cdot 2/3=2/3\). Substituting \(x=0\) in the derived formula also gives \(1(0+2/3)=2/3\), as required.

Worked Example: A General-Base Exponential Times a Logarithm

Worked Example: A General-Base Exponential Times a Logarithm

Differentiate \(y=2^{3x-1}\log_5(x+2)\), and give the real domain.

The logarithm requires \(x+2>0\), so \(x>-2\). The exponential has positive constant base \(2\), so it is defined for all real \(x\). Differentiate the first factor, including the derivative of its exponent:

$$ \frac{d}{dx}2^{3x-1} =2^{3x-1}\ln(2)\cdot 3 =3\ln(2)\,2^{3x-1}. $$

For the second factor, the inner function \(x+2\) has derivative \(1\), so

$$ \frac{d}{dx}\log_5(x+2) =\frac{1}{(x+2)\ln(5)}. $$

Now use the product rule:

$$ \begin{aligned} y' &=3\ln(2)\,2^{3x-1}\log_5(x+2) +2^{3x-1}\frac{1}{(x+2)\ln(5)}\\ &=2^{3x-1}\left( 3\ln(2)\log_5(x+2) +\frac{1}{(x+2)\ln(5)} \right). \end{aligned} $$

As a check, evaluate both the factors and their derivatives at \(x=0\). They are \(2^{-1}=1/2\), \(3\ln(2)/2\), \(\log_5(2)\), and \(1/(2\ln(5))\), respectively. The product rule therefore gives

$$ y'(0)=\frac{3\ln(2)}{2}\log_5(2)+\frac{1}{4\ln(5)}. $$

Substitution of \(x=0\) into the factored derivative gives the same two terms, confirming the chain factors and product-rule contributions.

Worked Example: A Logarithm Divided by a Sum of Exponentials

Worked Example: A Logarithm Divided by a Sum of Exponentials

Differentiate \(y=\dfrac{\ln(x+1)}{3^x+e^x}\), and identify its domain.

The numerator requires \(x+1>0\), or \(x>-1\). The denominator is a sum of positive terms, so it cannot be zero. Let \(f(x)=\ln(x+1)\) and \(g(x)=3^x+e^x\). Their derivatives are

$$ f'(x)=\frac{1}{x+1}, \qquad g'(x)=3^x\ln(3)+e^x. $$

Apply the quotient rule in the order \(f'g-fg'\):

$$ \begin{aligned} y' &=\frac{ \frac{1}{x+1}(3^x+e^x) -\ln(x+1)\bigl(3^x\ln(3)+e^x\bigr) }{(3^x+e^x)^2}. \end{aligned} $$

Check at \(x=0\). The numerator function is \(f(0)=\ln(1)=0\), its derivative is \(f'(0)=1\), and the denominator function is \(g(0)=1+1=2\). Its derivative is \(g'(0)=\ln(3)+1\). Hence the quotient rule gives

$$ y'(0)=\frac{1\cdot2-0\cdot(\ln(3)+1)}{2^2} =\frac{2}{4} =\frac12. $$

In the displayed derivative, substituting \(x=0\) gives the same value: its numerator is \(2-0=2\), and its denominator is \(4\).

Worked Example: A Product in the Numerator and an Exponential Denominator

Worked Example: A Product in the Numerator and an Exponential Denominator

Differentiate \(y=\dfrac{e^{2x}\log_3(x+1)}{2^{x+1}}\), and state its domain.

The logarithm requires \(x+1>0\), so the domain is \(x>-1\). First differentiate the numerator as a product. Its two factors have derivatives

$$ \frac{d}{dx}e^{2x}=2e^{2x}, \qquad \frac{d}{dx}\log_3(x+1)=\frac{1}{(x+1)\ln(3)}. $$

Thus, writing \(N(x)=e^{2x}\log_3(x+1)\) and \(D(x)=2^{x+1}\), we obtain

$$ N'(x)=e^{2x}\left( 2\log_3(x+1)+\frac{1}{(x+1)\ln(3)} \right), \qquad D'(x)=2^{x+1}\ln(2). $$

Using the quotient rule and then factoring out the common positive factor gives

$$ \begin{aligned} y' &=\frac{N'D-ND'}{D^2}\\ &=\frac{e^{2x}}{2^{x+1}}\left( 2\log_3(x+1)+\frac{1}{(x+1)\ln(3)} -\ln(2)\log_3(x+1) \right)\\ &=\frac{e^{2x}}{2^{x+1}}\left( (2-\ln(2))\log_3(x+1) +\frac{1}{(x+1)\ln(3)} \right). \end{aligned} $$

Check at \(x=0\). The numerator is \(N(0)=1\cdot\log_3(1)=0\), its derivative is \(N'(0)=1/\ln(3)\), and \(D(0)=2\). Therefore the quotient rule gives \(y'(0)=\bigl((1/\ln(3))\cdot2-0\cdot D'(0)\bigr)/2^2=1/(2\ln(3))\). The final formula at \(x=0\) also gives \(\frac12(0+1/\ln(3))=1/(2\ln(3))\).

A Common Mistake: Losing an Inner Derivative

A frequent error is to use the correct logarithm formula but omit the derivative of its argument. For example, the incorrect calculation

$$ \frac{d}{dx}\log_5(2x+1) =\frac{1}{(2x+1)\ln(5)} $$

does not account for the inner derivative \(\frac{d}{dx}(2x+1)=2\). The chain rule requires that factor:

$$ \frac{d}{dx}\log_5(2x+1) =\frac{2}{(2x+1)\ln(5)}. $$

For a mixed product, another common error is to differentiate only one factor. In \(f(x)g(x)\), the derivative is \(f'(x)g(x)+f(x)g'(x)\), not just \(f'(x)g(x)\). In a quotient, reversing the terms \(f'g-fg'\) also changes the sign of the result. Writing down the outer rule before simplifying helps prevent both mistakes.

A Reliable Order of Work

When an expression combines these functions, use the following sequence. It separates structural choices from the smaller chain-rule calculations.

1
Check where the expression is defined.
Logarithm arguments must be positive, and a quotient denominator must be nonzero.
2
Identify the outer structure.
Decide whether the full expression is a product or a quotient, and name its factors or numerator and denominator.
3
Differentiate each piece.
For every exponential or logarithm, include the derivative of its inner function.
4
Apply the outer rule and check.
Combine the pieces with the product or quotient rule, then test the result at a convenient point in the domain when possible.

Why These Combinations Matter

Products and quotients of exponential and logarithmic functions occur naturally when a model combines different types of change. For example, a quantity might involve an exponential growth factor multiplied by a logarithmic response, or a logarithmic numerator scaled by an exponential denominator. Their derivatives describe how the combined expression changes, rather than how any one factor changes in isolation.

The key is to preserve the structure of the original expression long enough to apply the right rule. Simplifying too early can hide a product or quotient, while omitting a chain factor can make an otherwise correct calculation wrong. Careful notation, domain checks, and a final substitution check make these derivatives more reliable.

Check Your Understanding

For each question, identify the outer rule before carrying out the differentiation.

  1. Differentiate \(e^{x^2}\log_2(x+4)\), and state its real domain.
  2. Differentiate \(\dfrac{5^{2x}}{\ln(x+3)}\), and state the condition on \(x\).
  3. In differentiating \(e^{x}\ln(4x+1)\), what factor comes from the inner function of the logarithm?
  4. For \(f(x)/g(x)\), which order of terms appears in the numerator of the quotient rule?
  5. Why must the denominator of a quotient be nonzero when using the quotient rule?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon