Perfect Square Trinomial Calculator

Enter a quadratic to test whether it is a perfect square.

A quadratic in one letter, like 4x^2 - 12x + 9.

Try

Result

You entered4x2−12x+94x^{2} - 12x + 9

Yes: (2x−3)2\displaystyle \text{Yes: } \left(2x - 3\right)^{2}

Discriminant

0\displaystyle 0

Factored form

(2x−3)2\displaystyle \left(2x - 3\right)^{2}
Show the work
  1. Perfect square trinomial test

    A trinomial is a perfect square when it is the square of a two-term expression: the first and last terms are squares and the middle term is twice the product of their roots. For Ax2+Bx+CAx^2 + Bx + C that happens exactly when the discriminant B2−4ACB^2 - 4AC is 00 and AA is a perfect square. Here A=4A = 4, B=−12B = -12 and C=9C = 9.

    Using a2±2ab+b2=(a±b)2a^2 \pm 2ab + b^2 = (a \pm b)^2

    4x2−12x+94x^{2} - 12x + 9
  2. Discriminant of the trinomial

    The discriminant is 0, so the quadratic has one repeated root; the trinomial is the square of something provided the leading coefficient is also a perfect square.

    B2−4AC=(−12)2−4(4)(9)=0\begin{aligned} B^{2} - 4AC &= \left(-12\right)^{2} - 4\left(4\right)\left(9\right) \\ &= 0 \end{aligned}
  3. Square roots of the end terms

    Take the square root of the first term and of the last term. The middle term, −12x-12x, must equal twice the product of the two roots, and its sign tells you whether the binomial has a plus or a minus.

    4x2=2x9=32(2x)(3)=12x\begin{gathered} \sqrt{4x^{2}} = 2x \\ \sqrt{9} = 3 \\ 2\left(2x\right)\left(3\right) = 12x \end{gathered}
  4. Check by expanding the square

    Multiply the binomial by itself; the result must be the original trinomial.

    (2x−3)2=4x2−12x+9\left(2x - 3\right)^{2} = 4x^{2} - 12x + 9
  5. Result

    Yes, it is a perfect square trinomial: 4x2−12x+9=(2x−3)24x^{2} - 12x + 9 = \left(2x - 3\right)^{2}.

Worked examples