Tutorials › Calculus I › Quotients Containing Variable Powers

Exponential and Logarithmic Derivatives · Tutorial 551 of 1495

Quotients Containing Variable Powers

Use logarithms to differentiate variable-power quotients, keeping track of the separate contributions from each base and exponent.

Intermediate 10 min read

What You'll Learn

  • Rewrite a quotient of positive variable powers as a difference of logarithms.
  • Differentiate each base-and-exponent contribution with the chain and product rules.
  • Apply the resulting formula to variable bases and variable exponents.
  • Check derivative values using the quotient rule structure.
  • Avoid sign errors when subtracting the logarithmic derivative of the denominator.

Why Take Logarithms of a Quotient?

A quotient can combine two sources of complexity: the numerator and denominator may each have a base that varies with \(x\), and an exponent that varies with \(x\). Differentiating each variable power separately and then using the quotient rule is possible, but it can produce long expressions.

Taking the natural logarithm turns a quotient into a difference. Each variable power then becomes a product of its exponent and the logarithm of its base. This makes the contributions from the numerator and denominator easier to organize—and makes the minus sign from the denominator explicit.

Key idea: For a positive quotient \(y=N/D\), take logarithms to obtain \(\ln y=\ln N-\ln D\). Differentiate this equation, then multiply by \(y\) to find \(y'\).

The Formula and Its Conditions

Suppose \(u\), \(v\), \(a\), and \(b\) are differentiable functions on an open interval, with \(u(x)>0\) and \(a(x)>0\) throughout that interval. Define

$$ y(x)=\frac{u(x)^{v(x)}}{a(x)^{b(x)}}. $$

The positive-base conditions ensure that the real-valued powers and their logarithms are defined. Since both powers are positive, the denominator is nonzero and \(y(x)>0\). We can therefore take its natural logarithm.

Derivative rule: Under these conditions, $$ y'(x)=y(x)\left[ v'(x)\ln u(x)+v(x)\frac{u'(x)}{u(x)} -b'(x)\ln a(x)-b(x)\frac{a'(x)}{a(x)} \right]. $$

The first two terms come from the numerator; the last two come from the denominator. In particular, the minus sign applies to both terms obtained by differentiating the denominator's logarithm.

Why the Rule Works

The derivation uses the logarithm laws and the chain and product rules. For a positive function \(y\), the chain rule gives \(\frac{d}{dx}\ln y=y'/y\). Applying logarithms to the quotient gives:

$$ \begin{aligned} \ln y &=\ln\!\left(u^v\right)-\ln\!\left(a^b\right)\\ &=v\ln u-b\ln a. \end{aligned} $$

Differentiate each product. For example, the product rule gives \((v\ln u)'=v'\ln u+v(\ln u)'\), and the chain rule gives \((\ln u)'=u'/u\), since \(u>0\). Applying the same rules to \(b\ln a\) yields

$$ \frac{y'}{y} =v'\ln u+v\frac{u'}{u} -b'\ln a-b\frac{a'}{a}. $$

Because \(y>0\), multiplying both sides by \(y\) is valid and gives the stated derivative rule. This argument also explains why the quotient structure appears as a difference: it comes directly from \(\ln(N/D)=\ln N-\ln D\).

A Reliable Calculation Process

1
Check the logarithms are allowed.
Identify an interval where the bases are positive and the quotient is defined.
2
Take the logarithm.
Write \(\ln y\) as the logarithm of the numerator minus the logarithm of the denominator.
3
Differentiate each power's logarithm.
For a power \(u^v\), differentiate \(v\ln u\) using the product rule and \((\ln u)'=u'/u\).
4
Preserve the denominator's minus sign.
Subtract the entire derivative of the denominator's logarithm.
5
Recover \(y'\).
Multiply the resulting expression for \(y'/y\) by the original quotient \(y\).

Worked Examples

Worked Example: A Variable Power in Both Parts

Differentiate \(y=\frac{x^x}{(x+1)^{2x}}\) for \(x>0\), and find \(y'(1)\).

Both bases are positive when \(x>0\), so we may take logarithms:

$$ \ln y=x\ln x-2x\ln(x+1). $$

Differentiate the first term by the product rule: \((x\ln x)'=\ln x+x(1/x)=\ln x+1\). For the second term, first differentiate \(x\ln(x+1)\): its derivative is \(\ln(x+1)+x/(x+1)\). Thus

$$ \frac{y'}{y} =\ln x+1-2\left(\ln(x+1)+\frac{x}{x+1}\right), \qquad y'=\frac{x^x}{(x+1)^{2x}} \left(\ln x+1-2\ln(x+1)-\frac{2x}{x+1}\right). $$

At \(x=1\), the original quotient is \(y(1)=1/4\). The bracket is \(0+1-2\ln 2-1=-2\ln 2\). Therefore

$$ y'(1)=\frac14(-2\ln 2)=-\frac{\ln 2}{2}. $$

To check the value using the quotient rule structure, let \(N=x^x\) and \(D=(x+1)^{2x}\). At \(x=1\), \(N=1\), \(N'=1\), \(D=4\), and \(D'/D=2\ln 2+1\), so \(D'=4(2\ln 2+1)\). Hence

$$ \frac{N'D-ND'}{D^2} =\frac{4-4(2\ln 2+1)}{16} =-\frac{\ln 2}{2}, $$

which agrees with the logarithmic calculation.

Worked Example: Different Bases in the Numerator and Denominator

Differentiate \(y=\frac{(x+2)^{x^2}}{(2x+1)^x}\) near \(x=1\), and evaluate \(y'(1)\). Both bases are positive near \(1\).

Taking logarithms gives

$$ \ln y=x^2\ln(x+2)-x\ln(2x+1). $$

For the first product, the derivative is \(2x\ln(x+2)+x^2/(x+2)\). For the second product, it is \(\ln(2x+1)+2x/(2x+1)\), because the derivative of \(\ln(2x+1)\) is \(2/(2x+1)\). Therefore

$$ \frac{y'}{y} =2x\ln(x+2)+\frac{x^2}{x+2} -\ln(2x+1)-\frac{2x}{2x+1}. $$

At \(x=1\), the numerator and denominator of \(y\) are both \(3\), so \(y(1)=1\). The logarithmic derivative there is \(2\ln 3+1/3-\ln 3-2/3=\ln 3-1/3\). Thus

$$ y'(1)=\ln 3-\frac13. $$

For a quotient-rule check, write \(N=(x+2)^{x^2}\) and \(D=(2x+1)^x\). At \(1\), \(N=D=3\), \(N'/N=2\ln 3+1/3\), and \(D'/D=\ln 3+2/3\). Hence \(N'=6\ln 3+1\), \(D'=3\ln 3+2\), and

$$ \frac{N'D-ND'}{D^2} =\frac{3(N'-D')}{9} =\ln 3-\frac13, $$

as required.

Worked Example: A Reciprocal Variable Exponent

Differentiate \(y=\frac{(x+1)^{\sqrt{x}}}{(x+2)^{1/x}}\) for \(x>0\), and calculate \(y'(1)\).

On \(x>0\), both bases are positive. Taking logarithms produces a minus sign before the entire denominator term:

$$ \ln y=\sqrt{x}\ln(x+1)-\frac{1}{x}\ln(x+2). $$

The derivative of the first product is \(\frac{\ln(x+1)}{2\sqrt{x}}+\frac{\sqrt{x}}{x+1}\). For the second product, the product rule gives \(-\frac{\ln(x+2)}{x^2}+\frac{1}{x(x+2)}\). Since this whole product is subtracted in \(\ln y\), its contribution to \(y'/y\) has the opposite signs. Therefore

$$ \frac{y'}{y} =\frac{\ln(x+1)}{2\sqrt{x}}+\frac{\sqrt{x}}{x+1} +\frac{\ln(x+2)}{x^2}-\frac{1}{x(x+2)}. $$

At \(x=1\), \(y(1)=2/3\). The bracket evaluates to \(\frac12\ln 2+\frac12+\ln 3-\frac13=\frac12\ln 2+\ln 3+\frac16\). It follows that

$$ y'(1)=\frac23\left(\frac12\ln 2+\ln 3+\frac16\right) =\frac{\ln 2}{3}+\frac{2\ln 3}{3}+\frac19. $$

For a check, the numerator \(N\) has \(N(1)=2\) and \(N'(1)=2(\frac12\ln 2+\frac12)=\ln 2+1\). The denominator \(D\) has \(D(1)=3\) and \(D'(1)=3(\frac13-\ln 3)=1-3\ln 3\). The quotient rule gives

$$ \frac{N'D-ND'}{D^2} =\frac{3(\ln 2+1)-2(1-3\ln 3)}{9} =\frac{\ln 2}{3}+\frac{2\ln 3}{3}+\frac19, $$

matching the result above.

A Common Sign Error

Consider \(y=\frac{x^x}{(x+1)^x}\), for \(x>0\). Its logarithm is \(\ln y=x\ln x-x\ln(x+1)\). A common mistake is to differentiate the denominator term but fail to apply the minus sign to all of its derivative:

$$ \text{Incorrect:}\qquad \frac{y'}{y}=\ln x+1-\ln(x+1)+\frac{x}{x+1}. $$

The product \(x\ln(x+1)\) differentiates to \(\ln(x+1)+x/(x+1)\). Since the whole product is subtracted, both terms must be subtracted:

$$ \text{Correct:}\qquad \frac{y'}{y}=\ln x+1-\ln(x+1)-\frac{x}{x+1}. $$

At \(x=1\), the incorrect expression gives \(3/2-\ln 2\), whereas the correct logarithmic derivative is \(1/2-\ln 2\). Since \(y(1)=1/2\), the correct derivative is \(y'(1)=\frac12(1/2-\ln 2)\). The denominator's logarithmic derivative is subtracted as a complete quantity, not term by term with changing signs.

What to Keep in Mind

The method is most useful when the numerator or denominator contains a variable power whose base and exponent both depend on \(x\). The central bookkeeping step is to write \(\ln y\) as a difference before differentiating. Then each power contributes two terms: one from differentiating its exponent and one from differentiating its base.

Always verify the domain before taking logarithms. In the rule above, the bases must be positive on the interval under consideration, and the functions must be differentiable there. Once those conditions hold, the quotient is positive, so the relation \(y'/y=(\ln y)'\) is valid. Keeping the quotient as a difference of logarithms also helps prevent the most common error: losing the negative sign on part of the denominator's derivative.

Check Your Understanding

Try each question by writing the logarithm of the quotient before differentiating.

  1. For \(y=\frac{(x+1)^x}{(x+2)^{2x}}\), write \(\ln y\) and find \(y'/y\) for \(x>0\).
  2. In the general formula, which two terms come from differentiating the denominator's logarithm, and what sign do they have in \(y'/y\)?
  3. Differentiate \(y=\frac{x^{2x}}{(x+1)^3}\) on \(x>0\) using logarithms.
  4. Why must the bases be positive when applying this real-valued logarithmic method?
  5. For \(y=\frac{(x+2)^{\sqrt{x}}}{(x+3)^x}\), write the expression for \(y'/y\) without expanding \(y'\).

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