Perfect Square Trinomial Calculator
Test cases replayed : 3 of 3 match · Methodology · No outside source listed
Enter a, b and c of ax² + bx + c to test whether it is a perfect square and to see its factored form.
Result
Perfect square trinomial?
b² − 4ac
- h in a(x + h)², h = b ÷ 2a
- c that would make it a perfect square, b² ÷ 4a
- (px + q)² form: p = √a (a > 0)
- (px + q)² form: q = ±√c, same sign as b
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- a (coefficient of x², not 0): enter a number.
- b (coefficient of x): enter a number.
- c (constant term): enter a number.
- Read the result: Perfect square trinomial?; the panel also shows b² − 4ac, h in a(x + h)², h = b ÷ 2a, c that would make it a perfect square, b² ÷ 4a, (px + q)² form: p = √a (a > 0) and (px + q)² form: q = ±√c, same sign as b.
How this calculator works
A perfect square trinomial is the square of a binomial: (px + q)² = p²x² + 2pqx + q². A trinomial ax² + bx + c is one exactly when its discriminant b² − 4ac is 0; it then equals a(x + b/2a)².
Completing the square: for given a and b, the constant that makes a perfect square is c = b² ÷ 4a. When a > 0, the trinomial is (√a x ± √c)², with the sign of b.
The formula
| Symbol | Meaning |
|---|---|
| a (coefficient of x², not 0) | |
| b (coefficient of x) | |
| c (constant term) | |
| b² − 4ac | |
| Perfect square trinomial? |
Worked example
| a (coefficient of x², not 0) | 4 |
|---|---|
| b (coefficient of x) | 12 |
| c (constant term) | 9 |
| b² − 4ac | 0 |
|---|---|
| h in a(x + h)², h = b ÷ 2a | 1.5 |
| c that would make it a perfect square, b² ÷ 4a | 9 |
| (px + q)² form: p = √a (a > 0) | 2 |
| (px + q)² form: q = ±√c, same sign as b | 3 |
Perfect square trinomial? Yes: ax² + bx + c = a(x + h)²
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
Is 4x² + 12x + 9 a perfect square trinomial?
Yes: 12² − 4 × 4 × 9 = 0, and it factors as (2x + 3)².
What c makes x² + 5x + c a perfect square?
c = 5² ÷ 4 = 6.25, giving (x + 2.5)².