01 / 20
log

Logarithmic
Functions

Master the inverse of exponential functions, explore their graphs, properties, and learn to solve equations using logarithmic laws.

IB Mathematics AA SL 2.5

What Is a Logarithm?

A logarithm answers the question: "To what power must a base be raised to produce a given number?" If \( a^x = b \), then we write \( \log_a b = x \).

\( \log_2 8 = 3 \)
Because \( 2^3 = 8 \)
\( \log_{10} 1000 = 3 \)
Because \( 10^3 = 1000 \)
\( \log_5 25 = 2 \)
Because \( 5^2 = 25 \)

The Inverse Relationship

The logarithmic function \( y = \log_a x \) is the inverse of the exponential function \( y = a^x \). Their graphs are reflections of each other across the line \( y = x \).

x y \( y=x \) 1 2 3 4 1 2 0 \( y = 2^x \) \( y = \log_2 x \)

Common and Natural Logarithms

Two logarithmic bases appear throughout mathematics and science. The IB syllabus expects fluency with both.

\( \log x \)
Common logarithm: base 10. Used in pH, decibels, and the Richter scale. \( \log x = \log_{10} x \).
\( \ln x \)
Natural logarithm: base \( e \approx 2.718 \). Central to calculus and growth models. \( \ln x = \log_e x \).

Graph of \( y = \log_2 x \)

x y x = 0 1 2 3 4 5 1 2 0 \( y = \log_2 x \) (1, 0) (a, 1)
1
Domain: \( x > 0 \). The function is defined only for positive inputs.
2
Range: \( y \in \mathbb{R} \). The output spans all real numbers.
3
Vertical asymptote: \( x = 0 \) (the y-axis).
4
Key points: Always passes through \( (1, 0) \) and \( (a, 1) \).

Laws of Logarithms

These three laws let you simplify, expand, and combine logarithmic expressions. They follow directly from exponent rules.

Product Rule
\( \log_a(mn) = \log_a m + \log_a n \)
Quotient Rule
\( \log_a\!\left(\dfrac{m}{n}\right) = \log_a m - \log_a n \)
Power Rule
\( \log_a(m^k) = k \cdot \log_a m \)

Special Logarithm Values

Memorise these identities: they appear constantly and save time on the exam.

\( \log_a 1 = 0 \)
Because \( a^0 = 1 \) for any valid base.
\( \log_a a = 1 \)
Because \( a^1 = a \).
\( a^{\log_a x} = x \)
Exponent and log are inverses.

Exponential vs Logarithmic Form

Every exponential equation has an equivalent logarithmic form. Being able to convert between them is the most fundamental skill in this topic.

Exponential Form Logarithmic Form
\( 2^5 = 32 \) \( \log_2 32 = 5 \)
\( 10^{-2} = 0.01 \) \( \log_{10} 0.01 = -2 \)
\( e^0 = 1 \) \( \ln 1 = 0 \)
\( 3^x = 81 \) \( \log_3 81 = x \)
\( a^x = b \) \( \log_a b = x \)

Solving Logarithmic Equations

1
Isolate the logarithmic expression on one side of the equation.
2
Combine multiple logs using the product, quotient, or power rules into a single logarithm.
3
Convert to exponential form: if \( \log_a(\text{expression}) = k \), then \( \text{expression} = a^k \).
4
Solve the resulting algebraic equation for the unknown.
5
Check that each solution keeps every log argument positive. Discard extraneous solutions.

Example 1: Evaluate a Logarithm

Find the value of \( \log_3 81 \).

1
Ask: \( 3^? = 81 \)
2
Express 81 as a power of 3: \( 81 = 3^4 \).
3
Therefore \( \log_3 81 = \log_3 3^4 = 4 \).

Example 2: Simplify Using Laws

Simplify \( \log_2 12 - \log_2 3 \).

1
Apply the quotient rule: \( \log_2 12 - \log_2 3 = \log_2\!\left(\dfrac{12}{3}\right) \).
2
Simplify: \( \log_2 4 \).
3
Evaluate: \( 2^2 = 4 \), so \( \log_2 4 = 2 \).

Example 3: Solve an Exponential Equation

Solve \( 3^{2x-1} = 15 \). Give an exact answer.

1
Take \( \ln \) of both sides: \( \ln(3^{2x-1}) = \ln 15 \).
2
Apply the power rule: \( (2x - 1)\ln 3 = \ln 15 \).
3
Isolate \( x \): \( 2x - 1 = \dfrac{\ln 15}{\ln 3} \).
4
Solve: \( x = \frac{1}{2}\left(\frac{\ln 15}{\ln 3} + 1\right) \approx 1.73 \).

Example 4: Transformations of \( \ln x \)

Sketch \( y = \ln(x - 2) + 1 \) and identify the asymptote.

x y 1 2 3 4 5 6 1 2 3 0 x = 2 \( y = \ln x \) \( y = \ln(x-2)+1 \) (3, 1)

Common Mistakes

✕ Log of a Sum
\( \log(a + b) \neq \log a + \log b \). The product rule only applies to \( \log(ab) \).
✕ Log of a Quotient
\( \dfrac{\log a}{\log b} \neq \log(a - b) \). This expression is the change of base formula \( \log_b a \).
✕ Negative Arguments
Forgetting to check that every log argument stays positive. Solutions making the argument \( \leq 0 \) are extraneous.
✕ Power Rule Direction
\( (\log a)^2 \neq \log(a^2) \). The exponent must be on the argument, not on the entire logarithm.

Summary of Key Properties

Property Formula Example
Product Rule \( \log_a(mn) = \log_a m + \log_a n \) \( \log 6 = \log 2 + \log 3 \)
Quotient Rule \( \log_a\!\left(\frac{m}{n}\right) = \log_a m - \log_a n \) \( \log 5 = \log 10 - \log 2 \)
Power Rule \( \log_a(m^k) = k\log_a m \) \( \log 8 = 3\log 2 \)
Change of Base \( \log_a b = \frac{\ln b}{\ln a} \) \( \log_2 7 = \frac{\ln 7}{\ln 2} \)
Inverse \( a^{\log_a x} = x \) and \( \log_a(a^x) = x \) \( 10^{\log 5} = 5 \)

Question 1 of 5

What is the value of \( \log_4 64 \)?

Question 2 of 5

Simplify: \( \log_5 50 - \log_5 2 \)

Question 3 of 5

The vertical asymptote of \( y = \ln(x + 3) \) is:

Question 4 of 5

Which expression equals \( 2\log x + \log y \)?

Question 5 of 5

Solve for \( x \): \( 5^x = 20 \). Which is the exact answer?