If I have some action that depends on a set of variables like so:
$S(\{\phi_{i} \}) = \phi_{i}A^{-1}_{ij}\phi_{j} + g(\phi_{i})$
(where einstein summation notation is being used for the term $\phi_{i}A^{-1}_{ij}\phi_{j}$ and $g$ is just some function)
How could I taylor expand the action around a specific value of $\phi$, say $a$, so in powers of $\phi_{i}-a$? I know I must in the end have a term like $S(a)$, and then further terms that depend on derivatives of $S$. What trips me up is that $S$ depends on $\phi_i$ and $\phi_j$, though I do see that the indexes here are not actually meaningful.