[Tex/LaTex] missing $ inserted error for equation

equationserrors

I get the missing $ inserted error for the following code:

\begin{equation}

C = $ \frac{2}{\omega^2N^2\mu\pia} $

\end{equation}

I have tried out different changes based on Googling for this error, but nothing seems to help. Any suggestions would be appreciated.

Best Answer

  1. Don't put $ inside the equation environment. You can't use math mode (ie, $...$ inside math mode (ie, \begin{equation}... \end{equation})
  2. Don't leave empty lines inside the equation environment.
  3. \pia should be \pi a. Note the space.

Code:

\documentclass{article}
\begin{document}
  \begin{equation}
   C =  \frac{2}{\omega²N²μ\pi a}
\end{equation}
\end{document}

enter image description here

Related Question