ℓₚ Unit Balls in ℝ²

Fundamentals of AI/ML · Prof. Parikshit Pareek & Prof. Jitin Singla · IIT Roorkee
P-squared Lab logo
Integral Lab logo

The unit ball of the ℓₚ norm is the set of all x with ‖xp ≤ 1. As p changes, the shape morphs in a striking way: the diamond (p=1) becomes the circle (p=2), then approaches the square as p→∞. Slide p to watch.

‖x‖p = ( |x1|p + |x2|p )1/p,    ‖x‖ = max(|x1|, |x2|)
Circle  ·  p = 2 (Euclidean norm)  ·  smooth, rotationally symmetric

Live values

For a point on the boundary at angle 45°:
x = (, )
xp = 1 (by definition of the unit ball)
x2 =
x1 =
x =

Comparison: all three balls

━━ p = 1   ━━ p = 2   ━━ p = ∞

What to notice during class