Thus, $\nabla f$ is perpendicular to $\frac{d \mathbf{r}}{dt}$.
Because $\mathbf{r}(t)$ traces out the level curve, $\frac{d \mathbf{r}}{dt}$ is a tangent vector to the level curve. Hence we have shown that $\nabla f$ is perpendicular to the tangent vector of the level curve. Thus, it is perpendicular to the level curve.