You can put this solution on YOUR website! It's still not a function. Please post the whole problem.
I'm guessing that the function is:
If this is not correct, you might still learn enough from what follows to do the problem on your own,
An inverse is the function with its x's and y's swapped. To find an inverse, that is literally what you do: You swap the x's and y's. First, though, I like to replace the function notation with a "y":
Now we swap the x's and y's:
Swapping the x's and y's like this fundamentally changes the equation. This equation is no longer the equation of the function. It is the equation of the inverse. And while it is the equation of the inverse, it is not in the preferred form. For the preferred form we solve for y.
First we eliminate the fraction by multiplying both sides by y+2:
Simplifying we get:
Next we gather the y terms on one side and the "other" terms on the other side. This can be done by subtracting xy and adding 1:
The terms on the right are not like terms so we cannot subtract them. But we can factor out the y:
Dividing both sides by 1-x:
which simplifies to:
Now that we have solved for y, we can rewrite the equation in function notation (for the inverse):