Graphing Logarithmic Functions: Intro
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) |
| y = 2x | y = log2(x) |
| comparison of the two graphs, showing the 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 ©
- 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. Because of this restriction on the domain (the input values) of the log, I won't even bother trying to find y-values for, say, x = –3 or x = 0. Instead, I'll start with x = 1, and work from there, using the definition of the log.
The above 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 "half" of the exponential function had few graphable points (the rest of them being too close to the x-axis), so also the bottom "half" 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 = 2–4, but the x-value for the point (0.0625, –4) seems too small to bother with, so I'll quit with the points I've already found.
Listing these points gives me my T-chart:
| ||
Drawing my dots and then sketching in the line (remembering not to go to the left of the y-axis!), I get this graph:
|
No comments:
Post a Comment