\[g(x) = \frac{x^{3} + 3x^{2} - x - 3}{2x^{2} - 2} =\]
\[= \frac{x^{2}(x + 3) - (x + 3)}{2 \cdot \left( x^{2} - 1 \right)} =\]
\[= \frac{(x + 3)\left( x^{2} - 1 \right)}{2 \cdot \left( x^{2} - 1 \right)} =\]
\[= \frac{x + 3}{2} = \frac{1}{2}x + 1,5;\ \ \ \ x \neq \pm 1.\]