If the domain of the function \( f(x) = \frac{1}{\sqrt{3x + 10 - x^2}} + \frac{1}{\sqrt{x + |x|}} \) is \( (a, b) \), then \( (1 + a)^2 + b^2 \) is equal to:
Let \( f(x) = \log x \) and \[ g(x) = \frac{x^4 - 2x^3 + 3x^2 - 2x + 2}{2x^2 - 2x + 1} \] Then the domain of \( f \circ g \) is: