WolframAlpha claims: $$\sum_{n=0}^m n x^n = \frac{(m x - m - 1) x^{m + 1} + x}{(1 - x)^2} \tag{1}$$ I know that one can differentiate the geometric series to compute $(1)$ when it is a series, i.e. $m=\infty$. However, I'm wondering how the closed form for the partial sum is obtained. Actually, WolframAlpha gives an explicit formula for $$\sum_{n=0}^m n(n-1)(n-2)\cdots (n-k)x^n \tag{2}$$ where $k$ is an integer between $0$ and $n-1$, so it seems that there are some differentiation involved. But already for $k=5$, the formula becomes very messy.
My question: How to prove $(1)$ and how to build a similar formula for $(2)$ assuming $k$ is given?