There are four environments that put LaTeX in math mode: math, displaymath, eqnarray, and equation. The math environment is for formulas that appear right in the text. The displaymath and equation environments are for formulas that appear on their own line; they differ only insofar as the latter prints an equation number. LaTeX will not break lines in displaymath or equation environments unless told to do so with a \ command.