Logarithms
- Definition
- Basic identities
- Logarithmic function
- Logarithmic function explorer
- Properties of logarithms
- Fundamental inequality for the natural logarithm
- The role of logarithms in algebraic structure
- Example 1
- Changing the base of a logarithm
- Example 2
- Logarithmic equations
- The natural logarithm
- The AM-GM inequality via logarithms
Definition
If $a$ and $b$ are positive real numbers, where $a \neq 1$, the logarithm of $b$ to the base $a$, denoted as $log_{a} ( b )$, is defined as the real number $c$ such that $a^{c} = b$.
\[log_{a} b = c \Longleftrightarrow a^{c} = b\]The following conditions must be satisfied:
\[a > 0 a \neq 1 b > 0\]In simpler terms, the logarithm of a number refers to the exponent to which a specified base must be raised to obtain that number. Therefore, the logarithm is the inverse operation of exponentiation.
- $a$ is the base of the logarithm.
- $b$ is the argument.
To clarify the concept, let’s consider a simple example: $log _{2} 8 = 3 \rightarrow 2^{3} = 8$.
The condition $a \neq 1$ is essential. In fact, when $a = 1$, the exponential expression $a^{x}$ becomes $1^{x} = 1 \forall x \in \mathbb{R}$ In this case, the exponential function is constant and therefore not invertible. Since the logarithm is defined as the inverse operation of exponentiation, it cannot be defined when the base is equal to $1$. For this reason, the base of a logarithm must satisfy $a > 0$ and $a \neq 1$.
Basic identities
Understanding logarithms requires a review of the concept of powers, as these two mathematical ideas are closely related. The following identities arise directly from the principle that logarithms are the inverse operation of exponentiation:
\(a^{0} = 1 \rightarrow log _{a} 1 = 0\) \(a^{1} = a \rightarrow log _{a} a = 1\)
Since the exponential is always positive, it is not possible to determine the logarithm of a negative number. In formal terms, $∄$ a number $c \in \mathbb{R}$ such that $a^{c} < 0$.
- Logarithms with base $e$, known as natural or Napierian logarithms, are typically denoted as $ln a$ without specifying the base, where $e \approx 2.71828$ is Euler’s number, the base of the natural exponential function $e^{x}$.
- Logarithms with the base of the number $10$, known as common logarithms, are typically denoted as $\text{Log} a$ without specifying the base.
The base-10 logarithm is especially useful when dealing with very large or very small numbers. It helps reduce the scale, making the values easier to interpret and compare. That’s why it’s commonly used in scientific and technical fields, often represented on logarithmic scales.
Logarithmic function
As previously introduced, the logarithmic function is the inverse of the exponential function. Consequently, its domain and range are inverted compared to the exponential function. A logarithmic function is typically expressed in the following form:
\[log_{a} : ( 0 , + \infty ) \rightarrow \mathbb{R} , a > 0 , a \neq 1\]The domain is $x \in \mathbb{R}^{+}$ and the range is $\mathbb{R}$. The function is continuous and differentiable on $( 0 , + \infty )$.

The graph above illustrates the monotonic behaviour and asymptotic properties of the logarithmic function. For values of $a > 1$, the function $f ( x ) = log_{a} x$ is strictly increasing on $( 0 , + \infty )$. It has a vertical asymptote at $x = 0$, and its limits are:
\[\underset{x \rightarrow 0^{+}}{lim} log_{a} x & = - \infty \\ \underset{x \rightarrow + \infty}{lim} log_{a} x & = + \infty\]For $0 < a < 1$, the function is strictly decreasing on $( 0 , + \infty )$. The line $x = 0$ is again a vertical asymptote, but the limiting behaviour is reversed:
\[\underset{x \rightarrow 0^{+}}{lim} log_{a} x & = + \infty \\ \underset{x \rightarrow + \infty}{lim} log_{a} x & = - \infty\]The logarithmic function is utilised across various disciplines, for example in computer science, where it is fundamental to the analysis of algorithmic complexity. For example, algorithms such as binary search exhibit logarithmic time complexity, indicating that their performance remains efficient as input sizes increase. This characteristic demonstrates how logarithmic growth enables concise and effective representations of exponential processes.
Logarithmic function explorer
This interactive graph illustrates how the shape of a logarithmic function depends on the value of its base. By selecting bases greater than 1 or between 0 and 1, one can observe how the function changes from increasing to decreasing, along with its behavior near zero and at infinity, providing a clear visual interpretation of its fundamental properties and underlying structure.
Base
1/4 1/2 e 2 4
y = ln(x)
With base b = e, where b > 1, we obtain the natural logarithm. The function is strictly increasing, passes through (1, 0) and (e, 1), has domain (0, +∞), range ℝ, and vertical asymptote x = 0.
Properties of logarithms
Logarithms have properties that facilitate the manipulation of mathematical expressions and equations. These properties are fundamentally linked to those of exponential functions as each logarithmic identity directly results from a corresponding law of exponents.
Because the logarithm is defined as the inverse of the exponential function, the following identities are valid:
\[a^{log_{a} x} = x \forall x \in ( 0 , + \infty )\] \[log_{a} ( a^{x} ) = x \forall x \in \mathbb{R}\]The product rule states that the logarithm of a product of two numbers is equal to the sum of their logarithms in the same base: \(log_{a} ( x y ) = log_{a} x + log_{a} y\)
The quotient rule states that the logarithm of a quotient of two numbers is equal to the difference of the numerator and the denominator: \(log_{a} \frac{x}{y} = log_{a} x - log_{a} y\) From the previous expression, if the numerator $x$ is equal to $1$, we obtain: \(log_{a} \frac{1}{y} = - log_{a} y\) This means that the logarithm of the reciprocal of a number $\frac{1}{y}$ is the opposite of its logarithm, and this is called the co-logarithm, indicated as: \(\text{colog}_{a} y = - l o g_{a} y = log_{a} \frac{1}{y}\)
The property of the logarithm of a power states that the logarithm of a power of a number is equal to the product of the exponent and the logarithm of the base number: \(log _{a} x^{n} = n \cdot log _{a} x\) This property directly follows from the properties of exponentials, as an expression like $x^{n}$ can be understood as the result of multiplying $x$ by itself $n$ times.
From the previous property and the property of radicals, it follows that the logarithm of a radical is equal to the quotient between the logarithm of the radicand and the index of the root: \(log_{a} \sqrt[n]{b} = \frac{1}{n} log_{a} b\)
Fundamental inequality for the natural logarithm
A key inequality involving the natural logarithm $ln$is given by:
\[ln x \leq x - 1 \forall x > 0\]This equality holds if and only if $x = 1$. This result follows directly from the concavity of the function $ln x$ on the interval $( 0 , + \infty )$. Since the second derivative satisfies:
\[( ln x )^{′ ′} = - \frac{1}{x^{2}} < 0 \forall x > 0\]The graph of the logarithm always lies below each of its tangent lines. In particular, consider the tangent at $x = 1$, where:
\[ln 1 = 0 \text{and} ( ln x )^{'} |_{x = 1} = 1\]The equation of the tangent line is:
\[y = x - 1\]Therefore, the inequality expresses the geometric fact that the curve $y = ln x$ does not rise above its tangent at $x = 1$.
The role of logarithms in algebraic structure
The logarithm acts as a structural bridge between two distinct algebraic systems. Within the set of positive real numbers $( 0 , + \infty )$, multiplication is the primary operation, while addition serves this role in $\mathbb{R}$. The logarithm connects these systems by transforming multiplicative relationships into additive relationships. For example, consider the following product:
\[x^{3} y^{2}\]Taking logarithms gives:
\[log_{a} ( x^{3} y^{2} ) = 3 log_{a} x + 2 log_{a} y\]This process converts the multiplicative structure, characterised by products and powers, into an additive structure, characterised by sums and scalar multiples. In this context, the logarithm functions as a homomorphism from the multiplicative group $( 0 , + \infty )$ to the additive group $\mathbb{R}$, preserving the underlying structure while altering the operation. The standard logarithmic rules provide exact algebraic formulations of this transformation.
A homomorphism is a function between two algebraic structures that preserves the operation, meaning $\varphi ( x \star y ) = \varphi ( x ) \circ \varphi ( y )$. Here $\star$ and $\circ$ denote the operations of the two algebraic structures, such as addition or multiplication.
Example 1
Let’s simplify the following logarithmic expression using the properties of logarithms:
\[log_{a} ( \frac{x^{3} \cdot y}{z^{2}} )\]First, we apply the quotient rule, which states that the logarithm of a quotient is the difference between the logarithms of the numerator and the denominator:
\[log_{a} ( \frac{x^{3} \cdot y}{z^{2}} ) = log_{a} ( x^{3} \cdot y ) - log_{a} ( z^{2} )\]Next, we apply the product rule, which tells us that the logarithm of a product is the sum of the logarithms of the factors:
\[log_{a} ( x^{3} \cdot y ) = log_{a} ( x^{3} ) + log_{a} ( y )\]Thus, the expression becomes:
\[log_{a} ( \frac{x^{3} \cdot y}{z^{2}} ) = log_{a} ( x^{3} ) + log_{a} ( y ) - log_{a} ( z^{2} )\]Now, we apply the power rule, which states that the logarithm of a power is the exponent times the logarithm of the base:
\[log_{a} ( x^{3} ) = 3 log_{a} ( x ) \text{and} log_{a} ( z^{2} ) = 2 log_{a} ( z )\]Finally, we substitute and simplify, obtaining the expression:
\[log_{a} ( \frac{x^{3} \cdot y}{z^{2}} ) = 3 log_{a} ( x ) + log_{a} ( y ) - 2 log_{a} ( z )\]Changing the base of a logarithm
Any logarithm with base $a$ can be represented as the ratio of logarithms with a common base. Specifically, a logarithm with base $a$ and argument $b$ can be written as the ratio of two logarithms with base $p$, where the numerator has argument $b$ and the denominator has argument $a$:
\[log _{a} b = \frac{log _{p} b}{log _{p} a}\]This property is advantageous because it significantly simplifies calculations in various contexts.
Example 2
Let’s use a simple example to demonstrate the formula for changing the base of the logarithms. According to the definition of logarithm, the logarithm in base $a$ of a number $x$, denoted as $log_{a} ( x )$, represents the exponent to which we must raise the base $a$ to get the number $x$. We can write the change of base property as: \(log_{a} ( x ) = \frac{log_{b} ( x )}{log_{b} ( a )}\)
Let’s consider the substitution $y = log_{a} ( x )$, which means, according to the definition of logarithm, $a^{y} = x$. We have: \(log_{b} ( a^{y} ) = log_{b} ( x )\)
For the property of the power of a logarithm, we obtain: \(y \cdot log_{b} ( a ) = log_{b} ( x )\)
Now, dividing both sides by $log_{b} ( a )$ we obtain: \(y = \frac{log_{b} ( x )}{log_{b} ( a )}\)
While $y = log_{a} ( x )$, we have proved that:
\[log_{a} ( x ) = \frac{log_{b} ( x )}{log_{b} ( a )}\]Logarithmic equations
Logarithmic equations are mathematical expressions in which the variable appears within a logarithmic function. Solving such equations requires a thorough understanding of logarithmic properties, which are essential for isolating and determining the variable’s value. A typical logarithmic equation is structured as follows:
\[log_{a} f ( x ) = g ( x )\]- $a$ is the base of the logarithm and it must meet the condition $a > 0 , a \neq 1.$
- The function $f ( x )$ serves as the argument of the logarithm and must be greater than zero. This requirement arises because the logarithm function is defined only for positive numbers.
The natural logarithm
From an analytical standpoint, the natural logarithm is defined independently of exponentiation using a definite integral. For every real number $x > 0$, the natural logarithm is given by:
\[ln x = \int_{1}^{x} \frac{1}{t} d t\]This definition ensures that $ln x$ is well-defined for all positive real numbers because the function $\frac{1}{t}$ is continuous on $( 0 , + \infty )$. By the Fundamental Theorem of Calculus, the natural logarithm is differentiable and satisfies:
\[( ln x )^{'} = \frac{1}{x} x > 0\]Furthermore, the natural logarithm is strictly increasing because its derivative is positive on $( 0 , + \infty )$. It is also concave, as:
\[( ln x )^{′ ′} = - \frac{1}{x^{2}} < 0\]The exponential function $e^{x}$ is defined as the inverse of $ln x$. Once the natural logarithm is established, logarithms with any base $a > 0$, $a \neq 1$, are defined by:
\[log_{a} x = \frac{ln x}{ln a}\]This construction offers a rigorous analytical foundation for logarithms and accounts for their continuity, differentiability, and structural properties.
The AM-GM inequality via logarithms
The arithmetic mean and the geometric mean of a finite set of positive real numbers satisfy a fundamental inequality: the arithmetic mean is always greater than or equal to the geometric mean. For positive real numbers $x_{1} , x_{2} , \ldots , x_{n}$, this is stated as:
\[\frac{x_{1} + x_{2} + \hdots + x_{n}}{n} \geq (( x_{1} x_{2} \hdots x_{n} ))^{\frac{1}{n}}\]with equality if and only if $x_{1} = x_{2} = \hdots = x_{n}$. The logarithm provides one of the most elegant proofs of this result, relying on a single concavity argument.
The key observation is that $ln$ is a strictly concave function on $( 0 , + \infty )$, since its second derivative satisfies $( ln x )^{‘’} = - 1 / x^{2} < 0$ for all $x > 0$. Since $ln$ is concave, the following holds for any positive real numbers $x_{1} , \ldots , x_{n}$:
\[\frac{1}{n} \sum_{i = 1}^{n} ln x_{i} \leq ln ( \frac{1}{n} \sum_{i = 1}^{n} x_{i} )\]The left-hand side is the arithmetic mean of $ln x_{1} , \ldots , ln x_{n}$, which by the logarithmic form of the geometric mean equals $ln M_{g}$. The right-hand side is $ln M_{a}$, where $M_{a}$ denotes the arithmetic mean. The inequality therefore becomes:
\[ln M_{g} \leq ln M_{a}\]Since $ln$ is strictly increasing, this is equivalent to $M_{g} \leq M_{a}$, which is the AM-GM inequality. Equality holds if and only if all arguments are equal, that is, $x_{1} = x_{2} = \hdots = x_{n}$.
This proof makes explicit the structural role of the logarithm: by mapping the multiplicative structure of $M_{g}$ into the additive structure of $M_{a}$, it reduces the inequality between two different types of mean to a single analytic property of $ln$.
integral definitionhomomorphismlogarithmic equationsmonotonicitygraph and asymptoteslogarithmic functionidentitieschange of baselog of reciprocalpower rulequotient ruleproduct rulecommon logarithmnatural logarithmdomain and conditionsinverse of exponentiationbase and argumentdefinitionstructuresoperationsfoundations