How to square a trinomial