Tutorials › Calculus I › Variable Powers with Shifted Linear Bases

Exponential and Logarithmic Derivatives · Tutorial 547 of 1495

Variable Powers with Shifted Linear Bases

Use logarithmic differentiation to account for both the changing exponent and the shifted base in powers of the form x plus a constant raised to a linear function.

Intermediate 9 min read

What You'll Learn

  • State the domain condition for a real-valued shifted-base variable power.
  • Derive the derivative formula using logarithms and the chain rule.
  • Identify the separate contributions from the changing exponent and changing base.
  • Differentiate shifted linear-base powers and evaluate their derivatives at specified points.
  • Recognize and correct errors caused by treating a variable exponent as constant.

Introduction

A power such as \(x^x\) changes in two ways: its base changes with \(x\), and its exponent changes with \(x\). Shifting the base does not remove either effect. For example, in \((x+2)^{3x-1}\), the base is \(x+2\), while the exponent is \(3x-1\); both vary as \(x\) varies.

Taking the natural logarithm turns the variable power into a product. Differentiating that product makes the two contributions visible and leads to a formula that works throughout the domain where the base is positive.

Key idea: For a positive base, write the power as an exponential using the natural logarithm. Then differentiate the logarithm of the function, keeping track of both the changing base and the changing exponent.

Domain and General Formula

Let \(m\), \(b\), and \(c\) be real constants, and consider \(y=(x+c)^{mx+b}\). A real variable power with a variable exponent is defined using the natural logarithm when its base is positive: \(a^r=\exp(r\ln a)\) for \(a>0\). Thus, for this function, the logarithmic method applies on the interval where \(x+c>0\), or \(x>-c\). On this interval \(y\) is positive, so \(\ln y\) is defined.

Formula: If \(m\), \(b\), and \(c\) are constants and \(x+c>0\), then $$ \frac{d}{dx}(x+c)^{mx+b} = (x+c)^{mx+b} \left[ m\ln(x+c)+\frac{mx+b}{x+c} \right]. $$

The expression in square brackets has two parts. The term \(m\ln(x+c)\) comes from differentiating the exponent \(mx+b\); the term \((mx+b)/(x+c)\) comes from differentiating the logarithm of the base. Both are needed.

Why the Formula Works

Set \(y=(x+c)^{mx+b}\) on the interval \(x>-c\). Because \(y>0\), we may take the natural logarithm of each side. Using the logarithm rule for a positive base gives

$$ \ln y=(mx+b)\ln(x+c). $$

Differentiate both sides with respect to \(x\). On the left, the chain rule gives \(y'/y\). On the right, the product rule applies: the derivative of \(mx+b\) is \(m\), and the derivative of \(\ln(x+c)\) is \(1/(x+c)\), by the chain rule. Therefore,

$$ \frac{y'}{y} = m\ln(x+c)+(mx+b)\frac{1}{x+c}. $$

Multiplying by \(y\), and then substituting \(y=(x+c)^{mx+b}\), proves the formula:

$$ y' = y\left[m\ln(x+c)+\frac{mx+b}{x+c}\right] = (x+c)^{mx+b} \left[m\ln(x+c)+\frac{mx+b}{x+c}\right]. $$

This derivation also explains the structure of the answer: the derivative is the original function multiplied by its logarithmic derivative, \(y'/y\). The two terms in that logarithmic derivative account separately for the exponent and the base.

Worked Examples

Worked Example: Differentiate a Shifted Power

Differentiate \(f(x)=(x+2)^{3x-1}\), and find \(f'(0)\). The base is positive when \(x+2>0\), so the function is defined for \(x>-2\).

Here \(m=3\), \(b=-1\), and \(c=2\). Apply the formula:

$$ f'(x) = (x+2)^{3x-1} \left[ 3\ln(x+2)+\frac{3x-1}{x+2} \right]. $$

At \(x=0\), the function value is

$$ f(0)=(0+2)^{3(0)-1}=2^{-1}=\frac12. $$

The bracket at \(x=0\) is

$$ 3\ln(0+2)+\frac{3(0)-1}{0+2} = 3\ln 2-\frac12. $$

Consequently,

$$ f'(0) = \frac12\left(3\ln 2-\frac12\right) = \frac{3}{2}\ln 2-\frac14. $$

Check by evaluating the general derivative at \(x=0\): the original-function factor is \(2^{-1}=1/2\), and the bracket is \(3\ln 2-1/2\), giving exactly \(\frac{3}{2}\ln 2-\frac14\).

Worked Example: A Negative Shift in the Base

Differentiate \(g(x)=(x-1)^{2x+3}\), and find \(g'(3)\). The base condition is \(x-1>0\), so the real-valued function has domain \(x>1\).

In the formula, \(m=2\), \(b=3\), and \(c=-1\). Thus

$$ g'(x) = (x-1)^{2x+3} \left[ 2\ln(x-1)+\frac{2x+3}{x-1} \right]. $$

At \(x=3\), the base and exponent are

$$ 3-1=2, \qquad 2(3)+3=9, \qquad g(3)=2^9=512. $$

The bracket becomes

$$ 2\ln 2+\frac{9}{2}. $$

Therefore,

$$ g'(3) = 512\left(2\ln 2+\frac92\right) = 1024\ln 2+2304. $$

Substituting \(x=3\) directly into the derivative formula gives the same base factor \(512\) and the same bracket \(2\ln 2+9/2\), confirming the evaluation.

Worked Example: A Decreasing Exponent

Differentiate \(h(x)=(x+4)^{2-x}\), and find \(h'(0)\). The base is positive when \(x>-4\), which is the domain for this real variable power.

Rewrite the exponent as \(-x+2\), so \(m=-1\) and \(b=2\). The formula gives

$$ h'(x) = (x+4)^{2-x} \left[ -\ln(x+4)+\frac{2-x}{x+4} \right]. $$

At \(x=0\),

$$ h(0)=(0+4)^2=16, \qquad -\ln(0+4)+\frac{2-0}{0+4} = -\ln 4+\frac12. $$

It follows that

$$ h'(0) = 16\left(-\ln 4+\frac12\right) = 8-16\ln 4. $$

As a check, substituting \(x=0\) into the displayed expression for \(h'(x)\) again gives \(4^2[-\ln 4+2/4]=16[-\ln 4+1/2]=8-16\ln 4\). The negative sign on the logarithm term reflects the decreasing exponent.

Reading the Two Contributions

The formula can be understood by separating the roles of the base and exponent. If \(u(x)=mx+b\) and \(v(x)=x+c\), then the logarithmic equation is \(\ln y=u(x)\ln(v(x))\). Its derivative is

$$ \frac{y'}{y} = u'(x)\ln(v(x))+u(x)\frac{v'(x)}{v(x)} = m\ln(x+c)+\frac{mx+b}{x+c}, $$

because \(u'(x)=m\) and \(v'(x)=1\). The shift \(c\) does not change the derivative of the base: \(\frac{d}{dx}(x+c)=1\). It does, however, remain inside \(\ln(x+c)\) and in the denominator \(x+c\). This distinction is useful when checking a calculation.

There are also simple special cases. If \(m=0\), the exponent is constant \(b\), and the formula reduces to the usual power rule for a constant power of a positive linear function. If the base equals \(1\) at a point, the logarithm term is zero at that point, since \(\ln 1=0\); the other term still accounts for the exponent at that point.

Common Pitfall: Treating the Exponent as Constant

A tempting but incorrect move is to apply the ordinary power rule while treating the exponent as fixed. For \(f(x)=(x+2)^{3x-1}\), that mistake might produce

$$ f'_{\text{wrong}}(x) = (3x-1)(x+2)^{3x-2}. $$

This calculation omits the fact that \(3x-1\) changes with \(x\). It also does not correctly account for that changing exponent through the logarithm. For example, at \(x=0\), the wrong expression gives \(-2^{-2}=-1/4\), whereas the correct derivative is \(\frac{3}{2}\ln 2-\frac14\). These are not equal.

The correction is to take logarithms before differentiating. In this example, \(\ln f=(3x-1)\ln(x+2)\), so the product rule yields both terms:

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

Leaving out the first term loses the effect of the changing exponent. Leaving out the second loses the effect of the changing base. A reliable check is to make sure both contributions appear unless one vanishes for a specific reason.

A Reliable Procedure

For a function \(y=(x+c)^{mx+b}\), use the following sequence:

1
Check the base.
Require \(x+c>0\) so the real logarithm of the base is defined.
2
Take the natural logarithm.
Write \(\ln y=(mx+b)\ln(x+c)\).
3
Differentiate both sides.
Use the product rule on the right and the chain rule on \(\ln y\), giving \(y'/y=m\ln(x+c)+(mx+b)/(x+c)\).
4
Multiply by the original function.
Replace \(y\) with \((x+c)^{mx+b}\) to obtain the derivative.
5
Evaluate carefully if needed.
Substitute the specified \(x\)-value into the original-function factor and each term in the bracket.

This method matters because variable powers do not follow the ordinary constant-exponent power rule by themselves. Taking logarithms transforms the varying exponent into a product, while the domain condition ensures every logarithm used in the derivation is valid. The resulting formula is concise, but its two terms record two distinct changes in the function.

Check Your Understanding

Use the domain condition and derivative formula to answer the questions. Keep the base contribution and exponent contribution separate in your work.

  1. For \(p(x)=(x+5)^{4x+1}\), state the interval on which the logarithmic differentiation formula applies.
  2. Differentiate \(q(x)=(x+3)^{x-2}\).
  3. For \(r(x)=(x+1)^{2x}\), calculate \(r'(1)\) exactly.
  4. In the derivative formula, which term comes from differentiating the exponent, and which comes from differentiating the logarithm of the base?
  5. Explain why the ordinary power rule cannot be applied to \((x+2)^{3x-1}\) as if \(3x-1\) were constant.

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