Latex Cheat Sheet

Inline math uses $...$

Display math uses:

$$
...
$$

Variables

OutputLaTeX
x
x_1
x_{long}
x^2
x^{10}
x_i^2

Fractions

OutputLaTeX
\frac{a}{b}
\dfrac{a}{b}

Square Roots

OutputLaTeX
\sqrt{x}
\sqrt[n]{x}

Parentheses

Automatically sized delimiters:

OutputLaTeX
\left(x\right)
\left[\frac{a}{b}\right]
\left{x\right}\left\{x\right\}
x\rightx\right

Greek Letters

OutputLaTeX
\alpha
\beta
\gamma
\delta
\epsilon
\theta
\lambda
\mu
\pi
\rho
\sigma
\tau
\phi
\omega
\Gamma
\Delta
\Theta
\Lambda
\Pi
\Sigma
\Phi
\Omega

Arithmetic

OutputLaTeX
a+b
a-b
a\cdot b
a\times b
\frac{a}{b}

Comparison

OutputLaTeX
=
\neq
<
>
\le
\ge
\approx
\equiv
\propto

Logic

OutputLaTeX
\land
\lor
\neg
\forall
\exists
\therefore
\because
\implies
\iff

Sets

OutputLaTeX
\in
\notin
\subset
\subseteq
\supseteq
\cup
\cap
\emptyset
\mathbb{N}
\mathbb{Z}
\mathbb{Q}
\mathbb{R}
\mathbb{C}

Calculus

OutputLaTeX
\lim_{x\to0}
\sum_{i=0}^{n}
\prod_{i=1}^{n}
\int_a^b
\oint
\partial
\nabla
\infty

Derivatives

OutputLaTeX
\frac{dy}{dx}
\frac{\partial f}{\partial x}
\dot{x}
\ddot{x}

Vectors

OutputLaTeX
\vec{v}
\overrightarrow{AB}
\mathbf{v}
\hat{x}
\bar{x}

Matrices

$$
\begin{bmatrix}
1 & 2 \\
3 & 4
\end{bmatrix}
$$

Produces

Other environments:

  • pmatrix → ()
  • bmatrix → []
  • Bmatrix → {}
  • vmatrix → |
  • Vmatrix → ||

Cases

$$
f(x)=
\begin{cases}
x^2 & x>0\\
0 & x=0\\
-x & x<0
\end{cases}
$$

Alignment

$$
\begin{aligned}
a+b &= c\\
x+y &= z
\end{aligned}
$$

Decorations

OutputLaTeX
\overline{AB}
\underline{x}
\widehat{ABC}
\widetilde{f}
*\cancel{x}

*Requires the cancel package (not available in all renderers).


Common Functions

OutputLaTeX
\sin
\cos
\tan
\log
\ln
\exp
\max
\min

Spacing

OutputLaTeX
a\,b
a\;b
a\quad b
a\qquad b

Text Inside Math

\text{Speed}

Example:


Useful Symbols

OutputLaTeX
\rightarrow
\Rightarrow
\leftarrow
\leftrightarrow
\mapsto
\circ
\bullet
\angle
\perp
\parallel
*^\circ

Most Used Commands

^        Superscript
 
_        Subscript
 
\frac{}{}
 
\sqrt{}
 
\sum
 
\prod
 
\int
 
\lim
 
\partial
 
\nabla
 
\vec{}
 
\mathbf{}
 
\mathbb{}
 
\left ... \right
 
\begin{cases}
 
\begin{aligned}
 
\begin{bmatrix}

Inline math uses $...$

Display math uses:

$$
...
$$