Graphing Logarithmic Functions

LESSON 15 OF 15See the unit map ↗

Connect a logarithm’s domain to shifts and asymptotes.

Builds on Changing the Base

The bigger question: How long does repeated growth take?

On this page

Idea

A logarithm graph is an exponential graph reflected in the line y=xy = x. Everything about its shape follows from that one fact.

The exponential had a horizontal floor it never touched. Reflecting turns that floor into a vertical wall.

Rule

y=log⁡axy = \log_a x has domain x>0x > 0 and range every real yy

the line x=0x = 0 is a vertical asymptote

the curve passes through (1,0)(1, 0) for every base

How it is used

1. Two shapes, and the base picks one

BaseShapeExample
a>1a > 1rises, slowly and forevery=log⁡2xy = \log_2 x
0<a<10 < a < 1falls, slowly and forevery=log⁡1/2xy = \log_{1/2} x

The two are mirror images in the xx-axis, because log⁡1/ax=−log⁡ax\log_{1/a} x = -\log_a x.

2. Three points fix the curve

Every logarithm graph passes through the same three landmarks, written in terms of its base.

(1a,−1),\left(\frac{1}{a}, -1\right), (1,0),(1, 0), (a,1)(a, 1)

For y=log⁡2xy = \log_2 x that is (12,−1)\left(\frac{1}{2}, -1\right), (1,0)(1, 0) and (2,1)(2, 1). Plot those, follow the shape, and the sketch is done.

Exponential and logarithm

Try this. Compare bases 2 and 0.5: growth becomes decay. Move the input to 1; the logarithm is zero for either base.

Exponential and logarithm-6-6-4-4-2-2224466xy
Base 3 · Blue: y = 3ˣ · Green: y = log_b(x) · Dashed: y = x. At x = 0.5, y = -0.631.

3. The asymptote is a wall, not a floor

As xx shrinks towards 00 the curve dives without limit, but never crosses to the left.

log⁡211024=−10,\log_2 \frac{1}{1024} = -10, log⁡212100=−100\log_2 \frac{1}{2^{100}} = -100

There is no bottom. The values are unbounded below, which is what "range is every real yy" means.

Going the other way the curve keeps climbing, just very slowly: log⁡2x\log_2 x needs xx to double to gain a single unit of height.

4. It is the exponential, reflected

y=axy = a^xy=log⁡axy = \log_a x
domainevery real xxx>0x > 0
rangey>0y > 0every real yy
asymptotehorizontal, y=0y = 0vertical, x=0x = 0
passes through(0,1)(0, 1)(1,0)(1, 0)

Each row is the previous one with the coordinates swapped. That is what reflecting in y=xy = x does.

5. Shifts move the wall

The asymptote sits wherever the argument is zero.

y=log⁡a(x−h)  ⇒  asymptote x=h,domain x>hy = \log_a(x - h) \;\Rightarrow\; \text{asymptote } x = h, \quad \text{domain } x > h

A constant added outside, as in log⁡ax+k\log_a x + k, lifts the curve but leaves the wall where it was.

Worked example

Describe the graph of f(x)=log⁡2(x−3)+1f(x) = \log_2(x - 3) + 1.

Remember

the asymptote sits where the argument is zero log⁡a1=0\log_a 1 = 0 and log⁡aa=1\log_a a = 1 a constant outside shifts up, not sideways

  1. Find the wall. The argument is zero at x=3x = 3, so that is the vertical asymptote and the domain is x>3x > 3.
x−3>0  ⇒  x>3x - 3 > 0 \;\Rightarrow\; x > 3
  1. Use log⁡21=0\log_2 1 = 0 to get the first point. The argument is 11 when x=4x = 4.
f(4)=log⁡21+1=1f(4) = \log_2 1 + 1 = 1
  1. Use log⁡22=1\log_2 2 = 1 for the second. The argument is 22 when x=5x = 5.
f(5)=log⁡22+1=2f(5) = \log_2 2 + 1 = 2
  1. The base is above 11, so the curve rises. It climbs from the wall at x=3x = 3 through (4,1)(4, 1) and (5,2)(5, 2), gaining one unit each time x−3x - 3 doubles.
PAUSE & THINKA quick check, not a grade

Try it yourself.

Choose an answer and explain your reasoning to yourself. Use a hint if you get stuck.

Where is the vertical asymptote of y=ln⁡(x−2)y=\ln(x-2)?

Hint 1 · Find a starting point

Find where the argument approaches zero from above.

Hint 2 · Take the next step

The domain condition is x − 2 > 0.

Show the reasoning

Answer: x = 2

As x approaches 2 from the right, ln(x−2) decreases without bound.

Before moving on: what would make one of the other answers wrong? Saying why is part of understanding.

Explore

Both curves are drawn here. Drag the probe and watch the pair move together.

The green logarithm and the blue exponential are the same curve seen from two sides of the dashed line y=xy = x. Whenever the probe sits at (p,q)(p, q) on one, its partner sits at (q,p)(q, p) on the other. The exponential flattens onto its horizontal floor on the left; the logarithm dives down its vertical wall near x=0x = 0. Those are the same behaviour with the axes exchanged.

Now change the base. Above 11 both curves climb; below 11 both fall. The reflection holds either way, because it comes from the definition rather than from the shape.

Exponential and logarithm

Try this. Compare bases 2 and 0.5: growth becomes decay. Move the input to 1; the logarithm is zero for either base.

Exponential and logarithm-6-6-4-4-2-2224466xy
Base 2 · Blue: y = 2ˣ · Green: y = log_b(x) · Dashed: y = x. At x = 0.5, y = -1.
MAKE IT YOURS

Pause before the next idea.

Can you explain how the visualization connects to this lesson’s goal? If a step still feels uncertain, put this lesson on your review list and try the check again another day.

Optional marks, not a grade. Saved in this browser only. Open notebook →