I have an equation consisting of two parts and would like to use subequation for that. Here's the code:
\usepackage{amsmath}
\begin{subequations}
\begin{equation}
\operatorname{min}_{a,b,c}
\frac{1}{2}\mathbf{w}^{T}\mathbf{w} + C \sum_{i=1}^{l}\xi_{i}
\end{equation}
\begin{equation}
y_{i}\left(\mathbf{w}^{T}\phi(x_{i})+b\right)
\end{equation}
\end{subequations}
I'm getting an error:
final.tex:118:Missing $ inserted.
final.tex:118:Display math should end with $$.
Can anybody help with that?
\mininstead of\operatorname{min}, and it might be an idea to use thebmpackage and its\bmcommand for bold letters, then one getsbold italicnotbold upright– daleif Mar 22 '11 at 10:05equations withinsubequations, it's generally better to use one of theamsmathmulti-line display structures; in this instance i'd suggestgather. separateequations may not be spaced well vertically, and can break across pages. – barbara beeton Mar 22 '11 at 12:39