Both (1) and (2) are perfect square trinomials.