log_2(10) is a perfectly definite number: the exponent that turns 2 into 10. It is between 3 and 4, since 2^3 = 8 and 2^4 = 16. No calculator has a base-2 logarithm key, and no table was ever printed for base 2. The identity below is how the number is obtained anyway.
Theorem · Change of baseLet b and c be positive with b ≠ 1 and c ≠ 1, and let x > 0. Then log_b(x) = log_c(x) / log_c(b).
Let y = log_b(x). By the definition in “What a Logarithm Is”, that says exactly b^y = x.
Equal numbers have equal logarithms, so apply log_c to both sides: log_c(b^y) = log_c(x). The power law of “The Laws of Logarithms” turns the left side into y · log_c(b).
Divide both sides by log_c(b). That step is legal because log_c(b) = 0 happens only when b = 1, and the hypothesis excluded it. What is left is y = log_c(x) / log_c(b), which is the claim.
□
Read the result once more for placement. The argument goes on top and the base of the answer goes underneath. log_2(10) is ln 10 / ln 2, not ln 2 / ln 10. Both quotients are real numbers and neither looks broken: the first is about 3.3219 and the second about 0.3010.
log_2(10) = log 10 / log 2 = 1.000000 / 0.301030 ≈ 3.321928
= ln 10 / ln 2 = 2.302585 / 0.693147 ≈ 3.321928
check: 2^3 = 8 < 10 < 16 = 2^4 so the answer lies between 3 and 4
the reversed quotient: ln 2 / ln 10 ≈ 0.301030 = log_10(2)
Two corollaries
Put c = x. Then log_x(x) = 1, and the identity collapses to log_b(x) = 1 / log_x(b). The pair log_2(8) = 3 and log_8(2) = 1/3 is that statement with numbers in it, and it is a useful sanity check whenever a logarithm and its mirror image both appear in a problem.
Put c = e. Then log_b(x) = ln x / ln b = (1 / ln b) · ln x, so each logarithm function is a fixed multiple of the natural one. For base 2 that multiple is 1 / ln 2 ≈ 1.442695; for base 10 it is 1 / ln 10 ≈ 0.434294. “Common and Natural Logarithms”'s ln x ≈ 2.302585 · log x is the same statement with the two bases swapped.
Example · An exact answer stays exactlog_8(32) is not a decimal problem. Both numbers are powers of 2, so change to base 2: log_8(32) = log_2(32) / log_2(8) = 5/3. Check it against the definition: 8^(5/3) = (2^3)^(5/3) = 2^5 = 32. Changing base does not force an approximation; choosing a helper base in which both numbers are recognisable powers avoids one.
Now the trap, on numbers. Take log_5(40). The identity gives log 40 / log 5 = 1.602060 / 0.698970 ≈ 2.292030. The two expressions it is confused with are log(40/5) = log 8 ≈ 0.903090 and log 40 − log 5, which is the same log 8. Neither is close to the answer, and neither is a law.
There is one more reason to know the identity even on a calculator that accepts any base. It is what proves that two people computing the same logarithm in different bases must agree, and in “Solving Exponential Equations” it is what turns x = log_5(17) from a name for the answer into a number.