Solution (source code)

= Solution

The denominator is positive on $B$ because $x_3>-1$. The <quotient rule> gives the <gradient>
$$
\boxed{\nabla g(x)=\left(\frac1{x_3+3},\ \frac1{x_3+3},\ -\frac{x_1+x_2}{(x_3+3)^2}\right).}
$$
In particular $g$ is continuously differentiable throughout $B$.