Tutorials › Calculus I › Rational Definite Integrals By Substitution

Substitution and Reversing the Chain Rule · Tutorial 1146 of 1495

Rational Definite Integrals By Substitution

Match the numerator to the derivative of the denominator, transform both bounds, and evaluate the resulting logarithm correctly.

Intermediate 9 min read

What You'll Learn

  • Recognize when a rational integrand contains a denominator and its derivative.
  • Use a substitution to convert the integral into a logarithmic form.
  • Transform both limits to the new variable before evaluating.
  • Account for a constant multiple between the numerator and the denominator’s derivative.
  • Check that the denominator does not vanish anywhere on the interval.
  • Verify an answer by differentiating its antiderivative.

From a Composite Denominator to a Logarithm

A rational integrand has a polynomial expression divided by another polynomial expression. Some such integrals become much simpler when the numerator is the derivative of the denominator, or a constant multiple of that derivative. The key pattern is a function divided by its own derivative’s source: \(g'(x)/g(x)\).

This pattern leads to a logarithm because the derivative of a logarithm of a nonzero function is its derivative divided by the function. For a definite integral, substitution also changes the integration limits. Transforming those limits as well as the integrand keeps the calculation entirely in the new variable.

Central pattern: If \(g\) is continuously differentiable and nonzero throughout \([a,b]\), then \(\int_a^b \frac{g'(x)}{g(x)}\,dx=\ln|g(b)|-\ln|g(a)|\). A constant multiple \(c\,g'(x)\) in the numerator contributes the same constant \(c\) in front of the logarithmic difference.

Recognizing the Matching Factors

Suppose a definite integral has the form

$$ \int_a^b \frac{c\,g'(x)}{g(x)}\,dx, $$

where \(c\) is a constant, \(g\) is differentiable on \([a,b]\), and \(g(x)\ne 0\) at every point of that interval. The denominator is the proposed inner function, and its derivative should match the numerator apart from the constant \(c\).

For example, if the denominator is \(3x^2+2x+5\), its derivative is \(6x+2\). A numerator of \(6x+2\) matches exactly. A numerator of \(9x+3\) is \(\frac{3}{2}(6x+2)\), so it matches with constant factor \(\frac{3}{2}\).

Matching is a structural check, not a guess based only on how complicated the denominator looks. Differentiate the denominator explicitly, then compare every term with the numerator. If the numerator does not match, this particular logarithmic pattern does not directly evaluate the whole integral.

Substitution and the Changed Bounds

Set \(u=g(x)\). Then \(du=g'(x)\,dx\), so a numerator of \(c\,g'(x)\) becomes \(c\,du\). The original limits \(x=a\) and \(x=b\) must also be converted: the new lower limit is \(g(a)\), and the new upper limit is \(g(b)\).

1
Identify the denominator.
Write it as \(g(x)\) and compute \(g'(x)\).
2
Compare with the numerator.
Check whether the numerator equals \(c\,g'(x)\) for a constant \(c\).
3
Substitute and transform the limits.
Use \(u=g(x)\), with new limits \(g(a)\) and \(g(b)\).
4
Evaluate and check.
Integrate in \(u\), evaluate at the transformed limits, and differentiate the resulting antiderivative to verify it.

The logarithm in the antiderivative is \(\ln|u|\), since the natural logarithm is defined for positive inputs and \(u\) need not be positive. The condition \(g(x)\ne 0\) throughout the interval ensures that the original integrand has no denominator singularity there and that the logarithmic expression is defined along the interval.

Why the Logarithmic Formula Works

The formula follows from differentiation and the Fundamental Theorem of Calculus. Because \(g\) is continuous and never zero on the interval, it cannot change sign there: a sign change would force it to equal zero at some point. Thus either \(g(x)>0\) throughout or \(g(x)<0\) throughout.

If \(g\) is positive, the chain rule gives \(\frac{d}{dx}\ln(g(x))=\frac{g'(x)}{g(x)}\). If \(g\) is negative, then \(|g(x)|=-g(x)\), so

$$ \frac{d}{dx}\ln|g(x)| = \frac{d}{dx}\ln(-g(x)) = \frac{-g'(x)}{-g(x)} = \frac{g'(x)}{g(x)}. $$

In either case, \(\ln|g(x)|\) is an antiderivative of \(g'(x)/g(x)\) on the interval. The Fundamental Theorem of Calculus therefore gives the definite-integral formula. Multiplying the integrand by a constant \(c\) multiplies the integral by \(c\).

Theorem: Let \(g\) be continuously differentiable on \([a,b]\), with \(g(x)\ne0\) for every \(x\in[a,b]\), and let \(c\) be constant. Then \(\int_a^b \frac{c\,g'(x)}{g(x)}\,dx=c\bigl(\ln|g(b)|-\ln|g(a)|\bigr)\). Equivalently, the result is \(c\ln\left|\frac{g(b)}{g(a)}\right|\).

Worked Examples

Worked Example: A Quadratic Denominator

Evaluate \(\int_0^2 \frac{6x+2}{3x^2+2x+5}\,dx\).

Let \(g(x)=3x^2+2x+5\). Its derivative is \(g'(x)=6x+2\), exactly the numerator. The denominator is positive on \([0,2]\): each term is nonnegative there, and the constant term is \(5\). Set \(u=3x^2+2x+5\), so \(du=(6x+2)\,dx\).

Transform the bounds: when \(x=0\), \(u=5\); when \(x=2\), \(u=3(2)^2+2(2)+5=12+4+5=21\). Therefore

$$ \int_0^2 \frac{6x+2}{3x^2+2x+5}\,dx = \int_5^{21}\frac{1}{u}\,du = \ln(21)-\ln(5) = \ln\left(\frac{21}{5}\right). $$

Check: an antiderivative in \(x\) is \(\ln(3x^2+2x+5)\), whose derivative is \(\frac{6x+2}{3x^2+2x+5}\). Evaluating it at \(2\) and \(0\) gives \(\ln(21)-\ln(5)\), confirming the result.

Worked Example: A Linear Denominator

Evaluate \(\int_1^4 \frac{5}{5x-2}\,dx\).

Here \(g(x)=5x-2\), so \(g'(x)=5\), which matches the numerator. On \([1,4]\), \(5x-2\ge 5(1)-2=3>0\), so the denominator never vanishes. Set \(u=5x-2\), giving \(du=5\,dx\). The transformed bounds are \(u=3\) at \(x=1\) and \(u=18\) at \(x=4\).

$$ \int_1^4 \frac{5}{5x-2}\,dx = \int_3^{18}\frac{1}{u}\,du = \ln(18)-\ln(3) = \ln(6). $$

Check: differentiating \(\ln(5x-2)\) gives \(\frac{5}{5x-2}\). Its endpoint difference is \(\ln(18)-\ln(3)=\ln(6)\), as obtained by substitution.

Worked Example: A Constant Multiple of the Derivative

Evaluate \(\int_0^2 \frac{9x+6}{3x^2+4x+7}\,dx\).

Let \(g(x)=3x^2+4x+7\), so \(g'(x)=6x+4\). The numerator is \(\frac{3}{2}(6x+4)\), since \(\frac{3}{2}\cdot 6x=9x\) and \(\frac{3}{2}\cdot4=6\). The denominator is positive on \([0,2]\), because \(3x^2\) and \(4x\) are nonnegative there and the constant term is \(7\).

Use \(u=3x^2+4x+7\), so \(du=(6x+4)\,dx\). The transformed bounds are \(u=7\) when \(x=0\), and \(u=3(2)^2+4(2)+7=12+8+7=27\) when \(x=2\). Hence

$$ \int_0^2 \frac{9x+6}{3x^2+4x+7}\,dx = \frac{3}{2}\int_7^{27}\frac{1}{u}\,du = \frac{3}{2}\bigl(\ln(27)-\ln(7)\bigr) = \frac{3}{2}\ln\left(\frac{27}{7}\right). $$

Check: differentiating \(\frac{3}{2}\ln(3x^2+4x+7)\) gives \(\frac{3}{2}\frac{6x+4}{3x^2+4x+7}=\frac{9x+6}{3x^2+4x+7}\). Its endpoint difference is \(\frac{3}{2}(\ln 27-\ln 7)\), matching the result.

A Common Bounds Mistake

Once the integrand has been rewritten in terms of \(u\), the integral’s bounds must also be expressed in terms of \(u\). Keeping the old \(x\)-bounds while integrating with respect to \(u\) mixes two variables and generally produces the wrong value.

For the first example, \(u=3x^2+2x+5\). A mistaken calculation would leave the limits as \(0\) and \(2\):

$$ \int_0^2 \frac{du}{u} = \ln(2)-\ln(0). $$

This is not a valid evaluation: \(\ln(0)\) is undefined, and \(0\) and \(2\) were values of \(x\), not the corresponding values of \(u\). The correct transformed bounds are \(u=5\) and \(u=21\), giving \(\int_5^{21}\frac{du}{u}=\ln(21)-\ln(5)\).

A separate condition matters as well: the denominator must not vanish anywhere in the interval for this ordinary definite-integral formula to apply. If it does vanish, the integrand is not continuous there, and the integral requires separate treatment rather than direct substitution across the singularity.

Using the Result Reliably

For a rational definite integral with a composite denominator, the practical test is to differentiate the denominator and compare the result with the numerator. When they match up to a constant and the denominator stays nonzero on the interval, substitution reduces the calculation to the integral of \(1/u\).

The transformed limits encode the original endpoints. They also make the final logarithm a comparison of the denominator’s endpoint values. In particular, the answer depends on both endpoint values, not just on the width of the original interval. A final differentiation check confirms that the proposed logarithmic expression has the required integrand as its derivative.

Check Your Understanding

For each question, identify the denominator and its derivative before choosing a substitution.

  1. Evaluate \(\int_0^1 \frac{2x+4}{x^2+4x+6}\,dx\), including the transformed bounds.
  2. For \(\int_1^3 \frac{8x}{4x^2+5}\,dx\), what substitution and new limits produce an integral of \(1/u\)?
  3. Evaluate \(\int_0^2 \frac{12x+6}{3x^2+3x+8}\,dx\). What constant multiple relates the numerator to the derivative of the denominator?
  4. Why must the denominator be nonzero throughout the interval when applying the logarithmic formula?
  5. In a substitution \(u=g(x)\), what is wrong with leaving the original \(x\)-limits unchanged while integrating with respect to \(u\)?

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