Why the Numerator Should Be Rewritten
A linear numerator over a quadratic denominator often contains two different kinds of contributions. One part may be proportional to the derivative of the denominator, producing a logarithm. What remains is a constant numerator, whose integral over an irreducible quadratic produces an inverse tangent.
The useful step is to separate these contributions before integrating. The method applies to a real quadratic with no real roots, so its denominator never vanishes on the real line. It works whether the leading coefficient is positive or negative.
Conditions and the Numerator Decomposition
Let \(Q(x)=ax^2+bx+c\), where \(a\ne 0\). Its discriminant is \(\Delta=b^2-4ac\). The quadratic is irreducible over the real numbers precisely when \(\Delta<0\). In that case \(Q(x)\ne 0\) for every real \(x\), and \(Q\) has the same sign as \(a\) everywhere.
The derivative of the denominator is \(Q'(x)=2ax+b\). For a linear numerator \(mx+n\), seek constants \(A\) and \(B\) such that \(mx+n=AQ'(x)+B\). Matching the coefficients of \(x\) and the constant terms gives \(2aA=m\) and \(bA+B=n\). Since \(a\ne0\), these equations have the solution below.
This identity splits the original integral into two simpler ones. The first has numerator \(Q'(x)\); the second has a constant numerator.
Because \(Q\) never vanishes, the logarithmic term is \(\ln|Q(x)|\). The absolute value is important when \(a<0\), since then \(Q(x)<0\) for every real \(x\).
The Reciprocal-Quadratic Term
For completeness, the inverse-tangent formula needed for the constant part follows directly from completing the square. Let \(D=-\Delta=4ac-b^2\), so \(D>0\). Set \(w=2ax+b\). Then \(dw=2a\,dx\), and the quadratic can be rewritten as \(Q(x)=(w^2+D)/(4a)\). Therefore:
The last equality follows by differentiating \(\arctan(w/\sqrt D)\), or by the standard derivative of the inverse tangent. This substitution does not require \(a>0\): the sign of \(a\) is already accounted for by \(dw=2a\,dx\).
Here \(C\) is an arbitrary constant. The formula combines the numerator decomposition with the reciprocal-quadratic integral. In particular, the inverse-tangent coefficient is the constant left after the decomposition, \(n-mb/(2a)\), multiplied by \(2/\sqrt{-\Delta}\).
Why the Formula Works
The key derivative identities explain both terms and verify the combined result. Since \(Q(x)\ne0\), differentiating \(\ln|Q(x)|\) gives \(Q'(x)/Q(x)\). For the inverse-tangent term, write \(D=-\Delta>0\) and \(w=2ax+b\). Its derivative is:
The final equality uses \(Q(x)=(w^2+D)/(4a)\), which holds for positive and negative \(a\). Thus the derivative of the proposed antiderivative is \(A Q'(x)/Q(x)+B/Q(x)\), where \(A=m/(2a)\) and \(B=n-mb/(2a)\). By the numerator identity, this is exactly \((mx+n)/Q(x)\).
Confirm \(a\ne0\) and \(\Delta<0\), so the denominator has no real zeros.
Use \(mx+n=\frac{m}{2a}(2ax+b)+\left(n-\frac{mb}{2a}\right)\).
The derivative-over-function part gives a logarithm; the constant-over-quadratic part gives an inverse tangent.
Differentiate the logarithmic and inverse-tangent terms and combine their numerators.
Worked Examples
Worked Example: A Positive-Leading Quadratic
Evaluate \(\int (3x+5)/(x^2+4x+13)\,dx\). Here \(a=1\), \(b=4\), \(c=13\), \(m=3\), and \(n=5\). The discriminant is \(\Delta=4^2-4(1)(13)=16-52=-36<0\), so the formula applies.
The denominator derivative is \(2x+4\). Decompose the numerator:
because \(\frac32(2x+4)-1=3x+6-1=3x+5\). Hence the integral is \(\frac32\int Q'(x)/Q(x)\,dx-\int dx/Q(x)\). Using \(\sqrt{-\Delta}=6\), its value is:
The quadratic is positive, since \(x^2+4x+13=(x+2)^2+9\), so writing its logarithm without absolute-value bars is valid. To check, the logarithmic term differentiates to \((3x+6)/Q(x)\). The derivative of \(\arctan((x+2)/3)\) is \(3/Q(x)\), so the inverse-tangent term differentiates to \(-1/Q(x)\). Their sum is \((3x+5)/Q(x)\), as required.
Worked Example: A Quadratic with a Nonunit Leading Coefficient
Evaluate \(\int (7x+1)/(2x^2-4x+5)\,dx\). The coefficients are \(a=2\), \(b=-4\), \(c=5\), \(m=7\), and \(n=1\). The discriminant is \(\Delta=(-4)^2-4(2)(5)=16-40=-24<0\).
The denominator derivative is \(4x-4\). The numerator decomposes as:
since \(\frac74(4x-4)+8=7x-7+8=7x+1\). The logarithmic coefficient is \(7/4\). The constant part contributes \(8\cdot 2/\sqrt{24}=8/\sqrt6\) to the inverse-tangent coefficient. Thus:
For the check, the logarithmic term differentiates to \(7(x-1)/Q(x)\). The derivative of the inverse-tangent factor \(\frac{2}{\sqrt{24}}\arctan((4x-4)/\sqrt{24})\) is \(1/Q(x)\), so the full inverse-tangent term differentiates to \(8/Q(x)\). Adding gives \((7x-7+8)/Q(x)=(7x+1)/Q(x)\).
Worked Example: A Negative-Leading Quadratic
Evaluate \(\int (4x+3)/(-x^2+2x-5)\,dx\). Here \(a=-1\), \(b=2\), \(c=-5\), \(m=4\), and \(n=3\). The discriminant is \(\Delta=2^2-4(-1)(-5)=4-20=-16<0\).
The denominator derivative is \(-2x+2\), and the numerator splits as:
Therefore the logarithmic coefficient is \(-2\), and the constant part contributes \(7\cdot2/4=7/2\) to the inverse-tangent coefficient. The antiderivative is:
The absolute value matters: \(-x^2+2x-5=-((x-1)^2+4)<0\) for every real \(x\). To check, the logarithmic term differentiates to \(-2(-2x+2)/Q(x)=(4x-4)/Q(x)\). The inverse-tangent term differentiates to \(7/Q(x)\) by the reciprocal-quadratic identity. Together they give \((4x+3)/Q(x)\).
Common Mistake: Keeping Only the Logarithm
A frequent error is to notice the denominator’s derivative but assume the entire numerator is a multiple of it. For the first example, a mistaken calculation might write:
Differentiating this proposed answer gives \((3x+6)/(x^2+4x+13)\), not the original integrand with numerator \(3x+5\). The discrepancy is one unit in the numerator. The correction is to retain the leftover constant: \(3x+5=\frac32(2x+4)-1\). That \(-1\) produces the inverse-tangent term \(-\frac13\arctan((x+2)/3)\).
Another source of errors is changing the inverse-tangent coefficient when rewriting its argument. It is safest to keep the form \(\arctan((2ax+b)/\sqrt{-\Delta})\) until the formula has been applied. If the argument is then simplified, its derivative must still be accounted for in any direct check.
When This Method Is Useful
This method is especially useful when the numerator has degree one and the denominator is an irreducible quadratic. It identifies the two natural pieces directly, without requiring a more complicated substitution. The denominator’s derivative determines the logarithmic part; the remainder determines the size, sign, and presence of the inverse-tangent part. If the remainder is zero, the inverse-tangent contribution vanishes. If the numerator is already constant, the logarithmic contribution vanishes.
The discriminant condition is essential. If \(\Delta<0\), the denominator has no real zeros and the inverse-tangent formula applies on the whole real line. If \(\Delta\ge0\), the quadratic may have real zeros, and the integral can require a different form and careful attention to intervals that avoid those zeros. The formula here is specifically for irreducible real quadratics.
Check Your Understanding
Use the discriminant and numerator decomposition in each question. When you find an antiderivative, check it by differentiating.
- For \(Q(x)=3x^2+6x+7\), determine whether the irreducible-quadratic formula applies.
- Rewrite \(5x-2\) as a multiple of the derivative of \(x^2-2x+5\) plus a constant.
- In the formula, what happens to the inverse-tangent term when \(2an-mb=0\)?
- Why should the logarithm be written as \(\ln|Q(x)|\) when the leading coefficient may be negative?
- For \(\int (2x+1)/(x^2+1)\,dx\), identify the logarithmic coefficient and the constant remainder after decomposing the numerator.