Divide the coefficient on the term by 2. (that would be the "b" in ) Square the result. Put that result in as the missing third term of your trinomial.
If you ever have a lead coefficient different than 1, then you need to divide the whole polynomial by the lead coefficient first.
In general, is a perfect square if and only if
John
My calculator said it, I believe it, that settles it