LaTeX Maths Guide

LaTeX is the de facto standard for the communication and publication of scientific documents. xyzEditor uses the blazingly fast KaTeX engine to render your mathematical expressions perfectly in real-time.Feel free to edit the code blocks below to see the equations update live!

1. Inline vs. Block Maths

Mathematical expressions can be rendered within a paragraph or displayed prominently on their own line.

Editable Markdown
Live Preview

Inline Maths: Use single dollar signs to keep equations flowing with your text. For example, Einstein's famous equation is E=mc2E = mc^2.

Block Maths: Use double dollar signs to center an equation on its own line:

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

2. Greek Letters

Greek letters are essential in mathematics and physics. Use the backslash \\ followed by the name of the letter. Capitalize the first letter for the uppercase version.

Editable Markdown
Live Preview

Lowercase:
α,β,γ,δ,ϵ,θ,λ,μ,π,σ,ω\alpha, \beta, \gamma, \delta, \epsilon, \theta, \lambda, \mu, \pi, \sigma, \omega

Uppercase:
Γ,Δ,Θ,Λ,Π,Σ,Ω\Gamma, \Delta, \Theta, \Lambda, \Pi, \Sigma, \Omega

Variants:
ε,φ,ϱ,ϑ\varepsilon, \varphi, \varrho, \vartheta

3. Calculus, Operators & Functions

LaTeX provides extensive support for complex calculus and summation notation.

Editable Markdown
Live Preview

Fractions and Roots:
f(x)=x2+1x23f(x) = \frac{\sqrt{x^2 + 1}}{\sqrt[3]{x - 2}}

Summations and Products:
i=1ni2=n(n+1)(2n+1)6\sum_{i=1}^{n} i^2 = \frac{n(n+1)(2n+1)}{6}
k=14k24k21=π2\prod_{k=1}^{\infty} \frac{4k^2}{4k^2 - 1} = \frac{\pi}{2}

Calculus:
limx0sinxx=1\lim_{x \to 0} \frac{\sin x}{x} = 1
abx2dx=[x33]ab\int_{a}^{b} x^2 \, dx = \left[ \frac{x^3}{3} \right]_a^b
2ux2+2uy2=0\frac{\partial^2 u}{\partial x^2} + \frac{\partial^2 u}{\partial y^2} = 0

4. Relations & Set Theory

Express relationships between variables and sets.

Editable Markdown
Live Preview

Inequalities:
xy,ab,pq,3.14x \le y, \quad a \ge b, \quad p \neq q, \quad \approx 3.14

Set Theory:
xA,yBx \in A, \quad y \notin B
AB,CDA \subset B, \quad C \subseteq D
AB,XY,A \cup B, \quad X \cap Y, \quad \emptyset

Logic:
xR,yC\forall x \in \mathbb{R}, \exists y \in \mathbb{C}
¬(PQ)    (¬P¬Q)\neg (P \land Q) \iff (\neg P \lor \neg Q)

5. Arrows

Arrows are frequently used to denote implications, limits, or vectors.

Editable Markdown
Live Preview

Basic Arrows:
,,,,,\leftarrow, \rightarrow, \leftrightarrow, \uparrow, \downarrow, \updownarrow

Implications:
,,,    ,    \Leftarrow, \Rightarrow, \Leftrightarrow, \implies, \iff

Special Vectors & Maps:
f:XYf: X \mapsto Y
v=x,y,z\vec{v} = \langle x, y, z \rangle

6. Matrices & Cases

Use \\begin{...} and \\end{...} environments for structured layouts. & separates columns, and \\\\ separates rows.

Editable Markdown
Live Preview

Matrices (pmatrix, bmatrix, vmatrix):

(1234),A=[abcd],A=abcd\begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}, \quad A = \begin{bmatrix} a & b \\ c & d \end{bmatrix}, \quad |A| = \begin{vmatrix} a & b \\ c & d \end{vmatrix}

Piecewise Functions (cases):

f(n)={n/2if n even3n+1if n oddf(n) = \begin{cases} n/2 & \text{if } n \text{ even} \\ 3n+1 & \text{if } n \text{ odd} \end{cases}

7. Accents & Formatting

Enhance equations with specific text styles, spacing, and accents.

Editable Markdown
Live Preview

Accents:
x^,xˉ,x,x˙,x¨,x~\hat{x}, \bar{x}, \vec{x}, \dot{x}, \ddot{x}, \tilde{x}

Text Styles:
R,N,Z\mathbb{R}, \mathbb{N}, \mathbb{Z} (Blackboard bold)
L,F\mathcal{L}, \mathcal{F} (Calligraphic)
M\mathfrak{M} (Fraktur)

Annotations:
a+b++zn terms\underbrace{a + b + \cdots + z}_{n \text{ terms}}
1+2+36\overbrace{1 + 2 + 3}^{6}

Want to keep this guide offline?

xyzEditor excels at local-first, privacy-focused PDF generation. You can instantly save this entire guide as a beautifully formatted PDF document.