Mathematical Notation with KaTeX
This blog now supports beautiful mathematical notation using KaTeX! You can write both inline and block math expressions.
π‘ KaTeX renders math notation quickly and produces high-quality typesetting that looks great in both light and dark themes.
Inline Math
You can include math inline like this: E=mc2 or x=2aβbΒ±b2β4acββ.
The area of a circle is A=Οr2 where r is the radius.
Block Math
For larger expressions, use block math:
β«ββββeβx2dx=Οβ
The SchrΓΆdinger equation:
iββtββΞ¨(r,t)=H^Ξ¨(r,t)
Matrices and Arrays
(acβbdβ)(xyβ)=(ax+bycx+dyβ)
Summations and Products
The sum of the first n natural numbers:
i=1βnβi=2n(n+1)β
The factorial function:
n!=i=1βnβi
Fractions and Roots
Complex fractions:
1+1+1+β±1β1β1β
Nested radicals:
2+2+2+β―βββ=2
Greek Letters and Symbols
Some commonly used mathematical symbols:
- Alpha: Ξ±, Beta: Ξ², Gamma: Ξ³, Delta: Ξ΄
- Infinity: β, Partial derivative: β
- Therefore: β΄, Because: β΅
- Approximately: β, Not equal: ξ =
Calculus Examples
The fundamental theorem of calculus:
β«abβfβ²(x)dx=f(b)βf(a)
LβHΓ΄pitalβs rule for indeterminate forms:
xβclimβg(x)f(x)β=xβclimβgβ²(x)fβ²(x)β
Statistics and Probability
The normal distribution:
f(x)=Ο2Οβ1βeβ21β(ΟxβΞΌβ)2
Bayesβ theorem:
P(Aβ£B)=P(B)P(Bβ£A)β
P(A)β
Linear Algebra
Eigenvalue equation:
Av=Ξ»v
The determinant of a 2Γ2 matrix:
det(acβbdβ)=adβbc
Usage Instructions
To use math in your own posts:
- Inline math: Wrap expressions with single dollar signs:
$your_math_here$
- Block math: Wrap expressions with double dollar signs:
$$
your_math_here
$$
The KaTeX syntax is largely compatible with LaTeX math mode. For a complete reference, visit the KaTeX documentation.