EXPLANATION:
Given sets are A = { 1,2,3,4}
and B = N
Let f : A-->B ,f(x) = x² +1
Now Put x = 1 then
⇛f(1) = 1²+1 = 1+1 = 2
Now Put x = 2 then
⇛f(2) = 2²+1 = 4+1 = 5
Now Put x = 3 then
⇛f(3) = 3²+1 = 9+1 = 10
Now Put x = 4 then
⇛f(4) = 4²+1 = 16+1 = 17
Range of f(x) = { 2,5,10,17}