Functions

Inverse of an Exponential Function

The inverse of f(x)=bxf(x)=b^x is the logarithmic function f−1(x)=log⁡bxf^{-1}(x)=\log_b x, valid for b>0b>0 and b≠1b\neq 1. For a shifted or stretched version, swap xx and yy, isolate the power, then take a logarithm with the same base.

f(x)=bx ⟹ f−1(x)=log⁡bxf(x)=b^{x}\ \Longrightarrow\ f^{-1}(x)=\log_{b}x

The whole topic comes down to one question: which exponent produces this number? Once you hear a logarithm that way, the algebra stops feeling like a rule to memorize and starts feeling like unwrapping a gift in the reverse order it was wrapped.

Why is the inverse of an exponential function a logarithm?

Start with y=bxy=b^x and swap the variables, as you would for any inverse: x=byx=b^y. Now yy is stuck in the exponent. Adding, multiplying, dividing and taking roots all fail to reach it, because none of them can pull an unknown out of an exponent. Mathematicians therefore gave that missing operation a name: log⁡bx\log_b x means “the exponent that turns bb into xx.” The logarithm is not a trick applied to the problem. It is the definition of the thing you need.

An inverse function only exists when the original is one-to-one, meaning each output comes from exactly one input. Exponentials qualify automatically. When b>1b>1 the graph always rises, and when 0<b<10<b<1 it always falls, so a horizontal line never crosses it twice. This is the vertical line test turned on its side, and it is why the inverse is a true function.

Graphically, the exponential and its inverse are mirror images across the line y=xy=x. Every point (p,q)(p,q) on y=bxy=b^x has a partner (q,p)(q,p) on y=log⁡bxy=\log_b x. The two anchor points are (0,1)(0,1), which becomes (1,0)(1,0), and (1,b)(1,b), which becomes (b,1)(b,1). If you want the logarithm side in full, the page on the inverse of a logarithmic function runs the same story in the other direction.

Quick check

The point (3,8)(3, 8) lies on y=2xy=2^x. Which point lies on the graph of its inverse?

How do you find the inverse of an exponential function?

The method is the same five moves every time:

  1. Write y=f(x)y=f(x).
  2. Swap xx and yy.
  3. Isolate the exponential piece, removing additions first, then multipliers, until bsomethingb^{\text{something}} stands alone.
  4. Apply log⁡b\log_b to both sides, which turns bsomethingb^{\text{something}} into “something.”
  5. Solve for yy and write f−1(x)f^{-1}(x).

Step 3 is where points disappear. A logarithm can only be applied cleanly to a bare power, so every number attached to the power must be peeled off first.

Example 1. Find the inverse of f(x)=4⋅3xf(x)=4\cdot 3^x.

y=4⋅3xy=4\cdot 3^x

x=4⋅3yx=4\cdot 3^y

x4=3y\frac{x}{4}=3^y

y=log⁡3 ⁣(x4)y=\log_3\!\left(\frac{x}{4}\right)

So f−1(x)=log⁡3x4f^{-1}(x)=\log_3\frac{x}{4}. By the quotient rule from the logarithm rules, this equals log⁡3x−log⁡34\log_3 x-\log_3 4. Check with one point: f(1)=12f(1)=12, and f−1(12)=log⁡33=1f^{-1}(12)=\log_3 3=1.

The classic slip here is writing log⁡3x4\frac{\log_3 x}{4}. The division by 44 happens before the logarithm, so it lives inside the parentheses. Ask yourself what was touching the power in the original function. Whatever it was, it goes inside the log.

Inverse of an exponential function with shifts and stretches

Most textbook problems use the form f(x)=a⋅bx−h+kf(x)=a\cdot b^{x-h}+k. The shortcut is to read the function as a recipe: subtract hh from xx, raise bb to that, multiply by aa, add kk. The inverse runs the recipe backward and flips each step: subtract kk, divide by aa, take log⁡b\log_b, add hh.

f(x)=a⋅bx−h+k ⟹ f−1(x)=log⁡b ⁣(x−ka)+hf(x)=a\cdot b^{x-h}+k\ \Longrightarrow\ f^{-1}(x)=\log_b\!\left(\frac{x-k}{a}\right)+h

That formula is just the five steps run once on general letters. It also explains why the shifts behave as they do under transformations of functions: the vertical shift kk and stretch aa of the parent function end up inside the logarithm, while the horizontal shift hh ends up outside it.

Example 2. Find the inverse of f(x)=2⋅5x−1+3f(x)=2\cdot 5^{x-1}+3.

x=2⋅5y−1+3x=2\cdot 5^{y-1}+3

x−3=2⋅5y−1x-3=2\cdot 5^{y-1}

x−32=5y−1\frac{x-3}{2}=5^{y-1}

y−1=log⁡5 ⁣(x−32)y-1=\log_5\!\left(\frac{x-3}{2}\right)

f−1(x)=log⁡5 ⁣(x−32)+1f^{-1}(x)=\log_5\!\left(\frac{x-3}{2}\right)+1

Check: f(1)=2⋅1+3=5f(1)=2\cdot1+3=5, and f−1(5)=log⁡51+1=1f^{-1}(5)=\log_5 1+1=1. It works.

The shift trap

5x−15^x-1 and 5x−15^{x-1} look alike but invert differently. The first gives log⁡5(x+1)\log_5(x+1) because the −1-1 sits outside the power; the second gives log⁡5x+1\log_5 x+1 because it sits inside.

What are the domain and asymptote of the inverse?

An inverse swaps domain and range, so everything you know about the domain and range of ff transfers directly. For f(x)=a⋅bx−h+kf(x)=a\cdot b^{x-h}+k with a>0a>0, the graph never reaches the horizontal asymptote y=ky=k. That boundary becomes the vertical asymptote x=kx=k of the logarithm.

Exponential (a>0a>0) Its inverse
Domain all real numbers x>kx>k
Range y>ky>k all real numbers
Asymptote y=ky=k x=kx=k
Key point (h, a+k)(h,\ a+k) (a+k, h)(a+k,\ h)

You can also find the domain without any graph. A logarithm accepts only positive arguments, so set x−ka>0\frac{x-k}{a}>0. In Example 2 that reads x−32>0\frac{x-3}{2}>0, so x>3x>3, matching the asymptote x=3x=3 with no sketch needed. This is the fastest way to answer “state the domain” on a test.

Quick check

What is the vertical asymptote of the inverse of f(x)=3x+4f(x)=3^x+4?

How do fractional bases and negative coefficients change it?

A base between 00 and 11 gives decay, and the inverse is a decreasing logarithm. Since (12)x=2−x\left(\tfrac12\right)^x=2^{-x}, the inverse of (12)x\left(\tfrac12\right)^x is log⁡1/2x\log_{1/2}x, which equals −log⁡2x-\log_2 x. Calculators offer only log⁡\log and ln⁡\ln, so use change of base: log⁡1/2x=ln⁡xln⁡(1/2)=−ln⁡xln⁡2\log_{1/2}x=\dfrac{\ln x}{\ln(1/2)}=-\dfrac{\ln x}{\ln 2}.

A negative coefficient aa flips the graph upside down, so the range becomes y<ky<k and the inverse domain becomes x<kx<k. The formula needs no change, but the sign of aa decides which side of kk makes the argument positive. Take f(x)=−3(12)x+4f(x)=-3\left(\tfrac12\right)^x+4:

x−4=−3(12)y ⇒ 4−x3=(12)y ⇒ f−1(x)=log⁡1/2 ⁣(4−x3)x-4=-3\left(\tfrac12\right)^y\ \Rightarrow\ \frac{4-x}{3}=\left(\tfrac12\right)^y\ \Rightarrow\ f^{-1}(x)=\log_{1/2}\!\left(\frac{4-x}{3}\right)

The domain is x<4x<4. Check two points: f(0)=1f(0)=1 and f−1(1)=log⁡1/21=0f^{-1}(1)=\log_{1/2}1=0; f(1)=2.5f(1)=2.5, and f−1(2.5)=log⁡1/20.5=1f^{-1}(2.5)=\log_{1/2}0.5=1.

Try this: Take f(x)=2x+1f(x)=2^x+1 and write its inverse. Then test it on x=9x=9: you should get 33, because 23+1=92^3+1=9. If you do not, find which step lost a sign.

What is the inverse of the natural exponential function?

The inverse of exe^x is ln⁡x\ln x, the logarithm with base e≈2.71828e\approx 2.71828. With a rate in the exponent, f(x)=ekxf(x)=e^{kx} inverts to f−1(x)=1kln⁡xf^{-1}(x)=\frac{1}{k}\ln x. Natural logs are the default in calculus and in any continuous growth or decay model because exe^x is the only exponential whose slope equals its height.

This inverse is the workhorse of real problems. Continuous growth follows A=PertA=Pe^{rt}, and the question “how long?” asks for the exponent, so the answer is a logarithm: t=1rln⁡APt=\frac{1}{r}\ln\frac{A}{P}. The same idea turns up in pH (a logarithm of concentration), decibels, earthquake magnitude and radioactive half-life.

Example 3. An account earns 6%6\% compounded continuously. How long until the money doubles?

2P=Pe0.06t2P=Pe^{0.06t}

2=e0.06t2=e^{0.06t}

0.06 t=ln⁡20.06\,t=\ln 2

t=ln⁡20.06≈0.69310.06≈11.55 yearst=\frac{\ln 2}{0.06}\approx\frac{0.6931}{0.06}\approx 11.55\text{ years}

Note that PP cancels, so the doubling time does not depend on the starting amount. The result also matches the rule of 70: 706≈11.7\frac{70}{6}\approx 11.7.

How do you check an inverse of an exponential function?

The rigorous test is composition of functions. Two functions are inverses when each undoes the other:

blog⁡bx=x  (x>0)andlog⁡b ⁣(bx)=x  (all x)b^{\log_b x}=x\ \ (x>0)\qquad\text{and}\qquad \log_b\!\left(b^{x}\right)=x\ \ (\text{all } x)

Notice the first identity holds only for x>0x>0, since log⁡bx\log_b x does not exist otherwise. That is the same domain restriction as the inverse, so a correct answer and a correct domain go together.

One-point swap test

Compute a single clean value such as f(2)=11f(2)=11, then confirm f−1(11)=2f^{-1}(11)=2. One good point catches almost every sign and shift error.

A second check is shape. If ff rises, f−1f^{-1} must rise too. If your answer to a decay problem is an increasing logarithm, a sign has slipped. Also confirm the asymptote: the number kk added at the end of ff must reappear as the excluded boundary of the inverse’s domain.

Inverse versus reciprocal: what is the difference?

The notation causes real confusion. In f−1(x)f^{-1}(x), the −1-1 is a label meaning “inverse function,” as explained in function notation. It is not an exponent. The reciprocal is written 1f(x)\frac{1}{f(x)} or [f(x)]−1[f(x)]^{-1}, and it is a different function entirely.

Take f(x)=2xf(x)=2^x at x=3x=3. The inverse gives f−1(3)=log⁡23≈1.585f^{-1}(3)=\log_2 3\approx 1.585. The reciprocal gives 1f(3)=18\frac{1}{f(3)}=\frac{1}{8}. Even the shapes differ: 2−x2^{-x} is the graph of 2x2^x reflected across the yy-axis, while log⁡2x\log_2 x is the reflection across y=xy=x.

Compare this with the inverse of a linear function, where undoing the function needs only subtraction and division. Exponentials are the first family where the inverse is a genuinely new kind of function, which is why the notation matters so much.

When does an exponential function lack a clean inverse?

The method works because bxb^x is one-to-one and the power can be isolated. It breaks in a few predictable situations:

  • Base 11: 1x=11^x=1 is a constant, so many inputs share one output.
  • Symmetric sums: 2x+2−x2^x+2^{-x} is an even function, so f(1)=f(−1)f(1)=f(-1). It has no inverse unless you restrict the domain, the same repair used for the inverse of a quadratic function.
  • Exponent plus polynomial: 2x+x2^x+x is one-to-one, so an inverse exists, but no elementary formula writes it down. Equations like xex=cxe^x=c need the Lambert WW function or numerical methods.

The practical rule: if xx appears both inside an exponent and outside it, algebra cannot isolate it. If the exponential part is a single term with everything else outside, the five steps always succeed.

Quick check

Does f(x)=2x+2−xf(x)=2^x+2^{-x} have an inverse function on all real numbers?

Practice problems

0 of 5 solved

  1. Find the inverse of f(x)=7xf(x)=7^x.

  2. Find the inverse of f(x)=2x+6f(x)=2^x+6 and state its domain.

  3. Find the inverse of f(x)=3x−2−5f(x)=3^{x-2}-5.

  4. Find the inverse of f(x)=e3x−4f(x)=e^{3x}-4.

  5. Find the inverse of f(x)=−2⋅4x+1+10f(x)=-2\cdot 4^{x+1}+10 and state its domain.

Common questions

What is the inverse of an exponential function?

The inverse of f(x)=bxf(x)=b^x is the logarithmic function f−1(x)=log⁡bxf^{-1}(x)=\log_b x, where b>0b>0 and b≠1b\neq1. For a shifted or stretched exponential, swap xx and yy, isolate the power, then apply the logarithm with the same base.

What is the inverse of exe^x?

The inverse of exe^x is the natural logarithm ln⁡x\ln x. For ekxe^{kx} the inverse is 1kln⁡x\frac{1}{k}\ln x.

What is the inverse of 2x2^x or 10x10^x?

The inverse of 2x2^x is log⁡2x\log_2 x, and the inverse of 10x10^x is log⁡10x\log_{10}x, usually written log⁡x\log x. The base of the logarithm always matches the base of the exponential.

How do you graph the inverse of an exponential function?

Reflect the graph across the line y=xy=x, or swap the coordinates of a few points. The horizontal asymptote of the exponential becomes the vertical asymptote of the logarithm.

Does every exponential function have an inverse?

Yes, as long as the base is positive and not equal to 11. Such functions are always increasing or always decreasing, so they are one-to-one. A base of 11 gives a constant, which has no inverse.

Is the inverse of an exponential function the same as its reciprocal?

No. The inverse f−1(x)f^{-1}(x) undoes the function and is a logarithm, while the reciprocal 1f(x)\frac{1}{f(x)} is another exponential. For f(x)=2xf(x)=2^x, the inverse is log⁡2x\log_2 x and the reciprocal is 2−x2^{-x}.

Up next