Tutorials › AP Calculus › Partial Fractions with Repeated Irreducible Quadratics

Numerical and BC Integration Methods · Tutorial 527 of 999

Partial Fractions with Repeated Irreducible Quadratics

Set up the terms for repeated irreducible quadratics and integrate their linear numerators, including cases that require completing the square.

Advanced 10 min read

What You'll Learn

  • Write the correct partial-fraction terms for each power of a repeated irreducible quadratic
  • Explain why every power of the repeated factor must appear
  • Split a linear numerator into a multiple of the quadratic’s derivative and a constant
  • Complete the square and integrate the resulting quadratic-denominator terms
  • Use and justify a reduction formula for higher powers
  • Check antiderivatives by differentiating them

Why Repeated Quadratics Need Their Own Terms

A rational function with an irreducible quadratic in its denominator is not decomposed in the same way as one with only distinct linear factors. When the quadratic is repeated, the decomposition must include a term for each power of that quadratic. The numerators of those terms are linear, and integrating them may require completing the square.

The essential integration pattern is to separate a numerator into a part proportional to the derivative of the quadratic and a constant part. The derivative part often integrates directly by substitution; the remaining part leads to an arctangent for the first power or a reduction formula for higher powers.

Key idea: If an irreducible quadratic factor \(Q(x)\) occurs to the power \(m\), the partial-fraction decomposition includes a linear numerator over every power \(Q(x),Q(x)^2,\ldots,Q(x)^m\).

The Decomposition Form

Let \(Q(x)\) be an irreducible quadratic over the real numbers. If a denominator contains \(Q(x)^m\), its partial-fraction contribution has the form below. Other factors in the denominator contribute their own terms.

$$ \frac{A_1x+B_1}{Q(x)} +\frac{A_2x+B_2}{Q(x)^2} +\cdots+ \frac{A_mx+B_m}{Q(x)^m}. $$

Each numerator is at most linear because the degree of a numerator in a partial fraction must be less than the degree of its denominator factor. Here each \(Q(x)^k\) has degree \(2k\), but the partial-fraction numerator corresponding to the irreducible quadratic factor is linear.

For instance, if a denominator factors as \((x-r)Q(x)^2\), the decomposition has the form:

$$ \frac{A}{x-r} +\frac{Bx+C}{Q(x)} +\frac{Dx+E}{Q(x)^2}. $$

The coefficients are found by equating expressions after clearing denominators. The focus here is the form of the terms and how to integrate them once they are known.

Why every power appears: A repeated factor of multiplicity \(m\) requires terms for all powers from \(1\) through \(m\). Including only \(1/Q(x)^m\) does not, in general, allow the decomposition to represent every proper rational function with that denominator factor.

Separate the Numerator Before Integrating

Suppose a term has the form \((px+q)/Q(x)^k\), where \(Q\) is quadratic. The derivative \(Q'(x)\) is linear, so the numerator can be written as a multiple of \(Q'(x)\) plus a constant. This exposes two different integration tasks.

For example, if \(Q(x)=ax^2+bx+c\), with \(a\ne 0\), then \(Q'(x)=2ax+b\), and:

$$ px+q = \frac{p}{2a}Q'(x) + \left(q-\frac{pb}{2a}\right). $$

The first part is directly related to the derivative of \(Q\). When \(k>1\), its integral is a power of \(Q\); when \(k=1\), it gives a logarithm. The constant part requires integrating \(1/Q(x)^k\).

To handle that remaining integral, complete the square. For a quadratic with positive leading coefficient and no real roots, we can write:

$$ Q(x)=A\bigl((x-h)^2+d^2\bigr), \qquad A>0,\quad d>0. $$

Thus \(1/Q(x)^k\) is \(A^{-k}\) times a reciprocal power of a shifted sum of squares. The first such integral is an arctangent; higher powers can be reduced to lower ones.

A Reduction Formula for Higher Powers

Write \(u=x-h\), and set \(D=u^2+d^2\). Define \(I_n=\int du/D^n\), with \(d>0\). The first case is:

$$ I_1=\int\frac{du}{u^2+d^2} =\frac{1}{d}\arctan\!\left(\frac{u}{d}\right)+C. $$

For integers \(n\ge 2\), a reduction formula expresses \(I_n\) using \(I_{n-1}\):

$$ I_n = \frac{u}{2d^2(n-1)D^{n-1}} + \frac{2n-3}{2d^2(n-1)}I_{n-1}. $$

The formula follows by differentiating \(u/D^{n-1}\). Since \(D'=2u\), the product and chain rules give:

$$ \frac{d}{du}\left(\frac{u}{D^{n-1}}\right) = \frac{D-2(n-1)u^2}{D^n}. $$

Using \(u^2=D-d^2\), the numerator becomes \(2(n-1)d^2-(2n-3)D\). Therefore:

$$ \frac{d}{du}\left(\frac{u}{D^{n-1}}\right) = \frac{2(n-1)d^2}{D^n} -\frac{2n-3}{D^{n-1}}. $$

Solving this equation for \(1/D^n\) and integrating both sides gives the stated reduction formula. This derivation also explains why each step reduces the power by one. Repeated use eventually reaches \(I_1\), which is the arctangent case.

Condition: The reduction formula applies to \(D=u^2+d^2\) with \(d>0\) and integer \(n\ge2\). If the original quadratic has a constant factor \(A\), account for the factor \(A^{-n}\) when integrating \(1/Q(x)^n\).

Worked Examples

Worked Example: A Squared Quadratic with a Derivative Term

Integrate:

$$ \int\frac{2x-4}{\bigl((x-1)^2+4\bigr)^2}\,dx. $$

Let \(u=x-1\). Then \(x=u+1\), so \(2x-4=2u-2\), and the denominator is \((u^2+4)^2\). Separate the numerator:

$$ \int\frac{2u-2}{(u^2+4)^2}\,du = \int\frac{2u}{(u^2+4)^2}\,du -2\int\frac{du}{(u^2+4)^2}. $$

For the first integral, \(d(u^2+4)=2u\,du\), so it is \(-1/(u^2+4)\). For the second, the reduction formula with \(d=2\) and \(n=2\) gives:

$$ \int\frac{du}{(u^2+4)^2} = \frac{u}{8(u^2+4)} +\frac{1}{16}\arctan\!\left(\frac{u}{2}\right)+C. $$

Substituting this result and simplifying gives:

$$ -\frac{1}{u^2+4} -\frac{u}{4(u^2+4)} -\frac{1}{8}\arctan\!\left(\frac{u}{2}\right)+C. $$

Replace \(u\) with \(x-1\). To check, differentiate the result in its unsimplified grouped form \(-1/(u^2+4)-2I_2\). Its derivative is \(2u/(u^2+4)^2-2/(u^2+4)^2=(2u-2)/(u^2+4)^2\), which is the original integrand after substitution.

Worked Example: Completing the Square for a Cubed Quadratic

Integrate:

$$ \int\frac{4x+5}{(x^2+2x+5)^3}\,dx. $$

Complete the square: \(x^2+2x+5=(x+1)^2+4\). Set \(u=x+1\), so \(x=u-1\). Then \(4x+5=4u+1\), and the integral becomes:

$$ \int\frac{4u+1}{(u^2+4)^3}\,du = \int\frac{4u}{(u^2+4)^3}\,du + \int\frac{du}{(u^2+4)^3}. $$

The first part uses \(d(u^2+4)=2u\,du\), giving \(-1/(u^2+4)^2\). For the second part, apply the reduction formula with \(d=2\), \(n=3\), and \(D=u^2+4\):

$$ I_3 = \frac{u}{16(u^2+4)^2} +\frac{3}{16}I_2, \qquad I_2=\frac{u}{8(u^2+4)} +\frac{1}{16}\arctan\!\left(\frac{u}{2}\right). $$

Substitute \(I_2\) into \(I_3\), then combine the terms:

$$ I_3 = \frac{u}{16(u^2+4)^2} +\frac{3u}{128(u^2+4)} +\frac{3}{256}\arctan\!\left(\frac{u}{2}\right). $$

Therefore an antiderivative is:

$$ -\frac{1}{(u^2+4)^2} +\frac{u}{16(u^2+4)^2} +\frac{3u}{128(u^2+4)} +\frac{3}{256}\arctan\!\left(\frac{u}{2}\right)+C, \qquad u=x+1. $$

For the check, differentiate the expression as \(-1/(u^2+4)^2+I_3\). The first term differentiates to \(4u/(u^2+4)^3\), and \(I_3'=1/(u^2+4)^3\). Their sum is \((4u+1)/(u^2+4)^3\), the transformed integrand.

Worked Example: Integrating Terms from a Repeated-Quadratic Decomposition

Consider the already decomposed integrand:

$$ \frac{1}{x-2} +\frac{2x+1}{(x+1)^2+4} +\frac{3x-2}{\bigl((x+1)^2+4\bigr)^2}. $$

The denominator has a repeated irreducible quadratic \(Q(x)=(x+1)^2+4\), so both \(1/Q\) and \(1/Q^2\) terms occur. Set \(u=x+1\). Then \(2x+1=2u-1\), \(3x-2=3u-5\), and \(Q=u^2+4\). Integrate each part:

$$ \int\frac{dx}{x-2}=\ln|x-2|+C, \qquad \int\frac{2u}{u^2+4}\,du=\ln(u^2+4)+C, $$

The remaining part of the \(1/Q\) term is \(-\int du/(u^2+4)=-\tfrac12\arctan(u/2)\). The \(1/Q^2\) term uses \(\int u/(u^2+4)^2\,du=-1/[2(u^2+4)]\) and the \(I_2\) formula from the previous example. Thus an antiderivative is:

$$ \ln|x-2|+\ln(u^2+4) -\frac12\arctan\!\left(\frac{u}{2}\right) -\frac{3}{2(u^2+4)} -\frac{5u}{8(u^2+4)} -\frac{5}{16}\arctan\!\left(\frac{u}{2}\right)+C, \qquad u=x+1. $$

Check by differentiating in grouped terms. The derivative of \(\ln|x-2|\) is \(1/(x-2)\). The derivative of \(\ln(u^2+4)-\tfrac12\arctan(u/2)\) is \((2u-1)/(u^2+4)\). The remaining three terms are \(-3/[2(u^2+4)]-5I_2\); their derivative is \(3u/(u^2+4)^2-5/(u^2+4)^2=(3u-5)/(u^2+4)^2\). These are exactly the three original summands after substituting \(u=x+1\).

A Common Mistake

A common error is to include only the highest power of a repeated quadratic in the decomposition. For example, one might incorrectly try to write \(1/Q(x)^2=A/Q(x)\), where \(A\) is a constant. Clearing denominators gives \(1=AQ(x)\), which cannot hold for a nonconstant quadratic \(Q\): the right side has degree two if \(A\ne0\), and is zero if \(A=0\).

The correction is to allow a term for each power, with its own linear numerator. A term with denominator \(Q^2\) may require both a \(1/Q\) term and a \(1/Q^2\) term elsewhere in the decomposition. After the correct form is set up, integrate each term separately and check the final antiderivative by differentiation.

Takeaway: For a repeated irreducible quadratic, include every power in the decomposition, then separate each linear numerator into a derivative-related part and a constant part. Complete the square for the constant part, and reduce higher powers until the arctangent case is reached.

Check Your Understanding

Use the decomposition form and integration methods from this tutorial to answer these questions.

  1. What terms are required for a denominator containing \(Q(x)^3\), where \(Q\) is irreducible and quadratic?
  2. Rewrite \(5x-1\) as a multiple of the derivative of \(x^2+4x+8\) plus a constant.
  3. Complete the square in \(x^2-6x+13\) and state the positive value of \(d\) in the form \((x-h)^2+d^2\).
  4. Use the reduction formula to express \(\int du/(u^2+9)^2\) in terms of \(u\) and an arctangent.
  5. Differentiate an antiderivative of \((2u+1)/(u^2+4)^2\) to verify that it recovers the integrand.

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