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.2-14

Exercise 1.2.2-14

proved in Lean solution written

Rating15
KindK1, prove: show that a stated fact is true from the written solution
SectionSection 1.2.2 of Volume 1. Companion chapter: Numbers, powers and logarithms

The task

Prove Eq. (12): log⁡b(cy)=ylog⁡bc\log_b(c^y) = y \log_b c for c>0c > 0.

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

Use Eq. (9), which says blog⁡bz=zb^{\log_b z} = z and log⁡b(bw)=w\log_b(b^w) = w.

Hint 2

Write cc as a power of bb and use the second law of exponents of Eq. (5).

Solution

Show the solution

Let w=log⁡bcw = \log_b c, so c=bwc = b^w by Eq. (9). Then cy=(bw)y=bwyc^y = (b^w)^y = b^{wy} by the second law in Eq. (5), valid for real exponents. Taking log⁡b\log_b and using log⁡b(bt)=t\log_b(b^t) = t from Eq. (9) gives log⁡b(cy)=wy=ylog⁡bc\log_b(c^y) = wy = y\log_b c. □\square

Check

Take b=2b = 2, c=8c = 8, y=5/3y = 5/3. Then cy=85/3=32c^y = 8^{5/3} = 32 and log⁡232=5\log_2 32 = 5. Also ylog⁡28=(5/3)(3)=5y \log_2 8 = (5/3)(3) = 5.

Remarks

Eq. (12) with y=−1y = -1 gives log⁡b(1/c)=−log⁡bc\log_b(1/c) = -\log_b c. Exercise 1.2.2-15 uses this to get the logarithm of a quotient.

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

In Lean

proved The statement and its proof are in Lean. The kernel accepts the proof, and it uses the standard axioms only.

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

Something is wrong? Report it.