LaTeX provides powerful tools for creating mathematical content, from simple expressions to complex equations. There are different ways of working with math in LaTeX:
$...$
$$...$$
or the \[...\]
notation
equation
environment.amsmath
package.\frac{numerator}{denominator}
a^b
a_b
When we compile, here is how this code looks like (notice that LaTeX automatically assigns numbers to our equations within equation environment):
LaTeX supports many Greek letters and mathematical symbols. For example:
\alpha, \beta, \gamma, \Delta, \Omega
\sum, \int, \prod, \sqrt, \leq, \geq
Which creates the following output:
\
, for a small space, \:
for a medium space, and \;
for a large space in your equations.\text{}
command from the amsmath
package.\sin, \cos, \log
, etc.Example:
This code produces the following: