Solution
= Solution
If $f$ is <differentiable> at $x$, the <product rule> applied to $f\cdot f$ gives
$$
\boxed{g'(x)=2f(x)f'(x).}
$$
This proves sufficiency of the first alternative. No additional growth condition is required; if $f(x)=0$, the derivative of the square is zero.