Tutorials › Calculus I › Logarithmic Graphs and Their Asymptotes

Exponential and Logarithmic Models · Tutorial 90 of 1495

Logarithmic Graphs and Their Asymptotes

Use the inverse relationship between logarithms and exponentials to identify and sketch the key features of \(y=\log_b(x)\).

Beginner 9 min read

What You'll Learn

  • State the conditions on the base \(b\) for a logarithmic function.
  • Determine the domain and range of \(y=\log_b(x)\).
  • Find its intercept and explain why it has no \(y\)-intercept.
  • Identify the vertical asymptote and describe the graph's behavior near it.
  • Decide whether the graph is increasing or decreasing from the base.
  • Use exact logarithm values to build and check points for a sketch.

Introduction

A logarithmic graph describes how the exponent changes as a positive input changes. Its shape depends on the base: some logarithmic functions increase from left to right, while others decrease. In either case, the graph is confined to positive \(x\)-values and approaches the \(y\)-axis without touching it.

We will examine the graph of \(y=\log_b(x)\), where \(b\) is a fixed base. The inverse relationship between logarithms and exponentials gives a direct way to find its domain, range, intercept, asymptote, and direction of change.

The Logarithmic Function and Its Base

A logarithm \(\log_b(x)\) is the exponent to which \(b\) must be raised to obtain \(x\). The base must be positive and cannot equal \(1\). Also, the input \(x\) must be positive.

Definition: For a fixed real number \(b>0\) with \(b\ne 1\), the logarithmic function \(y=\log_b(x)\) is defined for \(x>0\). Its value \(y\) is the unique real number satisfying \(b^y=x\).

In other words, \(y=\log_b(x)\) and \(b^y=x\) express the same relationship. The exponential function \(b^y\) is always positive, so no logarithm with base \(b\) can have zero or a negative number as its input. Conversely, every positive input \(x\) has a logarithm, because it can be written as a power of \(b\).

The restriction \(b\ne 1\) is essential. If \(b=1\), then \(1^y=1\) for every real \(y\), so the equation \(1^y=x\) would have no solution for \(x\ne 1\) and would not have a unique solution for \(x=1\). It would not define a logarithmic function on the positive real numbers.

Domain, Range, and Intercept

The logarithm's domain follows from the requirement \(x>0\). Its range follows by considering the output: for every real number \(y\), the value \(x=b^y\) is positive, and the definition then gives \(\log_b(x)=y\). Thus every real number occurs as an output.

The graph crosses the \(x\)-axis when \(y=0\). Since \(b^0=1\), the logarithm of \(1\) is \(0\), so the intercept is \((1,0)\). There is no \(y\)-intercept: the \(y\)-axis has \(x=0\), and \(x=0\) is outside the domain.

Key features: For every \(b>0\) with \(b\ne 1\), the graph of \(y=\log_b(x)\) has domain \((0,\infty)\), range \(\mathbb{R}\), and \(x\)-intercept \((1,0)\). It has no \(y\)-intercept.

The Vertical Asymptote

The graph lies only to the right of the \(y\)-axis. As \(x\) gets closer to zero through positive values, the logarithm's output grows without bound in one direction or the other. This makes the vertical line \(x=0\) a vertical asymptote.

Definition: A vertical line \(x=a\) is a vertical asymptote of a graph if, as the graph's \(x\)-values approach \(a\) from within the domain, the corresponding \(y\)-values become unbounded above or below.

For a logarithmic graph, \(x=0\) is the only vertical asymptote. The direction in which the graph rises or falls near this line depends on whether \(b\) is greater than or less than \(1\). In both cases, the graph does not reach \(x=0\), because \(0\) is not in its domain.

Why the Base Determines Whether the Graph Increases or Decreases

The exponential function \(b^y\) is increasing when \(b>1\) and decreasing when \(0<b<1\). A logarithm reverses the roles of the input and output in the equation \(b^y=x\), but whether its graph increases or decreases still follows from the behavior of the exponential function. Here is a direct argument.

Theorem: If \(b>1\), then \(y=\log_b(x)\) is strictly increasing on \((0,\infty)\). If \(0<b<1\), then it is strictly decreasing on \((0,\infty)\).

To prove this, take any positive \(x_1<x_2\), and set \(y_1=\log_b(x_1)\) and \(y_2=\log_b(x_2)\). By the definition of logarithm, \(b^{y_1}=x_1\) and \(b^{y_2}=x_2\). Therefore \(b^{y_1}<b^{y_2}\). When \(b>1\), the exponential function is increasing, so this inequality requires \(y_1<y_2\). When \(0<b<1\), the exponential function is decreasing, so the same inequality requires \(y_1>y_2\). These are exactly the definitions of an increasing and a decreasing function, respectively.

The behavior near the asymptote is consistent with this result. If \(b>1\), inputs near zero give very negative logarithms, while large inputs give positive logarithms. If \(0<b<1\), inputs near zero give very positive logarithms, while large inputs give negative logarithms.

Building and Checking Points

To find useful points for a sketch, choose an exponent \(y\), calculate \(x=b^y\), and plot \((x,y)\). This method works because the resulting pair satisfies the defining equation \(b^y=x\), so \(y=\log_b(x)\). It often produces exact points without a calculator.

Worked Example: Graph \(y=\log_2(x)\)

Here the base is \(b=2\), so \(b>1\). The graph is increasing. Its domain is \((0,\infty)\), its range is \(\mathbb{R}\), and its \(x\)-intercept is \((1,0)\). It has no \(y\)-intercept and has vertical asymptote \(x=0\).

To find exact points, choose \(y=-2,-1,0,1,2\) and calculate \(x=2^y\):

$$ \begin{aligned} y=-2 &: \quad x=2^{-2}=\frac{1}{4},\\ y=-1 &: \quad x=2^{-1}=\frac{1}{2},\\ y=0 &: \quad x=2^0=1,\\ y=1 &: \quad x=2^1=2,\\ y=2 &: \quad x=2^2=4. \end{aligned} $$

The points are \(\left(\frac14,-2\right)\), \(\left(\frac12,-1\right)\), \((1,0)\), \((2,1)\), and \((4,2)\). Check them by substituting each \(y\)-value into \(2^y=x\): for example, \(2^{-2}=\frac14\), \(2^1=2\), and \(2^2=4\). Each pair therefore satisfies \(y=\log_2(x)\). The graph rises from very negative values near \(x=0\), passes through \((1,0)\), and continues upward as \(x\) increases.

Worked Example: Graph \(y=\log_{\frac13}(x)\)

The base \(b=\frac13\) satisfies \(0<b<1\), so this graph is decreasing. As with every logarithmic graph, its domain is \((0,\infty)\), its range is \(\mathbb{R}\), its \(x\)-intercept is \((1,0)\), it has no \(y\)-intercept, and its vertical asymptote is \(x=0\).

Choose \(y=-2,-1,0,1,2\). Since \(x=(\frac13)^y\), the corresponding inputs are:

$$ \begin{aligned} y=-2 &: \quad x=\left(\frac13\right)^{-2}=3^2=9,\\ y=-1 &: \quad x=\left(\frac13\right)^{-1}=3,\\ y=0 &: \quad x=\left(\frac13\right)^0=1,\\ y=1 &: \quad x=\left(\frac13\right)^1=\frac13,\\ y=2 &: \quad x=\left(\frac13\right)^2=\frac19. \end{aligned} $$

Thus the points are \((9,-2)\), \((3,-1)\), \((1,0)\), \((\frac13,1)\), and \((\frac19,2)\). Check, for example, that \((\frac13)^2=\frac19\) and \((\frac13)^{-1}=3\); these verify the points \((\frac19,2)\) and \((3,-1)\). The points also show the decreasing behavior: as \(x\) moves from \(\frac19\) to \(9\), \(y\) moves from \(2\) down to \(-2\). Near \(x=0\), the output grows upward rather than downward.

Worked Example: Identify Features from Exact Points

Suppose a logarithmic graph contains the points \((4,1)\), \((1,0)\), and \((\frac14,-1)\), and is of the form \(y=\log_b(x)\). Use the points to identify its base and describe the graph.

At the point \((4,1)\), \(y=1\), so the defining equation \(b^y=x\) gives \(b^1=4\). Therefore \(b=4\). Check with the point \((\frac14,-1)\): \(4^{-1}=\frac14\), as required. The point \((1,0)\) also checks because \(4^0=1\).

The function is therefore \(y=\log_4(x)\). Since \(4>1\), it is increasing. Its domain is \((0,\infty)\), its range is \(\mathbb{R}\), its \(x\)-intercept is \((1,0)\), and it has no \(y\)-intercept. Its vertical asymptote is \(x=0\). The three given points agree with each feature: all have positive \(x\)-coordinates, the intercept occurs at \((1,0)\), and the \(y\)-values increase as the displayed \(x\)-values increase from \(\frac14\) to \(4\).

Comparing the Two Possible Shapes

The base separates logarithmic graphs into two cases. The domain, range, intercept, and asymptote do not change between the cases; only the direction of the graph changes. The table summarizes the features that are most useful when sketching.

Feature \(b>1\) \(0<b<1\)
Domain \((0,\infty)\) \((0,\infty)\)
Range \(\mathbb{R}\) \(\mathbb{R}\)
\(x\)-intercept \((1,0)\) \((1,0)\)
Vertical asymptote \(x=0\) \(x=0\)
Behavior near \(x=0\) Falls without bound Rises without bound
Behavior as \(x\) increases Increases Decreases

A Common Mistake

A frequent error is to assume that every logarithmic graph increases because logarithms are being thought of as inverses of increasing exponential functions. That assumption overlooks bases between \(0\) and \(1\).

For example, it would be wrong to claim that \(y=\log_{\frac13}(x)\) increases because the input \(x\) increases. Check two inputs instead:

$$ \log_{\frac13}(1)=0 \qquad\text{and}\qquad \log_{\frac13}(3)=-1, $$

because \((\frac13)^0=1\) and \((\frac13)^{-1}=3\). As the input increases from \(1\) to \(3\), the output falls from \(0\) to \(-1\). The graph is decreasing, not increasing. The correction is to check the base first: \(b>1\) means increasing, while \(0<b<1\) means decreasing.

Sketching Checklist

For a reliable sketch, determine the base case before placing points. Then mark the fixed features and use exact powers to check the graph's shape.

1
Check the base.
Confirm \(b>0\) and \(b\ne1\); decide whether \(b>1\) or \(0<b<1\).
2
Mark the domain and asymptote.
Draw the graph only for \(x>0\), with vertical asymptote \(x=0\).
3
Mark the intercept and direction.
Plot \((1,0)\), then make the graph increasing for \(b>1\) or decreasing for \(0<b<1\).
4
Add checked points.
Choose convenient exponents \(y\), calculate \(x=b^y\), and verify each point with \(b^y=x\).

The graph's range is all real numbers, so it continues indefinitely upward and downward overall, even though its \(x\)-values remain positive. A careful sketch should show that it approaches the \(y\)-axis without crossing it.

Check Your Understanding

Answer these questions using the base and the defining relationship \(b^y=x\).

  1. For \(y=\log_5(x)\), state the domain, range, intercept, vertical asymptote, and direction of change.
  2. Does \(y=\log_{\frac14}(x)\) increase or decrease? What happens to its output as positive \(x\) approaches zero?
  3. Why does no logarithmic graph \(y=\log_b(x)\) have a \(y\)-intercept?
  4. Find two exact points on \(y=\log_3(x)\) other than \((1,0)\), and check each using the exponential equation.
  5. A graph \(y=\log_b(x)\) passes through \((8,3)\). Find \(b\), and state whether the graph increases or decreases.

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon