Write as a Function of p p(a+1)=5x^2+4x-2