Tutorials › AP Calculus › Integrating Simple Rational Expressions

Antiderivatives and Substitution · Tutorial 490 of 999

Integrating Simple Rational Expressions

Rewrite simple rational integrands into basic power and reciprocal terms, then integrate and verify the result.

Intermediate 9 min read

What You'll Learn

  • Rewrite fractions with powers of x in the denominator using negative exponents.
  • Separate a rational expression into simpler terms before integrating.
  • Divide a linear numerator by a linear denominator to expose a reciprocal term.
  • Integrate reciprocal terms with logarithms, including linear denominators.
  • Track where the original integrand is undefined and check antiderivatives by differentiation.

Why Rewrite a Rational Expression?

A rational expression is a quotient of polynomials. Some such expressions can be integrated directly after a small algebraic rewrite: separate the numerator’s terms, express negative powers explicitly, or divide a linear numerator by a linear denominator. The result is a sum of familiar powers and reciprocal terms.

This matters because the denominator’s appearance can hide a simple structure. For example, a fraction with \(x^2\) in the denominator may contain a constant term, a reciprocal term, and a power term. Once those pieces are visible, the power rule for antiderivatives and the logarithmic antiderivative apply term by term.

Key idea: Rewrite the integrand algebraically before integrating. Keep track of the points where the original denominator is zero, and differentiate the result to check it.

Basic Forms and Their Conditions

For a real exponent \(r\ne -1\), the power rule gives an antiderivative of \(x^r\) on intervals where the expression is defined. The reciprocal case \(r=-1\) has a different form: its antiderivative is \(\ln|x|\), valid on intervals not containing zero.

$$ \int x^r\,dx=\frac{x^{r+1}}{r+1}+C \qquad (r\ne -1), $$
$$ \int \frac{1}{x}\,dx=\ln|x|+C. $$

Here \(C\) is an arbitrary constant. The absolute value in \(\ln|x|\) allows the formula to apply on both intervals \(x>0\) and \(x<0\). The function \(\ln|x|\) is not defined at \(x=0\), just as \(1/x\) is not defined there.

A linear denominator \(ax+b\), where \(a\ne0\), has a closely related reciprocal form. The factor \(1/a\) is needed because the derivative of \(ax+b\) is \(a\).

Result: On any interval that does not contain the zero of \(ax+b\), $$ \int \frac{1}{ax+b}\,dx=\frac{1}{a}\ln|ax+b|+C. $$

For any of these rules, the integrand must be defined on the interval under consideration. If the original rational expression is undefined at a point, an antiderivative is considered separately on each interval of its domain; one constant does not have to work across a point where the integrand is undefined.

Rewrite Powers of \(x\) in the Denominator

When a polynomial is divided by \(x^n\), divide each numerator term by the denominator. Equivalently, use \(x^k/x^n=x^{k-n}\), provided \(x\ne0\). This converts the fraction into a sum of powers, including negative powers.

For instance, dividing each term of \(3x^2+2x-5\) by \(x^2\) gives \(3+2x^{-1}-5x^{-2}\). The first two powers integrate by the power and logarithmic rules; the final term uses the power rule with exponent \(-2\).

Useful distinction: The exponent \(-1\) produces a logarithm. Other negative exponents use the power rule, as long as the exponent is not \(-1\).

Worked Example: A Polynomial over \(x^2\)

Worked Example: A Polynomial over \(x^2\)

Find an antiderivative of \(\displaystyle \frac{3x^2+2x-5}{x^2}\), and check it.

The denominator is zero at \(x=0\), so work on an interval that does not contain zero. Divide each numerator term by \(x^2\):

$$ \frac{3x^2+2x-5}{x^2} = \frac{3x^2}{x^2}+\frac{2x}{x^2}-\frac{5}{x^2} = 3+\frac{2}{x}-\frac{5}{x^2}. $$

Integrate each term. Write \(x^{-2}\) as a power, and use the logarithmic rule for \(1/x\):

$$ \begin{aligned} \int \left(3+\frac{2}{x}-\frac{5}{x^2}\right)\,dx &=3x+2\ln|x|-5\int x^{-2}\,dx\\ &=3x+2\ln|x|-5\left(\frac{x^{-1}}{-1}\right)+C\\ &=3x+2\ln|x|+\frac{5}{x}+C. \end{aligned} $$

Check by differentiation on either interval \(x<0\) or \(x>0\):

$$ \begin{aligned} \frac{d}{dx}\left(3x+2\ln|x|+\frac{5}{x}\right) &=3+\frac{2}{x}-\frac{5}{x^2}\\ &=\frac{3x^2+2x-5}{x^2}. \end{aligned} $$

The derivative equals the original integrand wherever that integrand is defined, so the antiderivative checks.

Rewrite a Linear Numerator over a Linear Denominator

If both numerator and denominator are linear, express the numerator as a multiple of the denominator plus a constant. For \((mx+n)/(ax+b)\), choose a number \(q\) so that \(mx\) matches the \(x\)-term in \(q(ax+b)\). Then the leftover is a constant. Dividing by \(ax+b\) produces a constant term plus a reciprocal term.

This is ordinary algebraic division, not a new integration rule. The resulting reciprocal term is handled by the logarithmic formula. The denominator must not be zero; if \(a\ne0\), its zero is \(x=-b/a\).

Worked Example: A Linear Denominator

Worked Example: A Linear Denominator

Find an antiderivative of \(\displaystyle \frac{4x+1}{2x-3}\), and check it.

Choose \(2\) as the quotient coefficient, since \(2(2x)=4x\). Subtract \(2(2x-3)\) from the numerator to find the remainder:

$$ (4x+1)-2(2x-3)=4x+1-(4x-6)=7. $$

Thus the numerator is \(2(2x-3)+7\), and the fraction becomes

$$ \frac{4x+1}{2x-3} = \frac{2(2x-3)+7}{2x-3} = 2+\frac{7}{2x-3}. $$

The denominator is zero at \(x=3/2\). On either interval that avoids this point, integrate the constant and the linear reciprocal. Since the coefficient of \(x\) in \(2x-3\) is \(2\), the logarithmic antiderivative includes a factor \(1/2\):

$$ \begin{aligned} \int \frac{4x+1}{2x-3}\,dx &=\int\left(2+\frac{7}{2x-3}\right)\,dx\\ &=2x+\frac{7}{2}\ln|2x-3|+C. \end{aligned} $$

Differentiate to verify both terms:

$$ \begin{aligned} \frac{d}{dx}\left(2x+\frac{7}{2}\ln|2x-3|\right) &=2+\frac{7}{2}\cdot\frac{2}{2x-3}\\ &=2+\frac{7}{2x-3}\\ &=\frac{2(2x-3)+7}{2x-3}\\ &=\frac{4x+1}{2x-3}. \end{aligned} $$

The derivative reproduces the original expression, and the antiderivative is valid on intervals that do not cross \(x=3/2\).

Why the Rewriting Method Works

The method rests on two facts. First, the algebraic rewrite gives an identity of functions wherever the original denominator is nonzero. Second, integration is linear: the antiderivative of a sum is the sum of antiderivatives, and constant factors can be taken outside the integral. These statements explain why each separated term can be integrated using its corresponding rule.

The logarithmic formula for a linear denominator can also be justified directly. On an interval where \(ax+b\ne0\), apply the chain rule to \(\ln|ax+b|\): its derivative is \(a/(ax+b)\). Multiplication by \(1/a\) cancels the factor \(a\). Therefore the derivative of the proposed antiderivative is exactly the reciprocal integrand.

$$ \frac{d}{dx}\left(\frac{1}{a}\ln|ax+b|\right) = \frac{1}{a}\cdot\frac{a}{ax+b} = \frac{1}{ax+b}, \qquad a\ne0. $$

For a power term with \(r\ne-1\), differentiating \(x^{r+1}/(r+1)\) gives \(x^r\). Thus, after the algebraic identity has exposed powers and reciprocal terms, the familiar antiderivative formulas produce a function whose derivative equals the original expression.

Worked Example: Combining Several Basic Terms

Worked Example: Combining Several Basic Terms

Find an antiderivative of \(\displaystyle \frac{x^2+3x-2}{x^2}+\frac{4x+1}{2x-3}\), and check it.

The original expression is undefined at \(x=0\) and \(x=3/2\). First rewrite each fraction separately:

$$ \frac{x^2+3x-2}{x^2} = 1+\frac{3}{x}-\frac{2}{x^2}, \qquad \frac{4x+1}{2x-3} = 2+\frac{7}{2x-3}. $$

Adding these identities gives

$$ \frac{x^2+3x-2}{x^2}+\frac{4x+1}{2x-3} = 3+\frac{3}{x}-\frac{2}{x^2}+\frac{7}{2x-3}. $$

Integrate the terms in order. The term \(-2x^{-2}\) has antiderivative \(2x^{-1}\), and the final term uses the linear reciprocal formula:

$$ \begin{aligned} \int\left(3+\frac{3}{x}-\frac{2}{x^2}+\frac{7}{2x-3}\right)\,dx &=3x+3\ln|x|+2x^{-1}+\frac{7}{2}\ln|2x-3|+C\\ &=3x+3\ln|x|+\frac{2}{x}+\frac{7}{2}\ln|2x-3|+C. \end{aligned} $$

Differentiate and compare with the rewritten integrand:

$$ \begin{aligned} \frac{d}{dx}\left(3x+3\ln|x|+\frac{2}{x}+\frac{7}{2}\ln|2x-3|\right) &=3+\frac{3}{x}-\frac{2}{x^2}+\frac{7}{2x-3}\\ &=\frac{x^2+3x-2}{x^2}+\frac{4x+1}{2x-3}. \end{aligned} $$

This confirms the answer on each interval in the domain: \((-\infty,0)\), \((0,3/2)\), and \((3/2,\infty)\). The constant of integration can be chosen independently on those separate intervals.

Common Pitfall: Treating Every Negative Power Like a Reciprocal

A frequent error is to use a logarithm whenever a denominator contains \(x\). Only the power \(x^{-1}=1/x\) integrates to a logarithm. For a different negative power, use the power rule.

Incorrect calculation: \(\displaystyle \int \frac{5}{x^2}\,dx=5\ln|x|+C\). This is wrong because the derivative of the right-hand side is \(5/x\), not \(5/x^2\).

Correction: Rewrite \(5/x^2\) as \(5x^{-2}\), then integrate: $$ \int 5x^{-2}\,dx = 5\left(\frac{x^{-1}}{-1}\right)+C = -\frac{5}{x}+C. $$ Differentiation checks the correction: \(\displaystyle \frac{d}{dx}(-5/x)=5/x^2\).

Another useful check is to substitute the proposed decomposition back into the fraction, or to differentiate the final antiderivative. These checks catch missing factors, especially the factor \(1/a\) in an antiderivative involving \(ax+b\).

A Reliable Procedure

1
Record excluded values.
Find where the original denominator is zero. The antiderivative must be considered on intervals within the remaining domain.
2
Rewrite the expression.
Separate numerator terms over powers of \(x\), or divide a linear numerator by its linear denominator to obtain a constant and a reciprocal term.
3
Integrate each term.
Use the power rule unless the exponent is \(-1\); use a logarithm for reciprocal terms, including the required coefficient for a linear denominator.
4
Check by differentiation.
Differentiate the proposed result and verify that it equals the original integrand wherever that integrand is defined.

This approach applies when simple algebra reveals powers and reciprocal terms. A more complicated rational expression may require additional methods; do not assume every rational function can be handled by these few rewrites alone.

Check Your Understanding

For each question, state any excluded values and show enough work to justify the result.

  1. Rewrite \(\displaystyle \frac{2x^2-5x+1}{x^2}\) as a sum of powers and reciprocal terms. Which term integrates to a logarithm?
  2. Find an antiderivative of \(\displaystyle \frac{6x+5}{3x+1}\). Check it by differentiation.
  3. Why does \(\displaystyle \int x^{-3}\,dx\) use the power rule rather than a logarithm?
  4. Find an antiderivative of \(\displaystyle \frac{4}{x^2}\), and identify the specific error in the claim that its antiderivative is \(4\ln|x|\).
  5. For \(\displaystyle \frac{3x+2}{x-4}\), rewrite the fraction as a constant plus a reciprocal term before integrating.

Test yourself: AP Calculus practice exams

Ready to check what you know? Work an AP-style practice exam, then open the full solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: 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