Logarithm Calculator
Evaluate natural logarithms (ln), base-10 (log), binary (log₂), or custom base logarithms, apply logarithmic rules and change-of-base identities, and visualize asymptote behavior on an interactive logarithmic curve plot.
Enter Base (b) and Argument (x)
Step-by-Step Mathematical Derivation
How to Calculate Logarithms
A logarithm computes the exponent required to produce a given number from a specific base: log_b(x) = y if and only if bʸ = x. To calculate log_b(x) for any custom base, apply the Change of Base formula: log_b(x) = ln(x) / ln(b) = log₁₀(x) / log₁₀(b).
Fundamental Definition of Logarithms & Base Conditions
In mathematics, a logarithm represents the power (or exponent) to which a specified fixed base must be raised to equal a given number. Logarithms are the exact mathematical inverse of exponentiation functions.
The Three Universal Logarithm Bases
Base e ≈ 2.71828
Fundamental in calculus, population dynamics, radioactive half-life decay, and continuous compounding finance models.
Base 10
Standard base in scientific measurement, engineering decibel scales (dB), Richter earthquake magnitudes, and pH chemistry.
Base 2
Central to computer science, binary search tree algorithms, data compression entropy (bits), and Big-O computational complexity.
The Four Fundamental Logarithm Laws
Product Rule
log(MN) = log M + log NThe logarithm of a product is the sum of the individual logarithms: log_b(M · N) = log_b(M) + log_b(N).
Quotient Rule
log(M/N) = log M − log NThe logarithm of a division ratio is the difference of the logarithms: log_b(M / N) = log_b(M) − log_b(N).
Power Rule
log(Mᵏ) = k · log MExponents on the argument can be brought out front as multiplying coefficients: log_b(M^k) = k · log_b(M).
Inverse & Identity Properties
log_b(b) = 1, log_b(1) = 0log_b(b^x) = x, b^(log_b x) = x, log_b(b) = 1, log_b(1) = 0.
Change of Base Formula & Proof
Most calculators only have built-in keys for $\ln$ (base $e$) and $\log_10$ (base $10$). The Change of Base Formula converts any base-$b$ logarithm into a ratio of standard logarithms:
Proof: Let y = log_b(x) ==> bʸ = x. Take natural log on both sides: ln(bʸ) = ln(x) ==> y·ln(b) = ln(x) ==> y = ln(x) / ln(b).
Real-World Applications of Logarithms
Seismology (Richter Magnitude)
Earthquake magnitude M = log₁₀(I / S) scales exponentially. A magnitude 7.0 quake is 10 times more intense in wave amplitude than a 6.0 quake.
Acoustics & Signal Decibels (dB)
Sound pressure levels in decibels L_p = 20·log₁₀(p / p₀) match the non-linear logarithmic perception of human hearing.
Computer Science (Big-O Complexity)
Algorithms like binary search and divide-and-conquer sorting (Merge Sort) run in logarithmic O(log n) time, halving search spaces at each step.
Step-by-Step Worked Numerical Solutions
Problem: Evaluate log₃(81) and log₃(50).
Common Pitfalls & Misunderstandings
Confusing log(M + N) with log(M) + log(N)
log_b(M + N) cannot be expanded! The product rule states log_b(M · N) = log_b(M) + log_b(N), not for addition.
Evaluating log of Negative Numbers
In real-number arithmetic, log_b(x) requires x > 0. When solving equations, always check for extraneous negative roots.
Confusing log(M) / log(N) with log(M / N)
log_b(M) / log_b(N) is the change-of-base ratio log_N(M), whereas log_b(M / N) = log_b(M) − log_b(N).
Lead Developer & Founder of Basic Math Tools. Specializes in browser-native computational algorithms and applied mathematics.
Mathematics & curriculum specialists. Audited against standard algebraic and arithmetic principles.