P[x_]:=gamma0+gamma1*(x-xn)+gamma2*(x-xn)*(x-(xn+h));

P[x]

Integrate[P[x],{x,xn,xn+h}]