Basic Mathematical Expressions
Inline vs Display Math
Basic Operations
| Expression | LaTeX | Result |
|---|---|---|
| Addition | a + b | a + b |
| Subtraction | a - b | a - b |
| Multiplication | a \times b or a \cdot b | a × b or a · b |
| Division | a \div b or a / b | a ÷ b or a / b |
| Powers | a^2 or a^{10} | a² or a¹⁰ |
| Subscripts | a_1 or a_{ij} | a₁ or aᵢⱼ |
Fractions and Binomials
Fractions
Rendered Output
\frac{1}{2}→ ½ (proper fraction with numerator above denominator)\frac{a+b}{c+d}→ (a+b)/(c+d) with horizontal fraction bar\frac{1}{1 + \frac{1}{2}}→ Nested fraction with proper sizing
Binomial Coefficients
Rendered Output
\binom{n}{k}→ Binomial coefficient with n above k in parentheses\frac{n!}{k!(n-k)!}→ Factorial formula as a proper fraction
Roots and Radicals
Rendered Output
\sqrt{x}→ √x (square root with radical sign)\sqrt[n]{x}→ ⁿ√x (nth root with index)\sqrt{a^2 + b^2}→ √(a² + b²) (radical extends over entire expression)
Sums, Products, and Integrals
Summation
Rendered Output
\sum_{i=1}^{n} i→ Σ with i=1 below and n above (summation notation)\sum_{n=0}^{\infty} x^n→ Σ with limits from 0 to ∞ (infinite series)
Products
Integration
Rendered Output
\int f(x) \, dx→ ∫ f(x) dx (indefinite integral)\int_a^b f(x) \, dx→ ∫ with limits a to b (definite integral)\oint_C F \cdot dr→ ∮ contour integral around path C
Limits and Derivatives
Limits
Rendered Output
\lim_{x \to 0} \frac{\sin x}{x}→ lim with x→0 subscript, equals 1\lim_{n \to \infty} (1 + 1/n)^n→ lim with n→∞ subscript, equals e
Derivatives
Rendered Output
f'(x)→ f’(x) with prime notation for first derivative\frac{df}{dx}→ df/dx in Leibniz notation (fraction form)\frac{\partial f}{\partial x}→ ∂f/∂x for partial derivatives
Brackets and Delimiters
Automatic Sizing
Special Cases
Functions and Operators
Standard Functions
Custom Operators
Advanced Techniques
Aligning Equations
Text in Math Mode
Common Mistakes to Avoid
Best Practices
Use Proper Spacing
Add thin spaces with
\, in integrals: \int f(x) \, dxChoose Right Size
Use
\dfrac for display fractions in inline mathBe Consistent
Use the same notation style throughout your document
Number Wisely
Only number equations you reference
