The following is an old qualifying exam question that has stumped me:
Let $f,g\in C^\infty(\mathbb{R}^3)$ be real-valued functions such that for some $x_0\in \mathbb{R}^3,$ we have $f(x_0) = g(x_0) = 0$ with $df(x_0)$ and $dg(x_0)$ linearly independent. Let $S_f$ and $S_g$ be the zero sets of $f$ and $g$ respectively. Show that if $h\in C^\infty(\mathbb{R}^3)$ vanishes on $S_f\cup S_g,$ then there exists a neighborhood $U\ni x_0$ such that in $U,$ we have $h(x) = f(x)g(x)H(x),$ for some $H\in C^\infty(U)$.
My initial thought was that the implicit function theorem might be a good place to start, but I have not been able to make any progress on it. Any thoughts are much appreciated.