The table describes the quadratic function p(x).


x p(x)
−1 10
0 1
1 −2
2 1
3 10
4 25
5 46

What is the equation of p(x) in vertex form?
p(x) = 2(x − 1)2 − 2
p(x) = 2(x + 1)2 − 2
p(x) = 3(x − 1)2 − 2
p(x) = 3(x + 1)2 − 2