The definition: log_b(x) = y means exactly bʸ = x. Read log_b(x) as the question "to what power must I raise b to get x?" The number b is the base (b > 0, b ≠ 1), x is the argument (x > 0 — logarithms of zero and negatives are undefined for real numbers), and the answer y is the exponent. Every logarithm formula on this page is this one sentence, or an exponent law translated through it.
The Rules, as Formulas
- Product rule: log_b(xy) = log_b(x) + log_b(y). The log of a product is the sum of the logs — because multiplying powers adds exponents. Example below.
- Quotient rule: log_b(x / y) = log_b(x) − log_b(y). The log of a quotient is the difference of the logs, mirroring aᵐ / aⁿ = aᵐ⁻ⁿ.
- Power rule: log_b(xⁿ) = n · log_b(x). An exponent inside the log comes down in front as a multiplier — the single most useful rule for solving exponential equations.
- Change of base: log_b(x) = log(x) / log(b) = ln(x) / ln(b). Any base converts to any other, which is how calculators (which only have log₁₀ and ln buttons) evaluate every logarithm.
- Two anchors: log_b(1) = 0 (because b⁰ = 1) and log_b(b) = 1 (because b¹ = b).
ln Versus log₁₀
Two bases dominate. log with no base written means log₁₀, the common logarithm: log(100) = 2 because 10² = 100. ln is the natural logarithm, base e ≈ 2.718: ln(x) = log_e(x), used throughout calculus and growth/decay work because e is the base that makes the derivative of eˣ equal itself. They are the same function family at different bases, and change of base converts freely: ln(x) = log(x) / log(e) ≈ 2.303 × log(x). When a formula says log with no base in advanced work, context decides — in most science and engineering it is log₁₀ on calculators and ln where e is involved.
Worked Example 1: log₂(32) = 5
Ask the definition's question: 2 to what power gives 32? Count: 2¹ = 2, 2² = 4, 2³ = 8, 2⁴ = 16, 2⁵ = 32. The exponent is 5, so log₂(32) = 5. Whole-number answers like this occur exactly when the argument is a clean power of the base.
Worked Example 2: log(5) + log(20) = 2
Run the product rule backwards: log(5) + log(20) = log(5 × 20) = log(100). Base 10: 10² = 100, so log(100) = 2. (Decimal check: log(5) ≈ 0.699 and log(20) ≈ 1.301, summing to 2.000 ✓.)
Worked Example 3: log₂(24) by Change of Base
24 is not a power of 2, so convert: log₂(24) = ln(24) / ln(2) = 3.178 / 0.693 ≈ 4.585. The answer sits between log₂(16) = 4 and log₂(32) = 5, closer to 5 — exactly where 24 sits between 16 and 32, nearer the top on the multiplicative scale. Any calculator route agrees: log(24) / log(2) gives the same 4.585.
Common Mistakes
- Splitting a sum inside the log. log(x + y) has no rule — it is not log(x) + log(y). The product rule needs a product inside: log(xy).
- Dividing the logs for a quotient inside. log(x / y) = log(x) − log(y), a subtraction — not log(x) / log(y). The division of logs belongs only to change of base.
- Dropping the power-rule exponent halfway. log(x³) = 3 log(x); forgetting to bring the 3 down breaks every exponential equation solved this way.
- Taking logs of non-positive numbers. log(0) and log(−5) are undefined in real numbers: no power of a positive base is zero or negative.
- Mixing up ln and log mid-calculation. Pick one base per calculation; if you switch, convert everything with change of base — mixing ln(24) with log(2) in one fraction gives a wrong "answer" that looks plausible.
Evaluate any logarithm in the logarithm calculator, read the standard treatment in OpenStax College Algebra, and browse the full formulas library for more reference pages.