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.3-24

Exercise 1.2.3-24

proved in Lean solution written

Rating20
KindK1, prove: show that a stated fact is true from the written solution
SectionSection 1.2.3 of Volume 1. Companion chapter: Sums and products

The task

For a finite set of indices and positive numbers aja_j, prove by induction on the size of the set that the logarithm of the product is the sum of the logarithms.

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

The induction runs on the number NN of integers jj with R(j)R(j). Start with N=0N = 0.

Hint 2

For the step, remove one index and use log⁡b(xy)=log⁡bx+log⁡by\log_b (xy) = \log_b x + \log_b y for x,y>0x, y > 0.

Solution

Show the solution

Let b>0b > 0 and b≠1b \ne 1. Let P(N)P(N) be the claim for all relations RR satisfied by exactly NN integers.

Base, N=0N = 0. The product is empty, so it is 11, and log⁡b1=0\log_b 1 = 0. The sum is empty, so it is 00. Equal.

Step. Let N≥1N \ge 1 and assume P(N−1)P(N-1). Let RR be satisfied by exactly NN integers and pick one of them, j0j_0. Let R′(j)R'(j) be "R(j)R(j) and j≠j0j \ne j_0"; exactly N−1N - 1 integers satisfy R′R'. Then ∏R(j)aj=aj0∏R′(j)aj\prod_{R(j)} a_j = a_{j_0} \prod_{R'(j)} a_j by rule (d) for products, since j0j_0 and the set of R′R' are disjoint. Both factors are positive, so log⁡b∏R(j)aj=log⁡baj0+log⁡b∏R′(j)aj.\log_b \prod_{R(j)} a_j = \log_b a_{j_0} + \log_b \prod_{R'(j)} a_j. By P(N−1)P(N-1) the last term is ∑R′(j)log⁡baj\sum_{R'(j)} \log_b a_j. Adding the term of j0j_0 gives log⁡b∏R(j)aj=log⁡baj0+∑R′(j)log⁡baj=∑R(j)log⁡baj,\log_b \prod_{R(j)} a_j = \log_b a_{j_0} + \sum_{R'(j)} \log_b a_j = \sum_{R(j)} \log_b a_j, by rule (d) for sums. This proves P(N)P(N), and by induction all N≥0N \ge 0. □\square

Check

For b=2b = 2, R={1,2,3}R = \{1, 2, 3\} and a=(2,4,8)a = (2, 4, 8): the product is 6464 and log⁡264=6\log_2 64 = 6. The logarithms are 1,2,31, 2, 3 with sum 66.

Remarks

The identity changes a product into a sum, so each property of sums gives the product analog (Exercise 1.2.3-22) for positive numbers. The condition aj>0a_j > 0 is needed: a zero factor has no logarithm, and a negative factor has no real one.

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.