Injectivity of f:
Let x and y be two elements of the domain (Q), such that
f(x)=f(y)
3x + 5 =3y + 5
3x = 3y
x = y
So, f is one-one.
Surjectivity of f:
Let y be in the co-domain (Q), such that f(x) = y
f is onto.
So, f is a bijection and, hence, it is invertible.
Finding f -1: