Let $\mathbb{P}^{n \times n}(\mathbb{R})$ denote the set of positive definite matrices. Is the following function convex? $$ \det: A\in \mathbb{P}^{n \times n}(\mathbb{R}) \to \det (A)$$
I think the answer is yes, but I cannot prove it directly using the definition of convex function. How can I do?
Let $Q={1 \over \sqrt{2}}\begin{bmatrix} 1 & -1 \\ 1 & 1 \end{bmatrix}$, $A=\begin{bmatrix} 1 & 0 \\ 0 & 2 \end{bmatrix}$, $B= QAQ^T$.
Then $A>0,B>0$ and $\det A = \det B = 2$, but $\det ({1 \over 2} (A+B)) = {17 \over 8} > 2$.