Given, f: R+ → R+, f(x) = x2
g : R+ → R+, g(x)= √x
Then, (fog): R+ → R+ and (gof): R+ → R+ are defined
∴ (gof)(x) = g[f(x)]
= g(x2) = √x2 = x
(fog)(x) = f(g(x)]
= f(√x)= (√5)2 = x
Based on above, (gof) and (fog) are of same domain and co-domain.
(fog)(x) = (gof)(x) ∀ x ∈ R+
So, (fog) and (gof) are equivalent functions.