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 log2โ8=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: logbโy=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 | log10โx or simply logx |
| e | Natural logarithm | logeโx or lnx |
| 2 | Binary logarithm | log2โx (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)=logbโx+logbโy | log2โ(8โ 4)=3+2=5 | bm+n=bmโ bn |
| Quotient | logbโ(x/y)=logbโxโlogbโy | log3โ(81/9)=4โ2=2 | bmโn=bm/bn |
| Power | logbโ(xn)=nโ logbโx | log(1003)=3โ 2=6 | (bm)n=bmn |
Derivation of Product Law:
Let m=logbโx and n=logbโy. Then bm=x and bn=y.
Then xy=bmโ
bn=bm+n.
Taking logbโ of both sides: logbโ(xy)=m+n=logbโx+logbโy. โ
8.3.2 Additional Properties
| Property | Formula | Example |
|---|---|---|
| Identity | logbโ1=0 | log5โ1=0 (since 50=1 ) |
| Base | logbโb=1 | log7โ7=1 (since 71=7 ) |
| Reciprocal | logbโ(1/x)=โlogbโx | log2โ(1/8)=โ3 |
| Change of base | logbโa=logcโblogcโaโ | log2โ5=log2log5โ |
8.3.3 Change of Base Formula
logbโa=logcโblogcโaโWhy this matters: Your calculator probably only has log (base 10) and ln (base e). To compute log2โ5, you use: log2โ5=ln2ln5โโ0.6931.609โโ2.322.
8.4 Graphing Logarithmic Functions
8.4.1 Graph of f(x)=logaโx, a>1
For f(x)=log2โx:
| 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)=logaโx, 0<a<1
For f(x)=log1/2โx:
- Decreasing (since base <1)
- Same intercept at (1,0)
- Same asymptote x=0
๐ Note: log1/aโx=โlogaโx. So decay-base logs are reflections of growth-base logs across the x-axis. (Diagram)
8.5 Natural Logarithm lnx
The natural logarithm lnx=logeโx 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 log3โ81.
Step 1: 81=34
Step 2: log3โ81=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