The function $f: R^n \times S^n \rightarrow R $ defined as $ f(x,y)=x^TY^{-1}x$ is convex on $\operatorname{dom} f = R^n \times S_{++}^n$. One easy way to establish convexity of f is via its epigraph:
$$ \operatorname{epi} f = \{(x,Y,t)\mid Y \succ 0, x^TY^{-1}x \leq t \} = \{ (x,Y,t) \mid \begin{bmatrix} Y & x \\ x^T & t \end{bmatrix} \succeq0, Y\succ 0 \} $$
using the Schur complement condition for positive semidefiniteness of a block matrix.The last condition is a linear matrix inequality in $(x, Y, t)$, and therefore epi f is convex.
This example is in my book but i don't understand it. I know what epigraph is and I know why $Y \succ 0, x^TY^{-1}x \leq t$ should hold. But I don't understand the matrix. How the matrix semidefiniteness would help us? And how to obtain such matrix?