Show that the function f : Q → Q defined by f(x) = 3x + 5 is invertible. Also, find f^{-1}.