Question
Mathematics Question on Relations and functions
Let A=0,1,2, B=4,2,0 and f,g : A→B be the functions defined by f(x)=x2−x and g(x)=2∣x−21∣−1 Then,
A
f=g
B
f=2g
C
g=2f
D
None of these
Answer
f=g
Explanation
Solution
We have A=\left\\{1, 0, 1, 2\right\\}
B=\left\\{4, 2, 0, 2\right\\}
and f,g:A→B
Now, f(x)=x2−x
⇒f(0)=0−0=0
and f(1)=1−1=0…(i)
and f(2)=22−2=2
Also, g(x)=2x−21−1
⇒g(0)=22−1−1=1−1=0
and g(1)=21−21−1
=1−=0…(ii)
and g(2)=22−21−1
=22.3−1=2
Hence from Eqs. (i) and (ii), we can say that
f(x)=g(x)
⇒f=g