Given two sets A={1,2,3,4} and B={p,q,r,s}.
Now, for any relation to be a function, two conditions must be met:
a. Each and every element of A should be matched with an element of B
b. Each element of A should be matched with only one element of B
R1={(a,b):a∈A & b∈B}R1={(1,p),(1,q),(1,r),⋯,(4,r)}
This is not a function as one element of A is getting mapped with multiple elements of B
R2={(1,p),(3,p),(4,r)}
This is also not a function since 2∈A is not getting mapped with any elements of B.
R3={(1,q),(2,p),(3,s),(4,r)}
This is a function as both conditions are getting satsified.
R4={(1,p),(2,p),(3,s),(4,r)}
This is also a function as both conditions are getting satsified.