Mathwords logoMathwords

Double Bar — Definition, Formula & Examples

A double bar is a pair of vertical lines written on each side of a value, like v\|\mathbf{v}\|, used most often to represent the norm (length or magnitude) of a vector. In some contexts, a double bar also appears in certain notations to distinguish from single absolute value bars x|x|.

The double bar notation \|\cdot\| denotes a norm, which is a function that assigns a non-negative real number to a vector (or matrix), representing its size or length in a given space. For a vector v=(v1,v2,,vn)\mathbf{v} = (v_1, v_2, \ldots, v_n) in Rn\mathbb{R}^n, the standard (Euclidean) norm is v=v12+v22++vn2\|\mathbf{v}\| = \sqrt{v_1^2 + v_2^2 + \cdots + v_n^2}.

Key Formula

v=v12+v22\|\mathbf{v}\| = \sqrt{v_1^2 + v_2^2}
Where:
  • v\mathbf{v} = A vector with components $v_1$ and $v_2$
  • v\|\mathbf{v}\| = The norm (magnitude/length) of the vector

How It Works

When you see double bars around a vector, you calculate its length. For a 2D vector (a,b)(a, b), find a2+b2\sqrt{a^2 + b^2}. Single bars x|x| give the absolute value of a number, while double bars v\|\mathbf{v}\| give the magnitude of a vector. Think of double bars as the "absolute value" extended to vectors with more than one component.

Worked Example

Problem: Find the norm of the vector v=(3,4)\mathbf{v} = (3, 4).
Step 1: Square each component.
32=9,42=163^2 = 9, \quad 4^2 = 16
Step 2: Add the squares and take the square root.
v=9+16=25=5\|\mathbf{v}\| = \sqrt{9 + 16} = \sqrt{25} = 5
Answer: v=5\|\mathbf{v}\| = 5

Why It Matters

You will encounter double bar notation when studying vectors in geometry, physics, and pre-calculus. Knowing the difference between x|x| and v\|\mathbf{v}\| prevents confusion when reading formulas for distance, force, and velocity.

Common Mistakes

Mistake: Confusing double bars v\|\mathbf{v}\| (norm) with single bars x|x| (absolute value).
Correction: Single bars apply to individual numbers and remove the sign. Double bars apply to vectors and compute the overall magnitude using all components.