[step:Decompose the system along the invariant subspaces $E^s$, $E^u$, $E^c$]The Jacobian matrix $A := Jf_{\mathbf{0}} \in \mathbb{R}^{n \times n}$ has eigenvalues that partition into three groups:
- **Stable eigenvalues:** $\operatorname{Re}(\lambda) < 0$, spanning the stable subspace $E^s$ of dimension $n_s$.
- **Unstable eigenvalues:** $\operatorname{Re}(\lambda) > 0$, spanning the unstable subspace $E^u$ of dimension $n_u$.
- **Centre eigenvalues:** $\operatorname{Re}(\lambda) = 0$, spanning the centre subspace $E^c$ of dimension $n_c$.
Since $\mathbf{0}$ is non-hyperbolic, $n_c \geq 1$. The space $\mathbb{R}^n$ decomposes as a direct sum $\mathbb{R}^n = E^s \oplus E^u \oplus E^c$, and each of these subspaces is $A$-invariant. Choose a basis adapted to this decomposition, so that writing $\mathbf{x} = (\mathbf{x}_s, \mathbf{x}_u, \mathbf{x}_c)$ with $\mathbf{x}_s \in E^s \cong \mathbb{R}^{n_s}$, $\mathbf{x}_u \in E^u \cong \mathbb{R}^{n_u}$, $\mathbf{x}_c \in E^c \cong \mathbb{R}^{n_c}$, the system $\dot{\mathbf{x}} = \mathbf{f}(\mathbf{x})$ takes the form
\begin{align*}
\dot{\mathbf{x}}_s &= A_s \mathbf{x}_s + \mathbf{g}_s(\mathbf{x}_s, \mathbf{x}_u, \mathbf{x}_c), \\
\dot{\mathbf{x}}_u &= A_u \mathbf{x}_u + \mathbf{g}_u(\mathbf{x}_s, \mathbf{x}_u, \mathbf{x}_c), \\
\dot{\mathbf{x}}_c &= A_c \mathbf{x}_c + \mathbf{g}_c(\mathbf{x}_s, \mathbf{x}_u, \mathbf{x}_c),
\end{align*}
where $A_s \in \mathbb{R}^{n_s \times n_s}$ has all eigenvalues with $\operatorname{Re}(\lambda) < 0$, $A_u \in \mathbb{R}^{n_u \times n_u}$ has all eigenvalues with $\operatorname{Re}(\lambda) > 0$, $A_c \in \mathbb{R}^{n_c \times n_c}$ has all eigenvalues with $\operatorname{Re}(\lambda) = 0$, and the nonlinear terms $\mathbf{g}_s, \mathbf{g}_u, \mathbf{g}_c$ are $C^r$ functions satisfying
\begin{align*}
\mathbf{g}_\sigma(\mathbf{0}) = \mathbf{0}, \qquad D(\mathbf{g}_\sigma)_{\mathbf{0}} = 0, \qquad \sigma \in \{s, u, c\}.
\end{align*}
The vanishing of $\mathbf{g}_\sigma$ and its derivative at the origin follows from $\mathbf{f}(\mathbf{0}) = \mathbf{0}$ and the definition of $A = Jf_{\mathbf{0}}$.[/step]