this is my code:
\begin{eqnarray}
[A,C]\mid_{dom(x)} = -x^1x^2\frac{\partial}{\partial x^1} + (2(x^1)^2 - (x^2)^2 +2)\frac{\partial}{\partial x^2} \\
[B,C]\mid_{dom(x)} = ((x^1)^2 - 2) \frac{\partial}{\partial x^1} -5x^1x^2 \frac{\partial}{\partial x^2}
\end{eqnarray}
and this the error:
54
Missing number, treated as zero.
<to be read again>
B
l.54 [B,C]
\mid_{dom(x)} = ((x^1)^2 - 2) \frac{\partial}{\partial x^1} -5x^1x...
I would be glad if you help me, I cannot figure out the problem and solve it. I am a new Tex learner :/
I could not write the comment, anyway I like to thank you, these advices of yours solved my little problem!

&, before the=signs. In this case it's better to usealignof theamsmathpackage thaneqnarray. See http://tex.stackexchange.com/q/196/18228 – Herr K. Nov 23 '13 at 23:02\\ofeqnarrayhas an optional argument which is expected to be a length. So your first\\takes[B,C]for its argument, and finds no length there, producing the error. Theamsmathalignenvironment is better in many ways, and this is just one of the minor ones. – Dan Nov 24 '13 at 07:01