> 
> Differentiate $F(x)=f(x)+(a+h-x)f'(x)+\frac{(a+h-x)^2}{2!}f''(x)+... + \frac{(a+h-x)^{n-1}}{(n-1)!}f^{(n-1)}(x)+k(a+h-x)^m$
> 
> 
> 

I was trying to solve it following way.

$$F'(x)=f'(x)-f'(x)+(a+h-x)f''(x)-(a+h-x)f''(x)+\color{blue}{\frac{(a+h-x)^2}{2!}f'''(x)}+\frac{\color{red}{(n-1)}(a+h-x)^{n-2}}{(n-1)!} f^{(n-1)}x+\frac{(a+h-x)^{n-1}}{(n-1)!}f^{(n)}(x)+km(a+h-x)^{m-1}(-1)$$

$$= \frac{(a+h-x)^2}{2!}f'''(x)+\frac{(n-1)(a+h-x)^{n-2}}{(n-1)!}f^{(n-1)}(x)+\frac{(a+h-x)^{n-1}}{(n-1)!}f^{(n)}(x)-km(a+h-x)^{m-1}$$

I had marked(with Red color) something. According to my book, it shouldn't be there. But, according to my calculation it should be there.

They didn't write the blue line also but, I don't have any problem on it cause, they put that as extra function (used `...` for that function).

---

The function I said to differentiate.

[![enter image description here](https://i.stack.imgur.com/Z9mLK.png)](https://i.stack.imgur.com/Z9mLK.png)

The way they differentiate.

[![enter image description here](https://i.stack.imgur.com/x1yGY.png)](https://i.stack.imgur.com/x1yGY.png)