Computing derivatives: \[ f'(x) = 2x + g'(1), \quad f''(x) = 2 \] Solving for \( g(x) \), \[ g(x) = f(1)x^2 + x[2x + g'(1)] + 2 \] \[ g'(x) = 2f(1)x + 4x + g'(1) \] \[ g''(x) = 2f(1) + 4 \] Setting boundary conditions: \[ f(1) = -2, \quad g'(1) = -3 \] \[ f(x) = x^2 - 3x \] \[ g(x) = -3x + 2 \] \[ f(4) - g(4) = 14 \]