Try it with your numbers
Show every step
Every line that is not horizontal has exactly one inverse, and that inverse is another line. The sections below show where the formula comes from, how to handle fractions and negative slopes, how to verify an answer in ten seconds, and the cases where the usual shortcuts break.
Inverse of a linear function: where the formula comes from

A linear function does two things to an input: it multiplies by , then it adds . An inverse has to undo those actions in the opposite order, so the first move is to subtract and the second is to divide by . Getting that order backwards is the root of most wrong answers.
The algebra is one short chain. Start from the output equation and solve for the input:
The last line already is the inverse: give it an output and it returns the input . The only remaining step is cosmetic. By convention the input variable is called , so rename to get . The equivalent form is in slope-intercept form, which makes the new slope and intercept easy to read.
The domain of is the range of , and the range of is the domain of . For a line with , both are all real numbers.
Reading correctly depends on function notation: means “the input that turns into 17.” That wording is a useful mental tool, because it turns an abstract symbol into a question you can answer by working backwards. The swap of roles also explains why the domain and range of an inverse are simply those of the original, exchanged.
Quick check
Answer:
How do you find the inverse of a linear function step by step?
The standard routine has four moves, and the second one does the real work.
- Replace with .
- Swap and .
- Solve the new equation for .
- Rename as .
Example 1. Find the inverse of .
So . Dividing by is the same as multiplying by , and that factor must hit both terms of . Multiplying only the and leaving the untouched is the single most common slip with fractional slopes.
A faster route avoids fraction division altogether: clear the denominator first. From , multiply every term by 3 to get , so and . Same answer, no reciprocals to juggle. With a negative slope, the matching trap is the sign: dividing by gives , and the minus sign belongs on the , not on the whole fraction.
Why the slope flips and the intercepts trade places

Swapping and sends every point on the graph to . That is a reflection across the line , one of the basic moves in transformations of functions. Under that reflection, rise and run exchange places, so a slope of becomes . The sign never changes: an increasing line stays increasing, a decreasing line stays decreasing.
The intercepts swap as well. The x-intercept of is , and after the flip it becomes the point , which is exactly the y-intercept in . This gives a second way to find an inverse without any algebra on the equation itself.
Example 2. A line passes through and . Find the inverse of the line. Flip each point to get and . The slope between them is . Using point-slope form:
The original line is , whose inverse by formula is . Both routes agree. This point-flipping method also works directly on a table of values, which is how inverses are often presented.
Quick check
Answer: slope , y-intercept
How to check the inverse of a linear function
A true inverse satisfies . Feed the candidate inverse into the original and the result should collapse to a bare . Test Example 1:
That is the full check, and the composition of functions is the idea behind it. If the does not come out clean, an error crept in somewhere.
For a ten-second check, use a single number. Since , the inverse must send back to : . A one-point test cannot prove the answer is right, but it catches nearly every slip with signs and fractions, and it is quick enough to do on every problem.
Try this: Find the inverse of . Then send through and send the result through your inverse. You should land back on . If you do not, recheck the sign when you divide.
When does a linear function have no inverse?
The formula divides by , so breaks it. A constant function such as sends both and to the same output. An inverse would have to send back to both of them, and a function cannot give two answers for one input. Flip the graph and the horizontal line becomes the vertical line , which fails the vertical line test. The inverse relation exists, but it is not a function.
A line has an inverse function exactly when . The intercept never matters.
The general requirement is that a function be one-to-one: every output comes from exactly one input. Every non-horizontal line meets that standard, so no domain restriction is ever needed for a single line.
Trouble starts when lines are joined. A piecewise function with one rising piece and one falling piece, such as the V-shape of an absolute value function, sends two different inputs to the same output, so it has no inverse on its full domain. Each straight piece alone still does.
Is the inverse the same as the reciprocal of a function?
No, and the notation causes the confusion. The small in marks an inverse function, not an exponent. The reciprocal of the output is written , and is a third, different thing. Take and test each at :
| Expression | Rule | Value at |
|---|---|---|
The inverse is the only one of the three that sends back to : . If an answer to an inverse problem has the variable sitting in a denominator on its own, it is probably a reciprocal by mistake. The inverse of a line is always another line, never a fraction with underneath.
Which linear functions are their own inverse?
A function equals its own inverse when reflecting it across leaves the graph unchanged. For lines, that happens in two cases:
- for any . Its inverse is , the same rule.
- , the identity, where and .
Geometrically, a line with slope is perpendicular to , so the reflection maps it onto itself. A line like is not self-inverse: its inverse is a parallel line on the other side of .
Where a line and its inverse cross, they must cross on , so solve :
Example 3. For , the crossing is at , and . The inverse also gives at , so both graphs pass through . When and the lines are parallel and never meet, which matches the formula failing there.
Quick check
Answer:
Inverse of a linear function in real life: temperature and fares
Real formulas get inverted whenever the known quantity and the wanted quantity swap. Converting Celsius to Fahrenheit uses . To go the other way, undo the , then undo the :
Body temperature of gives . The slope became , exactly the reciprocal rule from earlier.
A taxi charging a $3 flat fee plus $2.50 per mile has cost . The inverse turns a fare into a distance, so a $23 fare means miles. Context also trims the domain: miles cannot be negative, so the inverse only applies to fares of $3 or more.
The same idea appears in sequences. The th term of an arithmetic sequence, , is linear in . Solving for gives . In the sequence the value sits at . This is the standard move behind the arithmetic series formula when the unknown is the position rather than the value.
How does this connect to inverses of other functions?
The swap-and-solve routine is universal. Lines are simply the case where solving is easy and no restriction is needed. Once the equation has a squared term, the reflection fails the horizontal line test, which is why the inverse of a quadratic function requires cutting the domain in half first.
A line also works as a building block. It is the parent function stretched and shifted, and its inverse reverses those two moves in the opposite order, as seen in the formula. The same reversal pattern carries into the inverse of a rational function, where isolating takes a few extra steps. It also reaches the inverse of an exponential function, where undoing the operation requires a logarithm.
A habit worth building now: after finding any inverse, check one point and check the graph’s symmetry across . For lines the checks take seconds, and the same habit pays off on every harder inverse later.
Practice problems
0 of 5 solved
- Find the inverse of .
Answer:
Write and swap the variables: . Subtract 7 from both sides: . So . - Find the inverse of .
Answer:
Swap the variables: . Add 10: . Divide by 5: , which is also . - Find the inverse of .
Answer:
Swap the variables: . Move the term: . Divide by 3: , which is also . - Find the inverse of .
Answer:
Swap the variables: . Clear the fraction: . Add 5: . Divide by 2: . - For , find .
Answer:
Swap the variables: . Then , so . Substitute 10: . Check: .
Common questions
What is the formula for the inverse of a linear function?
For with , the inverse is . It subtracts the intercept and then divides by the slope, which reverses what does.
Does every linear function have an inverse?
Every linear function with a nonzero slope has one. A constant function has no inverse function, because every input gives the same output and the output cannot be traced back to a single input.
Is the inverse of a linear function also linear?
Yes. The inverse of is , a line with slope . Its graph is the original line reflected across .
How do you find the inverse of a linear function from a table or two points?
Swap the input and output in every pair, so becomes . Then find the slope and equation of the line through the swapped points, using point-slope form if needed.
What is the difference between and ?
is the inverse function, which undoes . is the reciprocal of the output. For they are and , which are completely different.
How do you graph the inverse of a linear function?
Plot two points of the original line, swap the coordinates of each, and draw the line through the swapped points. Equivalently, reflect the original line across the line .