How to factor a non-perfect square trinomial?