(edit) The problem I've been assigned literally says just to "Calculate ln(12) without a calculator to two decimals using ln(1+x) series." I've been trying to figure out what series I'm dealing with here and don't seem to find an answer anywhere.
-
3Do you know what the series is? – MJD Oct 17 '22 at 11:21
-
1The problem I've been assigned literally says just to "Calculate ln(12) without a calculator to two decimals using ln(1+x) series." I've been trying to figure out what series I'm dealing with here and don't seem to find an answer anywhere. – axesmith99 Oct 17 '22 at 11:28
-
2$$\ln(1+x) = x - \frac{x^2}{2}+\frac{x^3}{3}-\frac{x^4}{4} + \cdots, \quad |x|< 1$$ – PierreCarre Oct 17 '22 at 11:33
-
Well, $\ln(1+x)=x-\frac{x^2}{2}+\frac{x^3}{3}-\frac{x^4}{4}+\ldots$, which you can see in a slightly different form here: https://math.stackexchange.com/questions/878374/taylor-series-of-ln1x. Still, this series converges only for $|x|<1$ so you cannot put $x=11$ into it and so you need to invent a trick what to do. – Oct 17 '22 at 11:33
-
4Hint: if you can express $12$ as the product of fractions between $1$ and $2$, you can approximate the logarithm of each fraction using @StinkingBishop's series. What do you do next? (You can in fact express $12$ in this way using just two distinct fractions.) – TonyK Oct 17 '22 at 11:37
-
1There is also $\ln(x)=2\left(\left(\frac{x-1}{x+1}\right)+\frac13\left(\frac{x-1}{x+1}\right)^3+\frac15\left(\frac{x-1}{x+1}\right)^5+\cdots\right)$ – robjohn Oct 17 '22 at 11:39
-
2Or, find $\ln\left(\frac{1}{12}\right)$ (which will be very slow to converge - but this may give you further ideas)! – Oct 17 '22 at 11:40
-
$\ln(12)=2+\ln(12/e^2)\approx 2+\ln(1+0.624)$ – Bob Dobbs Oct 17 '22 at 11:40
-
4@BobDobbs: I think it goes against the spirit of this question to use the value of $e$! – TonyK Oct 17 '22 at 11:41
-
I thought, this number is well-known. – Bob Dobbs Oct 17 '22 at 11:45
-
@TonyK I now understand what series I need to use and how, but I'm confused by "express 12 as the product of fractions between 1 and 2", english is not my native language so I have trouble understanding this – axesmith99 Oct 17 '22 at 12:49
-
@axesmith99 Best friend is a calculator 3600. I don't understand teachers. – Bob Dobbs Oct 17 '22 at 13:22
-
1@BobDobbs True, I'm an engineering student and my teacher says it's very important to know how to solve stuff without a calculator, don't understand why – axesmith99 Oct 17 '22 at 13:24
-
She doesn't like robots. – Bob Dobbs Oct 17 '22 at 13:32
-
It means you have to find fractions $x_1,\ldots,x_n$ between $1$ and $2$ such that $12=x_1\times x_2\times\ldots x_n$. – TonyK Oct 17 '22 at 14:51
3 Answers
We can express $12$ as $$12=\left(\frac32\right)^4\left(\frac43\right)^3$$
So if we can evaluate $\ln\frac32$ and $\ln\frac43$ to sufficient precision, we have $$\ln12=4\ln\frac32+3\ln\frac43$$
It's a good idea to calculate the logarithms to three decimal places, so that the multiplications and additions don't accumulate too much rounding error. Using the series $$\ln(1+x) = x - \frac{x^2}{2}+\frac{x^3}{3}-\frac{x^4}{4} + \cdots$$ it is enough to calculate $\ln\frac32$ to five terms, and $\ln\frac43$ to four terms.
- 68,059
$\begin{align}\ln(12) &=\ln(10\times1.2)\\ &=\frac{1}{3}\ln(1000)+\ln(1+0.2)\\ &\approx\frac{1}{3}\ln(1024)+0.2-\frac{(0.2)^2}{2}+\frac{(0.2)^3}{3}\\ &\approx\frac{10}{3}\ln(2)+0.2-\frac{0.04}{2}+\frac{0.008}{3}\\ &\approx(3.333)(0.69)+0.2-0.02+0.003\\ &\approx 2.48 \end{align}$
I used the approximation $\ln(2)\approx 0.69$. This needs a separate computation.
- 15,712
When $x> 1/2$ we can use the following series for the logarithm:
$$\ln(x) = \sum_{k = 1}^{+\infty} \dfrac{1}{k} \left(\dfrac{x-1}{x}\right)^k = \dfrac{x-1}{x} + \dfrac{1}{2}\left(\dfrac{x-1}{x}\right)^2 + \dfrac{1}{3} \left(\dfrac{x-1}{x}\right)^3 + \ldots$$
Plugging $x = 12$ you get
$$\ln(12) \approx \dfrac{11}{12} + \dfrac{1}{2} \cdot \dfrac{121}{144} + \dfrac{1}{3}\cdot \dfrac{1331}{1728} = \dfrac{11}{12} + \dfrac{121}{288} + \dfrac{1331}{5184} = \dfrac{8261}{5184} = 1.593(..)$$
Where as $\ln(12) = 2.48$ so you can see this may not be the best way for it converges slowly.
There is another series for the logarithm as pointed out by RobJohn, that works for $x > 0$, that is:
$$\ln(x) = 2\sum_{k = 1}^{+\infty} \dfrac{1}{2k-1} \left(\dfrac{x-1}{x+1}\right)^{2k-1} = 2\left(\dfrac{x-1}{x+1} + \dfrac{1}{3}\left(\dfrac{x-1}{x+1}\right)^3 + \dfrac{1}{5}\left(\dfrac{x-1}{x+1}\right)^5 + \ldots \right)$$
Applying it here gives
$$\ln(12) \approx 2\left(\dfrac{11}{13} + \dfrac{1}{3}\dfrac{11^3}{13^3} + \dfrac{1}{5}\dfrac{11^5}{13^5} + \ldots\right) = \frac{12640826}{5569395} = 2.26(...)$$
Which is rather better.
Add some extra terms to get a two decimal precision. Calculations are easy.
-
You want (roughly) $\frac{11}{13}^{2k-1}<0.01$, which means $k\ge 14$ terms. I would not call such a calculation easy! – TonyK Oct 17 '22 at 14:30