Return to the Purplemath home page

 


powered by FreeFind

 

Print-friendly page

 

 

Graphing Logarithmic Functions: Intro (page 1 of 3)

By nature of the logarithm, most log graphs tend to have the same shape, looking similar to a square-root graph:
 

y = sqrt(x) y = log2(x)
graph of y = sqrt(x) graph of y = log_2(x)

But, while the square root starts at the point (0, 0) and then goes off to the right, the log passes through (1, 0), going off to the right but also sliding down the positive side of the y-axis. Remembering that logs are the inverses of exponentials, this shape makes perfect sense, since the graph of the log, being the inverse of the exponential, would just be the flip of the graph of the exponential:

y = 2x y = log2(x)
graph of y = 2^x graph of y = log_2(x)
comparison of the two graphs,
showing the inversion line in red
comparitive graph, showing inversion line in red

It is fairly simple to graph exponentials. For instance, to graph y = 2x, you would just plug in some values for x, compute the corresponding y-values, and plot the points. But how do you graph logs? There are two options. Here is the first:   Copyright © Elizabeth Stapel 2006-2008 All Rights Reserved

  • Graph y = log2(x).

    In order to graph this "by hand", I need first to remember that logs are not defined for negative x or for x = 0, so I won't even bother trying to find points for x = –3 or x = 0, for instance. So I'll start with x = 1, and work from there:

    Since 20 = 1, then log2(1) = 0, and (1, 0) is on the graph. Since 21 = 2, then log2(2) = 1, and (2, 1) is on the graph. Since 3 is not a power of 2, I won't bother with x = 3. Since 22 = 4, then log2(4) = 2, and (4, 2) is on the graph. Since 5, 6, and 7 aren't powers of 2 either, I'll skip up to x = 8: since 23 = 8, then log2(8) = 3, so (8, 3) is on the graph. The next power of 2 is 16:  since 24 = 16, then log2(16) = 4, and (16, 4) is on the graph. The next power of 2, x = 32, is too big for my taste; I don't feel like drawing my graph that wide, so I'll quit at x = 16.

    This gives me the point (1, 0) and some points to the right, but what do I do for x-values between 0 and 1? For this interval, I need to think in terms of negative powers and reciprocals. Just as the left-hand side of the exponential function had few graphable points (the rest of them being too close to the x-axis), so also the bottom of the log function has few graphable points, the rest of them being too close to the y-axis. But I can find a few:

    Since 2–1 = 1/2 = 0.5, then log2(0.5) = –1, and (0.5, –1) is on the graph. Since 2–2 = 1/4 = 0.25, then log2(0.25) = –2, and (0.25, –2) is on the graph. Since 2–3 = 1/8 = 0.125, then log2(0.125) = –3, and (0.125, –3) is on the graph. The next power of 2 (as x moves in this direction) is 1/16 which I view as being too small to bother with, so I'll quit with the values I've got.

      

    These points give me this T-chart:

      

    T-chart

      

      

    ...and then I get this graph:

      

    graph of y = log_2(x)
     

Top  |  1 | 2 | 3  |  Return to Index  Next >>

Cite this article as:

Stapel, Elizabeth. "Graphing Logarithmic Functions: Intro." Purplemath. Available from
    http://www.purplemath.com/modules/graphlog.htm. Accessed
 

 

Lessons index

Lessons CD




Purplemath:
  Linking to this site
  Printing pages
  Donating
  School licensing


Reviews of
Internet Sites:
   Free Help
   Practice
   Et Cetera

The "Homework
   Guidelines"

Study Skills Survey

Tutoring ($$)


This lesson may be printed out for your personal use.

Content copyright protected by Copyscape website plagiarism search
  

  Copyright © 2006-2008  Elizabeth Stapel   |   About   |   Terms of Use

 

 Feedback   |   Error?