1

While creating a matrix by using

$
\begin{matrix}
 $\dot{x_1}$ \\
 $\dot{x_2}$ \\
\end{matrix}
$

How to get the required output?

3
  • Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}.
    – dexteritas
    Jun 3 '18 at 17:17
  • 2
    "How to get the required output?" That of course depends on the required output. What do you want to achieve?
    – dexteritas
    Jun 3 '18 at 17:18
  • 4
    One error here are the $ inside matrix. They should be removed.
    – dexteritas
    Jun 3 '18 at 17:19
3

The cells in the matrix are already in math mode. An additional $ leaves math and \dot will cause the error. Try:

$
\begin{matrix}
  \dot{x_1} \\
  \dot{x_2} \\
\end{matrix}
$

Full example with a version, where the dot is applied to the letter directly:

\documentclass{article}
\usepackage{amsmath}

\begin{document}
$
\begin{matrix}
  \dot{x_1} \\
  \dot{x_2} \\
\end{matrix}
$ vs.\@
$
\begin{matrix}
  \dot{x}_1 \\
  \dot{x}_2 \\
\end{matrix}
$
\end{document}

Result

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.