Given the positive vector ${\bf a} \in {\Bbb R}_{>0}^n$ and symmetric positive definite $n \times n$ matrices ${\bf A}_1, {\bf A}_2, \dots, {\bf A}_n$, define the scalar field $f : {\Bbb R}^n \to {\Bbb R}$ by
$$ f({\bf x}) := ({\bf x} - {\bf a})^\top \left( \sum_{i=1}^n x_i {\bf A}_i \right)^{-1}({\bf x} - {\bf a}) $$
$x_i \geq a_i$ for all $i$. Is $f$ convex?
Without the $x_i$ in the inner parenthesis the answer is yes. I have tried to look at the shape of $f$ numerically and it does look convex for the parameters I have tried.