What methods can be used to rewrite square trinomials and difference of squares binomials as separate factors?

What methods can be used to rewrite square trinomials and difference of squares binomials as separate factors?