The correct option is B f(x)=|x|
Since function is defined as f:{1,2,3,4}→{1,2,3,4,5,6,7,8,9}
D(f)={1,2,3,4}
Here, each and every element of D(f) should be in {1,2,3,4,5,6,7,8,9}
f(x)=2x+1
f(1)=2(1)+1=3
f(2)=5,f(3)=7,f(4)=9
Here, f(1),f(2),f(3),f(4)∈{1,2,3,4,5,6,7,8,9}
So, it can be the required function.
Similarly, f(x)=|x|
f(1)=1,f(2)=2,f(3)=3,f(4)=4
f(1),f(2),f(3),f(4)∈{1,2,3,4,5,6,7,8,9}
So, it can be the required function.
f(x)=x2
f(1)=1,f(2)=4,f(3)=9,f(4)=16
f(1),f(2),f(3)∈{1,2,3,4,5,6,7,8,9}
But f(4)∉{1,2,3,4,5,6,7,8,9}
So, it cannot be the required function.
f(x)=x−1
f(1)=0,f(2)=1,f(3)=2,f(4)=3
f(2),f(3),f(4)∈{1,2,3,4,5,6,7,8,9}
But f(1)∉{1,2,3,4,5,6,7,8,9}
So, it cannot be the required function.