We are given the following function:

we are asked to determine the inverse of this function. To do that we will first change the "f(x)" for "y":

Now we will switch "x" and "y", like this:

Now we solve for "y", first by adding 2 to both sides:

Now we multiply both sides by "y+2":

Now we divide both sides by "x+2":

Now we subtract 2 to both sides:

Now we change "y" for the inverse of f(x), that is:

And thus we found the inverse. A similar procedure can be used for function 2.