How to find a line’s equation from two points on its inverse

An inverse reverses what a function does to an input. If we know two points on the inverse of a line, reversing their coordinates gives us two points we can use to find the original equation.

Swap the input and output of each point

If f-1(a)=b, then f(b)=a. So a point (a,b) on the inverse becomes (b,a) on the original graph. A nonconstant line has a nonzero slope, which lets us reverse the input and output.

If f-1(3)=4 and f-1(-1)=5, the inverse passes through (3,4) and (-1,5). The original line passes through (4,3) and (5,-1).

A line and its inverse reflected across y = xThe blue function contains five, negative one. The purple inverse contains negative one, five. The points are reflections across the line y equals x.(−1, 5)(5, −1)y = xxyf(x)f⁻¹(x)
Swapping the coordinates takes (−1, 5) on the inverse to (5, −1) on the original line.

Use the two original points to find the slope. Then substitute (4,3) into y=mx+b to find the intercept.

m=-1-35-4=-43=-4(4)+bb=19

The original function is f(x)=-4x+19. At x=5 this gives -1, which matches the second point.

Find the inverse line first, then solve for the original

Suppose f-1(-2)=8 and f-1(-5)=14. Start with the inverse points (-2,8) and (-5,14) and find the slope of that line.

m=14-8-5-(-2)=-2y-8=-2(x+2)f-1(x)=-2x+4

Now swap x and y in the equation y=-2x+4 and solve for y.

x=-2y+4y=-12x+2f(x)=-12x+2

As a check, f(8)=-2 and f(14)=-5, reversing the original inputs and outputs.