Show that the following polynomials form a basis for P2

Show that the following polynomials form a basis for P2.
x2 + 1, x2 - 1, 2x - 1