I have to show for $M \in \mathbb{R}^{(N \times n)\times (N \times n)}$ symmetric Matrix and $f:\mathbb{R}^{N\times n} \longrightarrow \mathbb{R}$ with $f(x):= \langle Mx,x\rangle$ that:
f is convex if and only if $f(x) \ge 0.$
where $\langle\cdot,\cdot\rangle$ is the standard inner product on $\mathbb{R}^{N\times n}$.
I don't know how to proof that. Perhaps someone has a hint.
Thanks in advance!!!
$f$ is convex $\iff$ the Hessian of $f$ is positive semi-definite. The Hessian of $f$ is the martix $2M.$
Hence: $f$ is convex $ \iff M$ is positive semi-definite $ \iff \left \langle Mx,x\right \rangle \ge 0$ for all $x$.