Skip to main content

Perfect Square Trinomial Calculator

Solve perfect square trinomial problems step-by-step with our free calculator. See formulas, worked examples, and clear explanations.

Share this calculator

Formula

(a + b)^2 = a^2 + 2ab + b^2

A perfect square trinomial results from squaring a binomial. The first and last terms are perfect squares, and the middle term equals exactly twice the product of the square roots of the first and last terms. If the discriminant b^2 - 4ac equals zero, the trinomial is a perfect square.

Worked Examples

Example 1: Checking if a Trinomial is a Perfect Square

Problem: Determine whether 9x^2 - 30x + 25 is a perfect square trinomial and factor it if so.

Solution: Step 1: Check if the first term is a perfect square.\n9x^2 = (3x)^2. Yes.\n\nStep 2: Check if the last term is a perfect square.\n25 = 5^2. Yes.\n\nStep 3: Check if middle term = 2 * sqrt(first) * sqrt(last)\n2 * 3x * 5 = 30x. The middle term is -30x.\n|middle| = 30x matches. Sign is negative.\n\nFactored form: (3x - 5)^2\n\nVerify: (3x - 5)^2 = 9x^2 - 30x + 25. Correct!\nDiscriminant: (-30)^2 - 4(9)(25) = 900 - 900 = 0. Confirmed!

Result: 9x^2 - 30x + 25 = (3x - 5)^2 | Perfect Square Trinomial

Example 2: Generating a Perfect Square Trinomial

Problem: Expand (4x + 7)^2 to produce a perfect square trinomial.

Solution: Using (a + b)^2 = a^2 + 2ab + b^2 with a = 4x, b = 7:\n\nFirst term: (4x)^2 = 16x^2\nMiddle term: 2(4x)(7) = 56x\nLast term: 7^2 = 49\n\nResult: 16x^2 + 56x + 49\n\nVerification checks:\nsqrt(16) = 4, sqrt(49) = 7\n2 * 4 * 7 = 56 = middle coefficient. Confirmed!

Result: (4x + 7)^2 = 16x^2 + 56x + 49

Frequently Asked Questions

What is a perfect square trinomial and how do you identify one?

A perfect square trinomial is a polynomial of the form a^2 + 2ab + b^2, which factors as (a + b)^2, or a^2 - 2ab + b^2, which factors as (a - b)^2. To identify one, check three conditions: the first term must be a perfect square, the last term must be a perfect square, and the middle term must equal exactly twice the product of the square roots of the first and last terms. For example, x^2 + 10x + 25 is a perfect square trinomial because x^2 is a perfect square, 25 = 5^2 is a perfect square, and 10x = 2(x)(5). If all three conditions are met, the trinomial factors as (x + 5)^2. If the middle term is negative, it factors as (x - 5)^2 instead.

How do you factor a perfect square trinomial step by step?

Factoring a perfect square trinomial follows a clear three-step process. First, take the square root of the first term and the square root of the last term. For 4x^2 + 12x + 9, the square root of 4x^2 is 2x and the square root of 9 is 3. Second, verify that the middle term equals 2 times the product of these square roots: 2(2x)(3) = 12x, which matches the middle term. Third, write the factored form using the sign of the middle term: since 12x is positive, the answer is (2x + 3)^2. If the middle term were -12x, the factored form would be (2x - 3)^2. Always verify by expanding your answer to confirm it matches the original trinomial.

What is completing the square and how does it relate to perfect square trinomials?

Completing the square is a technique that transforms any quadratic expression ax^2 + bx + c into the form a(x - h)^2 + k, which is the vertex form. The process literally creates a perfect square trinomial from a non-perfect one. For x^2 + 8x + 3: take half of the middle coefficient (8/2 = 4), square it (16), add and subtract it: x^2 + 8x + 16 - 16 + 3 = (x + 4)^2 - 13. Now x^2 + 8x + 16 is a perfect square trinomial that factors as (x + 4)^2. Completing the square is used to derive the quadratic formula, convert quadratic equations to vertex form for graphing, and simplify certain integrals in calculus.

How are perfect square trinomials used in the quadratic formula derivation?

The quadratic formula is derived by completing the square on the general quadratic equation ax^2 + bx + c = 0. Starting with x^2 + (b/a)x = -c/a (after dividing by a and moving c), we add (b/(2a))^2 to both sides: x^2 + (b/a)x + b^2/(4a^2) = b^2/(4a^2) - c/a. The left side is now a perfect square trinomial that factors as (x + b/(2a))^2. Taking square roots of both sides and solving for x gives x = (-b plus or minus sqrt(b^2 - 4ac))/(2a). Without the concept of perfect square trinomials, this fundamental derivation would not be possible. This shows how perfect square trinomials are not just a factoring technique but a foundational algebraic concept.

What is the discriminant test for perfect square trinomials?

For a quadratic ax^2 + bx + c, the discriminant D = b^2 - 4ac tells you whether it is a perfect square trinomial. If D = 0 exactly, the trinomial is a perfect square. This is because D = 0 means the quadratic has a double root, which corresponds to a squared binomial factor. If D > 0, the trinomial factors into two distinct binomials (not a perfect square). If D < 0, the trinomial has no real factorization. For example, x^2 + 6x + 9 has D = 36 - 36 = 0, confirming it is (x + 3)^2. Meanwhile, x^2 + 6x + 8 has D = 36 - 32 = 4 > 0, so it factors as (x + 2)(x + 4) instead of being a perfect square. The discriminant provides a quick numerical test.

Can a perfect square trinomial have a negative leading coefficient?

A perfect square trinomial in its standard form a^2 + 2ab + b^2 always has a positive first and last term because they are squares of real numbers. However, you can have expressions like -(x^2 + 6x + 9) = -x^2 - 6x - 9, which is the negative of a perfect square trinomial and factors as -(x + 3)^2. The trinomial itself (before negation) must have positive first and last terms. If you encounter a quadratic with a negative leading coefficient like -4x^2 + 12x - 9, you can factor out the negative sign to get -(4x^2 - 12x + 9) = -(2x - 3)^2. Recognizing when to factor out a negative sign first is an important skill that simplifies many factoring problems.

References