The logarithm is a transcendental function which canโt be directly calculated. Here is a Taylor series for a particular version of the logarithm, which has a radius of convergence of
\(R = 1\text{.}\)
\begin{equation*}
-\ln (1-x) = \sum_{n=0}^\infty \frac{x^{n+1}}{n+1} dx
\end{equation*}
Using some clever arithmetic, I can write
\(\ln 2 = - \ln
\frac{1}{2} = - \ln \left( 1 - \frac{1}{2} \right)\text{.}\) This lets me use this series to calculate
\(\ln 2\) by evaluating at
\(x = \frac{1}{2}\text{.}\) Now Iโll take the
\(6\)th Taylor polynomial as an approximation for
\(\ln 2\text{.}\)
\begin{align*}
\ln 2 \amp = -\ln \left( 1 - \frac{1}{2} \right) \cong
\sum_{n=0}^5 \frac{x^{n+1}}{n+1} dx \Bigg|_{x = \frac{1}{2}} \\
\ln 2 \amp \cong 1 \cdot \frac{1}{2} + \frac{1}{2} \cdot
\left( \frac{1}{2} \right)^2 + \frac{1}{3} \left(
\frac{1}{2} \right)^3 + \frac{1}{4} \left( \frac{1}{2}
\right)^4 + \frac{1}{5} \left( \frac{1}{2} \right)^5 +
\frac{1}{6} \left( \frac{1}{2} \right)^6\\
\ln 2 \amp \cong \frac{1}{2} + \frac{1}{8} + \frac{1}{24}
+ \frac{1}{64} + \frac{1}{160} + \frac{1}{384}\\
\ln 2 \amp \cong \frac{1327}{1920} = 0.6911458333333
\ldots = 0.6911458\bar{3}
\end{align*}
This is not to far off from the value of
\(\ln 2 =
0.69314\ldots\text{,}\) accurate to the thousandths place. Already with a
\(6\)th order approximation, this is already a usable approximation for many applications.