Let f:R→[0,∞) be defined by f(x)=x2 and let g:[0,∞)→[0,∞) be defined by g(x)=x (principal square root). Which statement is correct?
a) Both f(g(x))=x for all x≥0 and g(f(x))=x for all x∈R
b) g(f(x))=x for every x∈R, but f(g(x))=x for some x≥0
c) f(g(x))=x for every x≥0, but g(f(x))=x for some x∈R
d) Neither composition equals x for all admissible x