Answer
$R^(-1)$ = {(f(a), a) | a $\in$ A} or {(b,$f^(-1)$(b))| b $\in$ B}
Work Step by Step
For the first part, it is asking for the inverse relation. So, since R is a relation from A to B, then the inverse relation is the relation from B to A. It can be denoted as the inverse relation of R : {(b,a) | (a,b) ∈ R} .Since it was stated that (a, f(a)), then we only need to inverse it for (f(a), a) .
It is to be remembered that R is also a function in this case, that's why we have the pair (a,f(a)) which is the function that maps $->$ f(a) where f(a)=b is an element of B.