Is the trace of the inverse of the matrix product $B^TB$, i.e. $\mathrm{trace}((B^TB)^{-1})$, convex where $B\in M_{n,m}$.
I know that $S\longrightarrow \mathrm{trace}(S^{-1})$ is a convex function and you can find the proof here Is the trace of inverse matrix convex?. But now I'm asking about the composition of two convex functions which are $f: S\longrightarrow \mathrm{trace}(S^{-1})$ and $g: B\longrightarrow B^TB$.
So I would like to know whether the function $f\circ g:B\longrightarrow \mathrm{trace}((B^TB)^{-1})$ is convex and how we can prove that.