Visual Calculus, Power Sums and Bernoulli Coefficients
Intro
My goal here is to motivate a natural construction of the general formula for sums of powers of integers through a geometrical understanding of derivation and integration of power functions. The core insight then lies in peeling an hypercube with the finite difference operator and decomposing layers in blocks of volumes of lower powers. Transitioning from that elementary induction formula to a general polynomial expression for the n-th power sum leads to the introduction of a well known family of coefficients: the Bernoulli numbers..
In the following sections f denotes the n-th power function : x↦xn.
Differentiation
(Differentiation of Power Functions).∀x∈R, f′(x)=n⋅xn−1.
Proof/Geometrical Intuition.The rate of growth of an hypercube with respect to the length of one of its edges equals half the volume of its outer shell, i.e the volume of one of its walls times its number of walls, divided by 2.
Consider the n-cube cornered at the origin so that half of its walls are leaning against our frame (see fig.1 for n=3), the derivative of f corresponds to the rate at which our hypervolume grows/shrinks as x grows/diminishes. A look at figure 1.1 should help one gain confidence in the fact that this rate is indeed equal to half the number of walls of the hypercube times the current volume of one of these walls. There are 2n walls 1, each having an area of xn−1.
(Integration of Power Functions).∀x∈R, ∫0xf(t)dt=n+1xn+1.
We use similar insights and a similar setting to get a grasp of the formula for a primitive of the n-th power function. For simplicity we consider the integral of f to be from 0 to x.
Proof/Geometrical Intuition.The integral of the n-th power is equal to the volume of the (n+1)-cube divided by half of its number of walls.
To see this, look at what happens when we integrate our n-cubes : we start with a point (the n-cube of side-length 0) at the origin of our frame and keep piling up n-cubes until we’ve reached one of the n+1 walls of the (n+1)-cube that don’t have our starting point as a vertex (figure 1.2). There are n+1 ways to choose the destination wall, hence the division by n+1 in the formula.
⬜
Power Sums
Let Sm(n) stand for the power sum of power m :
Sm(n):=k=0∑n−1km=0m+1m+2m+…+(n−1)m
The formulas for the sums of low order are the following well known identities :
S1(n)=1+2+…+(n−1)=2n(n−1)
S2(n)=12+22+…+(n−1)2=6n(n−1)(2n+1)
S3(n)=13+23+…+(n−1)3=[1+2+…+(n−1)]2=4n2(n−1)2
These n-th power sums are Riemann sums for the (n+1)-th power function with a subdivision of length 1. Hence the expression of the sum of power m being of dimension m+1. One way to come up with a general formula for Sm(n) would then be to check the gap (in blue in fig. 3) between the continuous sum (the integral) and the discrete sum on each interval of the subdivision and then sum for the whole subdivision (see fig. 3).
Looking back, the main geometrical insight behind this induction formula is the fact that peeling the n-cube layer by layer with the finite difference operator Δ[f] yields a collection of (pn) blocks of volume p. We can thus reach the same formula without any mention of integration by looking at the decomposition of a single layer:
Because of this decomposition of the n-cube in blocks of volume p<n it is easy to see that Sm(n) is always a polynomial of degree m+1 in n with leading coefficient m+11 and constant term zero. Now we want the expression of all its coefficients in order to write it down as a function of n. Since these coefficients depend on m, we label the k-th coefficient for Sm(n) as Ak−1(m) (for the term in nm−k).
That is to say :
Sm(n)=k=0∑mAk(m)nm+1−k
(A0(m) is the coefficient of the term of highest order in Sm(n) (i.e the term in nm+1), A1(m) the coefficient of the term of second highest order in Sm(n) (i.e the term in nm), etc.)
From (I) we can deduce the following induction relation for the Ak :
As one works his way through the successive computations it becomes clear that every Ai(m) can be written under the following form:
Ai(m)=m+11(m+1−im+1)Bi
It is not difficult to prove that result by induction. We’ve already verified it for A0(m), A1(m) and A2(m) and if we suppose that this is true for all i<k then :
Which proves the result and gives us the expression for Bk :
Bk=−k+11i=0∑k−1(ik+1)Bi
These coefficients are the Bernoulli numbers :
(Bernoulli Numbers). The members of the integer sequence (Bk)k∈N defined inductively by B0=1 and Bk=−k+11∑i=0k−1(ik+1)Bi are called the Bernoulli numbers.
Now that we’ve reached this expression of Sm(n) as a polynomial in n we can make sense of a broader continuous version Sm(x) of Sm(n). This leads to the introduction of the Bernoulli polynomials :
(Bernoulli Polynomials).
Bm(x)=k=0∑m(km)Bkxm−k
Which lead to the identity :
(Formula for Power Sums).
Sm(n)=m+11(Bm+1(n)−Bm+1)
The number of p-cubes on the boundary of an n-cube is 2n−p(pn) which gives us 2n “walls”.↩↩