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 ($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, ($latex 1+2=3$) and ($latex f(x)$)
Exponents: Use ^{exponent}; remember to enclose the entire exponent in a pair of curly brackets. For example, (e^{-2x}, but not e^-2x, because the latter will produce )
Subscripts: Use _{subscript}. This is very similar to exponents. For example, (A_{0}) or (a_{10}, but not a_10, because the latter will produce )
Functions: Use \colon instead of “:” and use \to for the arrow.… Read the rest