I have a vector defined as \begin{bmatrix}x \\ \hat{x}\end{bmatrix} and it displays as expected, however if i try to add a dot derivative it gets misaligned.
minimal example:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
$$\dot{
\begin{bmatrix}x \\ \hat{x}\end{bmatrix}}
$$
\end{document}
results in:


$$...$$as this is not LaTeX syntax and does not follow LaTeX configuration. Use\[ ... \]or similar. – daleif Mar 16 '23 at 12:20