How this instrument works
A trinomial ax² + bx + c is called a perfect square trinomial when it can be written as (px + q)² for some real p and q — think x² + 6x + 9 folding into (x + 3)². This calculator doesn't test a single number's square root or cube root the way its neighbours do; it tests whether an entire three-term expression collapses into one repeated binomial. The test value is the discriminant, b² − 4ac, and the trinomial passes exactly when that value lands on zero.
The reason is a short piece of algebra. Expand (px + q)² and you get p²x² + 2pqx + q² — matching this term by term against ax² + bx + c forces a = p², b = 2pq, and c = q². Square b and you get 4p²q², which is identical to 4ac, so b² − 4ac vanishes automatically whenever the trinomial really is a square. Run the argument backward and the same discriminant reappears inside the quadratic formula itself: when it hits zero the two roots collapse into one repeated root, r = −b ⁄ 2a, and ax² + bx + c factors as a(x − r)².
One detail worth catching: the test only reads the sign and size of b² − 4ac, so it stays silent about whether a and c are themselves perfect squares. Feed it a = 4, b = 12, c = 9 and it correctly returns 0, because 4x² + 12x + 9 factors as (2x + 3)² — a leading coefficient other than 1 is no obstacle. But if a is negative, a zero discriminant still marks a genuine repeated root, even though the trinomial then equals the negative of a square (for example −x² + 6x − 9 = −(x − 3)²) rather than a square outright — the double-root structure survives even where the plain-language label does not.
- Type your leading coefficient into a, in ax² + bx + c; the middle coefficient into b, in ax² + bx + c; and the constant term into c, in ax² + bx + c.
- Read Test value (0 = perfect square trinomial): an output of exactly 0 confirms the trinomial factors as a repeated square.
- Any nonzero result means it isn't a perfect square trinomial — a positive value signals two distinct real roots, a negative value signals a complex conjugate pair.
- Try a = 4, b = 12, c = 9 to confirm the test also passes for a leading coefficient other than 1, since 4x² + 12x + 9 = (2x + 3)².
Worked example — testing x² + 6x + 9
Set a = 1, b = 6, c = 9 — the coefficients of x² + 6x + 9. The test value comes out to b² − 4ac = 6² − 4(1)(9) = 36 − 36 = 0, so the calculator answers yes: this is a perfect square trinomial. The repeated root works out to r = −b ⁄ 2a = −6 ⁄ 2 = −3, and sure enough (x + 3)² expands back to x² + 6x + 9, coefficient for coefficient.
Nudge the middle term down by one, to x² + 5x + 9, and the picture changes: b² − 4ac = 5² − 4(1)(9) = 25 − 36 = −11, a negative test value showing the roots are now a complex conjugate pair rather than a repeated real one. The single-digit shift from 6 to 5 is the whole difference between a trinomial that factors cleanly and one that doesn't factor over the reals at all.
Questions
How is a perfect square trinomial different from a perfect square or a perfect cube?
A perfect square is a single number's own square (like 49 = 7²) and a perfect cube is a single number's cube; this calculator instead tests a three-term expression, ax² + bx + c, to see whether the whole thing collapses into one squared binomial, (px + q)². The check is the discriminant, b² − 4ac — zero means yes, anything else means no.
Why does b² − 4ac equal zero for a perfect square trinomial?
Expand (px + q)² and match coefficients against ax² + bx + c: a = p², b = 2pq, c = q². Then b² works out to 4p²q², which is exactly 4ac, so the discriminant cancels to zero. The identity runs both directions — a zero discriminant guarantees the trinomial factors as a repeated square, not just the reverse.
What does the test value mean if it isn't zero?
A positive test value means the trinomial has two distinct real roots and does not factor into a repeated square; a negative value means the roots are a complex conjugate pair. Only test = 0 marks the boundary case where the two roots merge into one, which is exactly the perfect square trinomial condition.
Does the test still work when a is not 1?
Yes — try a = 4, b = 12, c = 9: the test returns 0, and 4x² + 12x + 9 factors as (2x + 3)², confirming the leading coefficient doesn't need to be 1. The discriminant formula treats a, b, and c symmetrically; it never assumes the trinomial is monic.
How does this relate to the quadratic formula?
The test value is the same discriminant that sits under the square root in the quadratic formula, x = (−b ± √(b² − 4ac)) ⁄ 2a. When that discriminant is zero the ± term vanishes, the two roots merge into the single repeated root r = −b ⁄ 2a, and the trinomial equals a(x − r)² — the perfect square trinomial itself.
What's the most common mistake when checking for a perfect square trinomial by eye?
Students often check only whether a and c are perfect squares and skip verifying the middle term, but b must equal exactly twice the product of their square roots (b = 2√(ac), with matching sign) — get that factor wrong and the discriminant won't land on zero even though a and c look promising. For 4x² + 13x + 9, a and c are both perfect squares, yet the test returns 25, not 0, because 13 ≠ 12.