taocp

This site has no text of the book. Keep your own copy of TAOCP next to it. See what is checked.

Exercise · Volume 1 · 1.2.8-33

Exercise 1.2.8-33

not stated yet in Lean solution written

RatingHM24
MarkersHM (needs higher mathematics)
KindK1, prove: show that a stated fact is true from the written solution
SectionSection 1.2.8 of Volume 1. Companion chapter: Fibonacci numbers

The task

For z=π/2+iln⁡ϕz = \pi/2 + i\ln\phi, show that sin⁡nz/sin⁡z=i1−nFn\sin nz/\sin z = i^{1-n}F_n.

The exact wording is in your copy of the book.

Hints

Open one hint at a time. Try the exercise again after each.

Hint 1

Compute sin⁡z\sin z and eize^{iz} first. Both are simple in terms of ϕ\phi.

Hint 2

Write sin⁡nz\sin nz with exponentials. The numbers eize^{iz} and e−ize^{-iz} turn out to be −iϕ^-i\hat\phi and −iϕ-i\phi, so the Binet formula appears.

Solution

Show the solution

Put L=ln⁡ϕL = \ln\phi. Then sin⁡z=sin⁡(π/2+iL)=cos⁡(iL)=cosh⁡L=(ϕ+ϕ−1)/2\sin z = \sin(\pi/2 + iL) = \cos(iL) = \cosh L = (\phi + \phi^{-1})/2. Since ϕ−1=ϕ−1\phi^{-1} = \phi - 1, the sum is ϕ+ϕ−1=2ϕ−1=5\phi + \phi^{-1} = 2\phi - 1 = \sqrt5, so sin⁡z=5/2\sin z = \sqrt5/2.

Next, eiz=eiπ/2e−L=i/ϕe^{iz} = e^{i\pi/2}e^{-L} = i/\phi and e−iz=−iϕe^{-iz} = -i\phi. Since ϕϕ^=−1\phi\hat\phi = -1, also 1/ϕ=−ϕ^1/\phi = -\hat\phi. So eiz=−iϕ^e^{iz} = -i\hat\phi and e−iz=−iϕe^{-iz} = -i\phi. Then

sin⁡nz=einz−e−inz2i=(−i)n(ϕ^n−ϕn)2i=(−i)n(−5Fn)2i,\sin nz = \frac{e^{inz} - e^{-inz}}{2i} = \frac{(-i)^n(\hat\phi^n - \phi^n)}{2i} = \frac{(-i)^n(-\sqrt5F_n)}{2i},

by the Binet formula ϕn−ϕ^n=5Fn\phi^n - \hat\phi^n = \sqrt5F_n. Divide by sin⁡z=5/2\sin z = \sqrt5/2:

sin⁡nzsin⁡z=−(−i)nFni=i (−i)nFn=i1−nFn,\frac{\sin nz}{\sin z} = \frac{-(-i)^nF_n}{i} = i\,(-i)^nF_n = i^{1-n}F_n,

because −1/i=i-1/i = i and (−i)n=i−n(-i)^n = i^{-n}.

Check

With python complex arithmetic: sin⁡3z/sin⁡z=−2.0000\sin 3z/\sin z = -2.0000 and i−2F3=−2i^{-2}F_3 = -2. For n=4n = 4: 3i3i and i−3F4=3ii^{-3}F_4 = 3i. For n=2n = 2: −i-i and i−1F2=−ii^{-1}F_2 = -i. Also sin⁡z=1.118034=5/2\sin z = 1.118034 = \sqrt5/2.

Remarks

The identity sin⁡(n+1)z+sin⁡(n−1)z=2sin⁡nzcos⁡z\sin(n+1)z + \sin(n-1)z = 2\sin nz\cos z with cos⁡z=−i/2\cos z = -i/2 gives the Fibonacci rule directly, which is another proof of the exercise. The same idea shows that FnF_n is a value of a Chebyshev polynomial of the second kind.

This solution is checked, and a person has not reviewed it yet. The source.

In Lean

not stated yet The exercise is not stated in Lean yet.

The status is computed from the Lean build. The node of the map.

Something is wrong? Report it.