2. One possible condition is that f is non-zero in some neighborhood of a, since in that case, you can write $g={fg\over f}$ and apply the quotient rule.