4. Given that $f(1) = 1$, $f'(1) = 2$, $g(1) = -1$, and $g'(1) = 3$. Evaluate $\left. \frac{d}{dx} \frac{g^2(x)}{x + f(x)} \right|_{x=1}$.