Logarithm and Natural Log (ln) Rules

A logarithm answers the question “to what power must the base be raised to get this number?” This sheet collects the log and ln rules, special values, calculus formulas and a computed table of common values.

Definition and inverse function

log_b(x) = y means bʸ = x, for base b > 0, b ≠ 1 and x > 0. The natural logarithm ln x uses base e ≈ 2.718281828; the common logarithm log x (or log₁₀ x) uses base 10; log₂ x is the binary logarithm.

The logarithm is the inverse of the exponential function: ln(eˣ) = x for every real x, and e^(ln x) = x for every x > 0. In general b^(log_b x) = x and log_b(bˣ) = x.

Sources: NIST Digital Library of Mathematical Functions: DLMF §4.2 Logarithm, Exponential, Powers: Definitions; OpenStax: College Algebra 2e §6.3 Logarithmic Functions

Logarithm rules

All rules hold for any valid base b and positive arguments x and y.

Log rules (the same rules apply to ln with b = e)
RuleFormulaExample
Productlog_b(xy) = log_b x + log_b ylog 200 = log 2 + log 100
Quotientlog_b(x ÷ y) = log_b x − log_b yln(e³/e) = 3 − 1 = 2
Powerlog_b(xᵖ) = p·log_b xlog₂ 8⁵ = 5 × 3 = 15
Rootlog_b(ⁿ√x) = (log_b x) ÷ nlog √1000 = 3 ÷ 2
Change of baselog_b x = ln x ÷ ln b = log x ÷ log blog₂ 10 = ln 10 ÷ ln 2 ≈ 3.321928
Reciprocal baselog_b x = 1 ÷ log_x blog₈ 2 = 1 ÷ log₂ 8 = 1/3
Log of 1log_b 1 = 0ln 1 = 0
Log of the baselog_b b = 1ln e = 1
Inverseb^(log_b x) = xe^(ln 5) = 5

Sources: OpenStax: College Algebra 2e §6.5 Logarithmic Properties

Special values: ln of 0, 1, e, infinity and negative numbers

Special values of the natural and common logarithm
Argumentln xlog₁₀ xWhy
x = 0Undefined (→ −∞)Undefined (→ −∞)No power of a positive base equals 0; ln x → −∞ as x → 0⁺
x = 100b⁰ = 1 for every base
x = e10.434294ln e = 1 by definition of e
x = 102.3025851log₁₀ 10 = 1
x → ∞→ ∞→ ∞Logarithms grow without bound, but more slowly than any positive power of x
x < 0Undefined over the realsUndefined over the realsbʸ > 0 for every real y. In complex numbers the principal value is ln(−x) = ln x + iπ

Sources: NIST Digital Library of Mathematical Functions: DLMF §4.2 Logarithm, Exponential, Powers: Definitions

Derivative, integral and graph

  • d/dx ln x = 1 ÷ x (x > 0), and d/dx ln|x| = 1 ÷ x (x ≠ 0)
  • d/dx log_b x = 1 ÷ (x ln b)
  • Chain rule: d/dx ln(u) = u′ ÷ u
  • ∫ (1/x) dx = ln|x| + C
  • ∫ ln x dx = x ln x − x + C
  • Graph of y = ln x: defined only for x > 0, passes through (1, 0) and (e, 1), increases everywhere, is concave down, and has the y-axis as a vertical asymptote. y = log_b x has the same shape for any base b > 1 and passes through (1, 0) and (b, 1). It is the mirror image of y = bˣ in the line y = x.

Sources: OpenStax: Calculus Volume 1 §3.9 Derivatives of Exponential and Logarithmic Functions; NIST Digital Library of Mathematical Functions: DLMF §4.10 Logarithm, Exponential, Powers: Integrals; NIST Digital Library of Mathematical Functions: DLMF §4.3 Logarithm, Exponential, Powers: Graphics

Logarithm table

Natural, common and binary logarithms of selected numbers, computed to six decimal places.

ln x, log₁₀ x and log₂ x
xln xlog₁₀ xlog₂ x
0.1−2.302585−1.000000−3.321928
0.5−0.693147−0.301030−1.000000
10.0000000.0000000.000000
20.6931470.3010301.000000
31.0986120.4771211.584963
41.3862940.6020602.000000
51.6094380.6989702.321928
61.7917590.7781512.584963
71.9459100.8450982.807355
82.0794420.9030903.000000
92.1972250.9542433.169925
102.3025851.0000003.321928
202.9957321.3010304.321928
503.9120231.6989705.643856
1004.6051702.0000006.643856
10006.9077553.0000009.965784

References

Frequently asked questions

What is ln of 0?

ln 0 is undefined, because no power of e equals 0. As x approaches 0 from the positive side, ln x decreases without bound toward −∞.

What is the difference between log and ln?

ln is the logarithm with base e (about 2.71828). log usually means base 10 on calculators and in science and engineering, though some mathematics texts use log for the natural log.

Can you take the log of a negative number?

Not as a real number, because a positive base raised to any real power is positive. In the complex numbers, ln(−x) = ln x + iπ for x > 0 (principal value).