Answer:
The correct option is B.
Step-by-step explanation:
If a function [tex]f:R\rightarrow R[/tex] defined as
[tex]f(x)=\{(x,y):x\in R, y\in R\}[/tex]
then the inverse of function f(x) is
[tex]f^{-1}(x)=\{(y,x):x\in R, y\in R\}[/tex]
It means the graph of a function and its inverse function are symmetrical about the line y=x.
In the given graph draw a line y=x.
From the below graph it is clear that f and g are symmetrical about the line y=x. So, the function g is the inverse function for function f.
Therefore the correct option is B.