I would like to display a matrix with a dot (derivative) on top of it. The entry of this matrix shall consist of arbitrary symbols.
When I write
\begin{align}
\dot{\begin{pmatrix} x \\ y \end{pmatrix}}
\end{align}
everything works fine. However,
\begin{align}
\dot{\begin{pmatrix} \hat{x} \\ \hat{y} \end{pmatrix}}
\end{align}
results in a weird series of errors (Illegal units of measure etc.).
How can I display a matrix derivation with hats (or other ornaments) on my x and y variables? Neither changing from pmatrix to array nor setting brackets did bring any improvements.
A complete example of the problem reads:
\documentclass{report}
\usepackage[utf8x]{inputenc}
\usepackage{amsmath,amsfonts,mathrsfs,amssymb,dsfont}
\begin{document}
\begin{align}
\dot{\begin{pmatrix} \hat{x} \\ \hat{y} \end{pmatrix}} % Problem!
\end{align}
\end{document}

d\dtnext to the matrix instead of the dot. It often looks like a dirt on the screen. – percusse Nov 28 '13 at 13:13d/dtis much clearer Also, dot above the vector may be ambiguous of whether it is just a dot above the first element. – oLas Nov 28 '13 at 13:25\begin{document}– David Carlisle Nov 28 '13 at 13:39\dotin latex is just the tex primitive mathaccent.\dotinamsmathis a different thing altogether:-) – David Carlisle Nov 28 '13 at 13:51