Logarithmic Functions
A logarithm undoes an exponent, so it’s no surprise that the graph of is the graph of “undone”: its reflection in the line . Once you see that, every key feature of a logarithmic graph comes straight from a feature of the exponential function you already know.
Key ideas
Section titled “Key ideas”The inverse of an exponential function
Section titled “The inverse of an exponential function”To find the inverse of , swap and , then solve for :
So is the inverse of . As with any inverse, the points swap coordinates: on becomes on .
Why the inverse is a function
Section titled “Why the inverse is a function”An exponential function is always increasing (if ) or always decreasing (if ), so it passes the horizontal line test: no output happens twice. That means its inverse passes the vertical line test, so the inverse is a function. Compare , which gives the output for both and , so its inverse is not a function.
Key features of y = log_b x
Section titled “Key features of y = log_b x”Every feature of the logarithmic graph is a swapped feature of the exponential graph.
| Feature | ||
|---|---|---|
| Domain | ||
| Range | ||
| Intercept | -intercept | -intercept |
| Asymptote | horizontal, | vertical, |
| Key points | and | and |
A few things to notice about :
- There’s no -intercept and no horizontal asymptote.
- The graph hugs the -axis as gets close to , but never touches it.
- It keeps rising forever, but very slowly: only reaches when .
Increasing or decreasing
Section titled “Increasing or decreasing”- If , is increasing: negative for , positive for .
- If , is decreasing: positive for , negative for .
Either way, the graph passes through and and has the vertical asymptote .
Comparing bases
Section titled “Comparing bases”For , a larger base gives a smaller log, so the graph is flatter: , but . That makes sense: a bigger base needs a smaller exponent to reach the same number.
Worked examples
Section titled “Worked examples”Example 1: Graphing from the exponential
Section titled “Example 1: Graphing from the exponential”Graph using a table of values for . State the domain, range, intercept, and asymptote.
Solution. Make a table for , then swap the coordinates.
Plot the second row and join the points with a smooth curve that rises slowly to the right and drops steeply toward the -axis as gets close to .
- Domain:
- Range:
- -intercept: ; no -intercept
- Vertical asymptote:
Example 2: Finding inverses
Section titled “Example 2: Finding inverses”Find the inverse of each function, and state the domain and range of the inverse.
- (a)
- (b)
Solution.
(a) Write and switch to log form: . The domain of is the range of : . Its range is the domain of : .
(b) Write and switch to exponential form: . The domain of is and its range is .
Check (a) with a number: , and . ✓
Example 3: Base 2 versus base one half
Section titled “Example 3: Base 2 versus base one half”Show that , and describe how the graph of relates to .
Solution. Let . In exponential form:
So every -value of is the opposite of the matching -value of . The graph of is the reflection of in the -axis. It’s decreasing, but it still has -intercept and asymptote .
Check: because , and . ✓
Example 4: Finding the base from a point
Section titled “Example 4: Finding the base from a point”The graph of passes through . Find , then find when .
Solution. Substitute the point and switch to exponential form:
(The base must be positive, so is rejected.) The function is . When :
Common mistakes
Section titled “Common mistakes”Giving the logarithmic graph a -intercept of . That’s the exponential graph. The logarithmic graph swaps it: the -intercept is , and there’s no -intercept at all.
Drawing a horizontal asymptote. has a vertical asymptote, . The graph doesn’t level off; it keeps rising (slowly) without bound, so its range is all real numbers.
Letting the graph cross into . The domain is . Your sketch should never touch or cross the -axis.
Reflecting in the wrong line. The inverse comes from a reflection in , not in the -axis or -axis. Swap the coordinates of each point to get it right.
Thinking a bigger base means a steeper graph. For , it’s the opposite: is flatter than , because needs a smaller exponent than to reach the same number.
Practice
Section titled “Practice”1. (Warm-up) For , state the domain, range, -intercept, and the equation of the asymptote.
Solution
Domain ; range ; -intercept ; vertical asymptote .
2. (Warm-up) Write the inverse of each function.
- (a)
- (b)
Solution
(a)
(b)
3. (Warm-up) Find the points on for , , , , , and .
Solution
, , , , , .
4. (Core) Sketch using at least four points. Is it increasing or decreasing? State its domain, range, intercept, and asymptote.
Solution
Swap the points of , which are , , , , . The points on are:
The graph is decreasing: high near the -axis, falling through , and continuing slowly downward.
Domain ; range ; -intercept ; vertical asymptote .
5. (Core) Let .
- (a) Evaluate and .
- (b) Solve .
- (c) Find and evaluate .
Solution
(a) and .
(b) means .
(c) , so . Check: . ✓
6. (Core) The graph of passes through . Find , and find when .
Solution
. Raise both sides to the power : .
So , and because .
7. (Core) Without a calculator, put , , and in order from largest to smallest. Explain your reasoning.
Solution
is between and (since and ). is between and (since ). is between and (since ).
So . A larger base needs a smaller exponent to reach .
8. (Challenge) Let and .
- (a) Sketch and , and sketch the reflection of each graph in the line .
- (b) Use the horizontal line test to decide which reflection is the graph of a function. For the one that isn’t, name a specific horizontal line that shows why.
- (c) Restrict the domain of so that its inverse is a function, and find that inverse.
Solution
(a) Points on : , , . Swapping gives , , on the reflection, which is , with vertical asymptote .
Points on : the vertex , , and . Swapping gives , , and on the reflection: a parabola lying on its side, opening to the right.
(b) is always increasing, so every horizontal line crosses it at most once. Its reflection therefore passes the vertical line test, and is a function.
fails the horizontal line test: the line crosses it twice, at and . After reflecting, the vertical line crosses the sideways parabola at and , so the reflection is not a function.
(c) Keep only the right half: restrict to . Now is always increasing. Swap and and solve:
Take the positive root, because the outputs of the inverse are the inputs of the restricted , which are . So , with domain . Check: and . ✓ (Restricting to also works; then .)
9. (Challenge) Show that for all . What transformation takes the graph of to the graph of ?
Solution
Let . Then:
So is a vertical compression of by a factor of . Check: and . ✓
Homework
Section titled “Homework”Try these independently after the practice questions. Show your setup and explain your reasoning. Use exact answers where possible, and check that your answers fit the question. Homework solutions are not provided on the published site.
Give domains and ranges in set notation.
Foundations
Section titled “Foundations”H1. (Foundations) Graph from its exponential.
- (a) Make a table of values for using .
- (b) Swap the coordinates to make a table for , and sketch both graphs on the same axes with the line .
- (c) For , state the domain, range, -intercept, and the equation of the asymptote. Is it increasing or decreasing?
H2. (Foundations) Let .
- (a) Evaluate , , , and .
- (b) Which of these points lie on the graph of : , , , ? Explain each answer.
H3. (Core) Consider .
- (a) Use a table of values for to find five points on , then sketch it.
- (b) State the domain, range, -intercept, and asymptote. Is the function increasing or decreasing?
- (c) For which values of is positive?
- (d) Show that the point lies on both and . Why does it make sense that a point on the line can be on both graphs?
H4. (Core) Find the base from a point on the graph.
- (a) The graph of passes through . Find . Then find when , and find when .
- (b) The graph of passes through . Find . Is this function increasing or decreasing? Find when .
H5. (Core) Compare how fast and grow.
- (a) Copy and complete the table.
Then answer:
- (b) For which values of is ?
- (c) How large must be for to pass ? By what factor did have to grow to take from to ?
- (d) Use the idea of reflecting in to explain why one function grows so quickly and the other so slowly.
H6. (Core) In a hypothetical lab experiment in Guelph, a bacteria culture doubles every hour. Its size is thousand cells, where is the time in hours since the start ().
- (a) Make a table of for .
- (b) Write as a function of . What kind of function is it?
- (c) In this context, state the domain and range of the function in part (b).
- (d) How long does it take the culture to reach thousand cells? Between which two whole numbers of hours does it reach million cells? Explain without a calculator.
Challenge
Section titled “Challenge”H7. (Challenge) A student described the graph of like this: domain , range , horizontal asymptote , -intercept , and key points and .
- (a) Find every error and correct it.
- (b) What single mistake explains all the errors?
- (c) Suggest one quick check the student could do to catch the mistake.
H8. (Challenge) Compare and .
- (a) Make a table of both functions for . What pattern do you see?
- (b) Use exponent reasoning (not laws of logarithms) to prove that for every . Hint: let and write .
- (c) For which values of is the graph of below the graph of ? Above it? Where do they meet?
H9. (Challenge) For each point, find all bases (with and ) for which the point lies on the graph of . If there are none, or infinitely many, explain why.
- (a)
- (b)
- (c)
- (d)
- (e)
H10. (Challenge) Think about the value of for different bases .
- (a) For which bases is ? For which is ? For which is negative? For which is it exactly ?
- (b) Is there any base for which ? Explain.
- (c) Use the graphs of to explain your answer to part (a).