Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Logarithmic Graphs






Visualizing the Inverse of Exponentials

The graph of y=loga(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.



The Basic Shape

The graph of y=loga(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.

The curve is concave down throughout — it bends toward the xx-axis. Growth slows as xx increases: the gap between loga(10)\log_a(10) and loga(100)\log_a(100) equals the gap between loga(1)\log_a(1) and loga(10)\log_a(10). Each multiplication of xx by aa adds exactly 11 to the output.

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.

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.

No horizontal asymptote exists. As xx \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 Vertical Asymptote

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

As x0+x \to 0^+:
limx0+loga(x)=for a>1\lim_{x \to 0^+} \log_a(x) = -\infty \quad \text{for } a > 1

limx0+loga(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.

Under horizontal transformations, the asymptote shifts. The function y=loga(xh)y = \log_a(x - h) has vertical asymptote at x=hx = h.

Key Points

Three points anchor any logarithmic graph:

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

(a,1)(a, 1): Every logarithm satisfies loga(a)=1\log_a(a) = 1. For y=log2(x)y = \log_2(x), this is (2,1)(2, 1). For y=log10(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 loga(1/a)=loga(a1)=1\log_a(1/a) = \log_a(a^{-1}) = -1. For y=log2(x)y = \log_2(x), this is (0.5,1)(0.5, -1).

When sketching, plot these points first. The curve passes through all three, approaching the vertical asymptote as x0+x \to 0^+.

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=log10(x)y = \log_{10}(x) rises more slowly than y=log2(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=log1/2(x)y = \log_{1/2}(x) is the reflection of y=log2(x)y = \log_2(x) across the xx-axis. In general, log1/a(x)=loga(x)\log_{1/a}(x) = -\log_a(x).

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=e2.718x = e \approx 2.718, while the common logarithm reaches 11 at x=10x = 10.

Horizontal Shifts

The function y=loga(xh)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=log2(x3)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.

Example: y=ln(x+2)y = \ln(x + 2) has asymptote at x=2x = -2, passes through (1,0)(-1, 0) and (e2,1)(e - 2, 1), and has domain x>2x > -2.

Vertical Shifts

The function y=loga(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=log3(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).

Stretches and Compressions

The function y=cloga(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=2log2(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.

Reflections

Reflections flip the graph across an axis.

y=loga(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: loga(x)=log1/a(x)-\log_a(x) = \log_{1/a}(x).

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

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

Example: y=log2(x)y = \log_2(-x) passes through (1,0)(-1, 0), (2,1)(-2, 1), and has domain x<0x < 0.

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 (xh)(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 k0k \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=loga(x2)y = \log_a(x - 2). The point (3,0)(3, 0) confirms: loga(32)=loga(1)=0\log_a(3 - 2) = \log_a(1) = 0. The point (4,1)(4, 1) gives: loga(2)=1\log_a(2) = 1, so a=2a = 2.

Equation: y=log2(x2)y = \log_2(x - 2).

Inverse Relationship with Exponential Graphs

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

    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.

    Asymptote correspondence:
  • y=axy = a^x has horizontal asymptote y=0y = 0
  • y=loga(x)y = \log_a(x) has vertical asymptote x=0x = 0

  • Domain and range exchange:
  • axa^x: domain (,)(-\infty, \infty), range (0,)(0, \infty)
  • loga(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.