Log Function Graphs- Characteristics and Transformations
What Log Function Graphs Actually Look Like
Logarithmic functions produce graphs that are immediately recognizable once you know what to look for. They're the mirror image of exponential functions, reflected across the line y = x. That's the quickest way to understand them.
The basic log function is y = logb(x), where b is the base. Common bases you'll see are 10 (common log), the natural log with base e (written as ln), and base 2 for computer science applications.
Key Characteristics of Log Function Graphs
The Shape and Position
Every log function graph shares these features:
- Vertical asymptote at x = 0 — the graph approaches this line but never touches it
- The graph passes through (1, 0) regardless of the base
- For base b > 1, the graph increases as x increases, but at a decreasing rate
- The domain is (0, ∞) — you cannot take the log of zero or a negative number
- The range is all real numbers (−∞, ∞)
The graph is located entirely to the right of the y-axis. It climbs slowly after the initial steep rise near the asymptote.
Base Matters
Different bases produce the same general shape, but the steepness changes:
- Larger bases (like 10 or e) produce graphs that increase more quickly
- Smaller bases (between 0 and 1) create graphs that decrease instead of increase
- Base 1 is useless — it gives you y = 0 for all x
Transformations of Log Functions
Transformations work exactly like they do for other functions. The same rules apply. You shift, stretch, reflect, and compress. Here's how:
Horizontal Shifts
The transformation y = logb(x − h) shifts the graph h units to the right. If h is negative, it shifts left.
Example: y = log(x − 3) moves the basic graph 3 units right. The vertical asymptote moves from x = 0 to x = 3.
Vertical Shifts
The transformation y = logb(x) + k shifts the graph k units up. If k is negative, it shifts down.
Example: y = log(x) + 2 moves everything up 2 units. The point (1, 0) becomes (1, 2).
Reflections
- y = −logb(x) reflects across the x-axis
- y = logb(−x) reflects across the y-axis
The second reflection changes the domain to x < 0. The graph appears on the left side of the y-axis instead.
Vertical Stretches and Compressions
The coefficient in front of the log function does this:
- |a| > 1 stretches the graph vertically
- 0 < |a| < 1 compresses the graph vertically
- Negative a reflects across the x-axis AND applies the stretch/compression
Horizontal Stretches and Compressions
Changes inside the log argument affect the horizontal direction. The transformation y = logb(cx) compresses horizontally by a factor of 1/c.
How to Graph a Log Function (Step by Step)
Here's the practical process for graphing any log function:
- Identify the base — this tells you the basic shape
- Find the vertical asymptote — set the argument equal to zero and solve
- Find key points — always include (1, 0) and (base, 1)
- Apply transformations — shift, stretch, and reflect from your base graph
- Draw the curve — approach the asymptote without touching, pass through your points
Worked Example
Graph y = 2 + log3(x − 1)
- Base is 3 — basic shape is standard
- Vertical asymptote at x = 1 (set x − 1 = 0)
- Key point (1, 0) shifts to (2, 0) because of the horizontal shift
- Another key point: (4, 1) from the base point (3, 1) shifted right 1 unit
- Vertical shift up 2 units moves everything up — (2, 2) and (4, 3)
- Draw the curve approaching x = 1 from the right, passing through your points
Comparing Log and Exponential Functions
These two functions are inverses of each other. Understanding their relationship helps you graph both:
| Feature | Exponential: y = bx | Logarithm: y = logb(x) |
|---|---|---|
| Domain | All real numbers | x > 0 only |
| Range | y > 0 only | All real numbers |
| Y-intercept | (0, 1) | No y-intercept |
| X-intercept | No x-intercept | (1, 0) |
| Asymptote | Horizontal (y = 0) | Vertical (x = 0) |
| Graph shape | Rises steeply (for b > 1) | Rises slowly, flattens out |
To graph one from the other, simply swap the x and y coordinates. The exponential point (2, 9) becomes the log point (9, 2).
Common Mistakes to Avoid
- Forgetting that the domain restriction applies even after transformations — x − h must still be positive
- Confusing which transformation affects which direction — horizontal shifts come from changes inside the log, vertical from outside
- Drawing the graph touching the asymptote — it never touches, it only approaches
- Using the wrong base for calculations — ln and log10 are not the same
Quick Reference for Common Bases
| Function | Base | Common Use |
|---|---|---|
| log10(x) | 10 | Science and engineering calculations |
| ln(x) | e ≈ 2.718 | Calculus, statistics, growth/decay |
| log2(x) | 2 | Computer science, algorithm analysis |
Natural log appears most often in higher mathematics because its derivative is simply 1/x, which makes calculus much cleaner.
Bottom Line
Log function graphs follow predictable rules. Once you know the base shape and how each transformation affects it, you can graph any log function without a calculator. The vertical asymptote is your anchor point — everything else builds from there. Practice with a few examples and you'll recognize the pattern immediately.