Difference of squares and trinomials