Let h(x)=g(f(x)) where, g(x) is injective and h(x) is surjective h(x) is surjective ∴ Codomain of h(x) = Range of h(x).
Range of h(x)=[0,2] which is also codomain of g.
So, must be surjective.
Now, domain of g=[−1,1] which must be range of f.
But codomain of f=[−1,1]
So, it must be surjective