Log Calculator
Compute common logarithms (log₁₀), natural logarithms (ln), and arbitrary custom-base logarithms (log_b(x)) with complete algebraic decomposition, change-of-base derivation, characteristic, and mantissa analysis.
Mathematical Foundations of Logarithms
A rigorous exploration of logarithmic operators, algebraic theorems, continuous exponents, and domain constraints.
Formal Inverse Definition
The logarithm is the inverse mathematical function of exponentiation. For any real positive base b > 0, b ≠ 1 and positive argument x > 0:
Because b^y > 0 for all real numbers y, logarithms of zero or negative numbers are undefined over the real field ℝ.
Universal Logarithm Laws
These identities transform exponential multiplication and division into linear addition and subtraction, which formed the foundational basis of historical navigational slide rules.
Change of Base Theorem
When evaluating an arbitrary base b on computational hardware lacking specialized base circuits, the ratio theorem evaluates the value using any auxiliary positive base k:
This exact relationship allows seamless conversion across binary (base 2), natural (base e), decimal (base 10), and hexadecimal architectures.
Characteristic & Mantissa Decomposition (Briggsian Logarithms)
Every common logarithm log₁₀(x) can be uniquely partitioned into an integer component c ∈ ℤ (the characteristic) and an interval-bound decimal fraction m ∈ [0, 1) (the mantissa):
c = ⌊log₁₀(x)⌋ represents the exponential order of magnitude (10^c), and m = log₁₀(x) - c indicates the exact significant figures.For example, log₁₀(5432) ≈ 3.73496 has a characteristic of 3 (because 5,432 is between 10³ = 1,000 and 10⁴ = 10,000) and a mantissa of 0.73496. Multiplying or dividing by powers of 10 adjusts only the characteristic, preserving the mantissa unchanged.
Scientific & Engineering Logarithmic Scale Matrix
Comparative benchmark of natural, physical, and computational phenomena quantified on logarithmic scales due to immense dynamic ranges.
| Scale / Phenomenon | Logarithmic Formula | Effective Base | Unit Increase Impact | Real-World Reference Baseline |
|---|---|---|---|---|
Richter / Moment Magnitude (Mw) | log₁₀(E) = 4.8 + 1.5·M | 10^1.5 ≈ 31.62 | ~31.6× seismic energy & ~10× ground amplitude | M5.0 (Moderate) vs M7.0 (Major destructive) = 1,000× energy |
Acidity & Alkalinity (pH) | pH = -log₁₀[H⁺] | 10 (Decadic) | 10× decrease in hydronium ion concentration | pH 7 (Pure water) vs pH 2 (Lemon juice) = 100,000× more acidic |
Sound Pressure Level (dB SPL) | L_p = 20·log₁₀(p / p₀) | 10 (Root Power) | +6 dB doubles sound pressure; +10 dB doubles perceived loudness | p₀ = 20 µPa threshold of hearing; 120 dB = threshold of acoustic pain |
RF Electrical Power Gain (dBm) | P_dBm = 10·log₁₀(P / 1mW) | 10 (Power Ratio) | +3 dB doubles wattage; +10 dB multiplies power by 10× | 0 dBm = 1 mW; 20 dBm = 100 mW (standard Wi-Fi transmit cap) |
Stellar Magnitude (Pogson) | m₁ - m₂ = -2.5·log₁₀(F₁/F₂) | 100^0.2 ≈ 2.512 | Decreasing 1 magnitude increases star brightness ~2.512× | 5 magnitude delta = exact 100× ratio in observed flux (F) |
Binary Search & Tree Depth | h = ⌈log₂(N + 1)⌉ | 2 (Binary) | +1 tree level doubles searchable data space | log₂(1,000,000) ≈ 19.93 (max 20 comparisons to query 1M items) |
Frequently Asked Questions
Authoritative mathematical answers regarding domain rules, logarithmic constants, and conversion techniques.
What is the difference between natural log (ln) and common log (log10)?
Common logarithm (log10 or simply log) uses base 10 and is standard in engineering, acoustics (decibels), chemistry (pH), and seismology (Richter scale). Natural logarithm (ln) uses Euler's constant (e ≈ 2.718281828) as its base and is essential in continuous compound growth, differential calculus, radioactivity decay models, and thermodynamic entropy.
Why cannot the base of a logarithm be 1 or negative?
A logarithm answers 'to what power must the base b be raised to equal x?'. If base b = 1, then 1 raised to any real power is always 1, making equations like log1(5) impossible and log1(1) indeterminate. Negative bases are excluded in real arithmetic because fractional powers of negative numbers produce imaginary or complex numbers (such as (-4)^(1/2) = 2i), preventing a smooth, continuous real-valued function.
What is the Change of Base formula and why is it essential?
The Change of Base theorem states that log_b(x) = ln(x) / ln(b) = log10(x) / log10(b) for any valid positive base b and argument x. It is essential because computing hardware and standard programming libraries only provide natural log (ln) or base-10 log (log10) primitives. By taking the quotient of two logarithms in a known base, any custom base logarithm can be evaluated to full floating-point precision.
Can a logarithm result be negative?
Yes. While the input argument x must strictly be positive (x > 0) in the real number system, the output logarithm can take any real value from negative infinity to positive infinity. When the base b > 1 and 0 < x < 1, the logarithm is negative (for example, log10(0.01) = -2, and ln(0.5) ≈ -0.69315). The logarithm of 1 is always 0 regardless of the base.
What are the characteristic and mantissa of a common logarithm?
In base-10 logarithms, any real log value can be decomposed into an integer part (the characteristic) and a positive decimal fractional part (the mantissa). For example, log10(250) ≈ 2.39794 decomposes into characteristic 2 (representing the order of magnitude 10^2 = 100) and mantissa 0.39794 (representing the significant digits, log10(2.5)). This decomposition was historically the foundation of logarithmic lookup tables and slide rules.
Related Mathematical & Scientific Calculators
Explore our connected suite of high-precision mathematical, statistical, and algebraic tools.
Scientific Notation Calculator
Convert numbers to standard, normalized scientific, and engineering notation.
Binary Calculator
Perform base-2 arithmetic, bitwise shifts, and two's complement operations.
Standard Deviation Calculator
Compute population and sample dispersion with Bessel's correction.
Probability Calculator
Calculate joint, conditional, and binomial probability distributions.