A log and its exponential partner undo each other, so every shift, stretch and reflection inside the log comes back in the inverse, in reverse order. Below you will find where the rule comes from, a reliable method for transformed logs such as , how domain and range swap, how to graph and check the result, and the cases where no inverse exists.
Why is the inverse of a logarithm an exponential function?
A logarithm is an exponent in disguise. By definition, is the power you must put on to produce . That single idea gives the whole result:
Read left to right, the statement takes in and returns . Read right to left, it takes in and returns . A function that reverses the inputs and outputs of another is its inverse, so is the inverse relation, and renaming the variables gives . No extra proof is needed beyond the definition.
You can see it in the ordered pairs. In base 2, puts on the log graph and on the exponential graph. Swapping every pair of a function builds the inverse relation (the vocabulary is covered in relations and functions), and that relation is itself a function only when the original is one-to-one. Log functions always are: for they only climb, and for they only fall, so every output has exactly one input.
The two cancellation rules you may have memorised are this inverse relationship in action:
They appear among the logarithm rules, but they are really the statement “these two functions reverse each other.” Notice the condition on the first one. The log can only accept positive inputs, and that restriction will matter again later.
Quick check
Answer:
How to find the inverse of a log function step by step

The routine is the same one used for any function:
- Replace with .
- Swap and .
- Isolate the logarithm on one side.
- Rewrite in exponential form.
- Solve for and write .
Step 3 is where most points are lost. The log must stand alone before you exponentiate, so any coefficient in front of it gets divided out and any added constant gets moved first. A shortcut is to undo operations in reverse order. For , the function subtracts , takes the log, multiplies by , then adds . The inverse subtracts , divides by , exponentiates, then adds :
The same swap-and-solve idea drives the inverse of a linear function; logs only add the exponential conversion in the middle.
Example 1. Find the inverse of .
So . A quick test: , and . The point lands on , as it should. The classic error is writing , which divides the wrong thing. The belongs in the exponent because it was attached to the log.
What is the inverse of ln x and log x?
In US courses, with no base means base 10, and means base . Their inverses are therefore and . Nothing new happens algebraically, but the base is hidden, and forgetting it is a common slip. When the base is invisible, ask which number is raised to a power.
"Antilog" is the older name for the inverse of a log: . On a calculator, the and keys are usually the second functions printed above LOG and LN.
Example 2. Find the inverse of .
So . Test it: , and . The negative in front of flipped the exponent from to .
Reflections inside the log deserve one warning. For , swapping gives , so and . The inverse is , not . The minus sign sits on the input of the log, so it ends up on the output of the exponential.
Domain and range of the inverse of a logarithmic function

Because inverses swap inputs and outputs, the domain and range trade places. You never need to add a restriction to the inverse by hand: it appears automatically. The range of is the domain of , and that is how the inverse “remembers” that the log only accepted positive inputs.
| Feature | ||
|---|---|---|
| Domain | all real numbers | |
| Range | all real numbers | |
| Asymptote | (vertical) | (horizontal) |
| Key points | and | and |
For a shifted log , the domain is and the range is all reals. The inverse then has all reals as its domain and range , with a horizontal asymptote at . In Example 1, , so the inverse levels off at , and you can read that off before doing any algebra. In Example 2, has domain , and the inverse is indeed always positive.
This gives a fast mental check: if your proposed inverse has the wrong asymptote, an algebra step went wrong. A horizontal asymptote that does not equal the horizontal shift of the original is a red flag.
Quick check
Answer: All real numbers;
How do you graph the inverse of a log function?
Reflect the graph across the line . Practically, pick three or four easy points on the log, swap each coordinate pair, and plot. For base , the friendly points are , and , which become , and . Then draw the curve hugging the new asymptote.
Shifts follow a pattern from function transformations with the roles exchanged. A horizontal shift of in the log becomes a vertical shift of in the inverse. A vertical shift of becomes a horizontal shift. A stretch by vertically in the log becomes a stretch by in the exponent. Starting from the parent functions and , you can build either graph by applying the same moves in opposite order.
The reflected graph is a function only if the log passes what amounts to a horizontal line test. Flipping across turns horizontal lines into vertical ones, so the vertical line test on the inverse is the horizontal test on the original. Logarithms pass easily.
Try this: Plot using , , , and . Swap every pair, plot the new points, and confirm the curve flattens toward the -axis on the left.
How to check the inverse of a log function
The definitive test is composition. If is the inverse of , then and . Both directions matter. Composition of functions is the tool, and with logs the cancellation rules from earlier do the work.
Example 3. Check that is the inverse of .
Both compositions return , so the functions are inverses. A point test is faster when the algebra is long: , and . The input comes back.
The second composition carries a condition. equals only when , which is exactly the domain of . The identity holds wherever it makes sense, so check it on the original domain, not on all real numbers.
Inverse of a log function vs reciprocal of a log
Two different operations hide behind the same-looking symbols. The inverse undoes . The reciprocal divides one by the output. For , take in each:
In , the names the inverse function. A reciprocal is written or , with brackets.
Even the reciprocal of a log is not an exponential. It is another log with the base and argument swapped, because . That relation comes from the change-of-base formula, and it explains why so many students mix the two: swapping places in a log looks like an inverse but is a reciprocal. The function notation page covers how to read and why is ambiguous. When a textbook writes , it means .
When a logarithmic function has no inverse
Plain with always has an inverse. The trouble starts when the log wraps something that is not one-to-one. Take . Both and equal , so two inputs share an output and nothing can reverse it. This function is even, and even functions cannot be one-to-one on a domain that includes both sides of zero.
The fix is to restrict the domain:
- On , , and the inverse is .
- On , , and the inverse is .
Two other situations deserve mention. A base between 0 and 1, such as , still has an inverse, namely , because the function is decreasing and still one-to-one. Check: and .
The method also fails differently when a log is added to a plain term. The function is increasing, so it has an inverse, but algebra cannot isolate in using ordinary functions. Solving it requires the Lambert W function, giving . In practice, textbook problems avoid this, so a problem with ” and together” usually signals a numerical or graphical question instead.
Quick check
Answer:
Where is the inverse of a log function used in real life?
Logarithmic scales compress huge ranges into small numbers: acidity, sound, earthquakes. The inverse converts back to the raw quantity, which is what a person actually wants to know. The step from a pH reading to a concentration is the inverse of a log, and understanding that link to the inverse of an exponential function shows both directions are one idea.
Example 4. Rainwater has a pH of 5.6. Find the hydrogen ion concentration, using .
Because a drop of one pH unit multiplies the concentration by 10, a sample at pH 4.6 would be ten times as concentrated, about .
Sound works the same way. The decibel level is , so the intensity is . With the standard reference W/m², an 80 dB sound has W/m². Earthquake magnitude follows suit: each whole number on the Richter scale means roughly ten times the measured amplitude.
Practice problems
0 of 5 solved
- Find the inverse of .
Answer:
Swap the variables: . Rewrite in exponential form: . So . - Find the inverse of .
Answer:
Swap: . Isolate the log: . Exponentiate: . - Find the inverse of .
Answer:
Swap: . Divide by 4: . Exponentiate: , so . - Find the inverse of (base 10).
Answer:
Swap: . Then , so . Exponentiate with base 10: . Check: and . - Find the inverse of and state its range.
Answer: , range
Swap: . Then , so and . Since , the output is always below 3, so the range is .
Common questions
What is the inverse of a logarithmic function?
The inverse of is the exponential function , with the same base. The two functions undo each other, and their graphs are mirror images across the line .
What is the inverse of ln x?
The inverse of is , because is the logarithm with base . Likewise the inverse of (base 10) is .
How do you find the inverse of ?
Swap the variables to get , rewrite as , and solve to get . Check with a point: and .
What are the domain and range of the inverse of a log function?
For , the inverse has domain all real numbers and range . Domain and range always swap between a function and its inverse.
Is the inverse of a log function the same as its reciprocal?
No. The inverse undoes , while the reciprocal is a different function. For , but .
Does every logarithmic function have an inverse?
Any function of the form with has an inverse, because it is one-to-one. A function such as does not, until its domain is restricted.