Euler Hall — free maths guides

Graph a logarithm by reflecting an exponential graph across y = x

State the vertical asymptote of a shifted logarithm. The idea in plain words, a worked example, and a check with the answers shown — part of the free Precalculus guides.

A mirror image of the exponential

The graph ofy=log⁡b(x)y=\log_b(x) is the graph ofy=bxy=b^x reflected in the liney=xy=x, because they are inverse functions. That single fact gives all the features:

  • - it is defined only forx>0x>0;
  • - it has a vertical asymptote atx=0x=0;
  • - it passes through(1,0)(1,0), becauseb0=1b^0=1;
  • - forb>1b>1 it rises, slowly at first and then ever more slowly.

The shape is the exponential's, turned on its side. Everything the exponential does with horizontal asymptotes, the logarithm does with vertical ones.

Why the asymptote is vertical

The exponential approaches the horizontal axis but never reaches it, because a positive base raised to any power is never zero.

Reflecting iny=xy=x exchanges the axes, so the horizontal asymptote of the exponential becomes the vertical asymptote of the logarithm. The value the exponential never reaches becomes the input the logarithm never accepts.

That is the cleanest way to remember which asymptote belongs to which, and it explains the domain restriction at the same time: the exponential's range is positive, so the logarithm's domain is positive.

Worked example

Describe the graph ofy=log⁡(x−3)+2y=\log(x-3)+2.

Step 1. The shift inside. The argument isx−3x-3, so the graph is the logarithm moved 3 units right.

Step 2. The asymptote. The argument vanishes atx=3x=3, so the vertical asymptote isx=3x=3.

Step 3. The domain. The argument must be positive:x>3x>3.

Step 4. The intercept. Sety=0y=0:log⁡(x−3)=−2\log(x-3)=-2, sox−3=10−2=0.01x-3=10^{-2}=0.01 andx=3.01x=3.01. The graph crosses the axis just to the right of the asymptote.

Step 5. The shape. Base 10 is above 1, so it rises — steeply near the asymptote, flattening out to the right.

By the end you can
  • State the vertical asymptote of a shifted logarithm
  • State the domain of a logarithm
  • Explain why the asymptote is vertical for a logarithm
Check yourself

(a) State the vertical asymptote ofy=log⁡(x−7)y=\log(x-7).

(b) State its domain.

(c) Where does it cross the horizontal axis?

Answers

(a)x=7x=7.

(b)x>7x>7.

(c) Atx=8x=8, becauselog⁡(1)=0\log(1)=0.

Work out where to start — free, no accountAnswer six real questions — free, no account