The Riemann zeta function and tuning/Vector's derivation
We start with the generalized mu function, which sums up the relative error on all integer harmonics weighted by an inverse power of the harmonic:
Now, this is a rather annoying function to work with for math reasons, so it might be useful to replace the "zigzag" that we use as our error function with a "smoother" alternative. The most obvious answer is cosine:
$$ \sum_{k=1}^{\infty}\frac{\cos\left(\log_{2}\left(k\right)\tau x\right)}{k^{\sigma}} $$
Let's clean up the function by removing the scale factors on x. This just scales the function's inputs from EDO to EDZ, and these can be added back later to go back to EDO.
$$ \sum_{k=1}^{\infty}\frac{\cos (\ln\left(k\right)x)}{k^{\sigma}} $$
By the complex exponential theorem, which relates trigonometric functions and the exponential function, we know that
$$ e^{ix}=\cos\left(x\right)+i\sin\left(x\right) $$
where i is the square root of −1, and e is the natural exponential constant.
i is the imaginary unit, which is on a line perpendicular to the real number line. A complex (two-dimensional) number may be written as a + bi.
With this knowledge, cos(x) can be rewritten as Re(eix)—but since we're only doing multiplication and addition and this is the only place complex numbers appear, we can just ignore the Re() and add it back later.
Since eln(n)x = nx, the exponentials and logarithms cancel each other out (i.e. eln(n) = n), so:
$$ \sum_{k=1}^{\infty}\frac{k^{ix}}{k^{\sigma}} $$
$$ \sum_{k=1}^{\infty}k^{ix}k^{-\sigma} $$
$$ \sum_{k=1}^{\infty}k^{-\sigma+ix} $$
−σ + ix is just a complex number, which we may write as −s:
$$ \mu_{d}\left(s\right)=\sum_{k=1}^{\infty}k^{-s} $$
where, for s = σ − ix, Re(μd(s)) = μc(σ, x), our badness function.
μd is a mathematical function called the Riemann zeta function, so μd(s) = ζ(s), and re-adding the Re() function gives Re(ζ(s)) with s = σ − ix; x is the equal division and σ is the weight.
Summary of the derivation: