How can I prove the convexity and show $x$ is a subgradient of $f$ at $y$??
Let $S$ be a nonempty, bounded convex set in $\mathbb{R}^n$, and let $f: \mathbb{R}^n \to \mathbb{R}$ be defined as: $ f(y)=sup_{x \in S}{ \ y^t*x}.$
Prove that $f$ is convex and show that if $f(y) = y^t*x$, where $x \in S$, $x$ is a subgradient of $f$ at $y$.