Typesetting mathematics

This blog post is a short introduction to how to type mathematical expressions using LaTeX commands. On the blogging platform we are using, this is achieved by MathJax. Some documentations can be found here.

If you have a mathematical expression to type, you may start by entering “$latex” (remove quotation marks), writing the corresponding LaTeX commands, and then closing with another “$” (again, no quotation marks). Note that on your regular LaTeX editor (or Overleaf), you only need to enclose mathematical expressions by a pair of dollar signs.

Example:  The less-than-or-equal relation on real numbers is given by R=\{ (x,y) \in \mathbb{R}^2 \mid x \leq y \} ($latex R=\{ (x,y) \in \mathbb{R}^2 \mid x \leq y \}$)

Most of the commands are pretty intuitive:

Most stuff: Just type them! For example, 1+2=3 ($latex 1+2=3$) and f(x) ($latex f(x)$)

Exponents: Use ^{exponent}; remember to enclose the entire exponent in a pair of curly brackets. For example, e^{-2x} (e^{-2x}, but not e^-2x, because the latter will produce e^-2x)

Subscripts: Use _{subscript}. This is very similar to exponents. For example, A_{0} (A_{0}) or a_{10} (a_{10}, but not a_10, because the latter will produce a_10)

Functions: Use \colon instead of “:” and use \to for the arrow.… Read the rest