Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Logarithmic Graphs






Visualizing the Inverse of Exponentials

The graph of y=log⁡a(x)y = \log_a(x) has a characteristic shape: a curve passing through (1,0)(1, 0), approaching a vertical asymptote at x=0x = 0, and extending infinitely in both vertical directions. The base determines whether the curve rises or falls, and transformations shift, stretch, and reflect the basic shape. Understanding these graphs reinforces the properties of logarithms and provides geometric insight into inequalities.

Key Terms

Graph Features

Logarithmic Function— domain (0,∞)(0, \infty), range (−∞,∞)(-\infty, \infty), passes through (1,0)(1, 0)
Base (of a Logarithm)— determines whether the curve rises or falls
Monotonicity— a>1a > 1 gives an increasing curve; 0<a<10 < a < 1 gives a decreasing curve

Anchor Values

Logarithm— log⁡a(1)=0\log_a(1) = 0 and log⁡a(a)=1\log_a(a) = 1 anchor every graph

See All Algebra Definitions →


The Basic Shape

One way to draw y = log₂ x: work out values and plot them.
log⁡2(1)=0\log_2(1) = 0, log⁡2(2)=1\log_2(2) = 1, log⁡2(4)=2\log_2(4) = 2, log⁡2(8)=3\log_2(8) = 3, and log⁡2(12)=−1\log_2(\frac{1}{2}) = -1. Joined up, the points climb more and more slowly to the right and plunge as xx shrinks toward 00.
The graph of y=log⁡a(x)y = \log_a(x) for a>1a > 1 rises slowly from left to right. Starting from extreme negative yy-values near the yy-axis, the curve crosses through (1,0)(1, 0), continues through (a,1)(a, 1), and extends upward without bound as xx increases.
Another way: take the familiar graph of y = 2^x and flip it across the line y = x.
Reflecting in y=xy = x swaps the two coordinates of every point. The steep exponential curve, hugging the xx-axis on the left, turns into a slow curve hugging the yy-axis at the bottom.
y = 2^x and y = log2 x are mirror images in the line y = xxy−3−2−112345678−3−2−112345678y = 2ˣy = log₂ xy = xeach point (p, q) of 2ˣ reappears as (q, p) on log₂ x
Point for point, the flipped exponential lands exactly on the plotted logarithm values.
point on y = 2^xswap the coordinatescheck: log₂ of x
(−1, 1/2)(1/2, −1)log₂(1/2) = −1
(0, 1)(1, 0)log₂(1) = 0
(1, 2)(2, 1)log₂(2) = 1
(2, 4)(4, 2)log₂(4) = 2
(3, 8)(8, 3)log₂(8) = 3
They had to agree: log₂ x undoes 2^x, so its graph is the exponential's graph with inputs and outputs swapped.
2q=p2^q = p and log⁡2(p)=q\log_2(p) = q say the same thing. So (q,p)(q, p) is on the exponential exactly when (p,q)(p, q) is on the logarithm.
RULE
Each multiplication of xx by aa adds exactly 11 to the output.
The definition
The logarithmic function with base aa (a>0a > 0, a≠1a \neq 1) is f(x)=log⁡a(x)f(x) = \log_a(x) for x>0x > 0; its graph is the reflection of y=axy = a^x in the line y=xy = x.
So the graph of y=log⁡2xy = \log_2 x passes through (1,0)(1, 0) and (2,1)(2, 1) and is y=2xy = 2^x seen in a mirror.
It is a slowly rising, bending curve that keeps climbing without bound.
Did you know: A googol to reach height 100
Height 100100 on y=log⁡10(x)y = \log_{10}(x) is reached only at x=10100x = 10^{100}, a googol, since log⁡10(10100)=100\log_{10}(10^{100}) = 100. That xx is far beyond the roughly 108010^{80} atoms estimated in the observable universe.
The curve is concave down throughout — it bends toward the xx-axis. Growth slows as xx increases: the gap between log⁡a(10)\log_a(10) and log⁡a(100)\log_a(100) equals the gap between log⁡a(1)\log_a(1) and log⁡a(10)\log_a(10).
In base 1010 the steps are easy to read off the axis: log⁡10(10)=1\log_{10}(10) = 1, log⁡10(100)=2\log_{10}(100) = 2 and log⁡10(1000)=3\log_{10}(1000) = 3. Each new unit of height needs one more zero on xx, so the horizontal distance covered by each unit grows from 99 to 9090 to 900900.
log2 x: each doubling of x adds 1 to the outputxy123456789−3−2−11234y = log₂ x(1, 0)(2, 1)(4, 2)(8, 3)each doubling of x adds 1 to ylog₂ x rises without bound, but ever more slowly
Equal steps from doubling

log₂ x passes through (1, 0), (2, 1), (4, 2) and (8, 3): every time x doubles, the output goes up by exactly 1. That is why the curve keeps rising forever yet flattens out: reaching the next unit of height takes twice as long a stretch of x as the last one.

Concave down everywhere: each step up costs more x than the one before.
Which description to use: the table for exact values, the mirror for the overall shape.
The mirror explains features at a glance: 2x2^x only gives positive outputs, so the logarithm only takes positive inputs; 2x2^x flattens toward the xx-axis, so the logarithm plunges along the yy-axis — the vertical asymptote.
For 0<a<10 < a < 1, the shape mirrors vertically. The curve descends from upper left toward lower right, still passing through (1,0)(1, 0) but now through (a,1)(a, 1) where a<1a < 1 means this point lies to the left of x=1x = 1.
The rest of the page covers domain and range on the graph, the vertical asymptote, key points, the effect of the base, and shifts, stretches and reflections.

Domain and Range on the Graph

The domain (0,∞)(0, \infty) appears as the horizontal extent of the graph. The curve exists only for x>0x > 0 — nothing appears on or to the left of the yy-axis.

The range (−∞,∞)(-\infty, \infty) appears as the vertical extent. The curve spans all yy-values, extending upward and downward without bound.

RULE
No horizontal asymptote exists. As x→∞x \to \infty, the function continues increasing (for a>1a > 1) or decreasing (for 0<a<10 < a < 1), never leveling off.

This contrasts with exponential functions, which have horizontal asymptotes.
The graph of y=log⁡axy = \log_a x. Move aa: for a>1a > 1 the curve rises, for 0<a<10 < a < 1 it falls. It never reaches the left of the yy-axis and never levels off. At a=1a = 1 there is no logarithm, and the curve disappears. Open in Calculator →
Whatever the base, the picture keeps the same two features: nothing to the left of the yy-axis, and no ceiling or floor. The base only decides how fast, and in which direction.

The Vertical Asymptote

The line x=0x = 0 is a vertical asymptote for every logarithmic function.

As x→0+x \to 0^+:
The Vertical Asymptote
lim⁡x→0+log⁡a(x)=−∞for a>1\lim_{x \to 0^+} \log_a(x) = -\infty \quad \text{for } a > 1
The Vertical Asymptote
lim⁡x→0+log⁡a(x)=+∞for 0<a<1\lim_{x \to 0^+} \log_a(x) = +\infty \quad \text{for } 0 < a < 1

The graph approaches the yy-axis but never touches or crosses it. For a>1a > 1, the curve plunges downward as it nears the asymptote. For 0<a<10 < a < 1, the curve rises upward.

RULE
Under horizontal transformations, the asymptote shifts. The function y=log⁡a(x−h)y = \log_a(x - h) has vertical asymptote at x=hx = h.
log2 x falls to minus infinity and log1/2 x rises to plus infinity as x approaches 0xy−1123456−4−3−2−11234log₂ xlog₁/₂ xlog₂ x → −∞ as x → 0⁺log₁/₂ x → +∞ as x → 0⁺The y-axis is a vertical asymptote: the graphs never reach x = 0
Opposite directions at the same wall

Near x = 0 both curves run along the y-axis without touching it. log₂ x plunges toward −∞ and log₁⁄₂ x climbs toward +∞, but neither ever reaches x = 0, where no power of the base gives 0. Away from the axis the two are mirror images across the x-axis.

Only a horizontal shift can move this asymptote.

Key Points

Three points anchor any logarithmic graph:

(1,0)(1, 0): Every logarithm satisfies log⁡a(1)=0\log_a(1) = 0. This point lies on every logarithmic curve regardless of base.

(a,1)(a, 1): Every logarithm satisfies log⁡a(a)=1\log_a(a) = 1. For y=log⁡2(x)y = \log_2(x), this is (2,1)(2, 1). For y=log⁡10(x)y = \log_{10}(x), this is (10,1)(10, 1). For y=ln⁡(x)y = \ln(x), this is (e,1)≈(2.718,1)(e, 1) \approx (2.718, 1).

(1/a,−1)(1/a, -1): Since log⁡a(1/a)=log⁡a(a−1)=−1\log_a(1/a) = \log_a(a^{-1}) = -1. For y=log⁡2(x)y = \log_2(x), this is (0.5,−1)(0.5, -1).

Pitfall: Copying the exponential's key points
Plotting (0,1)(0, 1) and (1,2)(1, 2) for y=log⁡2(x)y = \log_2(x) takes the points of y=2xy = 2^x, and log⁡2(0)\log_2(0) is not even defined. The logarithm swaps the coordinates: (1,0)(1, 0), (2,1)(2, 1) and (0.5,−1)(0.5, -1).

When sketching, plot these points first. The curve passes through all three, approaching the vertical asymptote as x→0+x \to 0^+.
DownloadPNG2×PDF
Layout
Anchor pointWhy it lies on every graphConcrete coordinates
(1, 0)logₐ(1) = 0 because a⁰ = 1 for every valid base(1, 0) for log₂, ln, log₁₀ — the same point on all of them
(a, 1)logₐ(a) = 1 because a¹ = a(2, 1) for log₂; (e, 1) ≈ (2.718, 1) for ln; (10, 1) for log₁₀
(1⁄a, −1)logₐ(1⁄a) = −1 because a⁻¹ = 1⁄a(0.5, −1) for log₂; (1⁄e, −1) ≈ (0.368, −1) for ln; (0.1, −1) for log₁₀
Key PointsLearn Math Class

Effect of Base on Shape

The base controls both direction and steepness.

For a>1a > 1: the function increases. Larger bases produce flatter curves. The graph of y=log⁡10(x)y = \log_{10}(x) rises more slowly than y=log⁡2(x)y = \log_2(x) because base 1010 requires larger xx-values to achieve the same output.

For 0<a<10 < a < 1: the function decreases. The graph of y=log⁡1/2(x)y = \log_{1/2}(x) is the reflection of y=log⁡2(x)y = \log_2(x) across the xx-axis. In general, log⁡1/a(x)=−log⁡a(x)\log_{1/a}(x) = -\log_a(x).

Pitfall: Expecting a larger base to climb faster
Carrying over from exponentials that a larger base rises faster puts log⁡10(x)\log_{10}(x) above log⁡2(x)\log_2(x) for x>1x > 1. But log⁡2(8)=3\log_2(8) = 3 while log⁡10(8)≈0.903\log_{10}(8) \approx 0.903: the larger base gives the flatter curve.

Comparing common and natural logarithms: ln⁡(x)\ln(x) rises faster than log⁡(x)\log(x) because e<10e < 10. The natural logarithm reaches output 11 at x=e≈2.718x = e \approx 2.718, while the common logarithm reaches 11 at x=10x = 10.

The table below pins down how four specific bases differ when graphed on the same axes — direction, anchor location, and where each falls in the steepness ordering.
DownloadPNG2×PDF
Layout
FunctionDirectionAnchor (a, 1)Steepness vs the others
y = log₂(x)increasing(2, 1)smallest base of the three increasing logs — steepest
y = ln(x)increasing(e, 1) ≈ (2.72, 1)between log₂ and log₁₀ — middle of the pack
y = log₁₀(x)increasing(10, 1)largest base of the three — flattest
y = log₍₁⁄₂₎(x)decreasing(0.5, 1)reflection of log₂ across the x-axis (since log₍₁⁄₂₎(x) = −log₂(x))
Effect of Base on ShapeLearn Math Class
The larger the base, the flatter the climb; a base below 11 turns the climb into a fall.

Horizontal Shifts

The function y=log⁡a(x−h)y = \log_a(x - h) shifts the graph horizontally by hh units.

When h>0h > 0, the shift is rightward. The vertical asymptote moves from x=0x = 0 to x=hx = h. The point (1,0)(1, 0) moves to (1+h,0)(1 + h, 0).

When h<0h < 0, the shift is leftward. The asymptote moves to x=hx = h (a negative value), and the domain becomes x>hx > h.

Example: y=log⁡2(x−3)y = \log_2(x - 3) has asymptote at x=3x = 3, passes through (4,0)(4, 0) and (5,1)(5, 1), and has domain x>3x > 3.

Pitfall: Keeping the old domain after a shift
Keeping x>0x > 0 for y=log⁡2(x−3)y = \log_2(x - 3) admits x=2x = 2, where log⁡2(−1)\log_2(-1) is undefined. The asymptote and the domain move with the graph: x>3x > 3.

Example: y=ln⁡(x+2)y = \ln(x + 2) has asymptote at x=−2x = -2, passes through (−1,0)(-1, 0) and (e−2,1)(e - 2, 1), and has domain x>−2x > -2.
log2(x - 3): log2 x moved 3 right, asymptote x = 3xy−112345678910−3−2−11234x = 3y = log₂(x − 3)(4, 0)(5, 1)dashed: y = log₂ xShifting right 3 moves the asymptote to x = 3 and (1, 0) to (4, 0)
Moving the asymptote

The section's log₂(x − 3) against the original log₂ x (dashed). Every point slides 3 units right: the asymptote moves from x = 0 to x = 3, (1, 0) becomes (4, 0) and (2, 1) becomes (5, 1). The domain becomes x > 3.

Subtracting inside the logarithm moves the graph right, not left.
The first example, drawn out: y=log⁡2(x−3)y = \log_2(x - 3) with its asymptote at x=3x = 3, its intercept at (4,0)(4, 0), the point (5,1)(5, 1), and the domain x>3x > 3 that came along with the shift.
DownloadPNG2×PDF
a shift to the right

Profile of the shifted logarithm

y=log⁡2(x−3)y = \log_2(x - 3)x > 3domain3shift right
2345711−2−10123domainundefineddefined, x > 3sign−+
Key points
1Asymptote
x = 3
2x-intercept
(4, 0)
3Point
(5, 1)
Global
Domainx>3x > 3moved with the graph
From log⁡2x\log_2 xshifted 3 right(1,0)(1, 0) moves to (4,0)(4, 0)
Not allowedx=2x = 2log⁡2(−1)\log_2(-1) is undefined
Profile of the shifted logarithm·/algebra/logarithms/graphsLearn Math Class
Everything that defined y=log⁡2xy = \log_2 x moved three units right together: the asymptote from x=0x = 0 to x=3x = 3, the intercept from (1,0)(1, 0) to (4,0)(4, 0), and the edge of the domain with them. The second example, y=ln⁡(x+2)y = \ln(x + 2), moves the same features two units left.

Vertical Shifts

The function y=log⁡a(x)+ky = \log_a(x) + k shifts the graph vertically by kk units.

When k>0k > 0, the shift is upward. When k<0k < 0, the shift is downward.

The vertical asymptote remains at x=0x = 0 — vertical shifts do not affect the asymptote location. The domain remains x>0x > 0.

Key points shift accordingly: (1,0)(1, 0) becomes (1,k)(1, k), and (a,1)(a, 1) becomes (a,1+k)(a, 1 + k).

Example: y=log⁡3(x)+2y = \log_3(x) + 2 passes through (1,2)(1, 2) and (3,3)(3, 3), with asymptote still at x=0x = 0.

Example: y=ln⁡(x)−1y = \ln(x) - 1 passes through (1,−1)(1, -1) and (e,0)(e, 0).
log3 x + 2: log3 x moved up 2, asymptote unchangedxy12345678910−3−2−112345y = log₃ xy = log₃ x + 2(1, 2)(3, 3)every point moves up 2; the asymptote stays at x = 0A vertical shift moves the anchors, not the asymptote
Lifting the curve

The section's log₃ x + 2 against log₃ x. Every point rises 2 units: (1, 0) becomes (1, 2) and (3, 1) becomes (3, 3). The asymptote is a vertical line, so a vertical shift leaves it at x = 0, and the domain is still x > 0.

Vertical changes act on outputs only; the domain is untouched.

Stretches and Compressions

The function y=c⋅log⁡a(x)y = c \cdot \log_a(x) stretches or compresses the graph vertically.

When ∣c∣>1|c| > 1, the graph stretches away from the xx-axis. When 0<∣c∣<10 < |c| < 1, the graph compresses toward the xx-axis.

The point (1,0)(1, 0) remains fixed — multiplying zero by any constant gives zero. The point (a,1)(a, 1) moves to (a,c)(a, c).

Example: y=2log⁡2(x)y = 2\log_2(x) passes through (1,0)(1, 0) and (2,2)(2, 2). The graph is stretched vertically by factor 22.

Example: y=12ln⁡(x)y = \frac{1}{2}\ln(x) passes through (1,0)(1, 0) and (e,0.5)(e, 0.5). The graph is compressed vertically by factor 1/21/2.

The asymptote remains at x=0x = 0, and the domain remains x>0x > 0.
2 log2 x: log2 x stretched vertically by 2, (1, 0) fixedxy123456789−4−3−2−11234567y = log₂ xy = 2 log₂ x(1, 0) stays fixed(2, 1)(2, 2)Every height doubles; only the zero at x = 1 cannot move
A vertical stretch by 2

The section's 2 log₂ x against log₂ x. Every output is doubled, so (2, 1) becomes (2, 2) and the curve is steeper everywhere. The point (1, 0) cannot move, because doubling 0 still gives 0, and the asymptote stays at x = 0.

A negative factor would add a reflection across the x-axis.

Reflections

Reflections flip the graph across an axis.

y=−log⁡a(x)y = -\log_a(x): reflection across the xx-axis. The point (a,1)(a, 1) becomes (a,−1)(a, -1). An increasing logarithm becomes decreasing, and vice versa. This is equivalent to changing the base: −log⁡a(x)=log⁡1/a(x)-\log_a(x) = \log_{1/a}(x).

y=log⁡a(−x)y = \log_a(-x): reflection across the yy-axis. The domain changes from x>0x > 0 to x<0x < 0. The asymptote stays at x=0x = 0 (still the yy-axis, now approached from the left). The point (a,1)(a, 1) becomes (−a,1)(-a, 1).

Pitfall: Mixing up the two reflections
Treating log⁡2(−x)\log_2(-x) like −log⁡2(x)-\log_2(x) draws the curve at x>0x > 0 through (2,−1)(2, -1), where log⁡2(−2)\log_2(-2) is undefined. A minus inside flips across the yy-axis: the curve lies at x<0x < 0, through points like (−4,2)(-4, 2).

Example: y=−log⁡2(x)y = -\log_2(x) passes through (1,0)(1, 0), (2,−1)(2, -1), and (4,−2)(4, -2).

Example: y=log⁡2(−x)y = \log_2(-x) passes through (−1,0)(-1, 0), (−2,1)(-2, 1), and has domain x<0x < 0.
-log2 x reflects across the x-axis; log2(-x) reflects across the y-axisxy−6−5−4−3−2−1123456−3−2−1123dashed: y = log₂ xy = −log₂ xy = log₂(−x)(2, −1)(−2, 1)−log₂ x flips across the x-axis; log₂(−x) flips across the y-axis
Two different reflections

The section's −log₂ x and log₂(−x) against log₂ x (dashed). Negating the output flips the curve across the x-axis: (2, 1) becomes (2, −1) and the function now decreases. Negating the input flips it across the y-axis: (2, 1) becomes (−2, 1) and the domain becomes x < 0.

The sign outside affects heights; the sign inside affects positions along x.

Writing Equations from Graphs

To determine the equation of a transformed logarithmic graph:

Step 1: Identify the vertical asymptote. If at x=hx = h, the function includes (x−h)(x - h) as the argument.

Step 2: Find a point on the graph, typically where the curve crosses a convenient location. Use this to determine the base or verify it.

Step 3: Check for vertical stretch/compression by comparing the vertical distance between known points.

Step 4: Check for vertical shift by noting if (1+h,k)(1 + h, k) lies on the curve for k≠0k \neq 0.

Example
A graph has asymptote at x=2x = 2, passes through (3,0)(3, 0) and (4,1)(4, 1).
Asymptote at x=2x = 2 suggests y=log⁡a(x−2)y = \log_a(x - 2). The point (3,0)(3, 0) confirms: log⁡a(3−2)=log⁡a(1)=0\log_a(3 - 2) = \log_a(1) = 0. The point (4,1)(4, 1) gives: log⁡a(2)=1\log_a(2) = 1, so a=2a = 2.
Equation: y=log⁡2(x−2)y = \log_2(x - 2).

Pitfall: Reversing the sign of h
Writing the asymptote x=2x = 2 as y=log⁡a(x+2)y = \log_a(x + 2) puts it at x=−2x = -2, and (3,0)(3, 0) then needs log⁡a(5)=0\log_a(5) = 0, which no base gives. The argument is x−hx - h: y=log⁡2(x−2)y = \log_2(x - 2).

In the example, the asymptote was read first and turned straight into the argument of the logarithm. Every later step built on that argument: the point (3,0)(3, 0) was checked against it, and the point (4,1)(4, 1) gave the base.

Read the asymptote first: it fixes the argument, and the points on the curve then pin down the rest.
The example of this section, read in the same order. Press Next to carry out one step at a time.
DownloadPNG2×PDF
Asymptote x=2x = 2, points (3,0)(3, 0) and (4,1)(4, 1)Step 1 of 4
Step
Asymptote x=2x = 2, points (3,0)(3, 0) and (4,1)(4, 1)
1
Read the vertical asymptoteAn asymptote at x=hx = h puts x−hx - h in the argument
y=log⁡a(x−2)y = \log_a(x - 2)
2
Test a point on the curveIt confirms the form so far
(3,0)(3, 0): log⁡a(1)=0\log_a(1) = 0
3
Use another point to find the base
(4,1)(4, 1): log⁡a(2)=1\log_a(2) = 1, so a=2a = 2
4
Write the equation
y=log⁡2(x−2)y = \log_2(x - 2)
From a graph to its equation·/algebra/logarithms/graphsLearn Math Class

Inverse Relationship with Exponential Graphs

    THEOREM
    The graphs of y=log⁡a(x)y = \log_a(x) and y=axy = a^x are reflections of each other across the line y=xy = x.

    Did you know: Base 2\sqrt{2} meets its logarithm twice
    y=2xy = 2^x and y=log⁡2(x)y = \log_2(x) never meet, because 2x>x2^x > x for every xx. With the smaller base 2\sqrt{2} the curves cross twice, at (2,2)(2, 2) and (4,4)(4, 4), since (2)2=2(\sqrt{2})^2 = 2 and (2)4=4(\sqrt{2})^4 = 4.

    Every point (p,q)(p, q) on the logarithmic curve corresponds to a point (q,p)(q, p) on the exponential curve. The curves intersect the line y=xy = x at the same location only if ac=ca^c = c for some cc.

    For a base above 11 both curves rise, and a rising curve can meet its mirror image only on the mirror line. So the two graphs meet exactly where the exponential curve meets the line y=xy = x, and whether that happens at all depends on how fast axa^x grows.

    Asymptote correspondence:
  • The exponential y=axy = a^x has horizontal asymptote y=0y = 0
  • The logarithm y=log⁡a(x)y = \log_a(x) has vertical asymptote x=0x = 0

  • Domain and range exchange:
  • axa^x: domain (−∞,∞)(-\infty, \infty), range (0,∞)(0, \infty)
  • log⁡a(x)\log_a(x): domain (0,∞)(0, \infty), range (−∞,∞)(-\infty, \infty)

  • Graphing both functions on the same axes with the line y=xy = x demonstrates this inverse relationship visually. The symmetry confirms that each function undoes the other.
The exponential axa^x (blue) and the logarithm log⁡ax\log_a x (amber) are mirror images in the line y=xy = x. Lower aa below about 1.441.44 and the two curves meet, on the mirror line; above that they never touch. Open in Calculator →
Whatever one curve does along the xx-axis, the other does along the yy-axis. That is all an inverse is.

Summary of Transformations

The transformations covered above — horizontal and vertical shifts, vertical stretches, and reflections across each axis — combine in any sequence to produce arbitrary logarithmic graphs. The table below collects each transformation in one place: its form, its effect on the graph, and the new location of the anchor point (a,1)(a, 1). Use it as a reference while sketching transformed graphs or reading equations off of them.
DownloadPNG2×PDF
Layout
TransformationFormEffect on the graph(a, 1) becomes
Horizontal shifty = logₐ(x − h)shifts h units right (h > 0); asymptote moves to x = h; domain becomes x > h(a + h, 1)
Vertical shifty = logₐ(x) + kshifts k units up (k > 0); asymptote and domain unchanged(a, 1 + k)
Vertical stretchy = c · logₐ(x)scales y-values by factor c; (1, 0) stays fixed; |c| > 1 stretches, |c| < 1 compresses(a, c)
Reflection in x-axisy = −logₐ(x)flips up ↔ down; an increasing log becomes decreasing; equivalent to log_{1/a}(a, −1)
Reflection in y-axisy = logₐ(−x)flips left ↔ right; domain becomes x < 0; asymptote still the y-axis(−a, 1)
Summary of TransformationsLearn Math Class

Common Pitfalls

Five mistakes account for most wrong sketches and wrong equations of logarithmic graphs. Each one is marked where it happens in the sections above; here each is worked through in full, with the wrong and the right working side by side.
DownloadPNG2×PDF
1Copying the exponential's key points
When sketching y=log⁡a(x)y = \log_a(x), the familiar anchor points of y=axy = a^x are plotted instead of the logarithm's own.
Wrong turn
Error here
For y=log⁡2(x)y = \log_2(x), the points (0,1)(0, 1), (1,2)(1, 2) and (−1,0.5)(-1, 0.5) are plotted, and the curve is drawn through them.
Right path
The logarithm is the inverse of the exponential, so every point (p,q)(p, q) of y=2xy = 2^x becomes (q,p)(q, p). The anchors are (1,0)(1, 0), (2,1)(2, 1) and (0.5,−1)(0.5, -1).
Why it happensExponential graphs are usually learned first, and their anchors (0,1)(0, 1) and (1,a)(1, a) feel like the natural starting points for any curve with base aa.
How to checkSubstitute the xx-coordinate. log⁡2(0)\log_2(0) is undefined, so (0,1)(0, 1) cannot lie on the curve, and log⁡2(1)=0\log_2(1) = 0, not 22, so neither can (1,2)(1, 2). For (2,1)(2, 1): log⁡2(2)=1\log_2(2) = 1.
2Expecting a larger base to climb faster
For exponentials, 10x10^x rises faster than 2x2^x. Carried over to logarithms, this puts log⁡10(x)\log_{10}(x) above log⁡2(x)\log_2(x) for x>1x > 1.
Wrong turn
Error here
Since 10>210 > 2, the curve y=log⁡10(x)y = \log_{10}(x) is drawn steeper, so log⁡10(8)\log_{10}(8) is expected to be more than log⁡2(8)=3\log_2(8) = 3.
Right path
log⁡10(8)≈0.903\log_{10}(8) \approx 0.903, far below 33. In general log⁡10(x)=log⁡2(x)log⁡2(10)≈log⁡2(x)3.322\log_{10}(x) = \frac{\log_2(x)}{\log_2(10)} \approx \frac{\log_2(x)}{3.322}, so for x>1x > 1 the base-1010 curve is the flatter one.
Why it happensThe logarithm is the inverse of the exponential, and inverting reverses the comparison. A larger base makes the exponential reach a given height sooner, so it makes the logarithm need a larger xx to reach the same height.
How to checkUse the anchor (a,1)(a, 1). log⁡2(x)\log_2(x) reaches height 11 at x=2x = 2, log⁡10(x)\log_{10}(x) only at x=10x = 10; the curve that reaches 11 first is the steeper one.
3Keeping the old domain after a shift
The graph is shifted horizontally, but the domain x>0x > 0 and the asymptote x=0x = 0 are copied from y=log⁡a(x)y = \log_a(x).
Wrong turn
Error here
y=log⁡2(x−3)y = \log_2(x - 3) is given the domain x>0x > 0 and the asymptote x=0x = 0, so values like x=2x = 2 are plotted.
Right path
The argument must be positive, x−3>0x - 3 > 0, so the domain is x>3x > 3 and the asymptote is x=3x = 3. At x=2x = 2 the argument is −1-1, and log⁡2(−1)\log_2(-1) is undefined.
Why it happens"x>0x > 0" is remembered as a fact about logarithms, when the condition is really about the argument.
How to checkSet the argument equal to 00 and solve. x−3=0x - 3 = 0 gives x=3x = 3, which is the asymptote. A value just to its right is defined: x=3.5x = 3.5 gives log⁡2(0.5)=−1\log_2(0.5) = -1.
4Mixing up the two reflections
The graphs of y=−log⁡a(x)y = -\log_a(x) and y=log⁡a(−x)y = \log_a(-x) are treated as the same curve.
Wrong turn
Error here
y=log⁡2(−x)y = \log_2(-x) is drawn as the flip across the xx-axis, through (1,0)(1, 0), (2,−1)(2, -1) and (4,−2)(4, -2), on the domain x>0x > 0.
Right path
The minus inside acts on the input. The argument −x-x must be positive, so x<0x < 0, and the curve passes through (−1,0)(-1, 0), (−2,1)(-2, 1) and (−4,2)(-4, 2), the flip across the yy-axis. The points (2,−1)(2, -1) and (4,−2)(4, -2) belong to y=−log⁡2(x)y = -\log_2(x), where the minus outside acts on the heights.
Why it happensBoth formulas contain the same logarithm, the same xx and one minus sign. Only the position of the sign differs.
How to checkSubstitute a point. In y=log⁡2(−x)y = \log_2(-x), x=2x = 2 gives log⁡2(−2)\log_2(-2), which is undefined, so the curve cannot lie at x=2x = 2. At x=−4x = -4 it gives log⁡2(4)=2\log_2(4) = 2.
5Reversing the sign of h
An asymptote at x=hx = h is turned into the argument x+hx + h instead of x−hx - h. The same slip, in the other direction, shifts the graph of y=log⁡a(x−3)y = \log_a(x - 3) to the left.
Wrong turn
Error here
The graph with asymptote x=2x = 2 through (3,0)(3, 0) and (4,1)(4, 1) is written as y=log⁡a(x+2)y = \log_a(x + 2). The point (3,0)(3, 0) then needs log⁡a(5)=0\log_a(5) = 0, which no base satisfies, since a0=1a^0 = 1.
Right path
The argument is x−2x - 2. The point (3,0)(3, 0) gives log⁡a(1)=0\log_a(1) = 0, true for every base, and (4,1)(4, 1) gives log⁡a(2)=1\log_a(2) = 1, so a=2a = 2 and y=log⁡2(x−2)y = \log_2(x - 2).
Why it happensA minus sign usually suggests moving left or down. Inside the argument, the graph moves to where the argument becomes 00, and x−2=0x - 2 = 0 at x=2x = 2, to the right.
How to checkSet the argument equal to 00. For x+2x + 2 that gives x=−2x = -2, which is not where the graph's asymptote is; for x−2x - 2 it gives x=2x = 2, which is.
Common pitfalls with logarithmic graphs·/algebra/logarithms/graphsLearn Math Class
Four of the five slips come back to the argument of the logarithm, the expression inside the brackets. It must be positive, which fixes the domain, and it is 00 exactly on the vertical asymptote. Setting the argument to 11 and to the base aa gives the points where the logarithm equals 00 and 11, which is enough to place the curve. The fifth slip, about the base, is settled by the same anchor point: the larger the base, the further right the curve reaches height 11.

Logarithmic Graphs FAQ

Is −log⁡2(x)-\log_2(x) the same as log⁡1/2(x)\log_{1/2}(x)?

+
Yes, they are the same function. Reflecting a logarithm across the xx-axis is identical to inverting its base: −log⁡a(x)=log⁡1/a(x)-\log_a(x) = \log_{1/a}(x). Both pass through (1,0)(1, 0) and send (2,1)(2, 1) to (2,−1)(2, -1). This is why every base between 00 and 11 produces a decreasing curve, since such a graph is the mirror image of the increasing one with the reciprocal base.Read more →

Is stretching a logarithmic graph the same as changing its base?

+
Yes. A vertical stretch by a factor cc is exactly a change of base, since clog⁡a(x)=log⁡a1/c(x)c\log_a(x) = \log_{a^{1/c}}(x), so 2log⁡2(x)2\log_2(x) is the same function as log⁡2(x)\log_{\sqrt{2}}(x). Steepness has a single source: every logarithm is a constant multiple of ln⁡(x)\ln(x). Different bases are not different shapes, only one curve at different vertical scales.Read more →

Why does log⁡2(−x)\log_2(-x) have a graph at all?

+
Because −x-x is positive whenever xx is negative, and it is the argument that must be positive, not the variable. The domain becomes x<0x < 0, so the curve lies entirely left of the yy-axis, passing through (−1,0)(-1, 0) and (−2,1)(-2, 1). The asymptote is still the yy-axis, now approached from the left.Read more →

Does a logarithmic graph level off to a horizontal asymptote?

+
No. The curve flattens, but it never stops rising: for a>1a > 1 every height is reached somewhere, so there is no horizontal asymptote, unlike the exponential's y=0y = 0. On y=log⁡10(x)y = \log_{10}(x) each new unit of height costs ten times as much xx as the last, 99 then 9090 then 900900, yet height 100100 still arrives, at x=10100x = 10^{100}, a googol.Read more →

Do the graphs of axa^x and log⁡a(x)\log_a(x) ever cross?

+
It depends on the base. For a base above 11 both curves rise, and a rising curve can meet its mirror image in y=xy = x only on that line, so the graphs meet exactly where ax=xa^x = x. Since 2x>x2^x > x for every xx, the graphs of 2x2^x and log⁡2(x)\log_2(x) never meet. With base 2\sqrt{2} they cross twice, at (2,2)(2, 2) and (4,4)(4, 4), because (2)2=2(\sqrt{2})^2 = 2 and (2)4=4(\sqrt{2})^4 = 4.Read more →