Latex math

From wikinotes

Tutorials

overleaf: expressions https://www.overleaf.com/learn/latex/Mathematical_expressions
overleaf: subscripts/superscripts https://www.overleaf.com/learn/latex/Subscripts_and_superscripts
overleaf: brackets/parenthesese https://www.overleaf.com/learn/latex/Brackets_and_Parentheses
overleaf: fractions/binomials https://www.overleaf.com/learn/latex/Fractions_and_Binomials
overleaf: aligning equations https://www.overleaf.com/learn/latex/Aligning_equations_with_amsmath
overleaf: operators https://www.overleaf.com/learn/latex/Operators
overleaf: spacing https://www.overleaf.com/learn/latex/Spacing_in_math_mode
overleaf: sums/limits https://www.overleaf.com/learn/latex/Integrals,_sums_and_limits
overleaf: display style https://www.overleaf.com/learn/latex/Display_style_in_math_mode
overleaf: greek letters/symbols https://www.overleaf.com/learn/latex/List_of_Greek_letters_and_math_symbols
overleaf: math fonts https://www.overleaf.com/learn/latex/Mathematical_fonts

Math Blocks

/begin{math}
  \[x^2\]
/end{math}

Operators

x + 1                 % addition
x - 1                 % subtraction
x \times 2            % multiplication
x \div 1              % division





x^{2 + 1}            % exponent
\sqrt{2 + 1}         % square root



\frac{1 \times 2}{2}  % fraction

Brackets

( x+y )    % parentheses
[ x+y ]    % square brackets
\{ x+y \}  % curly brackets
| x+y |    % pipes
\| x+y \|  % double pipes





% each 1-size larger of '('
% (applicable to all brackets)
(
\big(
\Big(
\bigg(
\Bigg(

Equations

\begin{align}
x & = (1 + 1) + 1 \\
 & = 2 + 1 \\
 & = 3
\end{align}