2norm
2norm, usually called the L2 norm or Euclidean norm, is a standard way to measure length in Euclidean space. For a vector x in n-dimensional real or complex space, the 2-norm is defined as ||x||2 = sqrt(x1^2 + x2^2 + ... + xn^2) = sqrt(x^T x). It represents the length of the vector and induces the usual Euclidean distance: the distance between x and y is ||x − y||2. The 2-norm satisfies nonnegativity, definiteness, homogeneity, and the triangle inequality, with ||αx||2 = |α| ||x||2 and ||x + y||2 ≤ ||x||2 + ||y||2. It relates to the inner product by ||x||2^2 = ⟨x, x⟩, and is subject to the Cauchy–Schwarz inequality |⟨x, y⟩| ≤ ||x||2 ||y||2.
For matrices, the term 2-norm often refers to the induced or operator norm: ||A||2 = max_{x ≠ 0}
In applications, the 2-norm is favored for its geometric interpretation and its compatibility with the dot