There is a question that just popped up in my mind:
Let $P$ be a polyhedron and $f: \Bbb R^n \to \Bbb R $ be a quadratic function, i.e., $f$ admits the representation $$f(x) = x^t Q x + b^t x + \alpha $$ where $Q$ is a $n \times n$ matrix. Assume $f$ is convex on $P$. Then can we find a positive semidefinite matrix $A$ and vector $a$ and scalar $\beta$ such that $$f(x) = x^t A x + a^t x + \beta \quad \quad \forall x \in P$$
a) I guess no, looking for an example? What if $\mbox{int} \, P \ne \emptyset$?
Assume that $P$ is a set with a non-empty relative interior, i.e. $\exists x_0\in\text{ri}\,P$.