Let \(f(x)=[x]\) and \(g(x)=|x|\), where [x] is the greatest integer function and |x| is the modulus function. Then \((gof)\left(\displaystyle\frac{-5}{3}\right)-(fog)\left(\displaystyle\frac{-5}{3}\right)\) is :
Answer & explanation
Correct answer: option 2
The correct answer is Option (2) → 1
In a composition gof, f acts first and then g: (gof)(x) = g(f(x)).
Since \(-\frac{5}{3}\approx -1.67\) lies between −2 and −1:
\( \displaystyle (gof)\left(-\frac{5}{3}\right)=g\left(\left[-\frac{5}{3}\right]\right)=g(-2)=|-2|=2 \)
\( \displaystyle (fog)\left(-\frac{5}{3}\right)=f\left(\left|-\frac{5}{3}\right|\right)=\left[\frac{5}{3}\right]=1 \)
So
\(2-1=1\)