A + or - that begins a formula (or certain subformulas) is assumed to be a unary operator, so typing $-x$ produces - x (and typing $\sum -x_{i}$ produces - xi), with no space between the ``-'' and the ``x''.
$-x$
$\sum -x_{i}$