I have been given a proof for the weak maximum principle and I do not understand the logic in one of the steps.
Let $a_{ij}$ be syymetric then: $$Lv=\sum_{i,j=1}^N a_{ij}(x)\partial_{x_i}\partial_{x_j}+\sum_{i=1}^Nb_i(x)\partial_{x_i}v $$ Then in one step of the proof we have that $\nabla v(x_0)=0$ and the Hessian matrix $\nabla^2 v(x_0)$ is negative semi-definite. So we have: $$ Lv(x_0)=\sum_{i,j=1}^N a_{ij}(x_0)\partial_{x_i}\partial_{x_j}v(x_0) $$ But the part I do not understand is the following line:
$$ \sum_{i,j=1}^N a_{ij}(x_0)\partial_{x_i}\partial_{x_j}v(x_0)=Trace(a(x_0)\nabla^2(v(x_0)) $$
Any help with this would be greatly appreciated.