Pictures below are from do Carmo's Riemannian Geometry. The third picture is from the 133th page.
First, I want to show the mean curvature vector does not depend on the chosen frame $E_i$. But I don't how to do it.
Second, when $f$ is minimal, we have trace of $S_\eta$ $=0$ for all $\eta\in (T_pM)^\perp$. Therefore, $H(p)=0$. But, why $H(p)=0$ means $f$ is minimal ?



First of all, notice that for another orthonormal frame $\{F_j\}$, where $F_j=\sum_ ia_{ji}E_i$, by linearity we have $S_{F_j}=\sum_i a_{ji} S_{E_i}$. We write $A=(a_{ji})$. Also recall that trace is independent on basis chosen, \begin{align}H=\frac 1n \sum_j (\operatorname{trace} S_{F_j})F_j &=\frac 1n \sum_{j,i,k}a_{ji}(\operatorname{trace} S_{E_i})a_{jk}E_k\\&=\frac 1n \sum_{i,k}(\operatorname{trace}S_{E_i})\underbrace{(A^TA)_{ik}}_{\delta_{ik}} E_k\\&=\frac 1n\sum_i(\operatorname{trace} S_{E_i}) E_i\end{align} If $H=0$, then by linear indepedence all trace of $S_i$, for some choice of orthonormal basis, but then $S_\eta$ is always given by linear combinations of $S_i$, so trace of $S_\eta$ is always zero.