Category

Perfect Square Trinomial Calculator — Is ax²+bx+c a Perfect Square? Factor (dx − e)² Step by Step

Check instantly whether a quadratic trinomial ax²+bx+c is a perfect square using the discriminant Δ = b² − 4ac. Get the linear binomial (dx − e), the factored square form, the double root, and a step-by-step solution.

0 calculations

Calculation Parameters

x² + 6x + 9
a
b
c

Quick examples:

Enter Parameters

Fill in the form on the left and click "Calculate"

What are perfect square trinomials?

Before moving to perfect squares, let us first recall what a quadratic trinomial is. The definition is simple — it is a polynomial of degree 2:

ax² + bx + c

where the real numbers a, b, c are the coefficients. We require that a ≠ 0 — the squared term must be present for the expression to be an actual quadratic trinomial. If a = 0 and b ≠ 0, we have a linear binomial; if both a and b are zero, we end up with a simple number.

When we ask whether a quadratic trinomial is a perfect square, we are really asking: does a linear binomial exist whose square gives the original trinomial? To square a binomial means to multiply it by itself (for example, via the FOIL method).

Please do not confuse perfect square trinomials with perfect square numbers! 😉

Perfect square trinomial formula

Formally, for a trinomial

ax² + bx + c

we want to find a linear binomial dx − e such that:

(dx − e)² = ax² + bx + c

Deciding whether a given trinomial is a perfect square is closely related to factoring it. In fact, once you have found dx − e, you have already factorized your trinomial!

The key test uses the discriminant:

Δ = b² − 4ac

A trinomial is a perfect square exactly when Δ = 0 (equivalently, when b² = 4ac).

How to use this perfect square trinomial calculator

  1. Enter the coefficients a, b, c of the trinomial you have to deal with. Use the live preview to confirm the polynomial looks right.
  2. Optionally try the quick-example buttons for well-known perfect squares (and a couple that are not perfect squares, for comparison).
  3. Enable "Show step-by-step solution" to follow the full method.
  4. The calculator immediately tells you whether your trinomial is a perfect square. If it is, it displays the linear binomial (dx − e) you have been looking for, along with the factored form (dx − e)² and the double root.

See how simple it is? "What if I ever have to do it by hand?", you ask. Check out the next section!

How do I factor perfect square trinomials?

To factor a perfect square trinomial by hand:

  1. Check that the discriminant is zero (Δ = b² − 4ac = 0) to make sure your trinomial really is a perfect square.
  2. Compute the absolute values of a and c.
  3. Evaluate the square roots √|a| and √|c|.
  4. Check the signs of a and b.

Your trinomial is then equal to:

  • (x√|a| + √|c|)²  if a ≥ 0 and b ≥ 0;
  • −(x√|a| + √|c|)²  if a < 0 and b < 0;
  • (x√|a| − √|c|)²  if a ≥ 0 and b < 0; and
  • −(x√|a| − √|c|)²  if a < 0 and b > 0.

Example 1: x² − 6x + 9

  • Δ = (−6)² − 4·1·9 = 36 − 36 = 0 ✓ perfect square
  • √|a| = √1 = 1, √|c| = √9 = 3
  • a ≥ 0 and b < 0 → (x − 3)²
  • Result: x² − 6x + 9 = (x − 3)²

Example 2: 9x² − 12x + 4

  • Δ = (−12)² − 4·9·4 = 144 − 144 = 0 ✓ perfect square
  • √|a| = √9 = 3, √|c| = √4 = 2
  • a ≥ 0 and b < 0 → (3x − 2)²
  • Result: 9x² − 12x + 4 = (3x − 2)²

Example 3 (not a perfect square): x² + 5x + 6

  • Δ = 5² − 4·1·6 = 25 − 24 = 1 ≠ 0 → not a perfect square
  • (It still factors as (x + 2)(x + 3), but not as a single square.)

FAQs

What is the quickest way to spot a perfect square trinomial?

Check whether the first and last terms are perfect squares and whether the middle term equals ±2·√(a)·√(c). Equivalently, verify that the discriminant Δ = b² − 4ac is zero.

Can a perfect square trinomial have a negative leading coefficient?

Yes. When a < 0, the trinomial factors as −(dx ∓ e)² — you factor out −1 first. Our calculator handles this sign automatically.

What happens when the discriminant is not zero?

If Δ > 0, the trinomial has two distinct real roots and factors into two different linear factors — not a single square. If Δ < 0, it has complex roots and cannot be factored over the real numbers. In both cases the calculator tells you it is not a perfect square and shows what value of b would make it one.

Does this calculator support US and metric measurements or currencies?

Recognizing a perfect square trinomial is a purely algebraic operation — the coefficients a, b, c are dimensionless numbers, so no units, US/metric conversions, or currencies (dollars, rubles, euros, etc.) apply. If your trinomial comes from a real-world formula expressed in US customary or metric quantities, simply extract the numerical coefficients and enter them here.

How is this different from a factoring trinomials calculator?

A general factoring calculator factors any quadratic ax² + bx + c into two linear factors. This calculator specializes in the perfect-square case: it decides whether the trinomial equals a single squared binomial (dx − e)² and, if so, gives you that binomial directly.

Calculation History

Loading...