Find fog and gof, if f(x)=

    \[x+1\]

, g (x) =

    \[\mathbf{2x}~+~\mathbf{3}\]

Find fog and gof, if f(x)=

    \[x+1\]

, g (x) =

    \[\mathbf{2x}~+~\mathbf{3}\]

Given f (x) = 

    \[x+1\]

, g (x) = 

    \[2x~+~3\]

f: R→R ; g: R → R

Now we have to compute fog

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

⇒ fog: R→ R

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

    \[f~\left( 2x+3 \right)\]

    \[2x~+~3~+~1\]

    \[2x~+~4\]

Now we have to compute 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+1 \right)\]

    \[2~\left( x~+~1 \right)~+~3\]

    \[2x~+~5\]