Underleaf Logo
Underleaf
BlogPricing
Log InTry Free

Learn LaTeX

Getting Started

  • What is LaTeX?
  • LaTeX for Beginners

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:

NotationMeaningLaTeX
𝐯 (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 · bDot (scalar) product\mathbf{a} \cdot \mathbf{b}
a × bCross 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:

  1. Bold Vectors (using \\mathbf)

    Use \mathbf{v} for bold vector notation.

  2. Arrow Vectors (using \vec)

    Use \vec{v} for vectors with arrows above.

  3. Column Vectors

    Use matrix environments for column vector representation.

  4. Row Vectors

Vector Operations

Common vector operations and their LaTeX representations:

  1. Dot Product

  2. Cross Product

  3. 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 \\mathbf for bold vectors in text and equations
  • Use \\vec when you need to emphasize direction
  • Use column vectors when working with matrices and transformations
  • Consider using the physics package 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.

Try it free

Skip the syntax — let AI write it.

Snap a photo of an equation, a table, or full handwritten notes and Underleaf turns it into clean, compilable LaTeX in seconds. 10 free credits every month, no credit card required.

Convert your page
Handwritten notes converted into a typeset LaTeX document

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:

NotationMeaningLaTeX
𝐯 (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 · bDot (scalar) product\mathbf{a} \cdot \mathbf{b}
a × bCross 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:

  1. Bold Vectors (using \\mathbf)

    Use \mathbf{v} for bold vector notation.

  2. Arrow Vectors (using \vec)

    Use \vec{v} for vectors with arrows above.

  3. Column Vectors

    Use matrix environments for column vector representation.

  4. Row Vectors

Vector Operations

Common vector operations and their LaTeX representations:

  1. Dot Product

  2. Cross Product

  3. 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 \\mathbf for bold vectors in text and equations
  • Use \\vec when you need to emphasize direction
  • Use column vectors when working with matrices and transformations
  • Consider using the physics package 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.

Underleaf Logo
Underleaf

Empowering students and researchers with AI-powered tools for academic writing.

Go to appContact us

Company

PricingBlogTutorialsConference TemplatesConference Deadlines

Free Tools

Image to LaTeXExcel to LaTeXArXiv to LaTeXTikZ GeneratorLaTeX Table GeneratorCitation GeneratorThesis GeneratorChrome ExtensionAll Tools

Ask AI about Underleaf

Ask ChatGPTAsk ClaudeAsk Perplexity

© 2026 Underleaf. All rights reserved.