I am working with the first of 3 very long equations and am trying to get it where it will be relatively easy to read. However I get the following error
! Missing } inserted.
<inserted text>
}
l.95 \end{multline}
If I use equation instead of multline the code works, but then it is not readable since it is such a long expression. Can anyone help me figure this out?
\documentclass[12]{article}
\usepackage{amsmath}
\begin{document}
\begin{multline}
\dot{u}= \frac{R^2\, X_a + R^2\, X_t \\
+R_{earth}^2\, T_{13}\, g_0\, m \\
-R^2\, m\, q\, \omega \\
+R^2\, m\, r\, v \\
-R^3\, T_{13}\, T_{21}^2\, m\, \omega_{earth}^2\, \cos^2\lambda \\
-R^3\, T_{13}\, T_{31}^2\, m\, \omega_{earth}^2\, \cos^2\lambda \\
+R^2\, T_{31}\, m\, v\, \omega_{earth}\, \cos\lambda \\
-R^2\, T_{21}\, m\, \omega\, \omega_{earth}\, \cos\lambda \\
-\frac{R^3\, T_{11}\, T_{23}^2\, m\, \omega_{earth}^2\, \sin(2\lambda)}{2} \\
-\frac{R^3\, T_{11}\, T_{33}^2\, m\, \omega_{earth}^2\,\sin(2\lambda)}{2} \\
-R^2\, T_{33}\, m\, v\, \omega_{earth}\, \sin\lambda \\
+R^2\, T_{23}\, m\, \omega\, \omega_{earth}\, \sin\lambda \\
+R^3\, T_{11}\, T_{21}\, T_{23}\, m\, \omega_{earth}^2\, \cos^2\lambda \\
+R^3\, T_{11}\, T_{31}\, T_{33}\, m\, \omega_{earth}^2\, \cos^2\lambda \\
+\frac{R^3\, T_{13}\, T_{21}\, T_{23}\, m\, \omega_{earth}^2\, \sin(2\lambda)}{2} \\
+\frac{R^3\, T_{13}\, T_{31}\, T_{33}\, m\, \omega_{earth}^2\, \sin(2\lambda)}{2}}{R^2 \, m}
\end{multline}
\end{document}
Edit: Thanks for all the help. Can you explain why the usage of \, is incorrect? I was under the impression that it would provide a narrow space between two adjacent symbols.
\omega_{earth}
should be\omega_{\mathrm{earth}}
or\omega_{\mathit{earth}}
\,
?