Tutorials › Calculus II › Classifying Quadratics by Their Discriminant

Completing the Square Techniques · Tutorial 251 of 998

Classifying Quadratics by Their Discriminant

Use the discriminant to classify a quadratic and identify the integration approach its real or irreducible factors call for.

Intermediate 9 min read

What You'll Learn

  • Calculate the discriminant of a quadratic and interpret its sign.
  • Connect the discriminant to the completed-square form.
  • Distinguish distinct real roots, a repeated root, and no real roots.
  • Choose an integration strategy based on the quadratic denominator.
  • Check an antiderivative by differentiating it.

Why the Discriminant Matters in Integration

A quadratic denominator can lead to different integration methods depending on whether it has distinct real roots, a repeated real root, or no real roots. The discriminant makes that distinction quickly. Completing the square then displays the same information in a form that also helps identify an appropriate integration route.

This classification is a decision-making tool, not a method for integrating every possible numerator in one step. For a rational function, the numerator still matters. The denominator’s factorization tells us which kinds of terms may arise and which approach is suitable.

Definition and Completed-Square Form

Definition: For a real quadratic \(Q(x)=ax^2+bx+c\), where \(a\ne 0\), the discriminant is \(\Delta=b^2-4ac\).

Completing the square gives a useful identity. Set \(h=-\frac{b}{2a}\). Then

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

Thus the sign of \(\Delta\) determines whether the squared term must equal a positive number, zero, or a negative number for \(Q(x)=0\). This leads to the three cases below.

DiscriminantRoots over the real numbersFactorization over the real numbers
\(\Delta>0\)Two distinct real rootsTwo distinct linear factors
\(\Delta=0\)One repeated real rootA repeated linear factor
\(\Delta<0\)No real rootsIrreducible as a product of real linear factors

When \(\Delta<0\), the completed-square expression can also be written as

$$ Q(x)=a\left((x-h)^2+\frac{-\Delta}{4a^2}\right). $$

The quantity added to the square is strictly positive. Therefore \(Q(x)\) never vanishes for real \(x\); its sign is the sign of \(a\). “Irreducible” here means that \(Q\) cannot be factored into real linear factors, not that it cannot be expressed using complex roots.

Why the Three Cases Follow

The completed-square identity provides a direct proof of the classification. For a root, \(Q(x)=0\), so the identity gives \((x-h)^2=\frac{\Delta}{4a^2}\). A square of a real number is nonnegative, and \(4a^2\) is positive because \(a\ne0\). The sign of \(\Delta\) therefore determines the possibilities.

1
If \(\Delta>0\).
The equation becomes \((x-h)^2=\frac{\Delta}{4a^2}>0\). It has the two solutions \(x=h\pm\frac{\sqrt{\Delta}}{2|a|}\), which are distinct real numbers.
2
If \(\Delta=0\).
The equation becomes \((x-h)^2=0\), so its only solution is \(x=h\). The factorization is \(Q(x)=a(x-h)^2\), showing that this root is repeated.
3
If \(\Delta<0\).
The equation would require a nonnegative square to equal a negative number, which is impossible over the real numbers. Hence there are no real roots.

This also explains why the discriminant is useful when integrating: it reveals the real factor structure of the denominator before any decomposition or substitution is attempted.

Choosing an Integration Approach

Consider first an integral with a quadratic denominator and a rational numerator. If \(\Delta>0\), the denominator can be factored into distinct real linear factors. For a reciprocal of that denominator, partial fractions express the integrand as a sum of terms with linear denominators. If \(\Delta=0\), the denominator is a repeated linear factor, so the decomposition must account for its repeated power. These structures often lead to logarithmic terms or reciprocal powers, depending on the numerator and the resulting terms.

If \(\Delta<0\), there are no real linear factors to use in a real partial-fraction decomposition. Completing the square writes the denominator as a constant times a positive quadratic expression of the form \((x-h)^2+d^2\), with \(d>0\). A reciprocal of this expression is associated with an inverse-tangent form. A numerator proportional to the derivative of the denominator, on the other hand, can lead to a logarithm. The numerator and the completed-square form together determine which route is appropriate.

Important: The discriminant classifies the denominator; it does not by itself determine the antiderivative. Before selecting a method, inspect both the denominator’s factor structure and the numerator.

Worked Examples

Worked Example: Two Distinct Real Roots

Classify \(Q(x)=x^2-5x+6\), then integrate its reciprocal on an interval that contains neither root.

Here \(a=1\), \(b=-5\), and \(c=6\). The discriminant is

$$ \Delta=(-5)^2-4(1)(6)=25-24=1>0. $$

There are two distinct real roots. Factoring gives \(Q(x)=(x-2)(x-3)\), since \(2+3=5\) and \(2\cdot3=6\). Use partial fractions and solve for the constants:

$$ \frac{1}{(x-2)(x-3)} =\frac{A}{x-2}+\frac{B}{x-3}, \qquad 1=A(x-3)+B(x-2). $$

Setting \(x=2\) gives \(1=-A\), so \(A=-1\). Setting \(x=3\) gives \(1=B\), so \(B=1\). Therefore, on any interval not containing \(2\) or \(3\),

$$ \int\frac{dx}{x^2-5x+6} =-\ln|x-2|+\ln|x-3|+C =\ln\left|\frac{x-3}{x-2}\right|+C. $$

Check by differentiating. The derivative is

$$ \frac{1}{x-3}-\frac{1}{x-2} =\frac{(x-2)-(x-3)}{(x-2)(x-3)} =\frac{1}{(x-2)(x-3)}. $$

This recovers the original integrand. The antiderivative is valid separately on intervals that do not cross either point where the integrand is undefined.

Worked Example: A Repeated Real Root

Classify \(Q(x)=4x^2+4x+1\), then integrate its reciprocal wherever it is defined.

Here \(a=4\), \(b=4\), and \(c=1\). Thus

$$ \Delta=4^2-4(4)(1)=16-16=0. $$

The root is repeated. Factoring, or using the completed square, gives

$$ Q(x)=(2x+1)^2. $$

To integrate, set \(u=2x+1\), so \(du=2\,dx\) and \(dx=\frac{du}{2}\). Then

$$ \int\frac{dx}{(2x+1)^2} =\frac12\int u^{-2}\,du =\frac12\left(-u^{-1}\right)+C =-\frac{1}{2(2x+1)}+C. $$

Check by differentiating the proposed antiderivative:

$$ \frac{d}{dx}\left(-\frac{1}{2(2x+1)}\right) =-\frac12\left(-2(2x+1)^{-2}\right) =\frac{1}{(2x+1)^2}. $$

This is the original integrand. The function is undefined at \(x=-\frac12\), so the antiderivative applies on intervals that do not include that point.

Worked Example: No Real Roots and a Numerator That Matches the Derivative

Classify \(Q(x)=x^2+2x+5\), then integrate \(\frac{2x+2}{Q(x)}\).

Here \(a=1\), \(b=2\), and \(c=5\), so

$$ \Delta=2^2-4(1)(5)=4-20=-16<0. $$

There are no real roots. Completing the square gives

$$ Q(x)=x^2+2x+5=(x+1)^2+4. $$

Since \(Q'(x)=2x+2\), the numerator is exactly the derivative of the denominator. With \(u=Q(x)\), \(du=(2x+2)\,dx\), so

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

The absolute value can be removed because \((x+1)^2+4>0\) for every real \(x\). Check:

$$ \frac{d}{dx}\ln(x^2+2x+5) =\frac{2x+2}{x^2+2x+5}, $$

which is the original integrand. For comparison, if the numerator were \(1\) instead, completing the square and setting \(u=\frac{x+1}{2}\) would give

$$ \int\frac{dx}{(x+1)^2+4} =\frac12\int\frac{du}{1+u^2}. $$

This is the inverse-tangent type of integral. The same irreducible denominator can therefore call for different approaches depending on its numerator.

A Common Sign Error

A frequent mistake is to confuse \(b^2-4ac\) with \(4ac-b^2\). For \(x^2+4x+5\), the discriminant is

$$ \Delta=4^2-4(1)(5)=16-20=-4. $$

A wrong calculation might use \(4ac-b^2=20-16=4\) and conclude that the quadratic has two real roots. That quantity is the negative of the discriminant, so the conclusion is incorrect. The correction is to use the stated definition consistently: \(\Delta=b^2-4ac=-4<0\). Indeed, completing the square gives \(x^2+4x+5=(x+2)^2+1\), which is positive for all real \(x\) and has no real roots.

Using the Classification Carefully

The discriminant is most useful as an early diagnostic. First compute it, then choose a route compatible with the resulting factor structure. For a general rational integrand, do not assume that a denominator classification alone settles the whole problem: a numerator may simplify the integral, match the derivative of the denominator, or require an additional algebraic step.

Also keep track of where the original integrand is defined. A real root of the denominator gives a point that must be excluded, and antiderivatives are considered on intervals that do not cross such points. In the no-real-root case, the quadratic denominator has no real zeros, so this particular source of domain restrictions is absent.

Takeaway: Positive discriminant means distinct real linear factors; zero discriminant means a repeated real linear factor; negative discriminant means no real linear factors. Use that structure, together with the numerator, to select an integration approach.

Check Your Understanding

For each question, use the discriminant and, where useful, the completed-square form to justify your answer.

  1. Classify \(3x^2-6x+3\) by its discriminant. What is its real factorization?
  2. For \(x^2-2x+5\), calculate the discriminant and write the completed-square form. Can its denominator vanish for a real \(x\)?
  3. What integration approach is suggested for the reciprocal of a quadratic with two distinct real roots?
  4. Why does a repeated real root require attention to the power of the linear factor in an integration method?
  5. For an irreducible quadratic, why should you inspect the numerator before choosing an integration approach?

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