I tried to prove $f(H)=H^TH$ convex, where $H$ is a matrix. We know when $h$ is a vector, then $f(h)=h^Th$ is convex. Can I prove it using the following equation? $[\theta H_1 + (1-\theta) H_2]^T[\theta H_1 + (1-\theta) H_2] \leq \theta H_1^TH_1 + (1-\theta)H_2^TH_2$
In the convex analysis textbook, the definition of a convex function is $f(\theta x + (1-\theta)y) \leq \theta f(x) + (1-\theta) f(y)$ where $f(x):R^n\rightarrow R$. But for my case, $f(H)=H^TH$ is $R^{m\times n} \rightarrow R^{n\times n}$. Please help to prove or disprove it? Thanks