Graphing Logarithmic Functions
Learn to graph logarithmic functions: key points, domain, range, the vertical asymptote, the mirror image of the exponential function and shifts.
Advanced30 min18 problems
Definition
A logarithmic function has the form with base and . It is the inverse function of the exponential function : means .
Key points (they come straight from the definition):
- because
- because
- because
**Features of the graph of :**
- Domain: (you can only take the logarithm of a positive number)
- Range: all real numbers
- Vertical asymptote: the line (the -axis); the graph gets closer and closer to it but never touches it
- -intercept**: ; there is no -intercept
- If , the graph increases; if , it decreases
The graph of is the reflection of the graph of across the line : every point of becomes the point .
Transformations:
- shifts the graph units right (left if ) and units up (down if )
- vertical asymptote , domain , key points and
- reflects the graph across the -axis; reflects it across the -axis (domain )
In the interactive graph, move the sliders , and and watch the asymptote and the two key points move.
Try it now
What is the domain of ?
Interactive Visual
Function graph
Tap or hover over the graph to read off values.
y = log_b(x - h) + kAsymptote
Table of values
| x | 0.5 | 1 | 2 | 4 | 8 |
|---|---|---|---|---|---|
| y | -1 | 0 | 1 | 2 | 3 |
Function graph
Tap or hover over the graph to read off values.
Tap a name to show or hide its graph.
y = xAsymptoteFunction graph
Tap or hover over the graph to read off values.
Tap a name to show or hide its graph.
AsymptoteTable of values
| x | 0.25 | 0.5 | 1 | 2 | 4 | 8 |
|---|---|---|---|---|---|---|
| log_2(x) | -2 | -1 | 0 | 1 | 2 | 3 |
| log_0.5(x) | 2 | 1 | 0 | -1 | -2 | -3 |
Interactive Sandbox
Interactive Grapher
Tap or hover over the graph to read off values.
Try these examples:
y = log_2(x)
Expression Calculator
Try these:
History
No calculations yet
Practice Problems
18 problemsProblem 1 of 18
Easy
What is the domain of ?
Glossary
- Logarithmic function
- A function with , ; it gives the exponent to which must be raised to get
- Vertical asymptote
- A vertical line that the graph gets closer and closer to without touching it; for it is
- Domain
- All x-values for which the function is defined; for it is
- Range
- All y-values the function takes; for every logarithmic function it is all real numbers
- Inverse function
- A function that undoes another one; its graph is the reflection across , as is for
- Key points
- Easy points to plot: , and for
Formula Card
Parent function
Base $b > 0$, $b \neq 1$; domain $x > 0$, range all real numbers
Key points
Plot these three points first
Transformed function
Asymptote $x = h$, domain $x > h$, key points $(1 + h, k)$ and $(b + h, 1 + k)$
Reflections
Across the $x$-axis and across the $y$-axis (domain $x < 0$)
Inverse of the exponential
Reflection across the line $y = x$