Lesson 11

Graphing logarithms

Theory and examples

Logarithms are not a brand new shape. They are connected to the exponential graphs we already know.

23=8⟺log⁡2(8)=32^3=8\qquad\Longleftrightarrow\qquad \log_{2}(8)=3

The inverse of the exponential graph

If logarithms undo exponentials, then their graphs are connected too. The graph of y=log⁡2(x)y=\log_{2}(x) is the inverse of y=2xy=2^x.

Inverse graphs swap their xx and yy coordinates.

Points on y=2xy=2^xPoints on y=log⁡2(x)y=\log_{2}(x)
(−1,12)(-1,\frac12)(12,−1)(\frac12,-1)
(0,1)(0,1)(1,0)(1,0)
(1,2)(1,2)(2,1)(2,1)
(2,4)(2,4)(4,2)(4,2)
(3,8)(3,8)(8,3)(8,3)

Notice what happened to the point (0,1)(0,1) on the exponential graph. It became (1,0)(1,0) on the log graph.

That point is our anchor for the basic logarithmic graph.

The next picture shows the coordinate swap visually. The exponential graph and logarithmic graph are mirror images across y=xy=x.

The mirror effect

xyy=x
y=2xy=2^x
y=log⁡2(x)y=\log_{2}(x)
y=xy=x

Swapping coordinates reflects the graph across the diagonal line y=xy=x.

The horizontal asymptote of the exponential graph, y=0y=0, also swaps. It becomes the vertical asymptote of the logarithmic graph, x=0x=0.

Reading the log graph

Now isolate the logarithmic graph.

Base graph: y=log⁡2(x)y=\log_{2}(x)

xx=0no graph here
(12,−1)\left(\frac12,-1\right)
(1,0)(1,0)
(2,1)(2,1)
(4,2)(4,2)
(8,3)(8,3)

Anatomy of the log graph

Anchor
(1,0)(1,0)
Vertical asymptote
Vertical asymptote x=0x=0
Domain
x>0x>0
Range
All real numbers

One part can feel strange at first: the graph drops below the x-axis when 0<x<10<x<1.

This is because the log of a fraction gives a negative value.

log⁡2(12)=−1because2−1=12\log_{2}\left(\frac12\right)=-1\qquad\text{because}\qquad 2^{-1}=\frac12

Small positive inputs between 00 and 11 come from negative powers. That is why the log graph has negative yy-values in that region.

Key features

y=log⁡b(x)b>1y=\log_b(x)\qquad b>1
Vertical asymptote
x=0x=0
x-intercept
(1,0)(1,0)
Domain
x>0x>0
Range
All real numbers

Optional mastery

Mastery questions

Do you want a high study score? Be disciplined. Do the mastery questions.

Open mastery questions

Checkpoint

Multiple-choice questions

Answer every question correctly to unlock the next lesson. If something is marked red, change your answer and check again.

Question 1
Which point lies on y=log⁡2(x)y=\log_{2}(x)?
Question 2
What is the vertical asymptote of y=log⁡3(x)y=\log_{3}(x)?
Question 3
What is the domain of y=log⁡5(x)y=\log_{5}(x)?