Find fog and gof, if f (x) =

    \[\left| x \right|\]

, g (x) = sin x
Find fog and gof, if f (x) =

    \[\left| x \right|\]

, g (x) = sin x

Given

    \[f~\left( x \right)~=~\left| x \right|\]

,g(x) = sin x

    \[f:~R~\to ~(0,~\infty )~;~g~:~R\to [-1,~1]\]

Now we have to calculate fog,

Clearly, the range of g is a subset of the domain of f.

⇒ fog: R→R

(fog) (x) = f (g (x))

= f (sin x)

    \[\left| sin~x \right|\]

Now we have to calculate gof,

Clearly, the range of f is a subset of the domain of g.

⇒ fog : R→ R

(gof) (x) = g (f (x))

    \[g~\left( |x| \right)\]

    \[sin~\left| x \right|\]