The inverse of a linear function is much easier to find as compared to other kinds of functions such as quadratic and rational. The reason is that the domain and range of a linear function naturally span all real numbers, unless the domain is restricted.
Before I go over five (5) examples to illustrate the procedure, I want to show you how the domain and range of a given function, and its inverse are related.
Domain and Range are just swapped! 



Notes to consider about the diagram:
 The domain of the original function becomes the range of the inverse function.
 The range of the original function becomes the domain of the inverse function.
 It is customary to use the letter "x" for domain, and "y" for range.
The general approach on how to algebraically solve for the inverse is as follows:
Key steps 
1) Replace f(x) by y 
2) Switch the roles of "x" and "y" , in other words, interchange x and y in the equation. 
3) Solve for y in terms of x 
4) Replace y by f^{ −}^{1}(x) to get the inverse function 
5) *Sometimes, it is helpful to use the domain and range of the original function to identify the correct inverse function out of two possibilities. This happens when you get a "plus or minus" case in the end. 
Direction: Find the inverse functions of the following linear functions, state its domain and range if necessary.
Example 1: Find the inverse of the linear function.
This function behaves well because the domain and range are both real numbers. This ensures that its inverse must be a function too. Maybe you're familiar with the Horizontal Line Test which guarantees that it will have an inverse whenever no horizontal line intersects or crosses the graph more than once.
Use the above key steps as guide to solve for the inverse function:
That was easy!
Example 2: Find the inverse of the linear function .
Towards the end part of the solution, I want to make the denominator positive so it looks "good". I did it by multiplying both the numerator and denominator by − 1.
Example 3: Find the inverse of the linear function .
Some students may consider this as rational function because the equation contains some rational expressions. Don't be confused by the fractions here. Yes, it has fractions however there are no variables in the denominator. This makes it just a regular linear function.
To work this out, I must get rid of the denominator. I will accomplish that by multiplying both sides of the equation by their least common denominator (LCD).
As shown above, you can write the final answers two ways. One with a single denominator, and the other is decomposed into partial fractions.
Example 4: Find the inverse of the linear function , and state its domain and range.
This is a "normal" linear function, however, with a restricted domain. The allowable values of x starts at x = 2 and goes up to positive infinity. The range can be determined using its graph. Remember that range is the set of all y values when the acceptable values of x (domain) are substituted into the function.
Pay particular attention on how the domain and range are determined using its graph.
Finding the inverse of this function is really easy. But in keep in mind how to correctly describe the domain and range of the inverse function. We have gone over this concept in the beginning of this section about the swapping of domain and range.
Always verify the domain and range of the inverse function using the domain and range of the original. They are just interchanged.
Example 5: Find the inverse of the linear function , and state its domain and range.
The first step is to plot the function in xyaxis. Clearly label the domain, and the range.
Open circle (unshaded dot) means that the number at that point is excluded. If you need to refresh on this topic, check my separate lesson about Solving Linear Inequalities.
Secondly, find the inverse algebraically using the suggested steps. Make sure that you write the correct domain and range of the inverse function.
The "x" variable in the original equation has a coefficient of −1. Keep track of this as you solve for the inverse.
I hope that you gain some basic ideas how to find the inverse of a linear function. I recommend that you survey the related lessons how to find inverses of other types of functions. Go top of the page.