To have inverse for the function f, f should be
one-one
onto
one-one and onto
Identify function
If f has inverse it must be both one-one, onto