From the free course College Algebra on Lykke
6.4 Graphs of Logarithmic Functions
Key concepts: Logarithmic functions · Earthquake intensity scales · Exposure index · Using logarithms to model earthquake intensity
A logarithmic graph answers a reverse-growth question: when an exponential quantity reaches a given value, what exponent produced it? Because logarithms undo exponential functions, their graphs reveal the input values that correspond to powers of a fixed base.
6.4 Graphs of Logarithmic Functions
A logarithmic graph answers a reverse-growth question: when an exponential quantity reaches a given value, what exponent produced it? Because logarithms undo exponential functions, their graphs reveal the input values that correspond to powers of a fixed base. This makes logarithms especially useful for measurements such as earthquake intensity, where numerical values can span enormous ranges.
The parent logarithmic function is
$$ f(x)=\log_b(x), $$
where
$$ b>0,\qquad b\neq 1. $$
Its graph is the inverse of the exponential graph
$$ y=b^x. $$
Thus, logarithmic and exponential graphs reflect one another across the line
$$ y=x. $$
This inverse relationship is the main reason logarithmic graphs have a distinctive shape.
The Basic Graph of a Logarithmic Function
Begin with the function
$$ f(x)=\log_b(x). $$
The input to a logarithm must be positive, so the domain is
$$ (0,\infty). $$
The output can be any real number, so the range is
$$ (-\infty,\infty). $$
As $x$ approaches $0$ from the right, $\log_b(x)$ decreases without bound or increases without bound depending on the base. The line
$$ x=0 $$
is a vertical asymptote, a line that the graph approaches but does not cross.
Key characteristics of $f(x)=\log_b(x)$
- Domain: $x>0$
- Range: all real numbers
- Vertical asymptote: $x=0$
- $x$-intercept: $(1,0)$
- No $y$-intercept
- Increasing when $b>1$
- Decreasing when $0<b<1$
The point $(1,0)$ always lies on the graph because
$$ \log_b(1)=0 $$
for every valid base $b$. This follows from
$$ b^0=1. $$
The graph has no $y$-intercept because $x=0$ is not in the domain.
Graphing $f(x)=\log_b(x)$ when $b>1$
When $b>1$, the function is increasing. A useful set of points comes from choosing inputs that are powers of $b$:
$$ \log_b(1)=0, $$
$$ \log_b(b)=1, $$
$$ \log_b(b^2)=2, $$
and
$$ \log_b\left(\frac{1}{b}\right)=-1. $$
Therefore, the graph contains the points
$$ (1,0),\qquad (b,1),\qquad (b^2,2),\qquad \left(\frac{1}{b},-1\right). $$
For example, graph
$$ f(x)=\log_2(x). $$
Choose inputs based on powers of $2$:
$$ \log_2\left(\frac{1}{2}\right)=-1, $$
because
$$ 2^{-1}=\frac{1}{2}; $$
$$ \log_2(1)=0, $$
because
$$ 2^0=1; $$
$$ \log_2(2)=1, $$
because
$$ 2^1=2; $$
and
$$ \log_2(4)=2, $$
because
$$ 2^2=4. $$
Thus, plot
$$ \left(\frac{1}{2},-1\right),\qquad (1,0),\qquad (2,1),\qquad (4,2). $$
Draw a smooth increasing curve through these points. The curve approaches the vertical asymptote $x=0$ from the right but never touches it.
Graphing $f(x)=\log_b(x)$ when $0<b<1$
When the base satisfies
$$ 0<b<1, $$
the logarithmic function is decreasing. For example, consider
$$ f(x)=\log_{\frac{1}{2}}(x). $$
The points are
$$ \log_{\frac{1}{2}}\left(\frac{1}{4}\right)=2, $$
$$ \log_{\frac{1}{2}}\left(\frac{1}{2}\right)=1, $$
$$ \log_{\frac{1}{2}}(1)=0, $$
and
$$ \log_{\frac{1}{2}}(2)=-1. $$
Therefore, plot
$$ \left(\frac{1}{4},2\right),\qquad \left(\frac{1}{2},1\right),\qquad (1,0),\qquad (2,-1). $$
The graph decreases as $x$ increases and still has the vertical asymptote $x=0$.
A common misconception is that every logarithmic graph increases. The base determines the direction:
$$ b>1 \Longrightarrow \log_b(x)\text{ increases}, $$
whereas
$$ 0<b<1 \Longrightarrow \log_b(x)\text{ decreases}. $$
Transformations of Logarithmic Graphs
Logarithmic functions can be shifted, stretched, reflected, and compressed just as other functions can. The general transformed form is
$$ f(x)=a\log_b(x-h)+k. $$
Each parameter changes a specific feature of the graph:
- $h$ shifts the graph horizontally.
- $k$ shifts the graph vertically.
- $a$ stretches or compresses the graph vertically.
- A negative $a$ reflects the graph across the $x$-axis.
- The vertical asymptote moves from $x=0$ to $x=h$.
The logarithm requires
$$ x-h>0, $$
so the domain is
$$ x>h. $$
The range remains all real numbers when $a\neq 0$.
For $f(x)=a\log_b(x-h)+k$:
- Domain: $x>h$
- Range: all real numbers
- Vertical asymptote: $x=h$
- Reference point: $(h+1,k)$, because $\log_b(1)=0$
Worked example: graphing a transformed logarithmic function
Graph
$$ f(x)=\log_2(x-3)+1. $$
First determine the domain. The logarithmic argument must be positive:
$$ x-3>0. $$
Add $3$ to both sides:
$$ x>3. $$
Therefore, the domain is
$$ (3,\infty). $$
The vertical asymptote occurs where the logarithmic argument equals zero:
$$ x-3=0. $$
So the asymptote is
$$ x=3. $$
To find convenient points, choose values for which $x-3$ is a power of $2$.
If
$$ x-3=\frac{1}{2}, $$
then
$$ x=3+\frac{1}{2}=\frac{7}{2}, $$
and
$$ f\left(\frac{7}{2}\right) =\log_2\left(\frac{1}{2}\right)+1 =-1+1 =0. $$
This gives
$$ \left(\frac{7}{2},0\right). $$
If
$$ x-3=1, $$
then
$$ x=4, $$
and
$$ f(4)=\log_2(1)+1=0+1=1. $$
This gives
$$ (4,1). $$
If
$$ x-3=2, $$
then
$$ x=5, $$
and
$$ f(5)=\log_2(2)+1=1+1=2. $$
This gives
$$ (5,2). $$
If
$$ x-3=4, $$
then
$$ x=7, $$
and
$$ f(7)=\log_2(4)+1=2+1=3. $$
This gives
$$ (7,3). $$
The graph is the graph of $\log_2(x)$ shifted right $3$ units and up $1$ unit. It is increasing, approaches $x=3$ from the right, and passes through
$$ \left(\frac{7}{2},0\right),\qquad (4,1),\qquad (5,2),\qquad (7,3). $$
Earthquake Intensity and Logarithmic Scales
Logarithmic scales are useful when measurements vary by powers of $10$. Earthquake intensity is one such quantity. A small increase in the logarithmic magnitude can represent a very large increase in the physical intensity of an earthquake.
The magnitude $M$ of an earthquake can be modeled by
$$ M=\log\left(\frac{I}{I_0}\right), $$
where:
- $I$ is the earthquake intensity,
- $I_0$ is a reference intensity,
- $\log$ means the common logarithm, with base $10$.
The ratio
$$ \frac{I}{I_0} $$
is sometimes called the exposure index. It compares the measured intensity with the reference intensity.
Exposure index
The exposure index is
$$ E=\frac{I}{I_0}. $$
The earthquake magnitude is
$$ M=\log(E). $$
To solve for the exposure index, rewrite the logarithmic equation in exponential form. Starting with
$$ M=\log(E), $$
use the definition of a common logarithm:
$$ 10^M=E. $$
Thus,
$$ \frac{I}{I_0}=10^M. $$
If the reference intensity is taken as
$$ I_0=1, $$
then the numerical intensity is
$$ I=10^M. $$
Worked example: determining the intensity of the 2011 earthquake
The 2011 earthquake in Japan had a magnitude of approximately
$$ M=9.0. $$
Use the earthquake model
To determine the exposure index, substitute $M=9.0$:
$$ 9.0=\log\left(\frac{I}{I_0}\right). $$
Convert to exponential form:
$$ 10^{9.0}=\frac{I}{I_0}. $$
Since
$$ 10^{9.0}=10^9, $$
the resulting exposure index is
$$ \frac{I}{I_0}=10^9. $$
Writing this number in ordinary notation gives
$$ 10^9=1{,}000{,}000{,}000. $$
Therefore, the earthquake's intensity was
$$ \boxed{1{,}000{,}000{,}000} $$
times the reference intensity. If $I_0=1$, then
$$ \boxed{I=1{,}000{,}000{,}000}. $$
Rounded to the nearest whole number, the calculated earthquake intensity remains
$$ \boxed{1{,}000{,}000{,}000}. $$
The striking feature is the scale: a magnitude of $9$ does not mean an intensity of $9$. It means an intensity ratio of $10^9$. This is why logarithmic scales are valuable: they compress very large physical measurements into manageable numerical values.
Practice Problems
- State the domain and vertical asymptote of
$$ f(x)=\log_3(x+4). $$
- Graphing information for
$$ g(x)=\log_{\frac{1}{2}}(x)-2: $$
identify whether the function increases or decreases, give its vertical asymptote, and state its domain.
- An earthquake has magnitude
$$ M=7.5 $$
on the common logarithmic scale. Find its exposure index
$$ E=10^M $$
and round to the nearest whole number.
Answers
- Require the argument to be positive:
$$ x+4>0 \Longrightarrow x>-4. $$
Domain:
$$ \boxed{(-4,\infty)}. $$
Vertical asymptote:
$$ \boxed{x=-4}. $$
- Since
$$ 0<\frac{1}{2}<1, $$
the function decreases. Its vertical asymptote is
$$ \boxed{x=0}, $$
and its domain is
$$ \boxed{(0,\infty)}. $$
- Convert the magnitude to an exposure index:
$$ E=10^{7.5}. $$
Since
$$ 10^{7.5}\approx31{,}622{,}776.6017, $$
rounding to the nearest whole number gives
$$ \boxed{31{,}622{,}777}. $$
Content adapted from OpenStax College Algebra 2e by Jay Abramson et al., licensed CC BY 4.0.
Source Materials
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