Answer the following with reference to relations between two non-empty sets.
a. (i) Define the terms domain, codomain and range of a relation R from a set A to a set B.
b. (ii) Let A={1,2,3} and B={1,2,3,4,5,6,7,8,9}. Consider the relation R={(a,a2)∣a∈A}. List the domain, range and codomain of R. Express each as an explicit set.