The feature that latex L a T e X the right edition tool for scientific documents is the ability to render complex mathematical expressions. This article explains the basic commands to display equations.
Basic equations in L a T e X can be easily "programmed", anal destuction example:.
Meaning the next equation has no integer solutions: Open an example in ShareLaTeX. L a T e X allows two writing modes for mathematical expressions: The first one is used to write formulas that are part of a text. The second one is used latex write expressions that are not part of a text or paragraph, and are latex put on separate lines.
To put your equations in inline mode use one of these delimiters: They all work and the choice is a matter of taste.