L A T E X L A T E X
LaTeX is a high-quality typesetting system; it includes features designed for the production of technical and scientific documentation. LaTeX is the de facto standard for the communication and publication of scientific documents.
For now, we will focus just on writing math equations inside of a Markdown file or a jupyter notebook cell.
In most Markdown editors, you write a math equation inside two single dollar signs $eqt$
, or double dollar signs
Operators
\cos (2 \theta) = \cos ^2 \theta - \sin ^2 \theta
cos ( 2 θ ) = cos 2 θ − sin 2 θ cos ( 2 θ ) = cos 2 θ − sin 2 θ
limits
\lim_{x \to \infty} \exp(-x) = 0
lim x → ∞ exp ( − x ) = 0 lim x → ∞ exp ( − x ) = 0
Powers and indices
n 22 n 22
f(n) = n^5 + 4n^2 + 2 |_{n=17}
f ( n ) = n 5 + 4 n 2 + 2 | n = 17 f ( n ) = n 5 + 4 n 2 + 2 | n = 17
Fractions and Binomials
\frac{n!}{k!(n-k)!} = \binom{n}{k}
n ! k ! ( n − k ) ! = ( n k ) n ! k ! ( n − k ) ! = ( n k )
\frac{\frac{1}{x}+\frac{1}{y}}{y-z}
1 x + 1 y y − z 1 x + 1 y y − z
Sums and integrals
10 ∑ i = 1 t i ∑ i = 1 10 t i
\displaystyle\sum_{i=1}^{10} t_i
10 ∑ i = 1 t i ∑ i = 1 10 t i
\int_0^\infty \mathrm{e}^{-x}\,\mathrm{d}x
∫ ∞ 0 e − x d x ∫ 0 ∞ e − x d x
\sum_{\substack{
0<i<m \\
0<j<n
}}
P(i,j)
∑ 0 < i < m 0 < j < n P ( i , j ) ∑ 0 < i < m 0 < j < n P ( i , j )
Brackets, braces and delimiters
( a ), [ b ], \{ c \}, | d |, \| e \|,
\langle f \rangle, \lfloor g \rfloor,
\lceil h \rceil, \ulcorner i \urcorner
( a ) , [ b ] , c , | d | , | e | , ⟨ f ⟩ , ⌊ g ⌋ , ⌈ h ⌉ , ┌ i ┐ ( a ) , [ b ] , c , | d | , | e | , ⟨ f ⟩ , ⌊ g ⌋ , ⌈ h ⌉ , ⌜ i ⌝
Manual sizing
( \big( \Big( \bigg( \Bigg( word \Bigg) \bigg) \Big) \big) )
( ( ( ( ( w o r d ) ) ) ) ) ( ( ( ( ( w o r d ) ) ) ) )
\frac{\mathrm d}{\mathrm d x} \left( k g(x) \right)
d d x ( k g ( x ) ) d d x ( k g ( x ) )
Color
k = {\color{red}x} \mathbin{\color{blue}-} 2
k = x − 2 k = x − 2
\begin{equation}
C^i_j = {\textstyle \sum_k} A^i_k B^k_j
\end{equation}
C i j = ∑ k A i k B k j C j i = ∑ k A k i B j k
\newcommand{\tsum}[1]{{\textstyle \sum_{#1}}}
x = − b ± √ b 2 − 4 a c 2 a x = − b ± b 2 − 4 a c 2 a
\begin{equation}
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
\end{equation}
List of mathematical symbols
Trigonometric Functions
Symbol
Script
Symbol
Script
Symbol
Script
Symbol
Script
sin sin
\sin
arcsin arcsin
\arcsin
sinh sinh
\sinh
sec sec
\sec
cos cos
\cos
arccos arccos
\arccos
cosh cosh
\cosh
csc csc
\csc
tan tan
\tan
arctan arctan
\arctan
tanh tanh
\tanh
cot cot
\cot
Other Symbols
Symbol
Script
Symbol
Script
Symbol
Script
Symbol
Script
Symbol
Script
∂ ∂
\partial
ı ı
\imath
R ℜ
\Re
∇ ∇
\nabla
ℵ ℵ
\aleph
ð ð
\eth
j m a t h j m a t h
\jmath
I ℑ
\Im
□ ◻
\Box
ℶ ℶ
\beth
ℏ ℏ
\hbar
ℓ ℓ
\ell
℘ ℘
\wp
∞ ∞
\infty
ℷ ℷ
\gimel
Greek Letters
Symbol
Script
Symbol
Script
A and α α
A and \alpha
N and ν ν
N and \nu
B and β β
B and \beta
Ξ Ξ and ξ ξ
\Xi
and \xi
Γ Γ and γ γ
\Gamma
and \gamma
O and o
O
and o
Δ Δ and δ δ
\Delta
and \delta
Π Π , π π , and ϖ ϖ
\Pi
, \pi
and \varpig
E, ϵ ϵ , and ε ε
E, \epsilon
, and \varepsilon
P, ρ ρ and ϱ ϱ
P, \rho
and \varrho
Z and ζ ζ
Z and \zeta
Σ Σ , σ σ and ς ς
\Sigma
, \sigma
and \varsigma
H and η η
H and \eta
T and τ τ
T and \tau
Θ Θ , θ θ and ϑ ϑ
\Theta
, \theta
and \vartheta
Υ Υ and υ υ
\Upsilon
,\upsilon
I and ι ι
I and \iota
Φ Φ , ϕ ϕ and φ φ
\Phi
, \phi
and \varphi
K, κ κ , ϰ ϰ
K, \kappa
, \varkappa
X, χ χ
X, \chi
Λ Λ , λ λ
\Lambda
, \lambda
Ψ Ψ , ψ ψ
\Psi
, \psi
M, μ μ
M, \mu
Ω Ω , ω ω
\Omega
, \omega
Delimeters
Symbol
Script
Symbol
Script
Symbol
Script
↑ ↑
\uparrow
${$
\{
} }
\}
↓ ↓
\downarrow
⇑ ⇑
\Uparrow
⇓ ⇓
\Downarrow
Relation Symbols
Symbol
Script
Symbol
Script
Symbol
Script
Symbol
Script
Symbol
Script
< <
<
> >
>
= =
=
∥ ∥
\parallel
∦ ∦
\nparallel
≤ ≤
\leq
≥ ≥
\geq
≐ ≐
\doteq
≍ ≍
\asymp
⋈ ⋈
\bowtie
≪ ≪
\ll
≫ ≫
\gg
≡ ≡
\equiv
⊢ ⊢
\vdash
⊣ ⊣
\dashv
⊂ ⊂
\subset
⊃ ⊃
\supset
≈ ≈
\approx
∈ ∈
\in
∋ ∋
\ni
⊏ ⊏
\sqsubset
⊐ ⊐
\sqsupset
∼ ∼
\sim
⊥ ⊥
\perp
∣ ∣
\mid
⊑ ⊑
\sqsubseteq
⊒ ⊒
\sqsupseteq
∝ ∝
\propto
≺ ≺
\prec
≻ ≻
\succ
⪯ ⪯
\preceq
⪰ ⪰
\succeq
≠ ≠
\neq
∢ ∢
\sphericalangle
∡ ∡
\measuredangle
Binary Operations
Symbol
Script
Symbol
Script
Symbol
Script
Symbol
Script
± ±
\pm
∩ ∩
\cap
⋄ ⋄
\diamond
⊕ ⊕
\oplus
∓ ∓
\mp
∪ ∪
\cup
△ △
\bigtriangleup
⊖ ⊖
\ominus
× ×
\times
⊎ ⊎
\uplus
◃ ◃
\triangleleft
⊗ ⊗
\otimes
∗ ∗
\ast
⊓ ⊓
\sqcap
▽ ▽
\triangledown
⊙ ⊙
\dot
⋆ ⋆
\star
∨ ∨
\vee
◯ ◯
\bigcirc
∘ ∘
\circ
† †
\dagger
∧ ∧
\wedge
∙ ∙
\bullet
∖ ∖
\setminus
‡ ‡
\ddagger
⋅ ⋅
\cdot
≀ ≀
\wr
⨿ ⨿
\amalg
References
https://en.wikibooks.org/wiki/LaTeX/Mathematics
https://en.wikibooks.org/wiki/LaTeX/Introduction