Question about the gradient of a function We consider a function of class $C^1(\mathbb{R}^2)$, by searching a max or min between the points of $S=\{(x,y) \in \mathbb{R}^2 \;\; | \;\; x^2+y^2=1\}$, if $(x_0,y_0)$ is one of them, is it true that there exists $\lambda \in \mathbb{R}$ such that $\nabla f(x_0,y_0)=2\lambda (x_0,y_0)?$ Why?

Let $g(x,y)=x^2+y^2$. Then $S=\{(x,y)\in\Bbb R^1\mid g(x,y)=1\}$ and the method of Lagrange multipliers tells us that if $f$ has a local extreme at some point $(x_0,y_0)\in S$, then $\nabla f(x_0,y_0)=\lambda\nabla g(x_0,y_0)$, for some $\lambda\in\Bbb R$. And $\nabla g(x_0,y_0)=(2x_0,2y_0)$.
