try ai
Popular Science
Edit
Share
Feedback
  • Triangle inequality

Triangle inequality

SciencePediaSciencePedia
Key Takeaways
  • The triangle inequality is a fundamental principle stating that the direct path between two points is always shorter than or equal to any indirect path.
  • It serves as a defining axiom for the mathematical concepts of distance (metrics) and vector length (norms), forming the bedrock of calculus and analysis.
  • Violating the inequality breaks the uniqueness of limits and leads to nonsensical results in fields like optimization and computational biology.
  • The principle's applications extend beyond geometry, appearing in function spaces, engineering stress models, and even quantum selection rules for atomic transitions.

Introduction

The idea that the shortest distance between two points is a straight line is one of the most intuitive truths we know. This simple observation, experienced in every journey we take, is the essence of the triangle inequality. While it may seem like a basic rule of geometry, this principle is in fact a cornerstone of modern mathematics, underpinning concepts far more abstract than simple triangles. The core challenge it addresses is defining 'distance' itself in a consistent, logical way, a problem that arises in fields from data science to quantum physics. This article delves into the profound implications of this seemingly simple rule. The first chapter, "Principles and Mechanisms," will deconstruct the inequality from its application on the number line to its role as a defining axiom in abstract vector and metric spaces. Following this, the "Applications and Interdisciplinary Connections" chapter will reveal its surprising and crucial role in diverse areas, including function analysis, engineering design, and the fundamental laws of the quantum world, showcasing how a single geometric truth provides a thread of consistency across science.

Principles and Mechanisms

At its heart, the ​​triangle inequality​​ is an idea so intuitive that we live by it every day. If you need to travel from your house to the library, the shortest path is a straight line. Any detour, say, to stop for a coffee, will only make your total journey longer. The distance from home to the library is always less than or equal to the distance from home to the coffee shop plus the distance from the coffee shop to the library. This simple, irrefutable fact of geometry is the soul of the triangle inequality, a principle that turns out to be one of the most fundamental and far-reaching pillars of mathematics.

From the Number Line to the Stars

Let's start with the simplest possible journey: a trip along a one-dimensional line. The "distance" of a number from zero is its ​​absolute value​​. If we have two numbers, aaa and bbb, we can think of them as two separate steps. The expression ∣a+b∣|a+b|∣a+b∣ represents the final distance from the origin after taking both steps, while ∣a∣+∣b∣|a| + |b|∣a∣+∣b∣ represents the total distance traveled in two separate trips, one of length ∣a∣|a|∣a∣ and another of length ∣b∣|b|∣b∣.

It seems obvious that the final displacement can't be more than the sum of the individual steps. We can prove this with a touch of elegance. We know that any number aaa is trapped between its negative and positive absolute value: −∣a∣≤a≤∣a∣-|a| \le a \le |a|−∣a∣≤a≤∣a∣. The same holds for bbb: −∣b∣≤b≤∣b∣-|b| \le b \le |b|−∣b∣≤b≤∣b∣. If we simply add these two statements together, like adding ingredients in a recipe, we get a new, combined statement:

−(∣a∣+∣b∣)≤a+b≤∣a∣+∣b∣-(|a| + |b|) \le a+b \le |a| + |b|−(∣a∣+∣b∣)≤a+b≤∣a∣+∣b∣

This beautiful, symmetric expression says that the number a+ba+ba+b is trapped within a range defined by the value M=∣a∣+∣b∣M = |a|+|b|M=∣a∣+∣b∣. And the definition of absolute value tells us that if −M≤x≤M-M \le x \le M−M≤x≤M, then ∣x∣≤M|x| \le M∣x∣≤M. Therefore, we arrive directly at the celebrated ​​triangle inequality​​ for real numbers:

∣a+b∣≤∣a∣+∣b∣|a+b| \le |a| + |b|∣a+b∣≤∣a∣+∣b∣

This is the mathematical guarantee that taking a detour (adding two numbers that might have opposite signs) can never leave you further from your starting point than the total distance you covered.

Of course, our world isn't a single line. It has at least three dimensions. Let's see if our rule holds up. Imagine a vector as a displacement in space—a step with a specific length and direction. Let's take two steps, vector x=(2,−1,2)\mathbf{x} = (2, -1, 2)x=(2,−1,2) and vector y=(4,1,−8)\mathbf{y} = (4, 1, -8)y=(4,1,−8). The lengths (or ​​norms​​) of these steps are ∥x∥=22+(−1)2+22=3\| \mathbf{x} \| = \sqrt{2^2 + (-1)^2 + 2^2} = 3∥x∥=22+(−1)2+22​=3 and ∥y∥=42+12+(−8)2=9\| \mathbf{y} \| = \sqrt{4^2 + 1^2 + (-8)^2} = 9∥y∥=42+12+(−8)2​=9. The total distance walked, if you like, is 3+9=123+9=123+9=12.

The final position is the sum of the vectors, x+y=(6,0,−6)\mathbf{x}+\mathbf{y} = (6, 0, -6)x+y=(6,0,−6). The direct distance from the start to this final point is ∥x+y∥=62+02+(−6)2=72≈8.485\| \mathbf{x}+\mathbf{y} \| = \sqrt{6^2 + 0^2 + (-6)^2} = \sqrt{72} \approx 8.485∥x+y∥=62+02+(−6)2​=72​≈8.485. Sure enough, 8.4858.4858.485 is strictly less than 121212. The inequality holds! We took a "detour" in space, and the direct path was shorter.

The Case of the Straight Path: When Equality Holds

This brings up a fascinating question: when is the direct path exactly as long as the total journey? When does ∥u+v∥=∥u∥+∥v∥\| \mathbf{u} + \mathbf{v} \| = \| \mathbf{u} \| + \| \mathbf{v} \|∥u+v∥=∥u∥+∥v∥?

Going back to our travel analogy, this happens only when the coffee shop lies perfectly on the straight-line path between your house and the library. In the language of vectors, this means that the step v\mathbf{v}v must be in the exact same direction as the step u\mathbf{u}u. Mathematically, this means that one vector must be a ​​positive scalar multiple​​ of the other, like v=cu\mathbf{v} = c\mathbf{u}v=cu for some number c≥0c \ge 0c≥0. If ccc were negative, you would be backtracking, and your total distance walked would certainly be greater than your final displacement.

We can see this in action. For the vectors u=(1,−2,3)\mathbf{u}=(1, -2, 3)u=(1,−2,3) and v=(k,−4,6)\mathbf{v}=(k, -4, 6)v=(k,−4,6), the equality will hold only if v\mathbf{v}v is a positive multiple of u\mathbf{u}u. Looking at the second and third components, we see that (−4,6)=2×(−2,3)(-4, 6) = 2 \times (-2, 3)(−4,6)=2×(−2,3). This means the scaling factor must be c=2c=2c=2. For this to hold for the whole vector, the first component must also follow the rule: k=c×1=2×1=2k = c \times 1 = 2 \times 1 = 2k=c×1=2×1=2. Only when k=2k=2k=2 are the two vectors pointing in the same direction, and only then is the length of the sum equal to the sum of the lengths.

The Reverse Inequality and Chained Journeys

The triangle inequality is remarkably versatile. By applying it cleverly, we can derive a new relationship. For any two numbers xxx and yyy, we can write x=(x−y)+yx = (x-y)+yx=(x−y)+y. Applying the inequality gives ∣x∣≤∣x−y∣+∣y∣|x| \le |x-y|+|y|∣x∣≤∣x−y∣+∣y∣, which rearranges to ∣x∣−∣y∣≤∣x−y∣|x|-|y| \le |x-y|∣x∣−∣y∣≤∣x−y∣. By swapping xxx and yyy, we also get ∣y∣−∣x∣≤∣y−x∣=∣x−y∣|y|-|x| \le |y-x|=|x-y|∣y∣−∣x∣≤∣y−x∣=∣x−y∣. Combining these tells us that the number ∣x∣−∣y∣|x|-|y|∣x∣−∣y∣ is trapped between −∣x−y∣-|x-y|−∣x−y∣ and ∣x−y∣|x-y|∣x−y∣, which means:

∣∣x∣−∣y∣∣≤∣x−y∣| |x| - |y| | \le |x-y|∣∣x∣−∣y∣∣≤∣x−y∣

This is the ​​reverse triangle inequality​​. It gives us a lower bound, telling us that the difference in the lengths of two sides of a triangle can never be more than the length of the third side. It’s another fundamental piece of geometric truth, derived directly from the original.

What if we take not two, but many steps? Imagine a particle taking a sequence of NNN displacement steps, v1,v2,…,vN\mathbf{v}_1, \mathbf{v}_2, \dots, \mathbf{v}_Nv1​,v2​,…,vN​. The final position is P=∑i=1Nvi\mathbf{P} = \sum_{i=1}^N \mathbf{v}_iP=∑i=1N​vi​. The total distance walked is ∑i=1N∥vi∥\sum_{i=1}^N \|\mathbf{v}_i\|∑i=1N​∥vi​∥. By repeatedly applying the triangle inequality—first to (v1+v2)+v3(\mathbf{v}_1 + \mathbf{v}_2) + \mathbf{v}_3(v1​+v2​)+v3​, then to that sum plus v4\mathbf{v}_4v4​, and so on—we can prove by induction what our intuition screams is true:

∥∑i=1Nvi∥≤∑i=1N∥vi∥\|\sum_{i=1}^N \mathbf{v}_i\| \le \sum_{i=1}^N \|\mathbf{v}_i\|∥i=1∑N​vi​∥≤i=1∑N​∥vi​∥

This is the ​​polygon inequality​​. The direct flight from New York to Los Angeles is shorter than a flight path with layovers in Chicago, Denver, and Las Vegas. The final distance of a drunken sailor from his starting point is no greater than the sum of all the little staggers he took along the way.

The Abstract Power of a Simple Rule

So far, we've talked about familiar distances. But mathematicians are masters of abstraction. What are the essential, non-negotiable properties that any concept of "distance" must have? They've boiled it down to a few axioms that define a ​​metric space​​. A function d(x,y)d(x,y)d(x,y) that measures distance must be non-negative, zero only if x=yx=yx=y, symmetric (d(x,y)=d(y,x)d(x,y)=d(y,x)d(x,y)=d(y,x)), and, crucially, it must obey the triangle inequality: d(x,z)≤d(x,y)+d(y,z)d(x,z) \le d(x,y) + d(y,z)d(x,z)≤d(x,y)+d(y,z).

Any function that purports to be a distance must pass this test. Consider the function d(x,y)=∣x3−y3∣d(x,y) = |x^3 - y^3|d(x,y)=∣x3−y3∣ on the real numbers. It passes the first three tests easily. But does it satisfy the triangle inequality? We must check if ∣x3−z3∣≤∣x3−y3∣+∣y3−z3∣|x^3-z^3| \le |x^3-y^3| + |y^3-z^3|∣x3−z3∣≤∣x3−y3∣+∣y3−z3∣. By letting a=x3a=x^3a=x3, b=y3b=y^3b=y3, and c=z3c=z^3c=z3, this is equivalent to checking if ∣a−c∣≤∣a−b∣+∣b−c∣|a-c| \le |a-b|+|b-c|∣a−c∣≤∣a−b∣+∣b−c∣. This is just the standard triangle inequality for real numbers which we already know is true! So, d(x,y)=∣x3−y3∣d(x,y)=|x^3-y^3|d(x,y)=∣x3−y3∣ is a perfectly valid, albeit unusual, way to define distance.

The triangle inequality is so central that it's a defining axiom of a ​​norm​​ (a notion of vector length) and a ​​metric​​ (a notion of distance between points). In fact, any norm ∥⋅∥\|\cdot\|∥⋅∥ automatically gives us a metric by defining the distance between two points xxx and yyy as d(x,y)=∥x−y∥d(x,y) = \|x-y\|d(x,y)=∥x−y∥. The triangle inequality for the metric, d(x,z)≤d(x,y)+d(y,z)d(x,z) \le d(x,y)+d(y,z)d(x,z)≤d(x,y)+d(y,z), follows directly and beautifully from the triangle inequality for the norm:

∥x−z∥=∥(x−y)+(y−z)∥≤∥x−y∥+∥y−z∥\|x-z\| = \|(x-y)+(y-z)\| \le \|x-y\| + \|y-z\|∥x−z∥=∥(x−y)+(y−z)∥≤∥x−y∥+∥y−z∥

This simple substitution shows how the geometric idea of vector addition translates perfectly into the topological idea of detours on a journey between points.

Worlds Without the Triangle: Chaos and Strangeness

What if we lived in a universe where this rule didn't apply? The consequences are catastrophic for our understanding of space and motion. The very idea of a limit—a sequence of points getting "arbitrarily close" to a destination—falls apart. Imagine a sequence (xn)(x_n)(xn​) that is claimed to converge to two different limits, L1L_1L1​ and L2L_2L2​. Our proof that this is impossible relies on the triangle inequality. We assume the distance between L1L_1L1​ and L2L_2L2​ is some positive value ddd. The sequence gets closer than d/2d/2d/2 to L1L_1L1​ and closer than d/2d/2d/2 to L2L_2L2​. The triangle inequality then forces d=d(L1,L2)≤d(L1,xn)+d(xn,L2)<d/2+d/2=dd = d(L_1, L_2) \le d(L_1, x_n) + d(x_n, L_2) \lt d/2 + d/2 = dd=d(L1​,L2​)≤d(L1​,xn​)+d(xn​,L2​)<d/2+d/2=d, a contradiction. Without the inequality, this argument collapses. You could have a sequence that simultaneously approaches two distinct points, breaking the uniqueness of limits and shattering the foundations of calculus and analysis.

We don't have to imagine such a universe; we can construct it mathematically. The family of LpL^pLp "norms" is defined as ∥x∥p=(∑∣xi∣p)1/p\|\mathbf{x}\|_p = (\sum |x_i|^p)^{1/p}∥x∥p​=(∑∣xi​∣p)1/p. For p≥1p \ge 1p≥1, this is a true norm that satisfies the triangle inequality. But for 0<p<10 \lt p \lt 10<p<1, the inequality fails spectacularly. Consider the L1/2L^{1/2}L1/2 functional in R2\mathbb{R}^2R2. Let's take the vectors x=(1,0)\mathbf{x}=(1,0)x=(1,0) and y=(0,1)\mathbf{y}=(0,1)y=(0,1). The sum is x+y=(1,1)\mathbf{x}+\mathbf{y}=(1,1)x+y=(1,1). Let's compute the "lengths":

  • ∥x∥1/2=(∣1∣1/2+∣0∣1/2)2=1\|\mathbf{x}\|_{1/2} = (|1|^{1/2} + |0|^{1/2})^2 = 1∥x∥1/2​=(∣1∣1/2+∣0∣1/2)2=1
  • ∥y∥1/2=(∣0∣1/2+∣1∣1/2)2=1\|\mathbf{y}\|_{1/2} = (|0|^{1/2} + |1|^{1/2})^2 = 1∥y∥1/2​=(∣0∣1/2+∣1∣1/2)2=1
  • ∥x+y∥1/2=(∣1∣1/2+∣1∣1/2)2=22=4\|\mathbf{x}+\mathbf{y}\|_{1/2} = (|1|^{1/2} + |1|^{1/2})^2 = 2^2 = 4∥x+y∥1/2​=(∣1∣1/2+∣1∣1/2)2=22=4

Here, ∥x+y∥1/2=4\|\mathbf{x}+\mathbf{y}\|_{1/2} = 4∥x+y∥1/2​=4, while ∥x∥1/2+∥y∥1/2=1+1=2\|\mathbf{x}\|_{1/2} + \|\mathbf{y}\|_{1/2} = 1+1=2∥x∥1/2​+∥y∥1/2​=1+1=2. We have found a situation where 4>24 > 24>2. The "direct path" is longer than the "detour"! This is why these functionals for p<1p \lt 1p<1 are not norms; they describe a bizarre world where taking a detour through the origin is a shortcut, completely violating our fundamental intuition about distance.

The Ultrametric World: A Stricter Rule

Finally, what if we imagine a world with an even stricter rule? This is the world of ​​non-Archimedean​​ absolute values, which are foundational to modern number theory (e.g., ppp-adic numbers). Here, the triangle inequality is replaced by the ​​strong triangle inequality​​:

∣x+y∣≤max⁡{∣x∣,∣y∣}|x+y| \le \max\{|x|, |y|\}∣x+y∣≤max{∣x∣,∣y∣}

This says the length of the sum of two vectors is no more than the length of the longer of the two. This has a mind-bending consequence. If the two vectors have different lengths, say ∣x∣>∣y∣|x| > |y|∣x∣>∣y∣, the inequality becomes an exact equality: ∣x+y∣=∣x∣|x+y| = |x|∣x+y∣=∣x∣. This is the "isosceles triangle principle": in this strange geometry, all triangles are isosceles with a short base. Any two sides have equal length, and the third side is shorter than or equal to that common length. It is a world with a different, but equally rigid, geometric logic, all stemming from a subtle twist on our familiar triangle inequality.

From a simple walk to the library, to the structure of abstract spaces, to the bizarre geometry of number theory, the triangle inequality is more than just a rule. It is a defining characteristic of what we mean by "distance," a thread of logical consistency that holds our mathematical universe together.

Applications and Interdisciplinary Connections

We have seen that the triangle inequality is more than just a statement about triangles; it is the very essence of what we mean by "distance." It’s the simple, powerful idea that a direct path is never longer than a detour. But the true beauty of this principle, as with so many great ideas in physics and mathematics, is its astonishing universality. It appears in places you would never expect, from the abstract heights of pure mathematics to the gritty realities of engineering and the fundamental laws of the quantum world. Let's take a journey through some of these surprising connections.

From Simple Geometry to the Fabric of Analysis

Of course, the most intuitive application is in geometry itself. If you're planning a trip and have the side lengths of a large quadrilateral plot of land, the triangle inequality puts a strict upper limit on how long any diagonal path across it can be. The diagonal can't be longer than the sum of the two sides it forms a triangle with, a simple but powerful constraint that engineers and surveyors use implicitly every day.

But this geometric idea quickly becomes something far more profound. It forms the bedrock of calculus and what mathematicians call analysis. Think about the absolute value function, f(x)=∣x∣f(x) = |x|f(x)=∣x∣. We all have an intuition that it's a "nice" continuous function; it has no jumps or breaks. But how do we prove this rigorously? The answer lies in a clever variant called the reverse triangle inequality, which states that for any two numbers xxx and yyy, the inequality ∣∣x∣−∣y∣∣≤∣x−y∣| |x| - |y| | \le |x - y|∣∣x∣−∣y∣∣≤∣x−y∣ must hold.

This might look technical, but the idea is simple and beautiful. It says that the difference in the sizes of two numbers is never more than the distance between the numbers themselves. This guarantees that if you pick two numbers xnx_nxn​ and ccc that are very close to each other, their absolute values ∣xn∣|x_n|∣xn​∣ and ∣c∣|c|∣c∣ must also be very close. This is the very definition of continuity! The triangle inequality, in this form, is the mathematical glue that ensures the world of numbers and functions holds together smoothly.

Measuring the Unmeasurable: Distances in Abstract Worlds

The real adventure begins when we ask a seemingly absurd question: what is the distance between two functions? Or two sets? Our geometric intuition seems to fail us here. And yet, mathematicians and physicists need to answer this question all the time. In quantum mechanics, we might want to know how "different" two possible states of an electron are. In signal processing, we might want to quantify how much "noise" has corrupted a signal.

The answer is to think of each function as a single "point" in an enormous, infinite-dimensional space. To define distance in this space, we need a rule—a "metric"—and for that metric to make any sense, it must obey the triangle inequality. One of the most powerful ways to do this is with the family of LpL^pLp norms, which define the "length" of a function fff as ∥f∥p=(∫∣f(x)∣p dx)1/p\|f\|_p = \left( \int |f(x)|^p \, dx \right)^{1/p}∥f∥p​=(∫∣f(x)∣pdx)1/p. The distance between two functions fff and ggg is then simply the length of their difference, ∥f−g∥p\|f-g\|_p∥f−g∥p​.

The statement that this distance satisfies the triangle inequality, ∥f−h∥p≤∥f−g∥p+∥g−h∥p\|f-h\|_p \le \|f-g\|_p + \|g-h\|_p∥f−h∥p​≤∥f−g∥p​+∥g−h∥p​, is a famous result called the ​​Minkowski inequality​​. It is the triangle inequality reborn for the world of functions. What's magical is how this single, powerful idea unifies different mathematical worlds. For instance, if we consider functions defined not on a continuous interval but on the set of natural numbers (using a special "counting measure" as our ruler), the integral in the Minkowski inequality miraculously transforms into an infinite sum. It becomes the triangle inequality for sequences, the foundation of spaces known as ℓp\ell^pℓp spaces. The abstract integral and the discrete sum are revealed to be two faces of the same underlying principle.

And to bring it all back home, when we set p=2p=2p=2, the space of functions becomes a Hilbert space—an infinite-dimensional version of the familiar Euclidean space we all know. The distance is induced by an inner product (a generalization of the dot product), and the Minkowski inequality is nothing more than our old friend, the triangle inequality, governing the lengths of the "sides" of a triangle whose vertices are now functions. The same geometric intuition holds, even when the "vectors" are infinitely complex. The abstraction even extends to defining a distance between sets themselves. Using the tools of measure theory, one can define the distance between two sets AAA and BBB as the measure of their "symmetric difference," the parts that are in one set but not the other. Once again, it is the properties of the measure, particularly its subadditivity, that guarantee the triangle inequality holds and the notion of distance is well-behaved.

A Sanity Check for the Real World

If the triangle inequality is the defining property of a sensible distance, then what happens when it's violated? The answer is that things can go haywire. The inequality serves as a crucial "sanity check" for our models of the real world.

Consider the famous Traveling Salesman Problem. An airline is trying to find the cheapest route connecting several cities. Our intuition says a direct flight from Aethelburg to Cyrton should be cheaper than flying from Aethelburg to Baelcroft and then to Cyrton. But what if each flight ticket includes a hefty, fixed airport tax? The two-leg journey involves paying the tax twice, but if the base fares are right, the total cost of the detour (C(A,B)+C(B,C)C(A,B) + C(B,C)C(A,B)+C(B,C)) might still be less than the direct flight's cost (C(A,C)C(A,C)C(A,C)). In this scenario, the triangle inequality is violated: C(A,C)>C(A,B)+C(B,C)C(A,C) \gt C(A,B) + C(B,C)C(A,C)>C(A,B)+C(B,C). For any algorithm trying to find the "shortest" path, this is a nightmare. The most basic assumption—that a direct route is a good shortcut—is wrong.

This same principle appears in a much more modern context: computational biology. Scientists build evolutionary trees by comparing the genetic differences between species. These differences are compiled into a "distance matrix." An algorithm like the Neighbor-Joining method then tries to construct a tree that best explains these distances. But the biological data is noisy, and the estimated distances might not be perfectly consistent. If, due to some measurement error, the "distance" between species A and C is reported as being larger than the sum of the distances from A to B and B to C, the triangle inequality is broken. The algorithm, blindly following its rules, can be tricked into building a nonsensical tree, sometimes even producing branches with negative lengths—a clear sign that something is fundamentally wrong with the input data. The triangle inequality acts as a detector for inconsistent, non-geometric data.

Engineering Reality: Stress, Strain, and Norms

In the world of engineering, especially when designing structures, bridges, or machine parts, understanding when a material will bend or break is a matter of life and death. Materials scientists model this behavior using the concept of stress, a tensor that describes the internal forces within a material. To predict failure, they define a quantity called an "equivalent stress," which combines all the components of the stress tensor into a single, critical number.

One such advanced model is the Hill anisotropic yield criterion, which is crucial for describing modern composite materials. The formula for the Hill equivalent stress looks complicated, but its mathematical soul is simple: it defines a norm, a generalized length, on the abstract space of stress tensors. For this model to be physically predictive and mathematically sound, this "stress norm" must satisfy the triangle inequality. And it does! The very mathematical construction of the model, based on a structure called an inner product, guarantees that the triangle inequality holds. This ensures that the model's predictions are consistent, providing a reliable foundation upon which engineers can build our world. The abstract requirement of a norm becomes a concrete requirement for a safe design.

A Cosmic Triangle: Quantum Leaps and Forbidden Transitions

Perhaps the most breathtaking appearance of the triangle inequality is not on a map or in a computer, but at the very heart of the atom. In quantum mechanics, particles possess a property called angular momentum, which is quantized—it can only take on discrete values. When an atom undergoes a transition, say by emitting a photon, it jumps from an initial state with angular momentum lil_ili​ to a final state with angular momentum lfl_flf​. The photon itself carries away an amount of angular momentum, characterized by an integer kkk.

A profound result called the Wigner-Eckart theorem tells us that not all transitions are possible. There are strict "selection rules," and one of the most important is a condition on these three numbers: a transition is allowed only if ∣lf−li∣≤k≤lf+li|l_f - l_i| \le k \le l_f + l_i∣lf​−li​∣≤k≤lf​+li​.

Look closely at that expression. It is precisely the condition required for three lines of lengths lil_ili​, lfl_flf​, and kkk to be able to form a closed triangle! It is a literal triangle inequality written into the fundamental laws of nature. The conservation of angular momentum in the quantum world manifests as a geometric constraint. The initial angular momentum vector, the final angular momentum vector, and the photon's angular momentum vector must be able to "close the loop." If they can't form a triangle, the transition is forbidden. Here, the triangle inequality is not just a model or a convenience; it is a deep reflection of the geometric structure of spacetime and the symmetries that govern our universe. From the shortest path in your backyard to the allowed transitions of an electron in a distant star, the simple, elegant logic of the triangle holds true.