
You need to define a command to add padding below and above its argument as follows
\newcommand{\addstackgapmath}[2][\Sstackgap]{\addstackgap[#1]{$\displaystyle #2$}}
Fot matrices containing horizontal and vertical lines, it is good practice to use bNiceArray
Off-Topic: it is better to enter bold math using \mathbf instead of \textbf
MWE
\documentclass{book}
\usepackage{amsmath}
\usepackage{nicematrix}
\usepackage{stackengine}
\newcommand{\addstackgapmath}[2][\Sstackgap]{\addstackgap[#1]{$\displaystyle #2$}}
\begin{document}
\begin{equation}
\mathrm{D}{}F(\mathbf{x}{0}, \mathbf{y}{0}) =
\left[\begin{array}{c|c}
\mathbf{I}
& 0 \
\hline
\addstackgapmath{\frac{\partial f}{\partial \mathbf{x}} (\mathbf{x}{0}, \mathbf{y}{0})} &
\addstackgapmath{\frac{\partial f}{\partial \mathbf{y}} (\mathbf{x}{0}, \mathbf{y}_{0})}
\end{array}\right]
.\end{equation}
\begin{equation}
\mathrm{D}{}F(\mathbf{x}{0}, \mathbf{y}{0}) =
\begin{bNiceArray}[hvlines-except-borders,margin]{c c}
\mathbf{I}
& 0 \
\addstackgapmath{\frac{\partial f}{\partial \mathbf{x}} (\mathbf{x}{0}, \mathbf{y}{0})} &
\addstackgapmath{\frac{\partial f}{\partial \mathbf{y}} (\mathbf{x}{0}, \mathbf{y}_{0})}
\end{bNiceArray}.
\end{equation}
\end{document}
\scriptspace; admittedly, it's0.5pt, so I can see it only at 1600% magnification on my screen, but there might be situations where this leads to unexpected behaviour. But +1 anyway... – campa Dec 02 '21 at 16:48\kern-\scriptspaceto the definition of\mystrut. :-) – Mico Dec 02 '21 at 16:53\mathbfas you recommended! – Descrates Dec 02 '21 at 16:54