Let \(f(x)=|x|\) and \(g(x)=[x]\), then the value of \(fog\left(-\displaystyle\frac{9}{2}\right)-gof\left(-\displaystyle\frac{9}{2}\right)\) is:
Answer & explanation
Correct answer: option 2
The correct answer is Option (2) → 1
Here [x] is the greatest integer function: the greatest integer less than or equal to x.
First \(fog\left(-\frac{9}{2}\right) = f\left(g\left(-\frac{9}{2}\right)\right)\). Since \(-\frac{9}{2} = -4.5\) and the greatest integer \(\le -4.5\) is −5:
\(g(-4.5) = [-4.5] = -5\)
\(f(-5) = |-5| = 5\)
Next \(gof\left(-\frac{9}{2}\right) = g\left(f\left(-\frac{9}{2}\right)\right)\):
\(f(-4.5) = |-4.5| = 4.5\)
\(g(4.5) = [4.5] = 4\)
So
\( \displaystyle fog\left(-\frac{9}{2}\right) - gof\left(-\frac{9}{2}\right) = 5 - 4 = 1 \)