f(g(x)) = log|g(x)| =log |sin x|
which is given to input for log function
and we know in domain of [0,1] log will give range (- ,0]
so here range of f(g(x)) = (- ,0]
g(f(x)) = sin(f(x)) = sin(log|x|)
log|x| will gives values in between - to +
and which is given the input for sin function
so range of g(f(x)) is [-1,1]
common of both is [-1,0]