From the free course College Algebra on Lykke

Logarithms

Key concepts: Logarithmic properties · Change of base formula · Evaluating logarithms · Exponential word problems

Mastering logarithms as the inverse of exponentiation.

Logarithms: The Calculus of Proportions and Inverses

Logarithms are the inverse operation of exponentiation. While an exponent asks, "What do I get when I raise this base to this power?", a logarithm asks, "To what power must I raise this base to reach this specific value?" This shift in perspective—from the result of growth to the duration or intensity of growth—is what makes logarithms the fundamental language of the natural sciences, finance, and information theory.

The Anatomy of a Logarithm

At its core, a logarithm is a functional relationship. If we have an exponential equation $b^y = x$, the logarithmic equivalent is written as:

$$\log_b(x) = y$$

Where:

  • $b$ is the base (the number being multiplied).
  • $x$ is the argument (the value we wish to reach).
  • $y$ is the exponent (the power to which the base is raised).

The Fundamental Identity: For any valid base $b$, $b^{\log_b(x)} = x$ and $\log_b(b^x) = x$. This confirms that logarithms and exponentials "undo" each other.

Constraints and Domains

Logarithms are not defined for all real numbers. Because a positive base $b$ raised to any real power $y$ will always yield a positive result $x$, the following constraints apply:

  1. The base $b$ must be positive ($b > 0$).
  2. The base $b$ cannot be 1 ($b \neq 1$), as $1^y$ is always 1.
  3. The argument $x$ must be positive ($x > 0$). Logarithms of negative numbers or zero are undefined in the real number system.
Component Notation Domain/Constraint Role in Growth
Base $b$ $b \in (0, 1) \cup (1, \infty)$ The constant factor of multiplication.
Argument $x$ $x \in (0, \infty)$ The target value or "total growth."
Logarithm $y$ $y \in (-\infty, \infty)$ The "time" or "scaling factor" required.

Fundamental Properties and Derivations

The power of logarithms lies in their ability to transform complex operations into simpler ones. Specifically, they turn multiplication into addition, division into subtraction, and exponentiation into multiplication. These properties are not arbitrary; they are direct consequences of the laws of exponents.

The Product Rule

The logarithm of a product is the sum of the logarithms of its factors: $$\log_b(MN) = \log_b(M) + \log_b(N)$$

Derivation: Let $x = \log_b(M)$ and $y = \log_b(N)$. By definition, $b^x = M$ and $b^y = N$. Multiplying the two: $M \cdot N = b^x \cdot b^y = b^{x+y}$. Converting back to logarithmic form: $\log_b(MN) = x + y$. Substituting back: $\log_b(MN) = \log_b(M) + \log_b(N)$.

The Quotient Rule

The logarithm of a quotient is the difference of the logarithms: $$\log_b\left(\frac{M}{N}\right) = \log_b(M) - \log_b(N)$$

The Power Rule

The logarithm of a number raised to an exponent is the exponent multiplied by the logarithm of the number: $$\log_b(M^p) = p \cdot \log_b(M)$$

Summary of Operational Transformations

Exponential Operation Logarithmic Equivalent Transformation Type
$b^x \cdot b^y$ $\log(M) + \log(N)$ Linearization (Add)
$b^x / b^y$ $\log(M) - \log(N)$ Linearization (Subtract)
$(b^x)^y$ $y \cdot \log(M)$ Reduction (Multiply)
$\sqrt[y]{b^x}$ $\frac{1}{y} \cdot \log(M)$ Reduction (Divide)

The Change of Base Formula

Historically, mathematicians and engineers relied on printed tables for $\log_{10}$ (Common Log) and $\ln$ (Natural Log, base $e$). If a problem required $\log_2$ or $\log_7$, they needed a way to convert between bases. This is achieved via the Change of Base Formula:

$$\log_b(a) = \frac{\log_c(a)}{\log_c(b)}$$

Where $c$ is any new base you choose (typically $10$ or $e$).

Why it matters in Computing

Most programming languages provide standard functions for the natural logarithm (log() or ln()) and sometimes base 10 (log10()). To calculate a custom base, the Change of Base formula is the standard implementation path.

Evaluating Logarithms and Solving Equations

Solving logarithmic equations generally follows two strategies: Isolating the Logarithm or Exponentiating both sides.

Strategy 1: Converting to Exponential Form

When faced with $\log_2(x-3) = 4$, we rewrite the equation: $2^4 = x - 3$ $16 = x - 3$ $x = 19$

Strategy 2: Using One-to-One Property

If $\log_b(M) = \log_b(N)$, then $M = N$. Example: $\log(2x + 1) = \log(x + 5)$ $2x + 1 = x + 5$ $x = 4$

Strategy 3: Solving for Exponents (The "Log Both Sides" Method)

This is the primary method for solving equations like $5^x = 12$.

  1. Take the log of both sides: $\log(5^x) = \log(12)$
  2. Apply the Power Rule: $x \cdot \log(5) = \log(12)$
  3. Isolate $x$: $x = \frac{\log(12)}{\log(5)} \approx 1.544$

Exponential Word Problems and Real-World Applications

Logarithms are essential for modeling phenomena where the rate of change depends on the current value. These are often categorized into Growth, Decay, and Intensity Scales.

1. Compound Interest and Population Growth

The formula for continuous growth is $A = Pe^{rt}$. To find the time $t$ it takes for an investment to double: $2P = Pe^{rt}$ $2 = e^{rt}$ $\ln(2) = rt$ $t = \frac{\ln(2)}{r}$

2. The Richter Scale (Earthquakes)

The magnitude $M$ of an earthquake is a logarithmic scale: $M = \log_{10}\left(\frac{I}{S}\right)$ Where $I$ is the intensity and $S$ is a standard threshold. Because it is base 10, a magnitude 7 earthquake is not "one unit" stronger than a magnitude 6; it is 10 times more intense in terms of amplitude and roughly 31.6 times more energetic.

3. pH in Chemistry

The acidity of a solution is defined by the negative logarithm of the hydrogen ion concentration: $\text{pH} = -\log_{10}[H^+]$

4. Decibels (Sound)

Sound intensity is measured relative to the threshold of human hearing: $L_{dB} = 10 \cdot \log_{10}\left(\frac{I}{I_0}\right)$

Application Base Dependent Variable Context
Finance $e$ Time ($t$) Continuous compounding interest.
Seismology $10$ Magnitude ($M$) Earthquake energy release.
Chemistry $10$ pH Acidity/Alkalinity of liquids.
Acoustics $10$ Decibels ($dB$) Relative loudness of sound.
Computer Science $2$ Bits/Complexity Binary search, entropy, tree depth.

Advanced Implementation: Logarithmic Derivations in Pseudocode

In computational contexts, logarithms are often used to prevent "Arithmetic Underflow." When multiplying many small probabilities (as in Naive Bayes or Hidden Markov Models), the result can become so small that a computer rounds it to zero. By taking the log, we turn these multiplications into additions, preserving precision.

\text{Problem: Calculate } P = \prod_{i=1}^{n} p_i \text{ where } p_i \text{ is very small.}
\text{Solution: } \log(P) = \sum_{i=1}^{n} \log(p_i)
\text{Final Result: } P = \exp(\log(P))

Common Pitfalls and Edge Cases

  1. The Negative Argument Trap: Students often try to solve $\log(x) + \log(x-3) = \log(4)$ and find two solutions, say $x=4$ and $x=-1$. However, $x=-1$ must be discarded because the domain of a logarithm is $(0, \infty)$. Always check for extraneous solutions.
  2. Confusing $\log(x+y)$ with $\log(x) + \log(y)$: There is no property for the logarithm of a sum. $\log(x+y)$ cannot be simplified.
  3. Base Confusion: In many scientific contexts, log refers to $\ln$ (base $e$), while in engineering, log often refers to $\log_{10}$. In computer science, it frequently implies $\log_2$. Always verify the context's default base.
  4. The Power Rule Misapplication: In the expression $(\log_b x)^p$, the power $p$ applies to the entire logarithm, not the argument. Therefore, $p$ cannot be moved to the front. Only in $\log_b(x^p)$ is the power rule applicable.

Study College Algebra on Lykke

This course page is free to open: signed out, you can read its first two sections, and signing in, on any plan, opens the rest. The free Lykke Chrome extension syncs your own Canvas courses, so ChatGPT, Claude and Muse can answer from your classes and deadlines. It only reads Canvas.

Add the free extensionSign in to open every section

All sections of College Algebra · Browse more course pages

Logarithms — College Algebra | Lykke