Logarithmic Functions and Properties
1596 words
8 min read
Visual companion
Python
Type and operator map
Python Week 1: the first filter for runtime behavior
View
Revision summary
What this note is really saying
Short form
# Logarithmic Functions and Properties ## 🎯 Learning Objectives By the end of this topic, you will be able to: 1. **Define** a logarithm as the inverse of an exponential function 2.

Logarithmic Functions and Properties
🎯 Learning Objectives
By the end of this topic, you will be able to:
- Define a logarithm as the inverse of an exponential function
- Apply the laws of logarithms (product, quotient, power, change of base)
- Graph logarithmic functions for a>1 and 0<a<1
- Convert between exponential and logarithmic forms
- Use the natural logarithm lnx and common logarithm logx
📋 Prerequisites
- Exponential Functions — properties of exponentials
- Inverse Functions — concept of inverse functions
📖 Core Content
8.1 Intuition: The Inverse of Exponentiation
A logarithm answers the question: "What exponent gives me this number?"
If 23=8, then log28=3 ("log base 2 of 8 equals 3"). The logarithm undoes exponentiation.
Think of it this way:
- Exponential: bx=y asks: "If I multiply b by itself x times, what do I get?"
- Logarithm: logby=x asks: "How many times do I multiply b to get y?"
💡 Why this matters: Logarithms convert multiplicative relationships into additive ones. This is used everywhere: measuring earthquakes (Richter scale), sound (decibels), acidity (pH), algorithmic complexity (logn is the holy grail of efficiency), and in ML (log-likelihood, logistic regression).
8.2 Definition
For b>0, b=1, and x>0:
- Base b: the base of the exponential
- Argument x: the value whose logarithm we take (x>0)
- Result y: the exponent Special bases:
| Base | Name | Notation |
|---|---|---|
| 10 | Common logarithm | log10x or simply logx |
| e | Natural logarithm | logex or lnx |
| 2 | Binary logarithm | log2x (important in CS) |
Key relationship:
(Diagram)
8.3 Laws of Logarithms
8.3.1 The Three Core Laws
| Law | Formula | Example | Why |
|---|---|---|---|
| Product | logb(xy)=logbx+logby | log2(8⋅4)=3+2=5 | bm+n=bm⋅bn |
| Quotient | logb(x/y)=logbx−logby | log3(81/9)=4−2=2 | bm−n=bm/bn |
| Power | logb(xn)=n⋅logbx | log(1003)=3⋅2=6 | (bm)n=bmn |
Derivation of Product Law:
Let m=logbx and n=logby. Then bm=x and bn=y.
Then xy=bm⋅bn=bm+n.
Taking logb of both sides: logb(xy)=m+n=logbx+logby. ∎
8.3.2 Additional Properties
| Property | Formula | Example |
|---|---|---|
| Identity | logb1=0 | log51=0 (since 50=1 ) |
| Base | logbb=1 | log77=1 (since 71=7 ) |
| Reciprocal | logb(1/x)=−logbx | log2(1/8)=−3 |
| Change of base | logba=logcblogca | log25=log2log5 |
8.3.3 Change of Base Formula
logba=logcblogcaWhy this matters: Your calculator probably only has log (base 10) and ln (base e). To compute log25, you use: log25=ln2ln5≈0.6931.609≈2.322.
8.4 Graphing Logarithmic Functions
8.4.1 Graph of f(x)=logax, a>1
For f(x)=log2x:
| x | 1/8 | 1/4 | 1/2 | 1 | 2 | 4 | 8 |
|---|---|---|---|---|---|---|---|
| f(x) | −3 | −2 | −1 | 0 | 1 | 2 | 3 |
Properties:
- Domain: (0,∞) (only positive inputs)
- Range: R (all real outputs)
- x-intercept: (1,0)
- Vertical asymptote: x=0 (y-axis)
- Increasing (for a>1)
8.4.2 Graph of f(x)=logax, 0<a<1
For f(x)=log1/2x:
- Decreasing (since base <1)
- Same intercept at (1,0)
- Same asymptote x=0
🔍 Note: log1/ax=−logax. So decay-base logs are reflections of growth-base logs across the x-axis. (Diagram)
8.5 Natural Logarithm lnx
The natural logarithm lnx=logex has base e≈2.718. It's the inverse of ex:
Properties (same as any log, but with base e):
- ln1=0
- lne=1
- ln(xy)=lnx+lny
- ln(x/y)=lnx−lny
- ln(xn)=nlnx
8.6 Worked Examples
Example 1.1 (Easy): Evaluate log381.
Step 1: 81=34
Step 2: log381=log3(34)=4
Example 1.2 (Medium): Expand log2(y8x3).
\log_2\left(\frac{8x^3}{y}\right) &= \log_2(8x^3) - \log_2 y \\ &= \log_2 8 + \log_2(x^3) - \log_2 y \\ &= 3 + 3\log_2 x - \log_2 y \end{aligned}
\begin{aligned} &= \ln(x^2) - \ln\sqrt{x^2+1} + \ln 3 \\ &= \ln\left(\frac{x^2}{\sqrt{x^2+1}}\right) + \ln 3 \\ &= \ln\left(\frac{3x^2}{\sqrt{x^2+1}}\right) \end{aligned}
\boxed{3}
\boxed{7}
\boxed{2 + 2\log x - 3\log y}
\boxed{\ln\left(\frac{x^3 y}{z^2}\right)}
\boxed{3}
\boxed{0.431}
\boxed{32}
\boxed{(2, \infty)}
\boxed{7}
\boxed{3^4 = 81}
\boxed{5}
\boxed{\text{Proved}}$$ --- ## 🔗 Cross-References - Next topic: [Exponential & Logarithmic Equations](/courses/bsma1001/notes/.%2Fweek06%2Flogarithms-equations) - Previous topic: [Exponential Functions](/courses/bsma1001/notes/.%2Fweek05%2Ffunctions-exponential) - Across courses: BSMA1002 Stats 1 (log transformations in regression); BSMA1003 Maths 2 (logarithmic differentiation)
Join Discord
Previous5.2 Composite & Inverse FunctionsNext6.2 Exponential & Log Equations