Tutorials › Calculus II › Integrating Simple Linear Terms on Finite Intervals

Improper Rational Functions · Tutorial 217 of 998

Integrating Simple Linear Terms on Finite Intervals

Use logarithmic antiderivatives to evaluate finite-interval integrals of simple linear terms, while checking poles, signs, and endpoint values.

Intermediate 9 min read

What You'll Learn

  • Identify when a simple linear term has a pole on an interval
  • Find an antiderivative of a constant divided by a linear factor
  • Explain why the logarithm uses an absolute value
  • Evaluate definite integrals by substituting both endpoints
  • Integrate sums of simple linear terms term by term
  • Recognize when the ordinary finite-interval formula does not apply

Why Logarithms Appear

A simple linear partial-fraction term has a constant numerator and a linear denominator. Its integral is governed by the logarithm: differentiating a logarithm of the denominator recovers the reciprocal linear factor. For a definite integral, the result depends on the values at both endpoints, so it is essential to keep track of where the denominator is zero and to use absolute values correctly.

This tutorial considers ordinary definite integrals over finite closed intervals. The denominator of each nonzero term must stay nonzero throughout the interval. If a denominator vanishes there, the integral is not an ordinary finite-interval integral of a continuous function, and the formula developed here does not apply.

The Antiderivative of a Simple Linear Term

Definition: A simple linear term is an expression of the form \( \frac{C}{x-a} \), where \(C\) and \(a\) are constants. If \(C\ne 0\), then \(x=a\) is a pole of this term. If \(C=0\), the term is zero wherever it is defined; it has no pole. A zero-coefficient term can be omitted from a sum. If the expression is considered at \(x=a\), it can be assigned its removable value \(0\).

For \(C\ne 0\), and for \(x\ne a\), an antiderivative is \(C\ln|x-a|\). The absolute value matters because \(x-a\) may be positive or negative. The real logarithm is defined only for positive inputs, but \(|x-a|>0\) whenever \(x\ne a\).

$$ \int \frac{C}{x-a}\,dx=C\ln|x-a|+K,\qquad x\ne a, $$

Here \(K\) is an arbitrary constant. The formula also gives zero for \(C=0\), wherever the original expression is defined. In a definite integral, the constant \(K\) cancels when the endpoint values are subtracted.

Why the Logarithmic Formula Works

The key derivative can be checked on both sides of \(a\). If \(x>a\), then \(|x-a|=x-a\), so the derivative of \(\ln|x-a|\) is \(1/(x-a)\). If \(x<a\), then \(|x-a|=a-x\), and differentiating \(\ln(a-x)\) gives \(-1/(a-x)=1/(x-a)\). Thus the same derivative formula holds on either interval that does not contain \(a\).

1
Stay away from the zero of the denominator.
On an interval that does not contain \(a\), the function \(C/(x-a)\) is continuous.
2
Differentiate the logarithm.
For every \(x\ne a\), the chain rule and the absolute-value calculation above give \( \frac{d}{dx}\bigl(C\ln|x-a|\bigr)=C/(x-a) \).
3
Apply the Fundamental Theorem of Calculus.
On a finite interval \([u,v]\) that avoids \(a\), the integrand is continuous and the logarithm is an antiderivative there. Therefore its endpoint difference equals the definite integral.
Theorem: If \(u<v\), \(C\ne 0\), and \(a\notin[u,v]\), then \( \int_u^v \frac{C}{x-a}\,dx=C\bigl(\ln|v-a|-\ln|u-a|\bigr)=C\ln\!\left(\frac{|v-a|}{|u-a|}\right) \). For a finite sum of such terms, the formula applies term by term provided every term with a nonzero coefficient has its pole outside \([u,v]\). Terms with zero coefficient may be omitted.

The condition excludes a pole at either endpoint as well as a pole in the interior. It guarantees that every logarithm in the endpoint formula has a positive, nonzero argument and that the integrand is continuous on the whole closed interval.

Evaluating One Term

Worked Example: A Positive Denominator Throughout the Interval

Evaluate \( \int_0^2 \frac{3}{x+1}\,dx \). Here \(x+1=x-(-1)\), so the pole is at \(x=-1\), outside \([0,2]\). An antiderivative is \(F(x)=3\ln|x+1|\).

Substitute the upper endpoint: \(F(2)=3\ln|3|=3\ln 3\). Substitute the lower endpoint: \(F(0)=3\ln|1|=3\ln 1=0\). Subtract lower from upper:

$$ \int_0^2 \frac{3}{x+1}\,dx =F(2)-F(0) =3\ln 3-0 =3\ln 3. $$

Check by differentiating the proposed antiderivative: \(F'(x)=3\cdot\frac{1}{x+1}\cdot 1=3/(x+1)\), the original integrand. The pole is outside the interval, so the endpoint evaluation is valid.

Absolute Values and Intervals to the Left of a Pole

An interval need not lie to the right of a pole. If it lies entirely to the left, \(x-a\) is negative throughout, but the absolute value still produces a positive logarithm input. The derivative remains \(1/(x-a)\); changing the sign of the denominator does not change the antiderivative rule.

Worked Example: An Interval Entirely to the Left of the Pole

Evaluate \( \int_{-3}^{-1} \frac{2}{x-1}\,dx \). The pole is \(x=1\), which is not in \([-3,-1]\). An antiderivative is \(F(x)=2\ln|x-1|\).

At the upper endpoint, \(F(-1)=2\ln|-2|=2\ln 2\). At the lower endpoint, \(F(-3)=2\ln|-4|=2\ln 4\). Therefore,

$$ \int_{-3}^{-1}\frac{2}{x-1}\,dx =2\ln 2-2\ln 4 =2\ln\!\left(\frac{2}{4}\right) =2\ln\!\left(\frac12\right) =-2\ln 2. $$

For a check, differentiating \(2\ln|x-1|\) gives \(2/(x-1)\) for every \(x\ne 1\). Also, the integrand is negative throughout this interval, consistent with the negative value of the integral.

Integrating a Sum of Simple Linear Terms

Integration is linear: the integral of a finite sum is the sum of the integrals, and constant coefficients can be factored out. Thus a sum of simple linear terms is handled by finding one logarithmic antiderivative for each term, adding them, and evaluating the resulting expression at the endpoints. Combine duplicate terms first if necessary; the formula applies to the resulting terms.

Worked Example: Two Terms with Different Poles

Evaluate \( \int_0^1\left(\frac{2}{x-2}-\frac{1}{x+1}\right)\,dx \). The poles are \(2\) and \(-1\), both outside \([0,1]\). Integrating each term gives the antiderivative \(F(x)=2\ln|x-2|-\ln|x+1|\).

At \(x=1\), the two logarithm inputs are \(|1-2|=1\) and \(|1+1|=2\), so \(F(1)=2\ln 1-\ln 2=-\ln 2\). At \(x=0\), the inputs are \(|0-2|=2\) and \(|0+1|=1\), so \(F(0)=2\ln 2-\ln 1=2\ln 2\). Hence,

$$ \int_0^1\left(\frac{2}{x-2}-\frac{1}{x+1}\right)\,dx =F(1)-F(0) =-\ln 2-2\ln 2 =-3\ln 2. $$

Differentiate to check: \(F'(x)=2/(x-2)-1/(x+1)\), exactly the integrand. The signs also agree: on \([0,1]\), \(2/(x-2)<0\) and \(-1/(x+1)<0\), so a negative integral is expected.

Takeaway: For \( \frac{C}{x-a} \), use \(C\ln|x-a|\), then evaluate the upper endpoint minus the lower endpoint. For a sum, do this for every term with a nonzero coefficient, after checking that none of its poles lies in the interval.

A Common Error: Dropping the Absolute Value

A tempting but invalid step is to use \(\ln(x-a)\) when \(x-a\) is negative. For example, on \([0,1]\), the expression \(x-2\) is negative. The calculation \( \ln(1-2)-\ln(0-2)=\ln(-1)-\ln(-2) \) is not a valid calculation with real logarithms: neither logarithm is defined.

The correction is to retain the absolute values in the antiderivative and at both endpoints. For this same integrand,

$$ \int_0^1\frac{1}{x-2}\,dx =\ln|1-2|-\ln|0-2| =\ln 1-\ln 2 =-\ln 2. $$

Indeed, \( \frac{d}{dx}\ln|x-2|=1/(x-2) \) on this interval. The absolute value makes the logarithm real; it does not remove the negative sign of the original integrand.

When the Formula Does Not Apply

If a nonzero term \(C/(x-a)\) has \(a\in[u,v]\), its denominator vanishes somewhere on the interval. The function is then not continuous on the entire closed interval, so the ordinary finite-interval formula from the theorem cannot be used. In particular, it is not valid simply to substitute the two endpoints into a logarithmic expression and ignore a pole between them. Integrals involving such singularities require separate treatment and are outside the scope of this tutorial.

Always check the poles of the actual terms being integrated. A term with \(C=0\) contributes zero and is omitted when checking for poles; a term with \(C\ne0\) has a pole at its denominator’s zero. This distinction avoids incorrectly treating a zero term as having a pole.

Check Your Understanding

Use the logarithmic antiderivative and check that each interval avoids the poles of all nonzero terms.

  1. Find an antiderivative of \( \frac{5}{x+3} \) on an interval that does not contain \(x=-3\).
  2. Evaluate \( \int_0^2 \frac{1}{x-4}\,dx \) in exact form.
  3. Evaluate \( \int_{-2}^{-1} \frac{3}{x+1}\,dx \), or explain why the ordinary finite-interval formula does not apply.
  4. For what values of \(x\) is \( \frac{d}{dx}\ln|x-5|=\frac{1}{x-5} \) valid?
  5. If a partial-fraction term is \(0/(x-2)\), should \(x=2\) be counted as a pole of that term? Explain.

Test yourself: Calculus II 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