There's an old-school pocket calculator trick to calculate $x^n$ on a pocket calculator, where both, $x$ and $n$ are real numbers. So, things like $\,0.751^{3.2131}$ can be calculated, which is awesome.
This provides endless possibilities, including calculating nth roots on a simple pocket calculator.
The trick goes like this:
- Type $x$ in the calculator
- Take the square root twelve times
- Subtract one
- Multiply by $n$
- Add one
- Raise the number to the 2nd power twelve times (press
*and=key eleven times)
Example:
I want to calculate $\sqrt[3]{20}$ which is the same as $20^{1/3}$. So $x=20$ and $n=0.3333333$. After each of the six steps, the display on the calculator will look like this:
- $\;\;\;20$
- $\;\;\;1.0007315$
- $\;\;\;0.0007315$
- $\;\;\;0.0002438$
- $\;\;\;1.0002438$
- $\;\;\;2.7136203$
The actual answer is $20^{1/3}\approx2.7144176$. So, our trick worked to three significant figures. It's not perfect, because of the errors accumulated from the calculator's 8 digit limit, but it's good enough for most situations.
Question:
So the question is now, why does this trick work? More specifically, how do we prove that: $$x^n\approx \Big(n(x^{1/4096}-1)+1\Big)^{4096}$$
Note: $4096=2^{12}$.
I sat in front of a piece of paper trying to manipulate the expression in different ways, but got nowhere.
I also noticed that if we take the square root in step 1 more than twelve times, but on a better-precision calculator, and respectively square the number more than twelve times in the sixth step, then the result tends to the actual value we are trying to get, i.e.:
$$\lim_{a\to\infty}\Big(n(x^{1/2^a}-1)+1\Big)^{(2^a)}=x^n$$
This, of course doesn't mean that doing this more times is encouraged on a pocket calculator, because the error from the limited precision propagates with every operation. $a=12$ is found to be the optimal value for most calculations of this type i.e. the best possible answer taking all errors into consideration. Even though 12 is the optimal value on a pocket calculator, taking the limit with $a\to\infty$ can be useful in proving why this trick works, however I still can't of think a formal proof for this.
Thank you for your time :)
A standard trick is to calculate the natural logarithm first to get the exponent under control:
$$\log(\lim_{a\to\infty}(n(x^{1/a}-1)+1)^a)=\lim_{a\to\infty}a\log(nx^{1/a}-n+1)$$ Set $u=1/a$. We get $$\lim_{u\to 0}\frac{\log (nx^u-n+1)}{u}$$ Use L'Hopital: $$\lim_{u\to 0}\frac{nx^u\log x}{nx^u-n+1}=n\log x=\log x^n$$ Here we just plugged in $u=0$ to calculate the limit!
So the original limit goes to $x^n$ as desired.