IB MATHEMATICS: ANALYSIS AND APPROACHES • FUNCTIONS

Logarithmic Functions — SL 2.5 Logarithmic functions and models

Understand how logarithms reverse exponentiation and model real-world phenomena from earthquakes to sound.

Historical Context & Motivation

Before calculators and computers existed, mathematicians and scientists needed a practical way to handle extremely large and extremely small numbers. Multiplying two ten-digit numbers by hand is tedious and error-prone. In the late sixteenth century, astronomers spent enormous amounts of time performing these calculations to track the motion of planets and stars. The logarithm was invented precisely to solve this problem — it transforms multiplication into addition, making calculations dramatically faster and more reliable.

1614
Napier Publishes Logarithms
Scottish mathematician John Napier published Mirifici Logarithmorum Canonis Descriptio, introducing logarithms to simplify astronomical calculations. His tables reduced multiplication to addition.
1624
Briggs Creates Common Logarithms
Henry Briggs refined Napier's work and published tables of base-10 logarithms, which became the standard for scientific computation for over three centuries.
1668
Natural Logarithms Emerge
Mathematicians including Nicolaus Mercator explored logarithms with base e ≈ 2.718, connecting them to areas under the hyperbola y = 1/x and laying groundwork for calculus.
1935
Richter Scale Introduced
Charles Richter developed the Richter magnitude scale for earthquakes using base-10 logarithms, demonstrating how logarithmic models handle quantities spanning many orders of magnitude.
Modern
Logarithms in Data Science
Today logarithmic functions appear in pH chemistry, decibel scales, information theory, machine learning algorithms, and financial modeling — anywhere exponential growth or vast ranges of data occur.

The central question that logarithms answer is deceptively simple: if we know a base and a result, what exponent was used? For example, 2 raised to what power gives 32? The logarithm provides the machinery to answer this question systematically, and as we will see, the resulting function has a beautifully distinctive shape with powerful modeling applications.

Core Principles & Definitions

A logarithm is fundamentally the inverse of an exponential function. If you are comfortable with the idea that 2³ = 8, then you already understand the seed of logarithmic thinking: log₂(8) = 3. The logarithm asks, "what exponent do I need?" Let's formalize the core ideas that make logarithmic functions work.

1

Definition of a Logarithm

If bx = a, then logb(a) = x. The base b must be positive and not equal to 1, and a must be positive.
2

Common & Natural Logs

log(x) with no base written means log₁₀(x) (the common logarithm). ln(x) means loge(x) (the natural logarithm), where e ≈ 2.718.
3

Domain & Range

The domain of y = logb(x) is x > 0 (only positive inputs). The range is all real numbers. The graph passes through (1, 0) and has a vertical asymptote at x = 0.
4

Inverse Relationship

The functions y = bx and y = logb(x) are reflections of each other across the line y = x. They "undo" each other: logb(bx) = x.
KEY TAKEAWAY
Think of logarithms like a detective's tool. If exponentiation is the process of building a skyscraper — starting from a base and stacking floors — the logarithm is the act of looking at the finished building and counting how many floors it has. You know the base (floor height) and the total height (result), and the logarithm tells you the number of floors (the exponent).

Visual Explanation — The Logarithmic Curve

The graph of a logarithmic function has a distinctive shape that reflects its nature as the inverse of an exponential. It rises steeply for small positive values of x, then gradually flattens out as x increases. This "diminishing returns" behavior is central to why logarithmic models are used in science. The following diagram shows y = log₂(x) alongside its inverse y = 2x and the mirror line y = x.

The cyan curve shows y = log₂(x), which passes through (1, 0), (2, 1), and (4, 2). The violet curve shows y = 2ˣ. Notice they are mirror images across the dashed line y = x. The red dashed line at x = 0 is the vertical asymptote — the log function approaches but never touches or crosses the y-axis.

Notice the key features visible in the diagram. First, the log curve passes through (1, 0) regardless of the base, because any number raised to the power 0 equals 1. Second, the curve increases without bound as x grows, but it does so at a decreasing rate — each time x doubles, y only increases by 1. Third, as x approaches 0 from the right, the curve plunges downward toward negative infinity, creating the vertical asymptote at x = 0. These features are what make logarithmic functions so useful for compressing wide-ranging data into manageable scales.

Mathematical Framework — Laws of Logarithms

Just as exponents follow predictable rules (like aᵐ × aⁿ = aᵐ⁺ⁿ), logarithms have their own set of laws. These laws are direct consequences of exponent rules, and they are essential for simplifying expressions, solving equations, and transforming between logarithmic and exponential forms. The IB syllabus expects you to know and apply all of the following.

PRODUCT LAW
logb(M × N) = logb(M) + logb(N)
The logarithm of a product equals the sum of the logarithms. This is the property that originally made logarithms so powerful — it turns multiplication into addition.
QUOTIENT LAW
logb(M ÷ N) = logb(M) − logb(N)
The logarithm of a quotient equals the difference of the logarithms. Division becomes subtraction.
POWER LAW
logb(Mⁿ) = n × logb(M)
The logarithm of a power brings the exponent down as a multiplier. This is especially useful for solving exponential equations where the unknown is in the exponent.
CHANGE OF BASE
logb(a) = logc(a) ÷ logc(b)
This formula lets you convert between any two bases. On your calculator, you can evaluate log₅(20) as ln(20) ÷ ln(5) or log(20) ÷ log(5). Both give the same result.
📝 IB Exam Tip
The IB formula booklet includes the change of base rule, but the product, quotient, and power laws are not provided. You must memorize them. A helpful mnemonic: logs turn operations "one level down" — multiplication becomes addition, division becomes subtraction, and exponentiation becomes multiplication.

Transformations & Key Features of Logarithmic Graphs

Just like other functions you've studied, logarithmic functions can be shifted, stretched, and reflected. Understanding these transformations is crucial because IB questions frequently present logarithmic functions in the general form y = a × logb(x − h) + k and ask you to identify features like asymptotes, intercepts, and domain.

Four transformations of the parent function y = log₂(x) (shown as a dashed curve). Amber: vertical shift up by 2. Cyan: horizontal shift right by 3 (asymptote moves to x = 3). Pink: reflection in the x-axis. Green: vertical stretch by factor 3.
Summary of common transformations for logarithmic functions
TransformationEquation FormEffect on GraphAsymptote
Vertical shifty = logb(x) + kShifts graph up (k > 0) or down (k < 0)x = 0 (unchanged)
Horizontal shifty = logb(x − h)Shifts graph right (h > 0) or left (h < 0)x = h
Vertical stretch/compressy = a × logb(x)Steeper (|a| > 1) or flatter (|a| < 1)x = 0 (unchanged)
Reflection in x-axisy = −logb(x)Flips graph upside downx = 0 (unchanged)

Worked Example — Solving a Logarithmic Equation

Let's work through a typical IB-style problem that combines logarithmic laws with equation solving. This example demonstrates how to use the product and power laws, convert between logarithmic and exponential form, and verify your answer.

Solve: log₃(x) + log₃(x − 6) = 3
1
Step 1 — Apply the Product LawThe left side contains two logarithms of the same base being added. By the product law, log₃(x) + log₃(x − 6) = log₃(x(x − 6)). So the equation becomes:
log₃(x² − 6x) = 3
2
Step 2 — Convert to Exponential FormUsing the definition of logarithm (if logb(a) = c then bc = a), we convert: 3³ = x² − 6x.
x² − 6x = 27
3
Step 3 — Solve the QuadraticRearranging gives x² − 6x − 27 = 0. We can factor this by finding two numbers that multiply to −27 and add to −6. Those numbers are −9 and 3.
(x − 9)(x + 3) = 0, so x = 9 or x = −3
4
Step 4 — Check Domain RestrictionsRemember that logarithms are only defined for positive arguments. We need x > 0 and x − 6 > 0, which means x > 6. Testing x = −3: log₃(−3) is undefined. Testing x = 9: log₃(9) + log₃(3) = 2 + 1 = 3 ✓
x = 9
⚠️ Common Mistake Alert
Always check your solutions against the domain restrictions of the original equation. When combining logarithms, each individual logarithmic term must have a positive argument. Extraneous solutions are very common in logarithmic equations, and the IB frequently tests this.

Logarithmic vs. Exponential vs. Power Models

In the IB course, you encounter several types of function models. Knowing when to choose a logarithmic model instead of an exponential or power model is a key skill. Each model suits a different type of growth or decay behavior. The table below compares these three model types across several criteria.

Comparison of three function model types commonly tested in IB SL
FeatureExponential: y = abˣPower: y = axⁿLogarithmic: y = a + b ln(x)
Growth behaviorIncreases faster and faster (or decays)Increases at a rate dependent on nRapid initial growth, then levels off
Typical real-world usePopulation growth, radioactive decay, compound interestArea vs. length, gravitational forceDecibel scale, pH, Richter scale, learning curves
Key question it answersHow much is there after time t?How does output scale with input?How big is this on a compressed scale?
AsymptoteHorizontal (y = 0 for decay)None in generalVertical (x = 0 or x = h)
Shape on scatter plotJ-curve (growth) or decay curveCurve through originSteep rise then flattening
🎯 WHEN TO USE A LOG MODEL
Choose a logarithmic model when your data shows diminishing returns — large changes in the input produce smaller and smaller changes in the output. Think of volume on a speaker: turning the dial from 1 to 2 feels like a huge jump, but turning from 8 to 9 barely changes what you hear. That's logarithmic behavior in action.

Connections to Advanced Topics

The logarithmic functions you learn in SL 2.5 are not just a self-contained topic — they form a bridge to several more advanced mathematical ideas. Understanding where logarithms lead will help you see their importance in the broader curriculum and in HL Mathematics if you choose to continue.

How SL 2.5 concepts connect to advanced mathematics and other subjects
SL 2.5 FoundationAdvanced Connection
log laws (product, quotient, power)Simplifying expressions in calculus (e.g., differentiating products via logarithmic differentiation)
Solving exponential equations using logsModeling half-life and continuous growth/decay (SL 2.10 and beyond)
The natural logarithm ln(x)The integral ∫(1/x) dx = ln|x| + C, a cornerstone of HL Calculus
Change of base formulaInformation theory (log₂ for bits) and entropy in physics and computer science
Logarithmic scales (e.g., Richter, pH)Log-log and semi-log plots for linearizing data in the IA and science courses

One particularly powerful connection worth previewing is the idea of linearization. If you suspect your data follows an exponential model y = abx, you can take the logarithm of both sides to get log(y) = log(a) + x × log(b). This transforms the exponential relationship into a linear one, which is much easier to analyze and graph. This technique is invaluable for the Internal Assessment and for science courses where you need to determine whether data fits an exponential pattern.

Practice Problems

PROBLEM 1CONCEPTUAL
Explain in your own words why the domain of f(x) = log₃(x) is restricted to x > 0. What would it mean graphically if we tried to input x = 0 or a negative value?
PROBLEM 2BASIC CALCULATION
Evaluate without a calculator: (a) log₂(64) (b) log₅(1/25) (c) ln(e³)
PROBLEM 3INTERMEDIATE
Use logarithm laws to write the expression 2 log(x) − log(y) + (1/2) log(z) as a single logarithm.
PROBLEM 4APPLIED
The loudness of sound in decibels is modeled by L = 10 log(I / I₀), where I is the intensity and I₀ = 10⁻¹² W/m² is the threshold of hearing. A rock concert has intensity I = 10⁻¹ W/m². (a) Find the loudness in decibels. (b) If the intensity doubles to 2 × 10⁻¹ W/m², by how many decibels does the loudness increase?
PROBLEM 5CRITICAL THINKING
The function g(x) = a ln(x − h) + k has a vertical asymptote at x = 2, passes through the point (3, 5), and passes through the point (e² + 2, 11). Find the values of a, h, and k.

Lesson Summary

A logarithm is the inverse of an exponential function: if bx = a, then logb(a) = x. The domain of y = logb(x) is x > 0, the range is all real numbers, and the graph has a vertical asymptote at x = 0 and passes through the point (1, 0). The three key laws — product (log of a product = sum of logs), quotient (log of a quotient = difference of logs), and power (log of a power = exponent × log) — allow you to simplify expressions and solve equations. The change of base formula lets you evaluate any logarithm using your calculator's log or ln button.

When solving logarithmic equations, always check solutions against domain restrictions to eliminate extraneous answers. Logarithmic models are ideal for real-world data that grows rapidly at first and then levels off (diminishing returns), and they power familiar scales like the Richter scale, decibels, and pH. Transformations of the parent function follow the same rules as other functions: vertical/horizontal shifts move the curve and its asymptote, while vertical stretches and reflections change its steepness and orientation.

Varsity Tutors • IB Mathematics: Analysis and Approaches • Logarithmic Functions — SL 2.5 Logarithmic functions and models