LaTeX, a powerful typesetting system, excels in rendering mathematical equations and formulas. It offers two primary math modes: inline and display. These modes allow users to seamlessly integrate mathematical expressions into their documents.
Inline math mode is used for incorporating mathematical expressions within text. It's perfect for short equations or symbols that don't disrupt the flow of reading.
To use inline math mode, enclose your mathematical expression in single dollar signs ($) or \( and \).
The quadratic formula is $x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$.
This renders as: The quadratic formula is x = -b ± √(b² - 4ac) / 2a.
Display math mode is used for larger equations or formulas that deserve their own line. It centers the mathematical expression and provides more vertical space.
To use display math mode, enclose your mathematical expression in double dollar signs ($$) or \[ and \].
The Pythagorean theorem is:
$$a^2 + b^2 = c^2$$
This renders the equation on its own line, centered and prominent.
LaTeX also provides specific environments for equations, offering additional features like automatic numbering.
The equation environment is used for single-line equations that you want to number automatically.
\begin{equation}
E = mc^2
\end{equation}
The align environment is useful for aligning multiple equations or parts of equations.
\begin{align}
2x - 5y &= 8 \\
3x + 9y &= -12
\end{align}
Understanding and effectively using LaTeX Math Modes is crucial for creating professional-looking mathematical documents. Combined with knowledge of LaTeX Basic Math Symbols and LaTeX Advanced Math Symbols, you can express complex mathematical ideas with clarity and precision.
For more advanced mathematical typesetting, consider exploring the LaTeX AMS-LaTeX Package, which provides additional environments and commands for mathematical notation.