Tutorials › Calculus II › Integrating Repeated Quadratic-Factor Terms

Improper Rational Functions · Tutorial 220 of 998

Integrating Repeated Quadratic-Factor Terms

Separate the derivative-shaped numerator from the constant part, then evaluate the resulting quadratic powers exactly over the interval.

Intermediate 10 min read

What You'll Learn

  • Recognize the definite integrals arising from repeated irreducible quadratic factors
  • Split a linear numerator into a multiple of the quadratic’s derivative and a constant
  • Evaluate the derivative-shaped part when the quadratic is repeated
  • Complete the square to reduce the remaining integral to standard quadratic powers
  • Derive and apply a recurrence for powers of a positive quadratic
  • Check endpoint values and verify a definite-integral calculation

Why repeated quadratic terms need two steps

A partial-fraction decomposition can contain terms whose denominators are powers of an irreducible quadratic, such as \((x^2+4)^2\) or \((x^2+1)^3\). When the numerator is linear, part of it may match the derivative of the quadratic. That part integrates directly by substitution; the rest requires an antiderivative for a power of the quadratic.

This tutorial develops that approach for definite integrals. A real irreducible quadratic has no real roots, so it does not vanish on the real interval of integration. Consequently, each individual term considered here is continuous on every finite interval, and its definite integral exists.

Definition: Let \(Q(x)=ax^2+bx+c\) be an irreducible quadratic with \(a>0\), and let \(k\) be a positive integer. A repeated quadratic partial-fraction term has the form \(\frac{Ax+B}{Q(x)^k}\), where \(A\) and \(B\) are constants. For the repeated case, \(k\ge 2\).

Split the numerator using the derivative

The derivative of \(Q(x)=ax^2+bx+c\) is \(Q'(x)=2ax+b\). Given the numerator \(Ax+B\), choose constants \(\lambda\) and \(\mu\) so that \(Ax+B=\lambda Q'(x)+\mu\). Matching the coefficient of \(x\) gives \(\lambda=\frac{A}{2a}\), and then matching constants gives \(\mu=B-\frac{Ab}{2a}\). Thus

$$ Ax+B=\frac{A}{2a}Q'(x)+\left(B-\frac{Ab}{2a}\right). $$

For \(k\ge2\), the derivative-shaped part has an immediate antiderivative: since \(\frac{d}{dx}Q(x)^{1-k}=(1-k)Q'(x)Q(x)^{-k}\), its integral is a multiple of \(Q(x)^{1-k}\). The remaining constant-numerator term requires integrating \(Q(x)^{-k}\).

$$ \int \frac{Ax+B}{Q(x)^k}\,dx = \frac{A}{2a}\frac{Q(x)^{1-k}}{1-k} + \left(B-\frac{Ab}{2a}\right)\int \frac{dx}{Q(x)^k}, \qquad k\ge2. $$

For a definite integral from \(u\) to \(v\), evaluate both contributions at the endpoints. In the formula above, the first contribution becomes \(\frac{A}{2a(1-k)}\bigl(Q(v)^{1-k}-Q(u)^{1-k}\bigr)\). The remaining task is to evaluate the definite integral of \(Q^{-k}\).

Reduce the quadratic to a standard form

Because \(Q\) is irreducible over the reals, its discriminant \(b^2-4ac\) is negative. Completing the square gives

$$ Q(x) = a\left[\left(x+\frac{b}{2a}\right)^2+ \frac{4ac-b^2}{4a^2}\right]. $$

Set \(z=x+\frac{b}{2a}\) and \(d=\frac{\sqrt{4ac-b^2}}{2a}\). Both \(a\) and \(d\) are positive, \(Q(x)=a(z^2+d^2)\), and \(dz=dx\). Therefore

$$ \int \frac{dx}{Q(x)^k} = \frac{1}{a^k}\int\frac{dz}{(z^2+d^2)^k}. $$

For definite integrals, the transformed limits are \(u+\frac{b}{2a}\) and \(v+\frac{b}{2a}\). Define \(J_k(z)=\int\frac{dz}{(z^2+d^2)^k}\), with \(d>0\). The base case is \(J_1(z)=\frac{1}{d}\arctan(\frac{z}{d})\). Repeated powers can be obtained from a recurrence.

Recurrence: For \(k\ge2\), $$ J_k(z) = \frac{z}{2d^2(k-1)(z^2+d^2)^{k-1}} + \frac{2k-3}{2d^2(k-1)}J_{k-1}(z). $$

Why the recurrence works

To derive it, differentiate \(z(z^2+d^2)^{-(k-1)}\) using the product rule. The result is

$$ \frac{d}{dz}\left(\frac{z}{(z^2+d^2)^{k-1}}\right) = \frac{1}{(z^2+d^2)^{k-1}} - \frac{2(k-1)z^2}{(z^2+d^2)^k}. $$

Write the first term on the right over the denominator \((z^2+d^2)^k\), and use \(z^2=(z^2+d^2)-d^2\) in the second term. After collecting terms, the identity becomes

$$ \frac{1}{(z^2+d^2)^k} = \frac{1}{2d^2(k-1)} \frac{d}{dz}\left(\frac{z}{(z^2+d^2)^{k-1}}\right) + \frac{2k-3}{2d^2(k-1)} \frac{1}{(z^2+d^2)^{k-1}}. $$

Integrating both sides gives the stated recurrence. This derivation also explains why the recurrence lowers the power by one: the derivative term supplies a boundary expression, and the remaining integral has denominator power \(k-1\). Starting with \(J_1\), it produces antiderivatives for every positive integer \(k\).

Worked Example: A symmetric interval with a squared quadratic

Worked Example: A symmetric interval with a squared quadratic

Evaluate \(\int_{-1}^{1}\frac{3x+5}{(x^2+4)^2}\,dx\).

Here \(Q(x)=x^2+4\), \(Q'(x)=2x\), and \(k=2\). Split the numerator as \(3x+5=\frac{3}{2}Q'(x)+5\). The integral is therefore

$$ \frac{3}{2}\int_{-1}^{1}\frac{Q'(x)}{Q(x)^2}\,dx + 5\int_{-1}^{1}\frac{dx}{(x^2+4)^2}. $$

The first term has antiderivative \(-\frac{3}{2Q(x)}\). Since \(Q(-1)=Q(1)=5\), its definite contribution is \(-\frac{3}{10}-(-\frac{3}{10})=0\).

For the second term, use the \(k=2\) recurrence, or differentiate the resulting expression, to obtain \(\int\frac{dx}{(x^2+4)^2}=\frac{x}{8(x^2+4)}+\frac{1}{16}\arctan(\frac{x}{2})\). At \(x=1\) this is \(\frac{1}{40}+\frac{1}{16}\arctan(\frac12)\); at \(x=-1\) it is \(-\frac{1}{40}-\frac{1}{16}\arctan(\frac12)\). The difference is \(\frac{1}{20}+\frac18\arctan(\frac12)\). Multiplying by 5 gives

$$ \int_{-1}^{1}\frac{3x+5}{(x^2+4)^2}\,dx = \frac14+\frac58\arctan\left(\frac12\right). $$

Check: differentiating \(\frac{x}{8(x^2+4)}+\frac{1}{16}\arctan(\frac{x}{2})\) gives \(\frac{1}{(x^2+4)^2}\); differentiating \(-\frac{3}{2(x^2+4)}\) gives \(\frac{3x}{(x^2+4)^2}\). Their weighted sum is exactly the original integrand. The endpoint subtraction above gives the stated definite value.

Worked Example: A cubic power after a shift

Worked Example: A cubic power after a shift

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

Write \(Q(x)=(x-1)^2+1\), so \(Q'(x)=2(x-1)\) and \(2x+3=Q'(x)+5\). The integral separates into \(\int_0^2\frac{Q'(x)}{Q(x)^3}\,dx+5\int_0^2\frac{dx}{Q(x)^3}\). The first term has antiderivative \(-\frac{1}{2Q(x)^2}\). Since \(Q(0)=Q(2)=2\), its definite value is zero.

For the remaining integral, set \(z=x-1\), so the limits become \(-1\) and \(1\), and \(Q=z^2+1\). The recurrence gives

$$ J_3(z) = \frac{z}{4(z^2+1)^2} + \frac{3z}{8(z^2+1)} + \frac38\arctan z. $$

At \(z=1\), the three terms are \(\frac{1}{16}\), \(\frac{3}{16}\), and \(\frac{3\pi}{32}\), so \(J_3(1)=\frac14+\frac{3\pi}{32}\). At \(z=-1\), each term changes sign, so \(J_3(-1)=-\frac14-\frac{3\pi}{32}\). Hence the remaining integral is \(5\bigl(J_3(1)-J_3(-1)\bigr)\), and the answer is

$$ \int_0^2\frac{2x+3}{((x-1)^2+1)^3}\,dx = \frac52+\frac{15\pi}{16}. $$

Check: differentiating \(-\frac{1}{2Q(x)^2}+5J_3(x-1)\) gives \(Q'(x)/Q(x)^3+5/Q(x)^3=(2x+3)/Q(x)^3\). Its endpoint difference is the value just calculated.

Worked Example: A quadratic with a non-unit leading coefficient

Worked Example: A quadratic with a non-unit leading coefficient

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

Let \(Q(x)=2x^2+2x+3\). Then \(Q'(x)=4x+2\), and \(6x-1=\frac32Q'(x)-4\). Thus the derivative-shaped contribution is \(\frac32\int_0^1 Q'(x)Q(x)^{-2}\,dx\), which equals \(\left[-\frac{3}{2Q(x)}\right]_0^1\). Since \(Q(0)=3\) and \(Q(1)=7\), this contribution is \(-\frac{3}{14}+\frac12=\frac27\).

Complete the square: \(Q(x)=2((x+\frac12)^2+\frac54)\). With \(z=x+\frac12\) and \(d=\frac{\sqrt5}{2}\), the remaining quadratic-power integral is \(\int_0^1Q(x)^{-2}\,dx=\frac14[J_2(\frac32)-J_2(\frac12)]\). Here \(J_2(z)=\frac{z}{2d^2(z^2+d^2)}+\frac{1}{2d^3}\arctan(\frac{z}{d})\).

The rational part of \(J_2(\frac32)-J_2(\frac12)\) is \(\frac{6}{35}-\frac{2}{15}=\frac{4}{105}\). Its arctangent part is \(\frac{4}{5\sqrt5}\left(\arctan\frac{3}{\sqrt5}-\arctan\frac{1}{\sqrt5}\right)\). Including the factor \(\frac14\), we obtain

$$ \int_0^1Q(x)^{-2}\,dx = \frac{1}{105} + \frac{1}{5\sqrt5} \left(\arctan\frac{3}{\sqrt5}-\arctan\frac{1}{\sqrt5}\right). $$

The original integral is \(\frac27\) minus four times this quantity. Therefore

$$ \int_0^1\frac{6x-1}{(2x^2+2x+3)^2}\,dx = \frac{26}{105} - \frac{4}{5\sqrt5} \left(\arctan\frac{3}{\sqrt5}-\arctan\frac{1}{\sqrt5}\right). $$

Check: the antiderivative \(-\frac{3}{2Q(x)}-4\cdot\frac14J_2(x+\frac12)\) differentiates to \(\frac{3Q'(x)}{2Q(x)^2}-\frac{4}{Q(x)^2}=\frac{6x-1}{Q(x)^2}\). Evaluating it at \(1\) and \(0\) gives the displayed result.

A common mistake: matching the numerator incorrectly

The derivative of \(ax^2+bx+c\) is \(2ax+b\), not \(2ax\) unless \(b=0\). Ignoring the linear coefficient in the quadratic leads to an incorrect constant remainder and therefore an incorrect integral.

Pitfall: For \(Q(x)=2x^2+2x+3\), a tempting but wrong split is \(6x-1=\frac32(4x)-1\). The right side is \(6x-1\), but \(4x\ne Q'(x)\): in fact, \(Q'(x)=4x+2\). The split must use the full derivative: \(6x-1=\frac32(4x+2)-4\). The corrected constant is \(-4\), not \(-1\), so the remainder integral must also be multiplied by \(-4\), not \(-1\).

A second useful check is to differentiate any proposed antiderivative before evaluating its endpoints. This catches errors in powers and constants in the recurrence, as well as mistakes in the numerator split.

Using the method reliably

1
Identify the quadratic and its power.
Write the term as \((Ax+B)/Q(x)^k\), with \(Q(x)=ax^2+bx+c\) irreducible and \(a>0\).
2
Split using the full derivative.
Use \(Ax+B=\frac{A}{2a}Q'(x)+(B-\frac{Ab}{2a})\).
3
Integrate the derivative-shaped part.
For \(k\ge2\), use the antiderivative \(\frac{A}{2a(1-k)}Q(x)^{1-k}\), then take its endpoint difference.
4
Complete the square for the remainder.
Transform \(Q\) to \(a(z^2+d^2)\), adjust the limits, and use the recurrence for the required power.
5
Check the result.
Differentiate the constructed antiderivative and confirm that it reproduces the original integrand before evaluating endpoint values.

This method is useful because it treats the two sources of difficulty separately. The numerator’s derivative-shaped part is handled by substitution, while the constant remainder is handled by the standard quadratic-power recurrence. For a complete partial-fraction decomposition, apply the procedure to each repeated irreducible-quadratic term and add the resulting definite integrals.

Check Your Understanding

Use the numerator split and quadratic-power recurrence to answer these questions.

  1. For \(Q(x)=3x^2-6x+8\), find \(Q'(x)\) and complete the square.
  2. Write \(5x+4\) as a multiple of the derivative of \(Q(x)=x^2+2x+5\) plus a constant.
  3. What is an antiderivative of \(Q'(x)/Q(x)^4\) when \(Q(x)\) is positive?
  4. In the recurrence for \(J_k\), which lower-power integral appears on the right-hand side?
  5. Why must the transformed endpoints change when setting \(z=x+\frac{b}{2a}\) in a definite integral?

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