In page 666 (it couldn't be other way - bad joke), chapter 19, the Eq. (19.73) claims (see properties of the $\phi_n(x)$ functions in this post: Change of variables in path integral measure):
$$ \sum_n \phi^\dagger_n(x)\gamma^5 \phi_n(x) = \lim_{\substack{M \rightarrow \infty}}\sum_n \phi^\dagger_n(x)\gamma^5 e^{(i\not{D})^2/M^2}\phi_n(x) = \lim_{\substack{M \rightarrow \infty}}\langle x| tr\{\gamma^5 e^{(i\not{D})^2/M^2}\} |x\rangle $$
Can anyone explain me the appearance of $tr$, i.e., trace inside the bracket and the bracket itself? In principle, the trace is given by the sum over $n$ so I don't understand why it is inside the bracket
EDIT I've seen another ways to compute this and the last step is changed by
$$ \lim_{\substack{M \rightarrow \infty}}\sum_n \phi^\dagger_n(x)\gamma^5 e^{(i\not{D})^2/M^2}\phi_n(x) = \lim_{\substack{M \rightarrow \infty \\ y \rightarrow x}}tr\{\int \frac{d^4p}{(2\pi)^4}e^{-ipy}\gamma^5 e^{(i\not{D})^2/M^2}e^{ipx}\} $$
But how can you go from $\phi_n(x)$ that are supposed to be an spinor basis to just an exponential and also there is a trace that I don't undertand if we are changing $\sum_n$ by $\int \frac{d^4p}{(2\pi)^4}$ and this is already representing the trace.
Source: http://www.int.washington.edu/users/dbkaplan/572_16/PhysRevD.21.2848.pdf Eq. (2.15)