Getting Started
Text Formatting
Mathematical Expressions
Document Structure
Page Layout
Errors & Troubleshooting
Vector Notation in LaTeX
LaTeX provides several ways to represent vectors in mathematical expressions. This guide covers the standard vector notations, common operations, and formatting options.
Vector notation at a glance
Every convention you will meet in textbooks and papers, with the LaTeX that produces it:
| Notation | Meaning | LaTeX |
|---|---|---|
| 𝐯 (bold) | Vector — print convention | \mathbf{v} |
| v⃗ (arrow) | Vector — handwriting/physics convention | \vec{v} |
| û (hat) | Unit vector (magnitude 1) | \hat{u} |
| ⟨v₁, v₂, v₃⟩ | Component form | \langle v_1, v_2, v_3 \rangle |
| ‖v‖ | Magnitude (norm) | \|\mathbf{v}\| |
| a · b | Dot (scalar) product | \mathbf{a} \cdot \mathbf{b} |
| a × b | Cross product | \mathbf{a} \times \mathbf{b} |
| v ∈ ℝⁿ | Vector in n-dimensional space | \mathbf{v} \in \mathbb{R}^n |
Which to use? Bold (\mathbf) is the convention in most published mathematics and journal templates; the arrow (\vec) dominates physics teaching and handwritten work, where bold is impossible. Pick one and apply it to every vector in the document.
Basic Vector Notations
There are several common ways to denote vectors in LaTeX:
Bold Vectors (using \\mathbf)
Use
\mathbf{v}for bold vector notation.Arrow Vectors (using \vec)
Use
\vec{v}for vectors with arrows above.Column Vectors
Use matrix environments for column vector representation.
Row Vectors
Vector Operations
Common vector operations and their LaTeX representations:
Dot Product
Cross Product
Vector Magnitude/Norm
Advanced Vector Formatting
Unit Vectors
Standard unit vectors using the hat notation.
Vector Components
Vector Spaces
Best Practices
- Be consistent with your vector notation throughout your document
- Use
\\mathbffor bold vectors in text and equations - Use
\\vecwhen you need to emphasize direction - Use column vectors when working with matrices and transformations
- Consider using the
physicspackage for advanced vector operations
Frequently asked questions
What is vector notation?
Vector notation is the set of conventions for writing vectors so they are distinguishable from scalars: boldface (v) in print, an arrow (v⃗) in handwriting, a hat (û) for unit vectors, angle brackets or parentheses for components, and double bars ‖v‖ for magnitude. Physics and engineering favour arrows; mathematics texts favour bold.
Should I use \vec or \mathbf for vectors in LaTeX?
Use \mathbf (or \bm from the bm package) for the bold convention used by most journals, and \vec for the arrow convention common in physics teaching. Whichever you pick, use it consistently for every vector in the document — mixing the two reads as two different objects.
How do I write a unit vector?
With a hat: \hat{u} gives û. The standard basis vectors use dotless letters: \hat{\imath} and \hat{\jmath} for î and ĵ, since a dot under a hat looks wrong. The dotless forms need no extra packages.
How do I write the magnitude of a vector?
Double vertical bars: \|\mathbf{v}\| renders ‖v‖. Single bars |v| are also seen, but double bars avoid confusion with absolute value. The physics package provides \norm{v} which handles the sizing automatically.
Remember to include appropriate packages in your document preamble:
\usepackage{amsmath}for basic math operations\usepackage{physics}for advanced vector notation (optional)\usepackage{bm}for better bold math symbols (optional)
Vector Notation in LaTeX
LaTeX provides several ways to represent vectors in mathematical expressions. This guide covers the standard vector notations, common operations, and formatting options.
Vector notation at a glance
Every convention you will meet in textbooks and papers, with the LaTeX that produces it:
| Notation | Meaning | LaTeX |
|---|---|---|
| 𝐯 (bold) | Vector — print convention | \mathbf{v} |
| v⃗ (arrow) | Vector — handwriting/physics convention | \vec{v} |
| û (hat) | Unit vector (magnitude 1) | \hat{u} |
| ⟨v₁, v₂, v₃⟩ | Component form | \langle v_1, v_2, v_3 \rangle |
| ‖v‖ | Magnitude (norm) | \|\mathbf{v}\| |
| a · b | Dot (scalar) product | \mathbf{a} \cdot \mathbf{b} |
| a × b | Cross product | \mathbf{a} \times \mathbf{b} |
| v ∈ ℝⁿ | Vector in n-dimensional space | \mathbf{v} \in \mathbb{R}^n |
Which to use? Bold (\mathbf) is the convention in most published mathematics and journal templates; the arrow (\vec) dominates physics teaching and handwritten work, where bold is impossible. Pick one and apply it to every vector in the document.
Basic Vector Notations
There are several common ways to denote vectors in LaTeX:
Bold Vectors (using \\mathbf)
Use
\mathbf{v}for bold vector notation.Arrow Vectors (using \vec)
Use
\vec{v}for vectors with arrows above.Column Vectors
Use matrix environments for column vector representation.
Row Vectors
Vector Operations
Common vector operations and their LaTeX representations:
Dot Product
Cross Product
Vector Magnitude/Norm
Advanced Vector Formatting
Unit Vectors
Standard unit vectors using the hat notation.
Vector Components
Vector Spaces
Best Practices
- Be consistent with your vector notation throughout your document
- Use
\\mathbffor bold vectors in text and equations - Use
\\vecwhen you need to emphasize direction - Use column vectors when working with matrices and transformations
- Consider using the
physicspackage for advanced vector operations
Frequently asked questions
What is vector notation?
Vector notation is the set of conventions for writing vectors so they are distinguishable from scalars: boldface (v) in print, an arrow (v⃗) in handwriting, a hat (û) for unit vectors, angle brackets or parentheses for components, and double bars ‖v‖ for magnitude. Physics and engineering favour arrows; mathematics texts favour bold.
Should I use \vec or \mathbf for vectors in LaTeX?
Use \mathbf (or \bm from the bm package) for the bold convention used by most journals, and \vec for the arrow convention common in physics teaching. Whichever you pick, use it consistently for every vector in the document — mixing the two reads as two different objects.
How do I write a unit vector?
With a hat: \hat{u} gives û. The standard basis vectors use dotless letters: \hat{\imath} and \hat{\jmath} for î and ĵ, since a dot under a hat looks wrong. The dotless forms need no extra packages.
How do I write the magnitude of a vector?
Double vertical bars: \|\mathbf{v}\| renders ‖v‖. Single bars |v| are also seen, but double bars avoid confusion with absolute value. The physics package provides \norm{v} which handles the sizing automatically.
Remember to include appropriate packages in your document preamble:
\usepackage{amsmath}for basic math operations\usepackage{physics}for advanced vector notation (optional)\usepackage{bm}for better bold math symbols (optional)
Getting Started
Text Formatting
Mathematical Expressions
Document Structure
Page Layout
Errors & Troubleshooting
