AP subjects/AP Precalculus/Exponential vs Logarithmic Functions Explorer
CED 2.10AP Precalculus

Exponential vs Logarithmic Functions Explorer

Use this free exponential vs logarithmic functions explorer to see why log⁡bx\log_b x is the inverse of bxb^x: change the base, slide a point along the exponential curve, and watch its mirror image move along the logarithm on the other side of the line y=xy = x.

Controls
basex

How to use the simulator

The grid runs from −5 to 5 on both axes. The teal curve is f(x)=bxf(x) = b^x, the coral curve is its inverse f−1(x)=log⁡bxf^{-1}(x) = \log_b x, and the dashed gray diagonal is the line y=xy = x. The legend reminds you of the asymptotes: y=0y = 0 for the exponential and x=0x = 0 for the logarithm.
  • base b: from 0.2 to 5 in steps of 0.1 (default 2). The panel at the top repeats the base and writes both functions, for example f(x) = 2ˣ and f⁻¹(x) = log_2(x).
  • point x: from −3 to 3 in steps of 0.1 (default 1). It places a teal dot at (x,bx)(x, b^x) on the exponential and a coral dot at (bx,x)(b^x, x) on the logarithm, joined by a dotted segment.
The readout line shows the pair, for example exp: (1.5, 2.828) ⇄ log: (2.828, 1.5), rounded to three decimals. Notice that the dotted segment always crosses y=xy = x at a right angle: the two points are reflections of each other.
Try b = 1. The exponential becomes the horizontal line y=1y = 1, the log curve disappears, and a note says the base must be greater than 0 and not equal to 1. (The readout line still prints a log pair at b = 1; ignore it, because log⁡1x\log_1 x does not exist.) For large bases and large x the highlighted point can sit beyond the edge of the grid, since 53=1255^3 = 125.

The equations

For a base b>0b > 0, b≠1b \ne 1, the logarithm is defined by y=log⁡bx⟺by=x.y = \log_b x \quad\Longleftrightarrow\quad b^y = x. So a logarithm answers the question "what exponent on b gives x?" Composing the two functions undoes each one: log⁡b(bx)=x\log_b(b^x) = x for every real x, and blog⁡bx=xb^{\log_b x} = x for every x>0x > 0.
  • Inputs and outputs swap. If (a,c)(a, c) is on y=bxy = b^x, then (c,a)(c, a) is on y=log⁡bxy = \log_b x.
  • Domain and range swap. bxb^x has domain all reals and range y>0y > 0; log⁡bx\log_b x has domain x>0x > 0 and range all reals.
  • Asymptotes swap. The horizontal asymptote y=0y = 0 of bxb^x becomes the vertical asymptote x=0x = 0 of log⁡bx\log_b x.
  • Anchor points swap. bxb^x passes through (0,1)(0, 1) and (1,b)(1, b); log⁡bx\log_b x passes through (1,0)(1, 0) and (b,1)(b, 1).
  • Increasing or decreasing together. If b>1b > 1, both functions increase; if 0<b<10 < b < 1, both decrease.
Rates differ, too. For b>1b > 1, the exponential's output grows by a constant factor b over equal-length input intervals, while the logarithm's output grows by a constant amount each time the input is multiplied by b. That contrast is how AP Precalculus distinguishes the two models from data.

Worked example

Let f(x)=2xf(x) = 2^x. Find f−1(2.828)f^{-1}(2.828) and describe the matching points.
Step 1: write the inverse. f−1(x)=log⁡2xf^{-1}(x) = \log_2 x, so we need the exponent y with 2y=2.8282^y = 2.828.
Step 2: recognize the power. 2.828≈22=21⋅21/2=21.52.828 \approx 2\sqrt{2} = 2^{1} \cdot 2^{1/2} = 2^{1.5}. So log⁡22.828≈1.5\log_2 2.828 \approx 1.5. (A calculator gives ln⁡2.828/ln⁡2≈1.4998\ln 2.828 / \ln 2 \approx 1.4998, the difference coming from rounding 2.828.)
Step 3: match the points. (1.5, 2.828)(1.5,\ 2.828) lies on y=2xy = 2^x and (2.828, 1.5)(2.828,\ 1.5) lies on y=log⁡2xy = \log_2 x. They are reflections across y=xy = x.
Check it in the simulator: keep b = 2 and set point x to 1.5. The readout shows exp: (1.5, 2.828) ⇄ log: (2.828, 1.5).
Follow-up with a base below 1. Set b = 0.5 and x = −2. Since 0.5−2=22=40.5^{-2} = 2^2 = 4, the readout shows (−2, 4) on the exponential and (4, −2) on the logarithm, so log⁡0.54=−2\log_{0.5} 4 = -2. Both curves now fall from left to right: the exponential decays toward y=0y = 0 and the logarithm drops toward −∞-\infty as x grows.

Common mistakes on the AP exam

  • Reflecting across the wrong line. Inverse graphs mirror across y=xy = x, not across the x-axis or y-axis.
  • Swapping the asymptotes wrongly. log⁡bx\log_b x has a vertical asymptote at x=0x = 0; it has no horizontal asymptote, even though it grows very slowly.
  • Logs of zero or negatives. log⁡bx\log_b x is undefined for x≤0x \le 0. When solving equations, check every answer against the domain.
  • Writing the definition backward. log⁡28=3\log_2 8 = 3 means 23=82^3 = 8, not 32=83^2 = 8 or 83=28^3 = 2.
  • Treating f−1f^{-1} as a reciprocal. f−1(x)f^{-1}(x) means the inverse function, not 1f(x)\frac{1}{f(x)}. 12x=2−x\frac{1}{2^x} = 2^{-x}, which is a different curve.
  • Assuming a base below 1 flips only one curve. When 0<b<10 < b < 1, both the exponential and the logarithm are decreasing.

When the AP exam uses this

Topic 2.10 is the bridge into the logarithm half of Unit 2. Expect questions that ask you to read an inverse value from a table of an exponential function, to state the domain or range of a logarithmic function, to convert between by=xb^y = x and log⁡bx=y\log_b x = y, or to choose between an exponential and a logarithmic model from how the outputs change.
Embed this simulator on your class page

Free for classroom use. Paste this into your site, LMS page or blog; keep the credit link under it.