Let us consider $f:\, \mathbb{R}^n \rightarrow \mathbb{R}$ be a convex function and differentiable at a point $x_0$.
If $\partial f(x_0)$ denotes the subdifferential of $f$ I would like to prove that the only element in it is given by the gradient of f in $x_0$, i.e.
$$ \partial f(x_0)=\left\lbrace\nabla f(x_0)\right\rbrace $$
I know that it should be trivial but i can't prove the inclusion: $\subset$ ...any suggestion?
I have just found an alternative argument:
Let us consider $v\in \partial f(x_0)$. By definition of subgradient, $$ f(x)\geq f(x_0)+(v,x-x_0) \qquad \forall x \in \mathbb{R}^n$$ Then by choosing $x=x_0+\lambda z$ for any $z$ and $\lambda >0$ one gets $$(v,z) \leq \dfrac{f(x_0+\lambda z)-f(x_0)}{\lambda} \rightarrow \nabla f(x_0) \cdot z$$ that is $$(\nabla f(x_0)-v)\cdot z \geq 0 \qquad \forall z $$ and by choosing $z=-(\nabla f(x_0)-v)$ one has to conclude that $$\nabla f(x_0)=v\, .$$