Suppose that $A$ is a nonempty set, and $f$ is a function that has $A$ as its domain. Let $R$ be the relation on $A$ consisting of all ordered pairs $(x, y)$ such that $f(x)=f(y)$ .
a) Show that $R$ is an equivalence relation on $A$ .
b) What are the equivalence classes of $R ?$