Given the function

The inverse of the function is calculated by changing f(x) to y and making x the subject of the formula as follows:

We now change back the variables to get the function in the form of inverse function as follows:

Comparing this with Talib's work, we can see that he is correct except for the last line where he did not change the variable y back to x.
Therefore, the last line of his work made his inverse not to be correct.