Given

f(x)=2x, where x is any real no.

g(x)=|cos x|-cos x where 0<=x<=2 pi.

Does composite function gf exists?

From the domain of f,doesn't the range of f lies outside the domain of g? If it exists,why is it so and what's the domain of gf???

Thanks a lot!