If f(x)=sinx+cosx,g(x)=x2−1, then g(f(x)) is invertible in the domain
0,π2
−π4,π4
−π2,π2
[0,π]
f(x)=sinx+cosx,g(x)=x2−1
or g(f(x))=(sinx+cosx)2−1=sin2x
Clearly, g(f (x)) is invertible in−π2≤2x≤π2
('.' sin2x is invertible when -π2≤2x≤π2 or −π4≤x≤π4