Tutorials › Calculus I › Exponential And Logarithmic Definite Integrals

Substitution and Reversing the Chain Rule · Tutorial 1144 of 1495

Exponential And Logarithmic Definite Integrals

Use substitution to evaluate definite integrals involving exponential and logarithmic functions, with careful attention to bounds, domains, and the conditions that justify the formulas.

Intermediate 9 min read

What You'll Learn

  • Recognize exponential and logarithmic composites suited to substitution
  • Transform both bounds when changing variables in a definite integral
  • State the regularity and positivity conditions required for the formulas
  • Evaluate composites involving natural logarithms and exponential functions
  • Extend the exponential formula to a positive base other than e
  • Check results by differentiating an antiderivative

Why These Definite Integrals Have a Direct Structure

When an integrand contains an exponential or logarithm applied to an inner function, the derivative of that inner function often appears elsewhere in the integrand. This pairing makes substitution especially effective: it turns the composite expression into a simpler function of a new variable, and the original endpoints determine the new limits of integration.

For example, the derivative of \(e^{g(x)}\) is \(e^{g(x)}g'(x)\). The derivative of \(\ln(g(x))\), when \(g(x)>0\), is \(g'(x)/g(x)\). These derivative patterns lead to direct formulas for definite integrals. Their hypotheses matter: the inner function must have enough regularity for the ordinary definite integral and the Fundamental Theorem of Calculus to apply, and a logarithm requires a positive argument throughout the interval.

Definition: In this tutorial, \(\ln\) denotes the natural logarithm, whose inverse function is the exponential function \(e^x\). A function \(g\) is in \(C^1([a,b])\) if it is differentiable on the interval and its derivative is continuous there, with the usual one-sided interpretation at the endpoints.

The Definite Substitution Rule for These Patterns

Suppose \(g\in C^1([a,b])\). For an exponential composite, the chain rule gives \(\frac{d}{dx}e^{g(x)}=e^{g(x)}g'(x)\). Because \(g\) and \(g'\) are continuous on the closed interval, this integrand is continuous, so the Fundamental Theorem of Calculus applies:

$$ \int_a^b e^{g(x)}g'(x)\,dx =e^{g(b)}-e^{g(a)}. $$

For the logarithmic pattern, suppose in addition that \(g(x)>0\) for every \(x\in[a,b]\). Then \(\ln(g(x))\) is defined throughout the interval, and the chain rule gives \(\frac{d}{dx}\ln(g(x))=g'(x)/g(x)\). Since \(g\) is continuous and positive on a closed interval, it has a positive minimum there; consequently \(g'/g\) is continuous. The Fundamental Theorem of Calculus therefore gives:

$$ \int_a^b \frac{g'(x)}{g(x)}\,dx =\ln(g(b))-\ln(g(a)). $$

These are not merely patterns to memorize. They are instances of substitution with the new variable \(u=g(x)\). In each case the endpoints in the \(u\)-integral are \(g(a)\) and \(g(b)\), not the original \(x\)-endpoints.

Why the Substitution Formula Works

A short argument explains both the formula and its regularity requirements. Let \(F\) be continuous on an interval containing the range of \(g\), and choose a fixed number \(u_0\) in that interval. Define

$$ H(u)=\int_{u_0}^{u}F(t)\,dt. $$

By the Fundamental Theorem of Calculus, \(H'(u)=F(u)\). Since \(g\in C^1([a,b])\), the chain rule applies to \(H(g(x))\) and gives

$$ \frac{d}{dx}H(g(x)) =H'(g(x))g'(x) =F(g(x))g'(x). $$

The integrand on the right is continuous. Applying the Fundamental Theorem of Calculus on \([a,b]\) yields the definite substitution formula:

$$ \int_a^b F(g(x))g'(x)\,dx =H(g(b))-H(g(a)) =\int_{g(a)}^{g(b)}F(u)\,du. $$

This proof does not require \(g\) to be increasing. If \(g(b)<g(a)\), the transformed integral has its upper limit below its lower limit, and the usual signed orientation of a definite integral handles that case.

Taking \(F(u)=e^u\) gives the exponential formula. Taking \(F(u)=1/u\), on an interval of positive \(u\)-values, gives the logarithmic formula. The continuity and domain conditions in those applications are precisely what allow the argument to use the Fundamental Theorem of Calculus.

Worked Examples

Worked Example: An Exponential of a Polynomial

Evaluate \(\int_0^1 2x e^{x^2+1}\,dx\).

The inner function is \(g(x)=x^2+1\), and \(g'(x)=2x\), which matches the factor multiplying the exponential. The function \(g\) is in \(C^1([0,1])\). Set \(u=x^2+1\), so \(du=2x\,dx\). Transform the bounds: when \(x=0\), \(u=1\); when \(x=1\), \(u=2\). Thus

$$ \begin{aligned} \int_0^1 2x e^{x^2+1}\,dx &=\int_1^2 e^u\,du\\ &=\left[e^u\right]_1^2\\ &=e^2-e. \end{aligned} $$

Check by differentiating the corresponding antiderivative \(e^{x^2+1}\): its derivative is \(e^{x^2+1}(2x)=2x e^{x^2+1}\). Evaluating it at \(1\) and \(0\) gives \(e^2-e^1=e^2-e\), as obtained by substitution.

Worked Example: A Power of a Logarithmic Composite

Evaluate \(\int_1^e \frac{(\ln x)^3}{x}\,dx\).

The interval \([1,e]\) lies in the domain \(x>0\) of the logarithm. Choose \(u=\ln x\), so \(du=dx/x\). The new limits are \(u=0\) at \(x=1\) and \(u=1\) at \(x=e\). Therefore

$$ \begin{aligned} \int_1^e \frac{(\ln x)^3}{x}\,dx &=\int_0^1 u^3\,du\\ &=\left[\frac{u^4}{4}\right]_0^1\\ &=\frac{1^4}{4}-\frac{0^4}{4}\\ &=\frac14. \end{aligned} $$

To check, differentiate \(\frac{(\ln x)^4}{4}\). The chain rule gives \(\frac14\cdot4(\ln x)^3\cdot(1/x)=(\ln x)^3/x\). Its endpoint difference is \(1/4-0=1/4\).

Worked Example: A Logarithm of a Positive Composite

Evaluate \(\int_0^1 2x\ln(1+x^2)\,dx\).

Set \(u=1+x^2\), so \(du=2x\,dx\). On the entire interval, \(1+x^2\geq1>0\), so the logarithm is defined. The new limits are \(u=1\) at \(x=0\) and \(u=2\) at \(x=1\). Then

$$ \begin{aligned} \int_0^1 2x\ln(1+x^2)\,dx &=\int_1^2 \ln u\,du\\ &=\left[u\ln u-u\right]_1^2\\ &=(2\ln 2-2)-(1\ln 1-1)\\ &=2\ln 2-2-(0-1)\\ &=2\ln 2-1. \end{aligned} $$

For a check in the original variable, an antiderivative is \((1+x^2)\ln(1+x^2)-(1+x^2)\). Differentiating gives \(2x\ln(1+x^2)+2x-2x=2x\ln(1+x^2)\). At \(x=1\) its value is \(2\ln2-2\); at \(x=0\) its value is \(-1\). Their difference is \(2\ln2-1\).

Worked Example: An Exponential with a Base Other Than e

Evaluate \(\int_0^1 6x\,2^{3x^2}\,dx\).

For a positive base \(c\), \(c^u=e^{u\ln c}\), so \(\frac{d}{du}c^u=(\ln c)c^u\). In particular, an antiderivative of \(2^u\) is \(2^u/\ln2\). Set \(u=3x^2\), giving \(du=6x\,dx\). The bounds become \(0\) and \(3\), so

$$ \begin{aligned} \int_0^1 6x\,2^{3x^2}\,dx &=\int_0^3 2^u\,du\\ &=\left[\frac{2^u}{\ln2}\right]_0^3\\ &=\frac{2^3-2^0}{\ln2}\\ &=\frac{7}{\ln2}. \end{aligned} $$

Check in \(x\): differentiating \(2^{3x^2}/\ln2\) gives \((2^{3x^2}\ln2)(6x)/\ln2=6x\,2^{3x^2}\). Its endpoint difference is \((8-1)/\ln2=7/\ln2\).

Bounds and Domain Checks Are Part of the Method

When the variable changes, the bounds must change with it. If \(u=g(x)\), the transformed integral uses \(u=g(a)\) and \(u=g(b)\). Keeping the original bounds after replacing \(x\) by \(u\) generally describes a different integral. Separately, every logarithm must have a positive argument throughout the original interval, not merely at the endpoints.

1
Identify the inner function.
Look for \(g(x)\) in an exponential or logarithm and check whether the remaining factor includes \(g'(x)\), possibly with a constant multiple.
2
Check the hypotheses.
For these formulas, require \(g\in C^1([a,b])\). For a logarithm of \(g(x)\), also verify \(g(x)>0\) on all of \([a,b]\).
3
Transform both endpoints.
Compute the new lower and upper bounds by evaluating \(g\) at \(a\) and \(b\), respectively.
4
Evaluate and verify.
Integrate in the new variable, evaluate at the transformed endpoints, and check the result using the chain rule.

Common Mistake: Keeping the Original Bounds

Consider \(\int_1^2 2x e^{x^2}\,dx\). With \(u=x^2\), the differential is \(du=2x\,dx\), and the transformed bounds are \(u=1\) and \(u=4\). A wrong calculation keeps the bounds \(1\) and \(2\) after changing the variable:

$$ \text{Wrong: }\int_1^2 e^u\,du=e^2-e. $$

The error is that \(u=2\) does not correspond to the original upper endpoint \(x=2\); rather, \(u=2^2=4\). The correct calculation is

$$ \int_1^2 2x e^{x^2}\,dx =\int_1^4 e^u\,du =e^4-e. $$

Check by differentiating \(e^{x^2}\), which gives \(2x e^{x^2}\). Its endpoint difference is \(e^{2^2}-e^{1^2}=e^4-e\). The incorrect result came solely from using the wrong transformed upper limit.

Why the Conditions Matter

The regularity condition is not decorative. Differentiability of \(g\) alone does not guarantee that \(e^{g(x)}g'(x)\) is continuous or that its ordinary Riemann integral exists. Requiring \(g\in C^1([a,b])\) ensures that the integrand is continuous, so the proof using the Fundamental Theorem of Calculus is justified. Likewise, positivity is necessary for the real logarithm \(\ln(g(x))\) to be defined throughout the interval.

These formulas are useful because they convert a composite integrand into an endpoint calculation. The inner function determines the new bounds, while its derivative supplies the differential factor. Keeping those roles distinct helps prevent both domain errors and incorrect evaluations.

Check Your Understanding

For each question, identify the substitution and state any domain condition needed before evaluating.

  1. Evaluate \(\int_0^1 4x e^{2x^2}\,dx\), transforming the bounds explicitly.
  2. Evaluate \(\int_1^{e^2} \frac{(\ln x)^2}{x}\,dx\).
  3. For which real \(x\) is \(\ln(3-x^2)\) defined? In particular, is it defined throughout \([-1,1]\)?
  4. State a sufficient regularity condition on \(g\) for \(\int_a^b e^{g(x)}g'(x)\,dx=e^{g(b)}-e^{g(a)}\) to follow from the Fundamental Theorem of Calculus.
  5. What are the transformed bounds when \(u=1-x^2\), \(x\) runs from \(0\) to \(1\), and why is the order of those bounds relevant?

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