Closed-Form Expessions for Summations
Some mathematical concepts are most intuitively described using summations. To efficiently calculate and work with the results of such summations, it may be necessary to represent them as a closed-form expression.
The following describes a method for finding closed-form expressions for summations of polynomials \(P_k(x)\) of order \(k\):
Method
The first thing to note is that a summation over a polynomial may be decomposed into a summation over the sum of polynomial components:
To discover a closed-form expression for \(\mathrm{K}_k(n)\) we represent \(n^{k+1}\) as a summation. This summation must consist of \(\mathrm{K}_i(n)\) with \(i \le k\). By iteratively calculating and subtracting \(\mathrm{K}_i(n)\) for \(i < k\), we are left with a closed-form expression for \(\mathrm{K}_k(n)\).
Example
Let's have a look at how a closed-form expression for \(\mathrm{K}_2(n)\) may be derived without prior knowledge of \(\mathrm{K}_i(n)\) for \(i \leq 1\).
We begin by representing \(n\) as a summation. We can represent any power \(n^k\) by "integrating" over the differences in consecutive values:
For \(k = 1\):
For \(k = 2\):
For \(k = 3\):
Generalization
We can use binomial coefficients to represent the difference in powers \(x^k - (x-1)^k\) in terms of a summation over the polynomial components:
Solving for \(\mathrm{K}_k(n)\):
Table
Using a small program1 we can compute the closed-form expressions for \(\mathrm{K}_k(n)\) for \(k \in [0,9]\):
| k | \(\mathrm{K}_k(n)\) |
|---|---|
| 1 | \(\frac{1}{2} n \left(n + 1\right)\) |
| 2 | \(\frac{1}{6} n \left(n + 1\right) \left(2 n + 1\right)\) |
| 3 | \(\frac{1}{4} n^{2} \left(n + 1\right)^{2}\) |
| 4 | \(\frac{1}{30} n \left(n + 1\right) \left(2 n + 1\right) \left(3 n^{2} + 3 n - 1\right)\) |
| 5 | \(\frac{1}{12} n^{2} \left(n + 1\right)^{2} \left(2 n^{2} + 2 n - 1\right)\) |
| 6 | \(\frac{1}{42} n \left(n + 1\right) \left(2 n + 1\right) \left(3 n^{4} + 6 n^{3} - 3 n + 1\right)\) |
| 7 | \(\frac{1}{24} n^{2} \left(n + 1\right)^{2} \left(3 n^{4} + 6 n^{3} - n^{2} - 4 n + 2\right)\) |
| 8 | \(\frac{1}{90} n \left(n + 1\right) \left(2 n + 1\right) \left(5 n^{6} + 15 n^{5} + 5 n^{4} - 15 n^{3} - n^{2} + 9 n - 3\right)\) |
| 9 | \(\frac{1}{20} n^{2} \left(n + 1\right)^{2} \left(n^{2} + n - 1\right) \left(2 n^{4} + 4 n^{3} - n^{2} - 3 n + 3\right)\) |