TITLE: What are the $\sin$ and $\cos$ of discrete calculus?
QUESTION [12 upvotes]: I'm getting acquainted with Discrete Calculus, and I really like taking functions that arise in traditional calculus and finding what their counterparts in discrete-land are.
For example, if we define our difference operator
$$\Delta f(n) = f(n + 1) - f(n)$$
(the analogue of the familiar derivative operator $D = \frac{d}{dx}$) then we can ask: what is the $e^x$ of this operator? That is, what is the function $g$ such that $\Delta g(n) = g(n)$? The answer is $2^x$, since:
$$\Delta 2^x = 2^{x+1} - 2^x = 2(2^x) - 2^x = 2^x$$
Likewise, we can ask what the $g(x) = x^n$ of discrete calculus is -- it turns out to be
$$g(x) = \overbrace{x(x - 1)(x - 2) \dots (x - (n - 1))}^{n \text{ factors}}$$
My question is: is there a $\sin$ and $\cos$ of discrete calculus? By which I mean, are there any functions $f$ such that $\Delta^2 f = -f$?

REPLY [10 votes]: There are solutions to $\Delta^2 f = -f$, but sadly they lack some of the interesting properties of their continuous counterparts: they are not periodic.
Fortunately there is a way to construct periodic analogues of $\sin$ and $\cos$, and both solutions (periodic and nonperiodic) have a connection with a much deeper question: if the discrete counterparts of real numbers are ordinary integers, which are the discrete counterparts of complex numbers?
It turns out there are two "natural" candidates: the Gaussian integers $a+bi$ and the Eisenstein integers $a+b\omega$, where $a,b\in\mathbb{Z}$ and $\omega = \frac{\sqrt{3}i-1}{2}$ is a third root of unity. These are special in that they are the only choices that generate a regular periodic lattice in the complex plane.
In analogy with the discrete real exponential, which is $(1+1)^x = 2^x$, one can define for each of these complex integers a discrete version of the imaginary exponential $e^{ix}$:

Gaussian imaginary exponential: $(1+i)^x$
Eisenstein imaginary exponential: $(1+\omega)^x$

Of these, only the Eisenstein imaginary exponential turns out to be periodic, the reason being that $|1+\omega| = |e^{\pi i/3}|=1$ (this has a geometrical interpretation: you can construct a regular hexagon of side $L$ inscribed in a circle of radius $L$, while you can't do that with a square). From these one can define the corresponding sines and cosines with a discrete Euler's formula:
$$(1+i)^x = \cos_G (x) + i \sin_G (x)$$
$$(1+\omega)^x = \cos_E (x) + \omega \sin_E (x)$$
Thanks to the periodicity of the Eisenstein exponential, you even have an analogue of Euler's identity and a discrete version of $\pi$:
$$(1+\omega)^3 + 1 = 0$$
where the discrete $\pi$ is $3$. In the Gaussian case the solutions have a sort of "semiperiod" equal to $4$, but it's not as satisfying.
At the level of difference equations, to get the periodic trigonometric functions one has to replace $\Delta^2$ by the central difference $\nabla \Delta$ (where $\nabla f(n) = f(n)-f(n-1)$).