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-15

Exercise 1.2.2-15

proved in Lean solution written

Rating10
KindK2, decide: say whether a claim holds from the written solution
SectionSection 1.2.2 of Volume 1. Companion chapter: Numbers, powers and logarithms

The task

Decide whether log⁡b(x/y)=log⁡bx−log⁡by\log_b(x/y) = \log_b x - \log_b y for all x,y>0x, y > 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

Write xx as (x/y)⋅y(x/y) \cdot y and use Eq. (11).

Solution

Show the solution

It is true. Apply Eq. (11) to the positive numbers x/yx/y and yy: log⁡bx=log⁡b((x/y) y)=log⁡b(x/y)+log⁡by\log_b x = \log_b\big((x/y)\,y\big) = \log_b(x/y) + \log_b y. Move log⁡by\log_b y to the other side. □\square

Check

With b=10b = 10, x=1000x = 1000, y=8y = 8: log⁡10125=2.0969…\log_{10} 125 = 2.0969\ldots and 3−log⁡108=3−0.9031…=2.0969…3 - \log_{10} 8 = 3 - 0.9031\ldots = 2.0969\ldots.

Remarks

The rule fails for the logarithm of a sum, which has no simple form. Together with Eqs. (11) and (12) this identity is the usual toolkit for manipulating logarithms.

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.