LatexNotes

Lesson 8 of 12

Vectors, sets and fonts

Bold vectors, accents, number sets, set symbols and the other maths fonts. About ten minutes.

Letters in maths come in different styles that mean different things: bold for vectors, blackboard bold for number sets, curly script for special sets and transforms. Each style is a command that wraps the letter.

Vectors

\mathbf{v} makes an upright bold letter, the usual print style for a vector. \vec{v} puts an arrow over the letter, the usual handwritten style.

u+v=w⃗\mathbf{u} + \mathbf{v} = \vec{w}

\mathbf makes Latin letters and digits bold, but not Greek letters. For a bold Greek letter use \boldsymbol: \boldsymbol{\mu} gives μ\boldsymbol{\mu}.

Hats, bars and other accents

  • \hat{x} gives x^\hat{x}, as in a unit vector n^\hat{\mathbf{n}}.
  • \bar{x} gives xˉ\bar{x}, as in a mean.
  • \tilde{x} gives x~\tilde{x}.
  • \overline{AB} draws a line over everything in its braces: AB‾\overline{AB}.
xˉ=1n∑i=1nxi\bar{x} = \frac{1}{n} \sum_{i=1}^{n} x_i

Number sets

\mathbb gives the blackboard-bold capitals for the number sets: N\mathbb{N}, Z\mathbb{Z}, Q\mathbb{Q}, R\mathbb{R} and C\mathbb{C}.

N⊂Z⊂Q⊂R⊂C\mathbb{N} \subset \mathbb{Z} \subset \mathbb{Q} \subset \mathbb{R} \subset \mathbb{C}

Set symbols

  • \in gives ∈\in, and \notin gives ∉\notin.
  • \subset gives ⊂\subset, and \subseteq gives ⊆\subseteq.
  • \cup gives ∪\cup, \cap gives ∩\cap, and \setminus gives ∖\setminus.
  • \emptyset gives ∅\emptyset.

Set-builder notation puts it together, with the braces from lesson 5:

{x∈R:x2<4}\{ x \in \mathbb{R} : x^2 < 4 \}

Logic

\forall gives ∀\forall ("for all"), \exists gives ∃\exists ("there exists"), and \neg gives ¬\neg ("not").

∀ε>0  ∃δ>0\forall \varepsilon > 0 \; \exists \delta > 0

Other maths fonts

  • \mathcal{L} gives a script letter, L\mathcal{L}, used for transforms and some sets.
  • \mathrm{...} gives upright letters, d\mathrm{d}, for units or a d in a derivative.
  • \mathsf{...} gives sans serif, T\mathsf{T}, which some books use for a transpose.

Practise

  1. u+v\mathbf{u} + \mathbf{v}

  2. F⃗=ma⃗\vec{F} = m\vec{a}

  3. n^\hat{\mathbf{n}}

  4. xˉ=1n∑i=1nxi\bar{x} = \frac{1}{n} \sum_{i=1}^{n} x_i

  5. N⊂Z⊂Q\mathbb{N} \subset \mathbb{Z} \subset \mathbb{Q}

  6. A∩B=∅A \cap B = \emptyset

  7. ∀x∈R,  x2≥0\forall x \in \mathbb{R}, \; x^2 \geq 0

  8. L{f(t)}\mathcal{L}\{f(t)\}

In short

  • \mathbf for bold vectors, \vec for arrows, \boldsymbol for bold Greek letters.
  • \hat, \bar, \tilde and \overline for accents.
  • \mathbb for number sets, \mathcal for script letters, and \in, \subset, \cup, \cap, \emptyset, \forall, \exists for sets and logic.

Next, in lesson 9: matrices, and functions defined in several parts.

Would you rather write it by hand?

LatexNotes turns a photo or PDF of your handwritten maths into LaTeX like this. Free to try, no sign-up.

Convert your handwriting to LaTeX →