This post demonstrates mathematical notation rendering using KaTeX.

Inline Math

You can write inline math like this: E=mc2E = mc^2, or the quadratic formula: x=b±b24ac2ax = \frac{-b \pm \sqrt{b^2-4ac}}{2a}.

The area of a circle is A=πr2A = \pi r^2, and the Pythagorean theorem states that a2+b2=c2a^2 + b^2 = c^2.

Display Math

Quadratic Formula

x=b±b24ac2ax = \frac{-b \pm \sqrt{b^2-4ac}}{2a}

Summation

i=1ni=n(n+1)2\sum_{i=1}^{n} i = \frac{n(n+1)}{2}

Integration

abf(x)dx=F(b)F(a)\int_{a}^{b} f(x) \, dx = F(b) - F(a)

Matrix

[abcd][xy]=[ax+bycx+dy]\begin{bmatrix} a & b \\ c & d \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} ax + by \\ cx + dy \end{bmatrix}

Limits

limx1x=0\lim_{x \to \infty} \frac{1}{x} = 0

Complex Formulas

Euler’s Formula

eiπ+1=0e^{i\pi} + 1 = 0

Taylor Series

f(x)=f(a)+f(a)(xa)+f(a)2!(xa)2+f(a)3!(xa)3+f(x) = f(a) + f'(a)(x-a) + \frac{f''(a)}{2!}(x-a)^2 + \frac{f'''(a)}{3!}(x-a)^3 + \cdots

Fourier Transform

f^(ξ)=f(x)e2πixξdx\hat{f}(\xi) = \int_{-\infty}^{\infty} f(x) e^{-2\pi i x \xi} \, dx

Maxwell’s Equations

E=ρϵ0B=0×E=Bt×B=μ0J+μ0ϵ0Et\begin{aligned} \nabla \cdot \mathbf{E} &= \frac{\rho}{\epsilon_0} \\ \nabla \cdot \mathbf{B} &= 0 \\ \nabla \times \mathbf{E} &= -\frac{\partial \mathbf{B}}{\partial t} \\ \nabla \times \mathbf{B} &= \mu_0 \mathbf{J} + \mu_0 \epsilon_0 \frac{\partial \mathbf{E}}{\partial t} \end{aligned}

Probability and Statistics

Normal Distribution

f(x)=1σ2πe12(xμσ)2f(x) = \frac{1}{\sigma\sqrt{2\pi}} e^{-\frac{1}{2}\left(\frac{x-\mu}{\sigma}\right)^2}

Bayes’ Theorem

P(AB)=P(BA)P(A)P(B)P(A|B) = \frac{P(B|A) \cdot P(A)}{P(B)}

Calculus

Chain Rule

ddx[f(g(x))]=f(g(x))g(x)\frac{d}{dx}[f(g(x))] = f'(g(x)) \cdot g'(x)

Product Rule

ddx[u(x)v(x)]=u(x)v(x)+u(x)v(x)\frac{d}{dx}[u(x) \cdot v(x)] = u'(x) \cdot v(x) + u(x) \cdot v'(x)

Linear Algebra

Eigenvalue Equation

Av=λvA\mathbf{v} = \lambda\mathbf{v}

Determinant

det(A)=abcd=adbc\det(A) = \begin{vmatrix} a & b \\ c & d \end{vmatrix} = ad - bc

Special Functions

Gamma Function

Γ(n)=(n1)!=0tn1etdt\Gamma(n) = (n-1)! = \int_0^{\infty} t^{n-1} e^{-t} \, dt

Binomial Coefficient

(nk)=n!k!(nk)!\binom{n}{k} = \frac{n!}{k!(n-k)!}

Greek Letters and Symbols

Common symbols: α\alpha, β\beta, γ\gamma, Δ\Delta, Σ\Sigma, Ω\Omega, θ\theta, ϕ\phi, ψ\psi

Operators: \leq, \geq, \neq, \approx, \infty, \partial, \nabla

Conclusion

KaTeX supports a wide range of mathematical notation and renders beautifully in the browser!