Unit 3, lesson 39

Graphs of Exponential and Logarithmic Functions

The shapes of exponential and logarithmic graphs, why they are mirror images, and how reflections and shifts move their key points, their asymptotes, their domains and their ranges.

  • Theory part 77
  • Practice part 78
  • Exponentials, e, and Logarithms

The graphs of y=2xy = 2^x and y=log⁡2xy = \log_2 x are mirror images of each other. Learn one shape and the other comes for free. Every shifted or flipped version is the same curve moved around, so if you keep track of one asymptote and a few labeled points, you can sketch any of them and read off its domain and range.

Key terms

The exponential graph

Definition Let b>0b > 0 with b≠1b \ne 1. The graph of y=bxy = b^x has these features.

  • The domain is R\mathbb{R} and the range is (0,∞)(0, \infty), so the graph lies entirely above the xx-axis and has no xx-intercept.
  • It passes through (−1,1b)\left(-1, \frac{1}{b}\right), (0,1)(0, 1) and (1,b)(1, b).
  • If b>1b > 1 the function is increasing, with bx→0b^x \to 0 as x→−∞x \to -\infty and bxb^x growing without bound as x→∞x \to \infty.
  • If 0<b<10 < b < 1 the function is decreasing, with bx→0b^x \to 0 as x→∞x \to \infty and bxb^x growing without bound as x→−∞x \to -\infty.
  • The line y=0y = 0, the xx-axis, is a horizontal asymptote.

In plain words An exponential graph hugs the xx-axis on one side and shoots up on the other. It always crosses the yy-axis at height 11.

Example Here are values of a growing and a decaying exponential.

xx−2-2−1-100112233
2x2^x14\frac{1}{4}12\frac{1}{2}11224488
(12)x\left(\frac{1}{2}\right)^x44221112\frac{1}{2}14\frac{1}{4}18\frac{1}{8}

Both graphs pass through (0,1)(0, 1) and stay above the xx-axis. The first rises from left to right and the second falls.

The logarithmic graph

Definition Let b>0b > 0 with b≠1b \ne 1. The graph of y=log⁡bxy = \log_b x has these features.

  • The domain is (0,∞)(0, \infty) and the range is R\mathbb{R}, so the graph lies entirely to the right of the yy-axis and has no yy-intercept.
  • It passes through (1b,−1)\left(\frac{1}{b}, -1\right), (1,0)(1, 0) and (b,1)(b, 1).
  • If b>1b > 1 the function is increasing. Its values decrease without bound as xx approaches 00 from the right, and increase without bound, but very slowly, as x→∞x \to \infty.
  • If 0<b<10 < b < 1 the function is decreasing. Its values increase without bound as xx approaches 00 from the right, and decrease without bound as x→∞x \to \infty.
  • The line x=0x = 0, the yy-axis, is a vertical asymptote.

In plain words With a base greater than 11, a logarithmic graph dives down along the yy-axis and then climbs slowly forever. Every logarithmic graph y=log⁡bxy = \log_b x crosses the xx-axis at x=1x = 1.

Example For y=log⁡2xy = \log_2 x a few exact values are enough to sketch the curve.

xx14\frac{1}{4}12\frac{1}{2}11224488
log⁡2x\log_2 x−2-2−1-100112233

The climb is slow. The graph only reaches height 1010 at x=1024x = 1024, and it reaches depth −10-10 already at x=11024x = \frac{1}{1024}, very close to the asymptote.

Reflection in the line y = x

Definition For b>0b > 0 with b≠1b \ne 1, a point (a,c)(a, c) lies on the graph of y=bxy = b^x exactly when (c,a)(c, a) lies on the graph of y=log⁡bxy = \log_b x, because

c=baexactly whena=log⁡bc.c = b^a \quad \text{exactly when} \quad a = \log_b c.

Swapping the coordinates of every point is the reflection in the line y=xy = x. So the two graphs are mirror images in that line, the horizontal asymptote y=0y = 0 of the exponential becomes the vertical asymptote x=0x = 0 of the logarithm, and the domain and range trade places.

In plain words Fold the picture along the diagonal line y=xy = x and the exponential graph lands exactly on the logarithmic graph. Each labeled point keeps its numbers but swaps their order.

Example On y=exy = e^x take the points

(−1,1e)≈(−1,0.368),(0,1),(1,e)≈(1,2.718).\begin{gathered} \left(-1, \tfrac{1}{e}\right) \approx (-1, 0.368), \\[0.4em] (0, 1), \\[0.4em] (1, e) \approx (1, 2.718). \end{gathered}

Swapping coordinates gives (1e,−1)\left(\frac{1}{e}, -1\right), (1,0)(1, 0) and (e,1)(e, 1) on y=ln⁡xy = \ln x. The asymptote y=0y = 0 of exe^x becomes the asymptote x=0x = 0 of ln⁡x\ln x.

Reflections in the axes

Definition For any function ff, the graph of y=−f(x)y = -f(x) is the reflection of the graph of y=f(x)y = f(x) in the xx-axis, which sends each point (a,c)(a, c) to (a,−c)(a, -c). The graph of y=f(−x)y = f(-x) is the reflection in the yy-axis, which sends (a,c)(a, c) to (−a,c)(-a, c). For b>0b > 0 with b≠1b \ne 1, two of these reflections give functions you already know,

b−x=(1b)x for every real x,−log⁡bx=log⁡1/bx for every x>0.\begin{gathered} b^{-x} = \left(\frac{1}{b}\right)^x \text{ for every real } x, \\[0.8em] -\log_b x = \log_{1/b} x \text{ for every } x > 0. \end{gathered}

The second identity holds because (1b)y=b−y\left(\frac{1}{b}\right)^y = b^{-y}, so (1b)y=x\left(\frac{1}{b}\right)^y = x exactly when −y=log⁡bx-y = \log_b x.

In plain words A minus sign outside the function flips the graph upside down. A minus sign on the input flips it left to right. A reflection in the xx-axis can move the range of an exponential below the axis, and a reflection in the yy-axis can move the domain of a logarithm to the left of the axis.

Example The expression −2x-2^x means −(2x)-\left(2^x\right), so the graph of y=−2xy = -2^x is y=2xy = 2^x flipped in the xx-axis. It passes through (−1,−12)(-1, -\frac{1}{2}), (0,−1)(0, -1) and (1,−2)(1, -2). It still has the asymptote y=0y = 0, but its range is (−∞,0)(-\infty, 0). The graph of y=log⁡2(−x)y = \log_2(-x) passes through (−12,−1)\left(-\frac{1}{2}, -1\right), (−1,0)(-1, 0) and (−2,1)(-2, 1). It still has the asymptote x=0x = 0, but its domain is (−∞,0)(-\infty, 0).

Translations

Definition For real numbers hh and kk, the graph of y=f(x−h)+ky = f(x - h) + k is the graph of y=f(x)y = f(x) shifted hh units to the right and kk units up, where a negative hh means a shift to the left and a negative kk a shift down. Each point (a,c)(a, c) moves to (a+h,c+k)(a + h, c + k), and each asymptote moves with the graph. In particular, for b>0b > 0 with b≠1b \ne 1,

y=bx−h+khas asymptote y=k,y=log⁡b(x−h)+khas asymptote x=h.\begin{gathered} y = b^{x - h} + k \\[0.4em] \text{has asymptote } y = k, \\[0.8em] y = \log_b(x - h) + k \\[0.4em] \text{has asymptote } x = h. \end{gathered}

In plain words Move the asymptote first, then move each labeled point by the same amounts. A vertical shift moves a horizontal asymptote and a horizontal shift leaves it in place, while for a vertical asymptote it is the other way around.

Example Write y=2x+1−3y = 2^{x + 1} - 3 as 2x−(−1)+(−3)2^{x - (-1)} + (-3), so h=−1h = -1 and k=−3k = -3. The asymptote drops to y=−3y = -3, and the points (0,1)(0, 1), (1,2)(1, 2), (2,4)(2, 4) of y=2xy = 2^x move to (−1,−2)(-1, -2), (0,−1)(0, -1), (1,1)(1, 1). The graph crosses the yy-axis at −1-1, and it crosses the xx-axis where 2x+1=32^{x + 1} = 3, at

x=log⁡23−1≈0.585.x = \log_2 3 - 1 \approx 0.585.

Similarly y=log⁡3(x−2)+1y = \log_3(x - 2) + 1 has the asymptote x=2x = 2, and the points (13,−1)\left(\frac{1}{3}, -1\right), (1,0)(1, 0), (3,1)(3, 1) of y=log⁡3xy = \log_3 x move to (73,0)\left(\frac{7}{3}, 0\right), (3,1)(3, 1), (5,2)(5, 2).

Domains and ranges

Definition Let b>0b > 0 with b≠1b \ne 1, and let a≠0a \ne 0, hh and kk be real constants.

  • The function y=a⋅bx−h+ky = a \cdot b^{x - h} + k has domain R\mathbb{R} and horizontal asymptote y=ky = k. Its range is (k,∞)(k, \infty) when a>0a > 0 and (−∞,k)(-\infty, k) when a<0a < 0.
  • The function y=alog⁡b(x−h)+ky = a \log_b(x - h) + k has domain (h,∞)(h, \infty), vertical asymptote x=hx = h and range R\mathbb{R}.

More generally, the domain of log⁡bg(x)\log_b g(x) is the set of xx in the domain of gg with g(x)>0g(x) > 0, which is how a reflection in the yy-axis moves a logarithm’s domain to the left of its asymptote.

In plain words For an exponential, find the horizontal asymptote and ask whether the graph lies above it or below it. For a logarithm, find the vertical asymptote and ask on which side the graph lives.

Example The function f(x)=4−2xf(x) = 4 - 2^x is y=2xy = 2^x reflected in the xx-axis and shifted up 44. Its asymptote is y=4y = 4, and since the graph was flipped below the asymptote, the range is (−∞,4)(-\infty, 4). It crosses the yy-axis at 33 and the xx-axis where 2x=42^x = 4, at x=2x = 2.

The function g(x)=ln⁡(3−x)g(x) = \ln(3 - x) needs 3−x>03 - x > 0, so its domain is (−∞,3)(-\infty, 3). It is y=ln⁡xy = \ln x reflected in the yy-axis and then shifted right 33, since ln⁡(−(x−3))=ln⁡(3−x)\ln(-(x - 3)) = \ln(3 - x). Its asymptote is x=3x = 3, its range is R\mathbb{R}, it is decreasing, and it crosses the xx-axis at x=2x = 2 and the yy-axis at ln⁡3≈1.099\ln 3 \approx 1.099.

Check yourself

  1. Give the domain, range and asymptote of y=5x−2+1y = 5^{x - 2} + 1, and find its yy-intercept.
Show the answer

The domain is R\mathbb{R}, the asymptote is y=1y = 1 and the range is (1,∞)(1, \infty). At x=0x = 0 the value is

5−2+1=2625=1.04.5^{-2} + 1 = \frac{26}{25} = 1.04.
  1. Find the inverse of f(x)=ex−1+2f(x) = e^{x - 1} + 2 and give the domain and range of both functions.
Show the answer

Solve y=ex−1+2y = e^{x - 1} + 2 for xx. Then ex−1=y−2e^{x - 1} = y - 2, so x=1+ln⁡(y−2)x = 1 + \ln(y - 2) and

f−1(x)=1+ln⁡(x−2).f^{-1}(x) = 1 + \ln(x - 2).

The function ff has domain R\mathbb{R} and range (2,∞)(2, \infty), and its inverse has domain (2,∞)(2, \infty) and range R\mathbb{R}. The asymptote y=2y = 2 of ff becomes the asymptote x=2x = 2 of its inverse.

  1. The graph of y=log⁡2xy = \log_2 x is shifted 44 units to the left and then reflected in the xx-axis. Write the new equation and give its domain, asymptote and xx-intercept.
Show the answer

The new equation is y=−log⁡2(x+4)y = -\log_2(x + 4). Its domain is (−4,∞)(-4, \infty) and its asymptote is x=−4x = -4. It crosses the xx-axis where log⁡2(x+4)=0\log_2(x + 4) = 0, that is where x+4=1x + 4 = 1, at x=−3x = -3.

How this lesson connects

Resources for this lesson