A set $S^{+}$ of positive semi-definite matrices (PSD) is defined as
$S^+=\{\mathbf X \in S^n |\mathbf z^T \mathbf X \mathbf z \ge 0,\forall z \in R^n,\mathbf X^T=X \}$
Use the property of which intersection of the halfspaces is also convex to prove $S^+$ is convex set.
And the solution is as below
Define $S_z=\{\mathbf X \in S^n |\mathbf z^T \mathbf X \mathbf z \ge 0\}=\{\mathbf X \in S^n |Tr(\mathbf X \mathbf z\mathbf z^T )\ge 0\}=\{\mathbf X \in S^n |Tr(\mathbf X \mathbf Z)\ge 0\}$,so $S_z$ is a halfspace,so $S^n_+=\{\mathbf X \in S^n |\mathbf z^T \mathbf X \mathbf z \ge 0,\forall z \in R^n \}=\cap_{z \in R^n}S_z$,so it is convex.
I can't understand the last part of the solution,i mean the relation between
1.$S_z$ is a halfspace
2.$S^n_+=\{\mathbf X \in S^n |\mathbf z^T \mathbf X \mathbf z \ge 0,\forall z \in R^n \}=\cap_{z \in R^n}S_z$
3.so it is convex.
By the way,why is $S^n_+=\{\mathbf X \in S^n |\mathbf z^T \mathbf X \mathbf z \ge 0,\forall z \in R^n \}=\cap_{z \in R^n}S_z$,i can't understand this either,can anyone explain them to me?
The following steps are equivalent:
In particular, equivalence of $2$ and $4$ means that $S_+^n=\cap_{z\in{\Bbb R}^n}S_z$. $S_z$ is a half-space as it is given by inequality "the inner product with a fixed vector is non-negative". A half-space is convex, hence, $S_+^n$ is convex as an intersection of convex sets.