Consider an arbitrary vector real valued function smooth and continuous $\mathbf{r}$ and $\mathbf{r} \cdot \mathbf{r} = \| \mathbf{r} \|^2$
Given $ (\| \mathbf{r} \|^2)' = (\mathbf{r} \cdot \mathbf{r})' = \mathbf{r}' \cdot \mathbf{r} + \mathbf{r} \cdot \mathbf{r}' = 2\mathbf{r} \cdot \mathbf{r}' = 0$
Does it follow that $\|\mathbf{r}\|$ is a constant because $(\| \mathbf{r} \|^2)' = 0$?