The function p is defined by p(x)=x2−3x+1. Which of the following expressions represents p(x+1)?
x2−3x+2
x2−x−1
x2−x+1
x2+2x+1