Tutorials › Calculus I › Products Containing Variable Powers

Exponential and Logarithmic Derivatives · Tutorial 550 of 1495

Products Containing Variable Powers

Combine logarithmic differentiation and the product rule to differentiate products involving variable powers and other functions.

Intermediate 9 min read

What You'll Learn

  • Apply the derivative formula for a variable power with a positive base.
  • Differentiate a product by combining variable-power derivatives with the product rule.
  • Keep the domain restrictions needed for logarithmic differentiation in view.
  • Simplify a product derivative by factoring out common factors.
  • Check a result using the original product rule and a convenient input value.

Introduction

A variable power such as \(x^x\) depends on \(x\) in both its base and its exponent. Its derivative is found using logarithmic differentiation. When a variable power is multiplied by another function, the product rule is needed as well: first differentiate the powered factor, then combine it with the derivative of the other factor.

This tutorial focuses on that combination. The factors need not both be variable powers. They might be an exponential such as \(e^{x^2}\), a logarithm such as \(\ln x\), or another variable-power expression. The main task is to keep the differentiation of each factor separate until applying the product rule.

Key idea: Differentiate each variable-power factor by logarithmic differentiation. Then differentiate the product using the product rule, which says \((FG)'=F'G+FG'\).

The Variable-Power Derivative

Let \(u\) and \(v\) be differentiable functions on an interval, with \(u(x)>0\) throughout that interval. The positive-base condition allows us to take the natural logarithm of \(u(x)^{v(x)}\). Logarithmic differentiation gives the formula below.

Formula: If \(u(x)>0\), then
$$ \frac{d}{dx}\bigl(u(x)^{v(x)}\bigr) = u(x)^{v(x)} \left( v'(x)\ln u(x) + v(x)\frac{u'(x)}{u(x)} \right). $$

The two terms in parentheses have distinct sources. The term \(v'(x)\ln u(x)\) accounts for the changing exponent. The term \(v(x)u'(x)/u(x)\) accounts for the changing base. If one of those parts is constant, its derivative contribution is zero.

For instance, \(x^x\) has both base and exponent \(x\), so for \(x>0\),

$$ \frac{d}{dx}(x^x) = x^x\left(\ln x+\frac{x}{x}\right) = x^x(\ln x+1). $$

For a product \(F(x)G(x)\), the product rule requires both derivatives, whether or not the factors are positive. In particular, logarithmic differentiation can be used on a positive powered factor without taking the logarithm of the entire product. This matters when the other factor can be zero or negative.

A Product Rule Formula for a Powered Factor

Suppose \(F(x)=u(x)^{v(x)}\), where \(u(x)>0\), and let \(G\) be any differentiable function. Combining the variable-power formula with the product rule gives the following result.

Product formula: Under these conditions,
$$ \frac{d}{dx}\left(u(x)^{v(x)}G(x)\right) = u(x)^{v(x)} \left[ \left( v'(x)\ln u(x)+v(x)\frac{u'(x)}{u(x)} \right)G(x) + G'(x) \right]. $$

This formula is obtained directly by writing \((FG)'=F'G+FG'\), substituting the derivative of \(F=u^v\), and factoring out \(u^v\). The factor \(G\) remains inside the first term; omitting it is a common error.

Worked Examples

Worked Example: Differentiate \(x^x e^{x^2}\)

For \(x>0\), both factors are differentiable. Set \(F(x)=x^x\) and \(G(x)=e^{x^2}\). The variable-power formula gives

$$ F'(x)=x^x(\ln x+1). $$

For the exponential factor, the chain rule gives

$$ G'(x)=e^{x^2}\cdot 2x=2xe^{x^2}. $$

Apply the product rule and substitute both derivatives:

$$ \begin{aligned} \frac{d}{dx}\left(x^x e^{x^2}\right) &=F'(x)G(x)+F(x)G'(x)\\ &=x^x(\ln x+1)e^{x^2}+x^x(2xe^{x^2})\\ &=x^x e^{x^2}\bigl(\ln x+1+2x\bigr). \end{aligned} $$

Check at \(x=1\). The original factors have values \(1^1=1\) and \(e^1=e\). Their derivatives have values \(F'(1)=1(0+1)=1\) and \(G'(1)=2e\). The product rule therefore gives \(1\cdot e+1\cdot 2e=3e\). The factored formula gives \(1\cdot e\cdot(0+1+2)=3e\), as required.

Worked Example: Differentiate \((x+1)^x\ln x\)

The domain requires \(x>0\) because of \(\ln x\); on this domain the base \(x+1\) is positive as well. Let \(F(x)=(x+1)^x\) and \(G(x)=\ln x\). For \(F\), the base is \(u(x)=x+1\) and the exponent is \(v(x)=x\). Thus \(u'(x)=1\) and \(v'(x)=1\), so

$$ F'(x) = (x+1)^x \left( \ln(x+1)+\frac{x}{x+1} \right). $$

The logarithm factor has derivative \(G'(x)=1/x\). Using the product rule gives

$$ \begin{aligned} \frac{d}{dx}\left((x+1)^x\ln x\right) &=F'(x)G(x)+F(x)G'(x)\\ &=(x+1)^x \left( \ln(x+1)+\frac{x}{x+1} \right)\ln x +\frac{(x+1)^x}{x}\\ &=(x+1)^x \left[ \left( \ln(x+1)+\frac{x}{x+1} \right)\ln x+\frac{1}{x} \right]. \end{aligned} $$

Check at \(x=1\). Here \(F(1)=2\), \(G(1)=0\), \(F'(1)=2(\ln 2+1/2)\), and \(G'(1)=1\). The product rule gives \(F'(1)G(1)+F(1)G'(1)=0+2=2\). The factored derivative also gives \(2[(\ln 2+1/2)\cdot0+1]=2\).

Worked Example: Differentiate \(x^x(x+1)^{2x}\)

For \(x>0\), both bases are positive. Set \(F(x)=x^x\) and \(G(x)=(x+1)^{2x}\). The first factor has derivative

$$ F'(x)=x^x(\ln x+1). $$

For the second factor, use base \(u(x)=x+1\) and exponent \(v(x)=2x\). Since \(u'(x)=1\) and \(v'(x)=2\),

$$ G'(x) = (x+1)^{2x} \left( 2\ln(x+1)+\frac{2x}{x+1} \right). $$

Now apply the product rule. Substituting the factor derivatives and collecting the common factor \(x^x(x+1)^{2x}\) gives

$$ \begin{aligned} \frac{d}{dx}\left(x^x(x+1)^{2x}\right) &=F'(x)G(x)+F(x)G'(x)\\ &=x^x(\ln x+1)(x+1)^{2x}\\ &\quad+x^x(x+1)^{2x} \left( 2\ln(x+1)+\frac{2x}{x+1} \right)\\ &=x^x(x+1)^{2x} \left( \ln x+1+2\ln(x+1)+\frac{2x}{x+1} \right). \end{aligned} $$

Check at \(x=1\). The factors are \(F(1)=1\) and \(G(1)=4\). Also \(F'(1)=1\), while \(G'(1)=4(2\ln2+1)\). The product rule gives \(1\cdot4+1\cdot4(2\ln2+1)=8+8\ln2\). The factored expression gives \(1\cdot4[0+1+2\ln2+1]=8+8\ln2\), confirming the result.

Why the Product Formula Works

The method does not require taking the logarithm of the whole product. Instead, logarithmic differentiation is applied only where it is valid: to a positive variable-power factor. Then the ordinary product rule combines that factor with the other function. The algebraic justification is short and complete.

1
Name the factors.
Write \(F(x)=u(x)^{v(x)}\) and \(G(x)=G(x)\), with \(u(x)>0\).
2
Differentiate the powered factor.
The variable-power formula gives \(F'=F(v'\ln u+vu'/u)\).
3
Use the product rule.
Since \(H=FG\), \(H'=F'G+FG'\).
4
Substitute and factor.
Replacing \(F'\) yields \(H'=F[(v'\ln u+vu'/u)G+G']\), the stated product formula.

The assumption \(u(x)>0\) is needed for \(\ln u(x)\) in the variable-power formula. The other factor \(G\) only needs to be differentiable; it does not have to be positive. The interval under consideration must satisfy these conditions wherever the derivative is being computed.

A Common Product-Rule Error

A frequent mistake is to differentiate both factors but forget to multiply the derivative of the powered factor by the unchanged second factor. For example, an incorrect attempt at differentiating \(x^x e^{x^2}\) might be

$$ \text{Incorrect:}\qquad x^x(\ln x+1)+2xe^{x^2}. $$

This expression adds the two factor derivatives, but differentiation of a product does not mean adding the derivatives alone. Each derivative must be multiplied by the other original factor. The correction is

$$ \begin{aligned} \frac{d}{dx}\left(x^x e^{x^2}\right) &=x^x(\ln x+1)e^{x^2}+x^x(2xe^{x^2})\\ &=x^x e^{x^2}(\ln x+1+2x). \end{aligned} $$

A useful check is to write the product rule in full before substituting: first factor derivative times second factor, plus first factor times second factor derivative. This makes it harder to lose a factor while simplifying.

A Reliable Working Method

For a product containing variable powers, use the following sequence.

  1. Identify an interval where each variable-power base is positive and all factors are differentiable.
  2. Differentiate each variable-power factor separately using \(u^v\bigl(v'\ln u+vu'/u\bigr)\).
  3. Differentiate every remaining factor using its appropriate derivative rule.
  4. Apply the product rule to the factors, preserving the other original factor in each term.
  5. Factor common terms only after the product-rule substitution is correct.
  6. Check the result at a convenient point in the domain when possible.

These steps are particularly useful when there are several different kinds of factors. Keeping the derivative of each factor separate first makes the source of every term visible. Factoring at the end can produce a compact expression, but it should not hide how the product rule was applied.

Why This Combination Matters

Variable powers often appear alongside exponential, logarithmic, polynomial, or other variable-power factors. A single expression can therefore require more than one differentiation technique. The reusable strategy is not a new rule for every product: it is the variable-power derivative for the powered factor and the product rule for the complete expression.

Paying attention to domains is part of the method, not an afterthought. For example, \(x^x\) requires \(x>0\) for the real-valued logarithmic differentiation used here, and \(\ln x\) also requires \(x>0\). In \((x+1)^x\ln x\), the logarithm sets the domain \(x>0\), which also ensures \(x+1>0\). Stating the interval makes clear where the derivative formula applies.

Check Your Understanding

For each problem, identify the domain where the displayed real-valued expression and the method are valid. Then differentiate, applying the product rule explicitly.

  1. Differentiate \(x^x e^x\) for \(x>0\).
  2. Differentiate \((x+2)^x\ln x\) on its domain.
  3. Differentiate \(x^x(x+1)^x\) for \(x>0\), and write the result with the original product factored out.
  4. In the product rule for \(F(x)G(x)\), what factor must multiply \(F'(x)\)?
  5. Why can logarithmic differentiation be applied to a positive powered factor even when the other factor in the product is not positive?

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