I am struggling to understand this proof. At the near last part, I don't understand how the author derive this equation $g^{(n+1)}(s)=f^{(n+1)}(s)-(n+1)!M_{x,x_0}$. I think it should be $g^{(n+1)}(s)=f^{(n+1)}(s)-(P^{x_0}_n)^{(n+1)}(s)-M_{x,x_0}(s-x_0)^{(n+1)}$.
Could you help me understand this part?
Thank you in advance!


The issue you are facing is not difficult to handle. The $(n+1)$'th derivative of $g$ can be evaluated term by term. The first term in expression for $g(s) $ is $f(s) $ and its $(n+1)$'th derivative is $f^{(n+1)}(s)$. The second term is an $n$'th degree polynomial in $s$ so it's $(n+1)$'th derivative vanishes. The last term is $M_{x, x_{0}}(s-x_{0})^{n+1}$ and its $(n+1)$'th derivative is $$M_{x, x_{0}}(n+1)n(n-1)\dots 3\cdot 2\cdot 1(s-x_{0})^{(n+1)-(n+1)}=(n+1)!M_{x,x_{0}}$$ as given in your book.
Remember that derivatives are being computed with respect to $s$ and other letters are constants.