Let A={-1,0,1,2}, B={-4,-2, 0,2} and f,g:A→B be the function defined by f(x)=x2−x,x∈A and g(x)=2∣∣x−12∣∣−1,x∈A.
Are f and g equal ? Justify your answer.
Given that f,g:A→B are defined by f(x)=x2−x,x∈A and g(x)=2∣∣x−12∣∣−1,x∈A.
It is observed that f(−1)=(−1)2−(−1)=1+1=2
and g(−1)=2∣∣(−1)−12∣∣−1=2(32)−1=3−1=2⇒f(−1)=g(−1)
Next f(0)=(0)2−0=0 and g(0)=2∣∣0−12∣∣−1=2(12)−1=1−1=0
⇒f(0)=g(0)
Next, f(1)=(1)2−1=1−1=0
and g(1)=2∣∣1−12∣∣−1=2(12)−1=1−1=0 ⇒f(1)=g(1)
Next, f(2)=(2)2−2=4−2=2
and g(2)=2∣∣2−12∣∣−1=2(32)−1=3−1=2 ⇒f(2)=g(2)
∴f(a)=g(a)∀a∈A. Hence, the function f and g are equal.