The Riemann zeta function and tuning/Vector's derivation

Revision as of 12:23, 11 April 2025 by ArrowHead294 (talk | contribs)

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:

Template:Ext

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:

Template:Ext

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.

Template:Ext

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.

Template:Ext

Since eln(n)x = nx, the exponentials and logarithms cancel each other out (i.e. eln(n) = n), so:

Template:Ext

Template:Ext

Template:Ext

−σ + ix is just a complex number, which we may write as −s:

Template:Ext

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: