Tutorials › Calculus II › Logarithmic Terms From Linear Quadratic Numerators

Partial Fractions Foundations · Tutorial 189 of 998

Logarithmic Terms From Linear Quadratic Numerators

Identify derivative-matched linear numerators over irreducible quadratics and integrate them as logarithmic terms, with careful coefficient checks.

Beginner 9 min read

What You'll Learn

  • Recognize a real irreducible quadratic and its derivative.
  • Test whether a linear numerator is proportional to that derivative.
  • Derive the logarithmic antiderivative using the chain rule.
  • Calculate the constant factor in the logarithmic term.
  • Verify an antiderivative by differentiating it.
  • Distinguish a derivative-matched numerator from a general linear numerator.

Why a Derivative-Matched Numerator Produces a Logarithm

Partial fractions can produce terms whose denominators are irreducible quadratics and whose numerators are linear. A particularly direct case occurs when the numerator is a constant multiple of the denominator’s derivative. The chain rule then turns the integral into a logarithm.

The key is to compare the numerator with the derivative of the entire quadratic denominator—not merely to notice that both contain \(x\). A missing numerical factor changes the antiderivative, so the comparison must be explicit.

Central formula: If \(q(x)=ax^2+bx+c\), where \(a\ne 0\), and the numerator is \(\lambda q'(x)\), then, wherever \(q(x)\ne 0\), \[ \int \frac{\lambda q'(x)}{q(x)}\,dx = \lambda\ln|q(x)|+C. \]

What “Irreducible Quadratic” Means Here

In partial fractions over the real numbers, an irreducible quadratic is a quadratic polynomial that cannot be factored into real linear factors. For \(q(x)=ax^2+bx+c\), with \(a\ne 0\), this is equivalent to its discriminant being negative:

$$ b^2-4ac<0. $$

Such a quadratic has no real zeros, so its reciprocal is defined for every real \(x\). It also has a constant sign: if it changed sign, continuity would force it to equal zero somewhere. The absolute value in \(\ln|q(x)|\) therefore makes the logarithm valid whether \(q\) is positive or negative. In many partial-fraction examples the quadratic is positive, but the formula does not require that.

The relevant derivative is

$$ q'(x)=2ax+b. $$

Thus the numerator must have exactly the same \(x\)-term and constant-term ratio as \(2ax+b\), up to one overall constant multiplier. Finding that multiplier is the main algebraic step.

Deriving the Logarithmic Antiderivative

The formula follows directly from the chain rule and the derivative of the natural logarithm. If \(q(x)\ne 0\), then \(\frac{d}{dx}\ln|q(x)|=\frac{q'(x)}{q(x)}\). To see why the absolute value causes no difficulty, consider an interval where \(q(x)\) has a fixed sign. If \(q(x)>0\), the derivative is \(q'(x)/q(x)\) by the usual chain rule. If \(q(x)<0\), then \(|q(x)|=-q(x)\), so \[ \frac{d}{dx}\ln|q(x)| =\frac{1}{-q(x)}(-q'(x)) =\frac{q'(x)}{q(x)}. \] The formula therefore holds on any interval on which \(q\) does not vanish.

1
Identify the denominator.
Write it as \(q(x)=ax^2+bx+c\), and calculate \(q'(x)=2ax+b\).
2
Match the numerator.
Find the constant \(\lambda\) such that the numerator equals \(\lambda(2ax+b)\).
3
Integrate and verify.
Write \(\lambda\ln|q(x)|+C\), then differentiate to check that it returns the original integrand.

This is a substitution pattern in which the expression inside the logarithm is the denominator itself. The constant multiplier must remain in front of the logarithm: it is the factor \(\lambda\) from the numerator, not an optional adjustment.

A Coefficient Test for the Match

Suppose the numerator is \(Ax+B\), while the denominator is \(ax^2+bx+c\), with \(a\ne 0\). The numerator is proportional to the derivative precisely when there is a constant \(\lambda\) such that

$$ Ax+B=\lambda(2ax+b). $$

Comparing the coefficients of \(x\) gives \(A=2a\lambda\), so \(\lambda=A/(2a)\). Comparing the constant terms then requires \(B=bA/(2a)\). Equivalently, the exact condition is

$$ 2aB=bA. $$

When this condition holds, the logarithmic antiderivative is

$$ \int \frac{Ax+B}{ax^2+bx+c}\,dx = \frac{A}{2a}\ln|ax^2+bx+c|+C. $$

The coefficient test prevents a common oversight: matching only one term is not enough. Both the \(x\)-coefficient and the constant term must use the same multiplier. If the condition fails, the entire numerator is not a constant multiple of the denominator’s derivative. A general linear numerator can be separated into a derivative-matched part and a remaining constant part, but only the matched part gives the logarithmic term described here.

Worked Examples

Worked Example: The Numerator Equals the Denominator’s Derivative

Evaluate \[ \int \frac{6x+4}{3x^2+4x+7}\,dx. \]

Let \(q(x)=3x^2+4x+7\). Its derivative is \[ q'(x)=6x+4. \] This is exactly the numerator, so \(\lambda=1\). The denominator is irreducible over the reals because its discriminant is \[ 4^2-4(3)(7)=16-84=-68<0. \] Therefore, \[ \int \frac{6x+4}{3x^2+4x+7}\,dx =\ln|3x^2+4x+7|+C. \] To check, differentiate the proposed antiderivative: \[ \frac{d}{dx}\ln|3x^2+4x+7| =\frac{6x+4}{3x^2+4x+7}, \] which is the original integrand. The denominator is positive for all real \(x\), but retaining the absolute value is consistent with the general formula.

Worked Example: Finding a Factor of One-Half

Evaluate \[ \int \frac{5x-1}{5x^2-2x+3}\,dx. \]

Set \(q(x)=5x^2-2x+3\). Then \[ q'(x)=10x-2. \] Half of this derivative is \(5x-1\), so \[ 5x-1=\frac12(10x-2)=\frac12q'(x). \] The discriminant is \[ (-2)^2-4(5)(3)=4-60=-56<0, \] so the quadratic has no real zeros. Taking \(\lambda=\frac12\) gives \[ \int \frac{5x-1}{5x^2-2x+3}\,dx =\frac12\ln|5x^2-2x+3|+C. \] For the check, differentiate: \[ \frac{d}{dx}\left(\frac12\ln|5x^2-2x+3|\right) =\frac12\cdot\frac{10x-2}{5x^2-2x+3} =\frac{5x-1}{5x^2-2x+3}. \] Both the factor \(\frac12\) and the original integrand are recovered.

Worked Example: Matching Coefficients in a Partial-Fraction Term

A partial-fraction decomposition contains the term \[ \frac{6x+9}{2x^2+6x+11}. \] Find its antiderivative.

Write \(q(x)=2x^2+6x+11\). Then \[ q'(x)=4x+6. \] The numerator satisfies \[ 6x+9=\frac32(4x+6)=\frac32q'(x). \] The quadratic is irreducible because \[ 6^2-4(2)(11)=36-88=-52<0. \] Hence \[ \int\frac{6x+9}{2x^2+6x+11}\,dx =\frac32\ln|2x^2+6x+11|+C. \] Differentiate to verify: \[ \frac{d}{dx}\left(\frac32\ln|2x^2+6x+11|\right) =\frac32\cdot\frac{4x+6}{2x^2+6x+11} =\frac{6x+9}{2x^2+6x+11}. \] The coefficient \(\frac32\) is necessary because the numerator is \(\frac32\) times the derivative, not the derivative itself.

When the Match Fails

Consider the numerator \(3x+2\) over the denominator \(3x^2+4x+7\). The derivative of the denominator is \(6x+4\). For \(3x+2\) to be a multiple of \(6x+4\), matching the \(x\)-terms would require a multiplier of \(1/2\). But \[ \frac12(6x+4)=3x+2, \] so in this particular case the match does hold. This illustrates why checking both terms matters: the constant term confirms the same multiplier.

By contrast, if the numerator were \(3x+1\), matching the \(x\)-terms would still suggest \(1/2\), but \[ \frac12(6x+4)=3x+2\ne3x+1. \] That numerator is not proportional to the denominator’s derivative. Applying the logarithmic formula to the whole fraction would therefore be incorrect. The derivative-matched logarithmic rule applies only when the equality of the two linear expressions is exact.

Common Mistake: Losing the Multiplier

A frequent error is to write \(\ln|q(x)|\) whenever a numerator resembles \(q'(x)\), without checking whether the two expressions are exactly equal. For example, consider \[ \int\frac{3x+2}{3x^2+4x+7}\,dx. \] The denominator derivative is \(6x+4\), and \[ 3x+2=\frac12(6x+4). \] The correct antiderivative is therefore \[ \frac12\ln|3x^2+4x+7|+C. \] If one incorrectly writes \(\ln|3x^2+4x+7|\), differentiation gives \[ \frac{6x+4}{3x^2+4x+7}, \] which is twice the required integrand. Differentiating the corrected answer gives \[ \frac12\cdot\frac{6x+4}{3x^2+4x+7} =\frac{3x+2}{3x^2+4x+7}, \] as required. Differentiation is a direct way to catch this coefficient error.

Why This Pattern Matters

In a partial-fraction decomposition, each term is integrated separately. A term with an irreducible quadratic denominator and a linear numerator may contribute a logarithm when its numerator is proportional to the denominator’s derivative. Recognizing that structure makes the integration efficient and also gives a reliable verification: differentiating the logarithmic term reproduces the original rational term.

The important distinction is between the form of the denominator and the relationship between numerator and derivative. An irreducible quadratic alone does not guarantee that the whole term integrates to a logarithm. The numerator must match \(q'(x)\) up to a constant factor. When it does, identify the factor, keep it in front of the logarithm, and check by differentiation.

Check Your Understanding

For each question, identify the denominator’s derivative before deciding whether the logarithmic rule applies.

  1. For \(q(x)=4x^2-6x+5\), find \(q'(x)\). What value of \(\lambda\) satisfies \(2x-3=\lambda q'(x)\)?
  2. Does \(7x+4\) match the derivative of \(7x^2+4x+9\) up to a constant factor? State the factor if it does.
  3. State the coefficient condition for \(Ax+B\) to be proportional to the derivative of \(ax^2+bx+c\), where \(a\ne0\).
  4. Find an antiderivative of \(\frac{8x+6}{4x^2+6x+10}\), and verify it by differentiation.
  5. Why is checking only the coefficient of \(x\) insufficient when testing whether two linear expressions are proportional?

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