In the world of mathematics, particularly in the domain of linear algebra, you might often come across the terms 'modulus' and 'norm'. While they might sound similar, they denote distinct principles that contribute significantly to vector spaces and vector algebra. Let's delve into the differences between these two concepts, their applications, and how they're computed.

Before we proceed, it's essential to understand that we'll primarily focus on the Euclidean norm (or L2 norm) when discussing 'norm'. This is because it's the most commonly referred to when discussing vector norms, and it closely aligns with our intuitive understanding of distance.

Modulus: A Number Theory Perspective
The modulus, in number theory, is typically used to find the remainder when a number is divided by another number. It's part of the concept of modular arithmetic, which helps us understand how the remainders of divisions by the same number repeat.

Formally, if 'a' and 'n' are integers, where 'n' is positive, the modulus 'a mod n' is the remainder of the division of 'a' by 'n'. It represents the closest integer to 'a' that's non-negative and a multiple of 'n'.
Modulus in Real-life Applications

The modulus operation is widely used in cryptography, where it forms the basis for algorithms like the RSA encryption method. It's also utilized in computer science for cyclical indexes, like when dealing with arrays in languages such as C or Fortran.
For instance, in C, if an array has 10 elements, an index of 15 (for position 15) would equate to 5 (the 5th position in the array, as 15 mod 10 equals 5).
The Generalized Modulus

The concept of modulus can be generalized to higher dimensions and more complex mathematical structures, such as vector spaces and fields. For example, in several complex variables, the modulus of a multivector is defined to measure its "size".
The modulus in these higher dimensions tends to follow a similar logic to the modulus operation in number theory, but with complex mathematics and many more elements at play.
Norm: Measuring Vector Lengths & Distances

In vector algebra, the norm, or magnitude, of a vector is an extension of the absolute value of a number. It's a way to quantify the 'size' or 'length' of a vector, providing a measure for the space between vectors or a vector and the origin.
Given a vector 'v' from a vector space over a field with an inner product, the norm '||v||' is the non-negative real number that satisfies '||v||² = v•v'. This formula, where '•' denotes the dot product, indicates that the square of the norm is equal to the square of the magnitude of the vector.







Common Norms in Action
Some of the most used norms in vector spaces are the L1 norm, L2 norm (also known as the Euclidean norm), and the L-infinity norm. The L2 norm, in particular, plays a significant role in the concept of vector length, as it matches our intuition of distance between two points in Euclidean space.
The L1 norm and L-infinity norm, on the other hand, offer unique measurements. Whereas the L1 norm computes the sum of the absolute values of each vector component, the L-infinity norm measures the 'size' of a vector as the largest absolute value in any of its components.
Calculating Norms
Given a vector 'v = [v1, v2, ..., vn]' in an n-dimensional space, some of the common norms can be calculated as follows:
- The L1 norm or Taxicab norm: ||v||₁ = |v₁| + |v₂| + ... + |vn|
- The L2 norm or Euclidean norm: ||v||₂ = √[(v₁)² + (v₂)² + ... + (vn)²]
- The L-infinity norm: ||v||₀ = max(|v₁|, |v₂|, ..., |vn|)
In the end, modulus and norm play distinctive roles in different mathematical fields, one serving a purpose in number theory and computer science, the other in vector algebra. Modulus and norm calculations might seem similar at first glance, but understanding why and when to use each is essential for working with mathematical and computational systems.