Answer
$\color{blue}{\bf{(a) \dfrac{2}{x+1}; (-\infty, -1 )\bigcup( -1 ,\infty) }}$
$\color{blue}{\bf{(b) \dfrac{2}{x}+1; (-\infty, 0 )\bigcup( 0 ,\infty) }}$
Work Step by Step
We are given the two functions $\bf{f}$ and $\bf{g}$
$\bf{f(x) = \dfrac{2}{x} }$ and $\bf{g(x) = x+1 }$
${\bf(a)}$ We are asked to find $\bf{ ( f \text{ }\omicron\text{ g} )(x) }$ and its domain.
$( f \text{ }\omicron\text{ g} )(x) =\color{blue}{\bf{ \dfrac{2}{x+1} }}$
$x+1\neq0$ because division by zero is undefined
$x\neq-1$
so its domain is:
$\color{blue}{\bf(-\infty, -1 )\bigcup( -1 ,\infty) }$
${\bf(b)}$We are asked to find $\bf{ ( g \text{ }\omicron\text{ f} )(x) }$ and its domain.
$( g \text{ }\omicron\text{ f} )(x) = \color{blue}{\bf{ \dfrac{2}{x}+1 }}$
$ x \neq0$ because division by zero is undefined so the domain is:
$\color{blue}{\bf(-\infty, 0 )\bigcup( 0 ,\infty) }$