Taylor series: Difference between revisions

From Xenharmonic Reference
Created page with "''This is an advanced page dealing with detailed mathematical topics, and should not be referred to for guidance on aspects of xenharmony mentioned here that can be described more simply.'' A '''Taylor series''' is a method of approximating a function within a certain range by means of adding successive powers of a small parameter, such that each approximation is increasingly precise by a factor of that parameter. While these can be defined for essentially any function,..."
 
Line 22: Line 22:
'''ln((''k''+1)/(''k''-1)) = 2[1/''k'' + 1/(3''k''<sup>3</sup>) + 1/(5''k''<sup>5</sup>) + ...].''' This series is particularly important as this series can compute the logarithm of all intervals from 1 to infinity while ''x'' = 1/''k'' only varies from 0 to 1, as well as due to its rapid convergence.
'''ln((''k''+1)/(''k''-1)) = 2[1/''k'' + 1/(3''k''<sup>3</sup>) + 1/(5''k''<sup>5</sup>) + ...].''' This series is particularly important as this series can compute the logarithm of all intervals from 1 to infinity while ''x'' = 1/''k'' only varies from 0 to 1, as well as due to its rapid convergence.


To take the logarithm of any arbitrary ratio ''a''/''b'', let ''k'' = (''a''+''b'')/(''a''-''b''); then (''k''+1)/(''k''-1) = ''a''/''b''. We call ''k'' the '''bimodular approximant''' of the fraction ''a''/''b''.
To take the logarithm of any arbitrary ratio ''a''/''b'', let ''k'' = (''a''+''b'')/(''a''-''b''); then (''k''+1)/(''k''-1) = ''a''/''b''. We call ''k'' the '''bimodular approximant''' of the fraction ''a''/''b'', and we will concern ourselves with these as we study '''third-order commas'''.


== Bimodular approximants ==
== Bimodular approximants ==

Revision as of 19:22, 16 December 2025

This is an advanced page dealing with detailed mathematical topics, and should not be referred to for guidance on aspects of xenharmony mentioned here that can be described more simply.

A Taylor series is a method of approximating a function within a certain range by means of adding successive powers of a small parameter, such that each approximation is increasingly precise by a factor of that parameter. While these can be defined for essentially any function, the most useful series in xenharmony are the Taylor series for the logarithm, as the size of an interval is the logarithm of its frequency ratio.

Logarithmic Taylor series

We will use certain properties of logarithms in what follows: as a reminder, the sum of two logarithms is the logarithm of the product and the difference of two logarithms is the logarithm of the fraction, and the logarithm of 1 is 0.

For a value of x between -1 and 1, exclusive, the following series can be found for the natural logarithm (ln) function:

ln(1+x) = x - x2/2 + x3/3 - x4/4 + .... If x here is a fraction, 1/k, this series gives the logarithm of the superparticular interval (k+1)/k. In fact, we will generally write these series, and those that follow, in terms of k.

ln(1 + 1/k) = ln((k+1)/k) = 1/k - 1/(2k2) + 1/(3k3) - 1/(4k4) + .... Reversing the sign of k here, and flipping the sign of the entire logarithm, gives us:

ln(1/(1 - 1/k)) = ln(k/(k-1))= 1/k + 1/(2k2) + 1/(3k3) + 1/(4k4) + ....

Note that we can add these series or subtract these series. Subtracting, and flipping the overall sign, provides us with the expression for -ln((k+1)/k) + ln(k/(k-1)) = ln(k2/(k2 - 1)), the logarithmic size of a square superparticular comma:

ln(k2/(k2 - 1)) = 1/k2 + 1/(2k4) + 1/(3k6) + .... As the series' first term has 1/k to the second power, square superparticulars (and triangle-particulars, etc.) can be called second-order commas.

If we add the two expressions, we get the so-called Euler series:

ln((k+1)/(k-1)) = 2[1/k + 1/(3k3) + 1/(5k5) + ...]. This series is particularly important as this series can compute the logarithm of all intervals from 1 to infinity while x = 1/k only varies from 0 to 1, as well as due to its rapid convergence.

To take the logarithm of any arbitrary ratio a/b, let k = (a+b)/(a-b); then (k+1)/(k-1) = a/b. We call k the bimodular approximant of the fraction a/b, and we will concern ourselves with these as we study third-order commas.

Bimodular approximants