Skip to content

Logarithm and Logarithmic Function

Definition

The logarithm of a positive real number xx with respect to base bb (b>0b>0 and b≠1b\neq 1) is the exponent to which bb must be raised to get x.x\text{.} In other words, the logarithm of xx to base bb is the solution yy to the equation by=x.b^y=x\text{.} This logarithm is denoted by log⁡bx.\log_b x\text{.} The function g(x)=log⁡bxg(x)=\log_b x on R+\mathbb{R}^+ is called the logarithmic function of xx to base b.b\text{.} It is the inverse of the exponential function with base b.b\text{.} The logarithm with base e\mathrm{e} is called the natural logarithm, denoted ln⁡x.\ln x\text{.} Without a base, log⁡x\log x usually means ln⁡x\ln x in analysis texts but log⁡10x\log_{10}x in some other texts, so it is safest to state the base.


Interpretation

The logarithm answers the question "which power?": log⁡bx\log_b x is the exponent yy with by=xb^y=x. Logarithmic functions therefore measure exponents and invert exponential growth, and they transform multiplicative relationships into additive ones.

The curves e to the x and ln x mirrored in the line y = x, with the points (0, 1) and (1, e) on the exponential curve matching (1, 0) and (e, 1) on the logarithm.

ln⁡\ln undoes ex\mathrm{e}^x: the points (0,1)(0,1), (1,e)(1,\mathrm{e}) on y=exy=\mathrm{e}^x mirror to (1,0)(1,0), (e,1)(\mathrm{e},1) on y=ln⁡xy=\ln x, so ln⁡1=0\ln 1=0 and ln⁡e=1\ln \mathrm{e}=1. The reflection in the dashed line y=xy=x swaps inputs and outputs, so the logarithm accepts only positive inputs but can return any real number.

Change the base bb and drag across the plot: every point (x,bx)(x,b^x) has a mirror image (bx,x)(b^x,x) on the graph of log⁡b\log_b, reflected in the line y=xy=x.

The restrictions in the definition come from the exponential function. For b>0b>0 with b≠1b\neq1, every value byb^y is positive and every positive number is reached exactly once, so log⁡bx\log_b x exists only for x>0x>0 and is then unique. The base b=1b=1 is excluded because 1y=11^y=1 for every yy: the equation 1y=x1^y=x has no solution for x≠1x\neq1 and infinitely many for x=1x=1. For b>1b>1 the logarithm is negative on (0,1)(0,1), zero at x=1x=1 and positive beyond.

The product law is the reason logarithms turn growth factors into increments: multiplying xx by bb adds exactly 11 to log⁡bx\log_b x. Different bases differ only by a constant factor, log⁡bx=ln⁡x/ln⁡b\log_b x=\ln x/\ln b, so the natural logarithm, with base Euler's number, is enough in practice.

A common slip is to apply the product law to sums: log⁡b(x+y)\log_b(x+y) is in general not log⁡bx+log⁡by\log_b x+\log_b y. For instance, log⁡2(1+1)=1\log_2(1+1)=1, whereas log⁡21+log⁡21=0\log_2 1+\log_2 1=0.


Key Results

  • Logarithms are defined only for positive inputs.
  • Logarithmic functions are strictly monotone.
  • We have the following results:
    • Product law: log⁡b(xy)=log⁡bx+log⁡by;\displaystyle \log_b(xy)=\log_b x+\log_b y\text{;}
    • Quotient law: log⁡b(x/y)=log⁡bx−log⁡by;\displaystyle \log_b(x/y)=\log_b x-\log_b y\text{;}
    • Power law: log⁡b(xα)=αlog⁡bx.\displaystyle \log_b\left(x^\alpha\right)=\alpha\log_b x\text{.}

Examples

  • ln⁡e=1.\ln\mathrm{e}=1\text{.}
  • log⁡28=3.\log_2 8=3\text{.}

Prerequisites

Sources

Aliases: logarithm, logarithmic function Keywords: natural logarithm, ln, log Symbols: alpha, real numbers

Last updated: 20 October 2026 03:02