Let X={1,2,3,4},Y={1,3,5,7}
BY definition of g we observe that every element in X has a unique image in Y and hence g is a function
g(x)=ax+β when x=1,g(x)=1
and when x=2,g(x)=3
∴1=α+β and 3=2α+β. These give α=2,β=−1.
∴g(x)=2x−1
for x=3,g(x)=5 and for x=4,g(x)=7 which are true.