Last verified · v1.0
Calculator · math
Perfect Square Trinomial Calculator
Check if ax²+bx+c is a perfect square trinomial using the discriminant test (b²−4ac=0), or solve for the missing coefficient a, b, or c instantly.
Inputs
Result (Discriminant or Missing Coefficient)
—
Explain my result
Get a plain-English breakdown of your result with practical next steps.
The formula
How the
result is
computed.
What Is a Perfect Square Trinomial?
A perfect square trinomial is a three-term polynomial that results directly from squaring a binomial. Every perfect square trinomial fits one of two algebraic patterns: (p + q)² = p² + 2pq + q² or (p − q)² = p² − 2pq + q². Recognizing these patterns enables instant factoring without trial-and-error, making them a foundational skill in algebra from developmental math through college algebra.
The Discriminant Condition: b² − 4ac = 0
For the trinomial ax² + bx + c, the quadratic discriminant determines whether it qualifies as a perfect square. The defining condition is:
b² − 4ac = 0
When the discriminant equals zero, the trinomial has a repeated root and factors as (√a · x ± √c)², confirming it is a perfect square trinomial. A positive discriminant yields two distinct real roots; a negative discriminant produces complex roots — neither qualifies as a perfect square. According to West Texas A&M University's Tutorial 7: Factoring Polynomials, this discriminant test is the definitive algebraic check for perfect square structure.
Understanding the Three Coefficients
Each coefficient plays a specific role in the perfect square trinomial:
- Coefficient a (x² term): The leading coefficient. For integer factoring, a must be a perfect square — values such as 1, 4, 9, 16, or 25. For example, a = 4 contributes the factor 2x to the factored binomial.
- Coefficient b (x term): The middle coefficient. In a valid perfect square trinomial, b = ±2√(ac). This is the core constraint: if b² does not equal 4ac, the trinomial is not a perfect square.
- Coefficient c (constant term): The constant. Like a, it must be a perfect square for integer factoring — values such as 1, 4, 9, 16, or 25. For example, c = 25 contributes the constant term ±5 to the factored binomial.
As identified in the Broward College MAT0022 Developmental Math Course Outline, fluency with perfect square trinomial factoring requires mastery of both the discriminant formula and integer square roots.
Step-by-Step Worked Examples
Example 1: Verifying x² + 6x + 9
Set a = 1, b = 6, c = 9. Compute the discriminant: b² − 4ac = 36 − 4(1)(9) = 36 − 36 = 0. The discriminant is zero, so x² + 6x + 9 is a perfect square trinomial. It factors as (x + 3)².
Example 2: Verifying 4x² − 12x + 9
Set a = 4, b = −12, c = 9. Compute: (−12)² − 4(4)(9) = 144 − 144 = 0. Confirmed: 4x² − 12x + 9 = (2x − 3)².
Example 3: A Non-Example — x² + 5x + 6
Set a = 1, b = 5, c = 6. Compute: 25 − 4(1)(6) = 25 − 24 = 1 ≠ 0. This trinomial is not a perfect square — it factors as (x + 2)(x + 3), not a squared binomial.
Solving for a Missing Coefficient
Starting from b² = 4ac, the calculator derives any one coefficient when the other two are known:
- Find b: b = ±2√(ac). With a = 1 and c = 25: b = ±2√25 = ±10, producing x² ± 10x + 25, both valid perfect squares.
- Find a: a = b²/(4c). With b = 8 and c = 4: a = 64/16 = 4, giving 4x² + 8x + 4 = (2x + 2)².
- Find c: c = b²/(4a). With a = 1 and b = 14: c = 196/4 = 49, giving x² + 14x + 49 = (x + 7)².
These relationships also underpin completing the square — the technique used to derive the quadratic formula and to rewrite parabola equations in vertex form. Vertex form is essential for modeling projectile trajectories, profit maximization curves, and structural arch designs across engineering and architecture.
Reference