Not every function has an inverse. For a function to have an inverse, it must be one-to-one, meaning it must pass the horizontal line test. The inverse of a function switches the domain and range and graphs as a reflection across the line y=x. To find the inverse algebraically, replace f(x) with y, switch x and y, and solve for y.