(WIP) Elegant Solutions, Endless Applications – The Living Art of Inequalities
posted: 03-Feb-2025 & updated: 12-Feb-2025
… inequalities aren't just tools for comparison – they're windows into the fundamental structures of mathematical relationships.
Oh, I love Jensen's inequality! I've loved it ever since I met it for the first time in my life and I still love it!
Parent blog
Algebra Codex
A Journey Through Mathematical Boundaries
Having painted the broad landscape of mathematics in my previous blog post Mathematical Explorer’s Serendipitous Creation – A Thousand Pages of Mathematical Beauty, I want to delve into the first chapter of my mathematical journey: inequalities. While number theory has long been celebrated as the “Queen of Mathematics,” with countless brilliant minds dedicating their lives to its exploration, my heart was captured by a different realm – the fascinating world of inequalities. Today, I’d like to share why this field has held such a special place in my mathematical journey.
From Three Weeks to Three Years: A Mathematical Awakening
My romance with inequalities began around age 15, shortly after I entered Seoul Science High School (SSHS). I still remember that time vividly – I was among 180 students chosen from 1,400 applicants, though unlike many of my peers who had prepared for years, I had only spent three weeks studying for the entrance exam.1
This unexpected success was just the beginning of my mathematical awakening. When I first arrived at SSHS, I was distinctly aware of the gap between myself and my classmates. Many had already mastered advanced topics like trigonometry, calculus, algebra, and geometry, while I was just beginning to explore these concepts. The school had a prestigious Mathematics Olympiad (MO) circle, but initially, I couldn’t even consider joining because… I had no idea what trigonometric functions are! However, something unexpected happened – after six months, I was the only student personally invited by the math teacher to join the circle, thanks to what he called “unprecedented progress” in mathematics.
When Elegance Meets Power: The Art of Inequalities
It was during my preparation for various Mathematics Olympiad competitions – Korean MO, International MO, and South-Pacific MO – that I first encountered inequalities. What captivated me most was their elegant simplicity. While other mathematical approaches often required lengthy calculations or tedious differentiation, inequalities offered a more graceful path to solutions.
Let me share a concrete example that illustrates this beauty. Consider finding the maximum value of \(x + 2y\) where \(3x^2 + y^2 = 1\). That is to solve the following optimization problem:
\[\begin{align} \mbox{maximize}\quad & x+2y \\ \mbox{subject to}\quad & 3x^2+y^2=1 \end{align}\]The conventional calculus-based approach, while perfectly valid, involves several steps:
- Let $$k = x + 2y$$
- Substitute $x = k - 2y$ into the constraint equation: $$ 3(k-2y)^2 + y^2=1 $$
- Solve the resulting quadratic equation $$ 13y^2 - 12ky + (3k^2-1) =0 $$
- Use the fact that the discriminant should be non-negative (because $y$ is a real number) to find the range of $x+2y$: $$ D/4 = 36k^2 - 13(3k^2-1) = 13-3k^2 \geq0 $$
This leads to the correct answer of \(\sqrt{13/3}\), but there’s a (way) more elegant way using so-called Cauchy-Schwarz inequality. Recollect that the Cauchy-Schwarz inequality (in its summation form) states that
\[(a_1^2 + ... + a_n^2)(b_1^2 + ... + b_n^2) \geq (a_1b_1 + ... + a_nb_n)^2\]for any \(a_i, b_i\in\mathbb{R}\). By cleverly choosing \(a_1 = \sqrt{3}x\), \(a_2 = y\), \(b_1 = 1/\sqrt{3}\), and \(b_2 = 2\), we get:
\[13/3 = (3x^2 + y^2)(1/3 + 4) \geq (x + 2y)^2\]hence the same result (as it should be)!
Hidden beauty of this approach
What makes this solution particularly elegant isn’t just its brevity – it’s how it reveals the underlying structure of the problem. The Cauchy-Schwarz inequality isn’t just a tool we happened to use; it’s telling us something fundamental about the geometry of our problem. When we apply it, we’re essentially exploiting the fact that the angle between two vectors in a properly chosen inner product space can never exceed 90 degrees (where, of course, here we should consider or rather imagine angles in \(n\)-dimensional space which simply no human (maybe few exceptions in history) can understand properly intuitively because we have never experience \(n\)-dimensional space where \(n\) is greater than 3).
This geometric intuition leads us to a deeper understanding: inequalities often serve as bridges between algebra and geometry. They’re not just statements about which number is larger; they’re revelations about the shape of mathematical space itself.
Power of generalization (of the Cauchy-Schwarz inequality)
Now one can argue that “hold on! but isn’t it true that we can still solve such problem using the discriminant of the quadratic equation?” Unfortunately, the answer is no, and here is where inequalities play practically useful roles beyond its brevity and elegance.
Assume that we want to solve the following optimization problem now:
\[\begin{align} \mbox{maximize}\quad & x+2y + z/3 \\ \mbox{subject to}\quad & 2x^2+y^2/3 + 2z^2=7 \end{align}\]We cannot solve this problem using the discriminant of the quadratic equation because we will end up with a quadratic equation of two variables even after the substitution.
Well, at least, we can consider geometric interpretation in 3-dimensional space for this problem, but what about this one?
\[\begin{align} \mbox{maximize}\quad & x_1 +2x_2+ 3x_3 + \cdots + n x_n \\ \mbox{subject to}\quad & n x_{1}^2+(n-1)x_{2}^2 + \cdots + 2 x_{n-1}^2 + x_n^2=n \end{align}\]What if we want to solve this problem for an arbitrary \(n\)? I mean for any \(n\)? You can’t anymore have some geometric interpretation (in a laymen’s sense) because \(n\) can be greater than 3.
Can you also solve this problem for arbitrary \(c_i\)’s and positive \(d_i\)’s?
\[\begin{align} \mbox{maximize}\quad & c_1 x_1 + c_2 x_2 + + \cdots + c_n x_n \\ \mbox{subject to}\quad & d_1 x_1^2+ d_2 x_2^2 + \cdots + d_n x_n^2 = 1 \end{align}\]You see where I am going? We can handle all of the above cases beautifully, plus infinite other such cases as beautifully and elegantly as this! This shows the enormous power of generalization that inequalities can powerfully provide!
Another Tale of Two Paths: The AM-GM Journey
Let us start from a bit similar, but different optimization problem:
\[\begin{align} \mbox{maximize}\quad & xy \\ \mbox{subject to}\quad & 3x^2 + y^2 = 1 \end{align}\]First, we can solve this unelegantly by starting with letting \(xy=k\).
- Substituting \(k/y\) for \(x\) gives \(3k^2/y^2 + y^2 = 1\),
- which is equivalent to \((y^2)^2 - y^2 + 3k^2=0\).
- Now the discriminant being non-negative implies \(D=1-12k^2\geq0\),
- hence \(xy\leq 1/\sqrt{12} = 1/2\sqrt{3}\)!
Now consider the classic arithmetic mean-geometric mean inequalities (AM-GM), a simplest version of which, probably the first one we saw in high school, states that
\[\frac{a+b}{2} \geq \sqrt{ab}\]for any nonnegative \(a\) and \(b\).
Now if we let \(a=3x^2\geq 0\) and \(b=y^2\geq0\) and plug these in the AM-GM inequality, we have
\[\frac{1}{2} = \frac{3x^2+y^2}{2} \geq \sqrt{3x^2y^2} = \sqrt{3} |xy|\]hence
\[xy \leq |xy| \leq 1/2\sqrt{3}\]obtaining the very same result once again (way) more elegantly and simply.
Power of generalizations (of the AM-GM inequality)
Now consider general cases for which the generalness or the level of generalization seems way more severe than those shown in !
\[\begin{align} \mbox{maximize}\quad & xyz \\ \mbox{subject to}\quad & 3x^5 + y^2 + 2z^3= 1 \\ & x,y, z\geq0 \end{align}\]Not only do we have more than 2 variables, but also the exponents on the shoulders of variables vary.
So probably AM-GM inequality dealing with more than 2 variables would not suffice to solve this problem, which is
\[\frac{a_1+a_2+\cdots+a_n}{n} \geq (a_1a_2\cdots a_n)^{1/n}\]And yes, we cannot solve the problem using this extension only. But we can further generalize our AM-GM inequality into
\[w_1a_1 + w_2a_2 + \cdots + w_na_n \geq a_1^{w_1} a_2^{w_2} \cdots a_n^{w_n}\]which holds for any \(a_i\geq0\) and \(w_i>0\) with \(w_1+w_2+\cdots+w_n=1\).2
Now we have some very powerful tool which not only can solve the above problem, but also infinite other variations!
First let us tackle the above one. Let \(n=3\), \(a_1=5\cdot 3x^5\), \(a_2 = 2 \cdot y^2\), \(a_3 = 3\cdot 2z^3\), \(w_1 = (1/5)/(1/5+1/2+1/3)\), \(w_2 = (1/2)/(1/5+1/2+1/3)\), and \(w_3 = (1/3)/(1/5+1/2+1/3)\). Then \(w_1+w_2+w_3=1\), hence we have
\[\begin{align} 30/31 &= (3x^5+y^2+2z^3)/(1/5+1/2+1/3) = w_1a_1 + w_2a_2 + w_3a_3 \\ &\geq w_1^{a_1} \cdot w_2^{a_2} \cdot w_3^{a_3} = (15^{1/5} \cdot 2^{1/2} \cdot 3^{1/3} \cdot xyz)^{30/31} \end{align}\]thus
\[xyz \leq (30/31)^{31/30} / (15^{1/5} \cdot 2^{1/2} \cdot 3^{1/3})\]that is, the maximum value of \(xyz\) is (30/31)31/30 / (151/5 ⋅ 21/2 ⋅ 31/3). Another way of saying this is that, with all the combinations of the nonnegative triplets \((x,y,z)\) that satisfy \(3x^5 + y^2 + 2z^3 =1\), the maximum possible value of \(xyz\) is (30/31)31/30 / (151/5 ⋅ 21/2 ⋅ 31/3).
The elegance of this solution is striking. Conventional wisdom suggests that a problem of this complexity should require intricate calculations and multiple steps. Yet here, the AM-GM inequality cuts through the complexity like a beam of light through fog, revealing the answer with remarkable simplicity. While we can prove why this works, there’s something almost magical about how a single inequality can distill pages of calculus into one elegant step. This is mathematics at its utmost beauty – where complexity yields to simplicity, and where a deeper understanding reveals shorter paths to truth.
Another way of saying this is … There’s something remarkable about this solution’s simplicity. One might expect that finding this maximum value would demand pages of calculus and careful computations. Instead, the AM-GM inequality offers us a direct path to the answer, elegant in its brevity and powerful in its insight. This is one of those beautiful moments in mathematics where a deeper understanding doesn’t add complexity – it strips it away, revealing the essential truth beneath.
Now one could readily see that we can solve the following problem now3
\[\begin{align} \mbox{maximize}\quad & x_1^{e_1} x_2^{e_2} \cdots x_n^{e_n} \\ \mbox{subject to}\quad & g_1x_1^{f_1} + g_2x_2^{f_2} + \cdots + g_nx_n^{f_n}=1 \\ & x_1,x_2, \ldots, x_n \geq0 \end{align}\]for any \(e_i,f_i,g_i>0\) very elegantly as below!
Letting \(a_i = (g_i f_i / e_i)\: x_i^{f_i}\) and \(w_i = (e_i/f_i)/\sum_{j=1}^n (e_j/f_j)\) gives
\[\begin{align} \left( \sum_{i=1}^n g_ix_i^{f_i} \right) &/ \left( \sum_{i=1}^n e_i/f_i \right) = \sum_{i=1}^n w_ia_i \\ &\geq \prod_{i=1}^n a_i^{w_i} = \left( \prod_{i=1}^n (g_if_i/e_i)^{(e_i/f_i)} x_i^{e_i} \right)^{1/\sum_{i=1}^n (e_i/f_i)} \end{align}\]hence
\[\left( \sum_{i=1}^n g_ix_i^{f_i} \right)^{\sum_{i=1}^n (e_i/f_i)} \geq \left( \sum_{i=1}^n e_i/f_i \right)^{\sum_{i=1}^n (e_i/f_i)} \prod_{i=1}^n (g_if_i/e_i)^{(e_i/f_i)} \prod_{i=1}^n x_i^{e_i}\]thus
\[\prod_{i=1}^n x_i^{e_i} \leq \left( \left(\sum_{i=1}^n e_i/f_i\right)^{\sum_{i=1}^n (e_i/f_i)} \prod_{i=1}^n (g_if_i/e_i)^{(e_i/f_i)} \right)^{-1}!\] Can you not see the beauty as well as ultimate power of inequalities, and for that matter, the power of mathematics?The Art of Mathematical Extension
What truly fascinates me about inequalities is how they naturally lead us to powerful generalizations, the different types of generalizations that I mentioned above (here and here).
Let’s return to our friend, the Cauchy-Schwarz inequality. What begins as a simple relationship between two vectors extends beautifully into infinite-dimensional spaces, becoming a cornerstone of functional analysis and quantum mechanics.
Consider how the inequality evolves:
- For finite vectors: $$ \left(\sum_{i=1}^n a_i^2\right) \left(\sum_{i=1}^n b_i^2\right) \geq \left(\sum_{i=1}^n a_i b_i \right)^2 $$
- For complex finite vectors: $$ \left(\sum_{i=1}^n |a_i|^2\right) \left(\sum_{i=1}^n |b_i|^2\right) \geq \left|\sum_{i=1}^n a_i b_i^\ast \right|^2 $$
- For functions $f,g: \mathbb{R} \to \mathbb{C}$ $$ \left(\int_{-\infty}^\infty |f(t)|^2 dt\right) \left(\int_{-\infty}^\infty |g(t)|^2 dt\right) \geq \left|\int_{-\infty}^\infty f(t) g^\ast(t) \right|^2 $$
- For abstract (possibly) infinite dimensional inner product spaces: $$ \langle u, u\rangle \langle v, v\rangle \geq \left|\langle u, v\rangle\right|^2 $$
Each step in this progression reveals new insights while preserving the essential geometric intuition about angles and projections. This is mathematical beauty at its finest – the same fundamental truth manifesting itself at different levels of abstraction.
By the way, this progression isn’t just a collection of related formulas – it reveals a beautiful hierarchy where each level subsumes its predecessors. The finite-dimensional vector form (1) emerges as a special case of the complex vector form (2) when we restrict ourselves to real numbers. Similarly, the complex vector form (2) is encompassed by the function space version (3) when we view vectors as functions taking values at discrete points. Finally, the abstract inner product space formulation (4) provides the most general framework, from which all previous forms can be derived by choosing specific inner product spaces. This nested structure showcases the deep unity underlying these seemingly different mathematical contexts, revealing how the same fundamental principle manifests at increasingly abstract levels.
The First Level: Multiple Variables
The beauty of inequalities becomes even more apparent when we see how naturally they extend to higher dimensions. What started with our simple optimization problem involving two variables reveals its true elegance as we extend to 3, 4, or even \(n\) variables. Each step upward in dimensionality maintains the same fundamental principles while uncovering new layers of mathematical structure.
The Second Level: Arbitrary Exponents
As we venture beyond simple squares and cubes into the realm of arbitrary powers, most traditional calculus-based approaches become increasingly cumbersome. Yet inequalities maintain their grace and power, continuing to provide elegant solutions that reveal deeper patterns in the mathematical structure.
The Ultimate Generalization: Abstract Spaces
Here we reach perhaps the most beautiful aspect of inequalities – their extension into abstract mathematical spaces. The Cauchy-Schwarz inequality takes on its most powerful form, maintaining its geometric intuition while providing insights into the fundamental nature of mathematical structures themselves.
Jensen’s inequality
The journey through inequalities wouldn’t be complete without exploring one of the most powerful and versatile inequalities in mathematics – Jensen’s inequality!
The journey through inequalities wouldn’t be complete without exploring one of the most profound and far-reaching results in mathematics – Jensen’s inequality. My first encounter with it remains etched in my memory, a moment of mathematical epiphany that occurred during a special summer camp for Korean Mathematics Olympiad awardees. There, as a high school student with the rare privilege of learning from university professors, I experienced one of those transformative moments that every mathematician may cherishes. — How would I know it, though? I’m not them.
Oh, I love Jensen's inequality! I've loved it ever since I met it for the first time in my life and I still love it!
I can still vividly recall the wave of excitement that washed over me as the true significance of Jensen’s inequality began to crystallize in my mind. “This subsumes everything! This is so profound!” I remember thinking. “It’s not just another inequality – it’s the master key that unlocks them all! We don’t need separate proofs for AM-GM inequality or Cauchy-Schwarz inequality – they’re all special cases of this beautiful result!”4
While Cauchy-Schwarz illuminates the geometry of inner product spaces and AM-GM reveals the interplay between arithmetic and geometric means, Jensen’s inequality ventures deeper. It unveils something truly fundamental about the nature of convexity itself – a property that lies at the heart of optimization theory and manifests throughout mathematics in surprisingly diverse ways.
The Fundamental Insight
At its core, Jensen’s inequality tells us something remarkably intuitive yet profound: the average value of convex function values is always greater than or equal to the function value of the average value. More precisely, for convex function \(f:X\to \mathbb{R}\)
\[f(w_1x_1 + w_2x_2 + \cdots + w_nx_n) \leq w_1f(x_1) + w_2f(x_2) + \cdots + w_nf(x_n)\]i.e.,
\[f\left(\sum_{i=1}^n w_ix_i\right) \leq \sum_{i=1}^n w_i f(x_i)\]where \(w_i\geq0\) and \(\sum_{i=1}^n w_i=1\).
The beauty of this inequality lies not just in its mathematical form, but in its geometric interpretation. Imagine drawing any chord on a convex function’s graph – the function values will always lie below or on the chord. This simple geometric truth leads to surprisingly powerful mathematical results.
(WIP)
From Theory to Practice: Inequalities in Action
What makes inequalities particularly compelling is their ubiquity in real-world applications. They appear naturally in:
- Optimization problems in economics
- Error bounds in statistics
- Uncertainty principles in physics
- Information theory and coding
- Algorithm analysis in computer science
In each case, inequalities don’t just give us numerical bounds – they provide insight into the fundamental limitations and trade-offs inherent in these systems.

Unreasonable effectiveness of mathematics
What I find most captivating about inequalities is how they often provide the shortest path between seemingly unrelated mathematical concepts. They’re like mathematical shortcuts that, when properly understood, reveal the hidden connections in mathematics. This reminds me of what Eugene Wigner called “the unreasonable effectiveness of mathematics” – these elegant relationships seem to hint at some deeper truth about the structure of mathematical reasoning itself.
It is quite coincidental that I recently posted the paper “The Unreasonable Effectiveness of Data” written by Google Research guys in the context of AI
A Personal Reflection
Looking back at my mathematical journey, I realize that inequalities taught me something beyond mathematics. They taught me that sometimes the most powerful approach isn’t to solve for an exact answer, but to understand the boundaries of what’s possible. They showed me that constraints, rather than limiting us, often guide us toward deeper understanding.

Your Turn: An Invitation to Mathematical Discovery
Mathematics is often seen as a solitary pursuit, but I’ve found that the most profound insights come from sharing and discussing ideas with others. I invite you to explore these mathematical landscapes yourself. Whether you’re a student encountering these concepts for the first time, an educator looking for fresh perspectives, or a fellow enthusiast seeking mathematical beauty, there’s always more to discover in the world of inequalities.
Your questions and insights might lead us to new ways of understanding these fundamental mathematical relationships. What hidden connections will you uncover? What elegant proofs might you discover? Let’s continue this mathematical journey together.
I encourage you to share your thoughts, questions, and feedback. Together, we can continue to learn, grow, and appreciate the beauty and utility of mathematics. Please email me to sunghee.yun@gmail.com with any types of comments with subject starting with “universal truth”!
- Well, I had heard about these so-called Science High Schools, but had thought they had nothing to do with me because they were for smart dudes whereas I was NOT. But just three weeks before the SSHS entrance exam in 1990, my mom brought home an application form for SSHS which she received from her friend whose son went to Gyunggi Science High School, Gyunggi-do, South Korea, a few years ago and now a student of Korea Advanced Institute of Science & Technology (KAIST), Daedeok Innopolis, Daejeon, South Korea, so I solved problem books designed for preparing students for Science High Schools for the three weeks while being 100% sure that there was no way for me to get into that. Thus, it was myself if no others who was shockingly surprised to learn that I passed the entrance exam! Looking back, I believe this period marked the awakening of my mathematical potential, triggered perhaps by the intensive mental stimulation during those three weeks of preparation. Or maybe not. Who knows? ↩
- You can see how we can derive this general AM-GM inequality from a very simple case of $(a+b)/2 \geq \sqrt{ab}$ in the slides in . You can also see Jensen's inequality elegantly implies this most general form of AM-GM inequality, which is another layer of the beauty we can observe in the line of our arguments here. ↩
- Mathematically (in this case), solving the maximization problem is equivalent to solving the following minimization problem: ↩ $$ \begin{align} \mbox{minimize}\quad & g_1x_1^{f_1} + g_2x_2^{f_2} + \cdots + g_nx_n^{f_n} \\ \mbox{subject to}\quad & x_1^{e_1} x_2^{e_2} \cdots x_n^{e_n} = 1 \\ & x_1,x_2, \ldots, x_n \geq0 \end{align} $$
- This initial insight was later reinforced and deepened during my studies with Prof. Stephen Boyd at Stanford University seven years later, where I gained an even deeper appreciation for the role of convexity in optimization theory, hence AI, and everything else! ↩