The Maths You Actually NeedLesson 4 of 76

Module 1 · Vectors, and the space they live in

How long, and how far

In this lesson

  • 8 min read
  • 6 reading sections
  • Knowledge check
  • Lesson 4 of 9 in this chapter

This chapter’s goalTurn a real piece of data into a vector and defend the choices made, compute a length, a distance, a projection and a cosine by hand, and explain using the 1/√d rule why a similarity threshold that works in a 3-dimensional picture is meaningless in a 768-dimensional embedding space.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 7Free · no account needed
Lesson steps

One number for a whole list

You have a vector. Sometimes you want a single number saying how big it is. That number is called a norm, and there is more than one sensible answer.

Take v = [3, 4].

The L2 norm, also called the Euclidean norm, is the one from school geometry: square each element, add them, take the square root.

Text
||v||2 = sqrt(3^2 + 4^2) = sqrt(9 + 16) = sqrt(25) = 5

The L1 norm, also called Manhattan distance, adds absolute values:

Text
||v||1 = |3| + |4| = 7

The L-infinity norm takes the largest absolute value:

Text
||v||inf = max(|3|, |4|) = 4

Three answers, all correct, all measuring something slightly different. The names come from a family: the Lp norm raises each element to the power p, sums, and takes the p-th root. L2 is p = 2; L1 is p = 1; L-infinity is the limit.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Stuck on something?Ask Funke, your AI tutor

How to cite: Addaly (2026) ‘How long, and how far’, in The Maths You Actually Need. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/maths-you-need/norms-and-distance (Accessed: 29 November 2026).