Let $U\subset \mathbb R^n$ be an open subset, $f:U\to \mathbb R^n$ a differentiable function and $\varphi:\mathbb R^n\to \mathbb R$ of class $C^1$. Suppose $\varphi(f(x))=0$ for every $x\in U$.
I'm trying to prove:
If $a\in U$ and $\nabla \varphi(f(a))\neq 0$, then $\det f'(a)=0$.
Using the chain rule we know that $\varphi(f(x))'=\varphi'(f(x))\cdot f'(x)\equiv 0$ for every $x\in U$ because $\varphi\circ f$ is constant. I also know that since $\varphi\in C^1$, $\varphi'$ is continuous, thus
$$\varphi'(f(a)+v)-\varphi'(f(a))\to 0$$ as $v\to 0$.
My problem is I don't know how to use these facts to prove this question.