LaTeX allows two writing modes for mathematical expressions: the inline mode and the display mode. The first one is used to write formulas that are part of a text .

Enclose your formula in single $, as follows: Text text text $ \some \math \ commands $ more text text text. Note that if you use double $$ instead.

Math mode has two main modes: display mode and inline mode. Inline mode is for math that is included within a line or paragraph of text, and display mode is.