Topic from: "Data structure and algorithm analysis: C Language Description _ Original Book Second Edition"--mark Allen Weiss
Exercise 1.5 (a) proves the following formula: LOGX < x is established for all x > 0. (Note: In computer science, if not specifically stated, all logarithms are based on the 2 base)
This little question seems to be simple. At first glance at a high school proof of the problem. In fact, I based on the usual ideas in high school to solve the:
Set F (x) = X-LOGX, where x > 0.
Easy to know f (0) = 0 +∞> 0,f (x) ′= 1-1/(XLN2), so f (x) ′= 0, Solution X = 1/ln2.
So when 0< X < 1/LN2, f (x) ′< 0, the function is monotonically decreasing.
x > 1/LN2, F (x) ' > 0, Function monotonically increment.
So f (1/LN2) is the minimum point of the function. All we need to do is ask for the f (1/LN2) = 1/ln2-log (1/LN2) > 0 issue to be proven. The result is indeed greater than 0, but the calculation results have to be turned to the calculator (amplification of the meiosis is not feasible). The question of turning to calculators is a little uncomfortable. It comes to the thought that high school should be LNX < X, the question is a reliable answer (here is the reliable meaning: do not use the calculator).
I take this many unpleasant problems to the Internet search a circle, also did not have much harvest, many still is wrong. Had to search the solution to the net, found that the book has the author to provide the answer, so decisively moved over:)
Have to say Mark Allen Weiss, have to say that the American celebrities write books Ah, the anti-view of some of the domestic data structure of the book is weak explosion has wood! Not much to say, hurry up with me to worship the Weiss bar:
The mathematical induction method is used to prove.
0 < X≤1, LOGX < X is clearly established. Because x = 1 o'clock, Log1 = 0 < 1. x < 1 o'clock, LOGX is negative, significantly less than X.
The same obvious situation is when the 1 < x≤2. Because log2 = 1 < 2, and X < 2 o'clock LOGX < 1.
Ready, the most wonderful part comes:
Inductive Foundation:1< x≤2 When the proposition is established, from the above.
Inductive hypothesis: Hypothesis propositions are established for arbitrary positive integers p (p≥1), p < x≤2p propositions, and for arbitrary positive integers p,2p < Y < 4p propositions.
Proof: logy = log (2 Y/2) = log2 + log (Y/2) = 1 + y/2 < Y/2 + y/2≤y.
That is Logy < y established.
The steps of mathematical induction are perfect, so the proposition LOGX < x,x > 0 was established.
PS: Because the answer is in English, here the word order has been adjusted, and the difficult to understand the part of the supplement.
Proof LOGX < X for all x > 0 established