惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

云风的 BLOG
云风的 BLOG
P
Privacy International News Feed
Vercel News
Vercel News
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
博客园 - 叶小钗
F
Fortinet All Blogs
Security Archives - TechRepublic
Security Archives - TechRepublic
L
LINUX DO - 最新话题
AWS News Blog
AWS News Blog
Engineering at Meta
Engineering at Meta
Attack and Defense Labs
Attack and Defense Labs
Recent Announcements
Recent Announcements
Recent Commits to openclaw:main
Recent Commits to openclaw:main
PCI Perspectives
PCI Perspectives
Cloudbric
Cloudbric
AI
AI
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
IT之家
IT之家
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
J
Java Code Geeks
M
MIT News - Artificial intelligence
Cisco Talos Blog
Cisco Talos Blog
V2EX - 技术
V2EX - 技术
Webroot Blog
Webroot Blog
Microsoft Security Blog
Microsoft Security Blog
Cyberwarzone
Cyberwarzone
博客园 - 聂微东
G
Google Developers Blog
W
WeLiveSecurity
罗磊的独立博客
P
Privacy & Cybersecurity Law Blog
阮一峰的网络日志
阮一峰的网络日志
A
About on SuperTechFans
WordPress大学
WordPress大学
The GitHub Blog
The GitHub Blog
T
Tailwind CSS Blog
V
Visual Studio Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
S
Secure Thoughts
Apple Machine Learning Research
Apple Machine Learning Research
Hugging Face - Blog
Hugging Face - Blog
Google DeepMind News
Google DeepMind News
Google DeepMind News
Google DeepMind News
雷峰网
雷峰网
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
F
Full Disclosure
Blog — PlanetScale
Blog — PlanetScale
The Last Watchdog
The Last Watchdog
P
Proofpoint News Feed

Long Luo's Life Notes

夏至日测地球:利用太阳影子计算地球半径 太阳温度是怎么计算出来的? 《大象的时间,老鼠的时间》读书笔记:生命节奏背后的数学规律 小港流到哪里去? 如何用一根棍子测出地球有多大?复刻埃拉托色尼的春分实验 2007江苏高考数学第20题解析:一道通向黄金分割数的数列压轴题 Google经典面试题: 鸡蛋应该怎么扔? 2010年江苏高考数学压轴题解析:巧用余弦定理与数学归纳法 2011年清华大学自主招生数学题解析:一道经典数列题的解法与思路 2011年清华大学自主招生数学题解析:一道经典数列题的解法与思路 2006年江西高考理科数学压轴题解析:递推、放缩与不等式结构 2006年江西高考理科数学压轴题解析:递推、放缩与不等式结构 扔几个骰子,怎么算出期望?——拼多多校招笔试算法题的数学故事 拼多多校招笔试算法题:一行公式搞定“多多的魔术盒子” 斯特林公式(Stirling's Formula):我一个阶乘表达式,怎么就和圆扯上关系了呢? 我爱做题:2010年江西高考理科数学压轴题 热机的效率上限在哪里?解析卡诺循环(Carnot Cycle) 为什么 2024 年会有 366 天? 数学之美:几何视角下的高斯积分(Gaussian Integral) 从最小二乘法到正态分布:高斯是如何找到失踪的谷神星的? 正态分布(Normal Distribution)公式为什么长这样? 高速公路编号背后的数学密码 2024阿里巴巴全球数学竞赛预选赛试题及解答 库函数 (libm) 是如何计算三角函数值的? payne hanek 归约算法 音乐背后的数学 素描背后的物理 cody waite 浮点数 Remez Algorithm 参数归约算法(Argument Range Reduction):如何在浮点数环境下计算超大数字的三角函数值? 素描背后的数学 发生在计算机内存里的进化:解密遗传算法(Genetic Algorithm) CORDIC算法:一种高效计算三角函数值的方法 墨卡托的魔术:地图是如何欺骗你的眼睛的? PID 算法到底在干什么?工程师最常用的控制方法 解密卡尔曼滤波(Kalman Filter)算法:深入解析卡尔曼滤波算法原理与在线可视化实例 从记忆到洞察:轻松掌握泰勒展开式(Taylor Series)的记忆技巧 哪个更大呢? $2^{100!}$ 还是 $2^{100}!$ ? Google经典编程竞赛题:计算 $(3 + \sqrt{5})^n$ 的小数点前三位数 手写数字识别:解码机器学习的背后的数学原理 The Answers of MRI Tutorial Videos gdb 操作指南 Linux 网络命令指南 贝塞尔曲线(Bezier Curve):优雅背后的数学原理 LeetCode 380. Insert Delete GetRandom O(1) Data Structures: Thought Process from HashMap to HashMap + Array LeetCode 2475. 数组中不等三元组的数目 2种 O(n) 时间复杂度算法 LeetCode 947. Most Stones Removed with Same Row or Column It is Literally a Graph: DFS and Union Find LeetCode 295. Find Median from Data Stream Two Heaps with the Follow Ups LeetCode 295. Find Median from Data Stream Two Heaps with the Follow Ups LeetCode 1668. 最大重复子字符串 不用API,比KMP更易理解简洁优雅的暴力解法 LeetCode 334. Increasing Triplet Subsequence Why Greedy Works? LeetCode 迷宫问题(The Maze)
一道初中数学极值题的多种解法:柯西不等式、几何法、函数法详解
2026-02-01 · via Long Luo's Life Notes

By Long Luo

最近在短视频 App 里刷到不少中学数学题讲解,才发现现在的初中数学题,很多已经不只是“会算”这么简单了,背后往往还藏着不等式、函数、几何直觉等不同层面的思维训练。

当然,这也不算奇怪,几十年前的 IMO 试题放现在也就普通题。很多经典数学竞赛题,随着时间推移和教学资源普及,早已从高阶技巧逐渐变成了基础训练的一部分。

前几天我就反复刷到一道“求极值”的题,看起来不难,但这道题其实非常适合拿来练习数学直觉。

已知 \(x + y = 5\) ,求 \(\sqrt {x + 1} + \sqrt {y + 3}\) 的最大值。

看到这道题,首先想到的几何意义其实是将军饮马模型,但将军饮马问题求得是最小值问题。那最大值该怎么求呢?最大值的几何意义是什么呢?

这道题的有趣之处在于可以用很多完全不同的思路来解决,有的解法只需要代数变形和基本不等式,也可以使用几何视角、函数思想。

下面就道题为例,把几种典型解法都梳理一遍,也顺便重新锻炼一下自己的数学思维。

解法一:常规解法

\(y = 5 - x\) ,原式变成 \(\sqrt {x + 1} + \sqrt {8 - x}\) ,要保证根号有意义,所以 \(−1 \le x \le 8\)

\(S = \sqrt {x + 1} + \sqrt {8 - x}\) ,两边平方得 \(S^2 = (\sqrt{x + 1} + \sqrt{8 - x})^2\)

展开可得:

\[ \begin{aligned} S^2 & = (x + 1) + (8 - x) + 2 \sqrt {(x + 1)(8 - x)} \\ & = 9 + 2 \sqrt {(x + 1)(8 - x)} \\ & = 9 + 2 \sqrt {-x^2 + 7x + 8} \\ & = 9 + 2 \sqrt {-(x - \frac {7}{2})^2 + \frac {81}{4}} \end{aligned} \]

因此 \(S^2 \le 9 + 2 \times \dfrac {9}{2} = 18\) ,于是 \(S \le 3 \sqrt 2\) 当且仅当 \(x = \dfrac {7}{2}\) 时取等号。

故最大值为 \(3\sqrt2\)

解法二:均值不等式

\(S = \sqrt {x + 1} + \sqrt {y + 3}\) ,两边平方得 \(S^2 = (\sqrt {x + 1} + \sqrt {y + 3})^2\)

展开可得:

\[ S^2 = (x + 1) + (y + 3) + 2 \sqrt {(x + 1)(y + 3)} = 9 + 2 \sqrt {(x + 1)(y + 3)} \]

由均值不等式( \(\textit{AM-GM inequality}\) ),则有:

\[ (x + 1)(y + 3) \le \left( \frac {(x + 1) + (y + 3)}{2} \right)^2 = \left( \frac {9}{2} \right)^2 = \frac{81}{4} \]

因此 \(S^2 \le 9 + 2 \times \dfrac {9}{2} = 18\) ,于是 \(S \le 3 \sqrt 2\) 当且仅当 \(x + 1 = y + 3\) 时取等。

联立 \(x + y=5, \ x + 1 = y + 3\) 解得 \(x = \dfrac {7}{2}, \ y = \dfrac {3}{2}\)

故最大值为 \(3 \sqrt 2\)

解法三:几何法

\(a = \sqrt {x + 1}, \ b = \sqrt {y + 3}\) ,则 \(a^2 + b^2 = 9\)

这表示点 \((a, b)\) 位于第一象限内、半径为 \(3\) 的圆 \(a^2 + b^2 = 9\) 上。

而原式 \(S = a + b\) 表示直线族 \(a + b = t\) 的截距和。

当直线 \(a + b = t\) 向外平移并与圆相切时, \(t\) 取得最大值,如下图 1 所示。由于切点处法向量方向为 \((1, 1)\) 因此切点必在 \(a = b\) 上。

图1. 直线与圆相切

代入 \(a^2 + b^2 = 9\)\(2a^2 = 9\) ,所以 \(a = b = \frac {3}{\sqrt 2}\)

因此 \(S = a + b = 3 \sqrt 2\) ,故最大值为 \(3 \sqrt 2\)

解法四:换元法

\(a = \sqrt {x + 1}, \ b = \sqrt {y + 3}\) ,则 \(a^2 = x + 1, \ b^2 = y + 3\)

由于 \((x + 1) + (y + 3) = 9\) ,所以 \(a^2 + b^2 = 9\)

原式变为 \(S = a + b\) ,于是问题转化为:

在条件 \(a^2 + b^2=9, \ a \ge 0, \ b \ge 0\) 下,求 \(a + b\) 的最大值。

由恒等式 \((a + b)^2 \le 2(a^2 + b^2)\)\((a + b)^2 \le 2 \times 9 = 18\)

因此 \(a + b \le 3 \sqrt 2\) ,即 \(S \le 3 \sqrt 2\)

当且仅当 \(a = b\) 时取等号,即 \(\sqrt {x + 1} = \sqrt {y + 3}\) ,所以 \(x + 1 = y + 3\) ,再结合 \(x + y = 5\) 解得 \(x = \frac {7}{2}, \ y = \frac {3}{2}\)

故最大值为 \(3 \sqrt2\)

解法五:导数法

\(y = 5 - x\) ,原式可写为 \(S = \sqrt{x + 1} + \sqrt {8 - x}\)

设函数 \(f(x) = \sqrt {x + 1} + \sqrt {8 - x}\) ,其定义域为 \(-1 \le x \le 8\)

求导可得:

\[ f'(x) = \frac {1}{2 \sqrt {x + 1}} - \frac {1}{2 \sqrt{8 - x}} \]

\(f'(x) = 0\) ,则有 \(\dfrac {1}{\sqrt {x+1}} = \dfrac {1}{\sqrt{8 - x}}\)

因此 \(x + 1 = 8 - x\) 解得 \(x = \dfrac{7}{2}\) ,此时 \(y = 5 - \dfrac{7}{2} = \dfrac {3}{2}\)

代回原式: \(S = \sqrt {\dfrac {7}{2} + 1} + \sqrt {\dfrac {3}{2} + 3} = 2 \sqrt {\dfrac {9}{2}}= 3 \sqrt 2\)

再由导数符号可知,函数 \(f(x)\) 先增后减,因此该点为最大值点。

故最大值为 \(3\sqrt2\)

解法六:柯西不等式法( \(\textit{Cauchy-Schwarz inequality}\) )

这道题最快的方法是使用柯西不等式秒解。

根据柯西不等式( \(\textit{Cauchy-Schwarz inequality}\) ),对于任意实数 \(a, b, c, d\) ,有 \((a^2 + b^2)(c^2 + d^2) \geq (ac + bd)^2\) 当且仅当 \(ad = bc\) 时等号成立。

可得:

\[ \begin{aligned} S^2 & = 1 \times \sqrt {x + 1} + 1 \times \sqrt {y + 3} \\ & \le (1 + 1) \times \left ( (x + 1) + (y + 3) \right ) \\ & = 2 \times 9 \\ & = 18 \end{aligned} \]

当且仅当 \(x + 1 = y + 3\) 时取等号,故最大值为 \(S = 3 \sqrt 2\)

解法七:琴生不等式法( Jensen’s inequality )

考虑函数 \(f(t) = \sqrt t, \ t > 0\) 由于 \(f(t)\) 是凹函数( \(\textit{Concave function}\) ),根据琴生不 等式( \(\textit{Jensen's inequality}\) ),则有:

\[ \frac {f(x + 1) + f(y + 3)}{2} \le f \left( \frac {(x + 1) + (y + 3)}{2} \right) \]

\(\dfrac {\sqrt {x + 1} + \sqrt {y + 3}}{2} \le \sqrt {\dfrac {9}{2}}\)

两边乘以 \(2\)\(\sqrt {x + 1} + \sqrt {y + 3} \le 2 \sqrt {\dfrac {9}{2}} = 3 \sqrt 2\) 当且仅当 \(x + 1 = y + 3\) 时取等号。

联立 \(x + y = 5\) 可得 \(x = \dfrac {7}{2}, \ y = \dfrac {3}{2}\)

故最大值为 \(3 \sqrt 2\)

总结

这道题表面上只是一个简单的根式求最值问题,但真正有意思的地方不在于最后算出这个答案,而在于它可以被很多种不同的数学语言描述。

从最基础的代数变形,到均值不等式、几何直观、柯西不等式,再到函数凹凸性,本质上都在说明同一件事:当两个非负量的和固定时,它们越均匀,对应的根式和往往越大。

放到这道题里,就是把看成两个和为定值的量,一旦看出这一层结构,问题其实就已经接近结束了——最大值通常出现在它们相等的时候。

参考文献

  1. AM–GM inequality 均值不等式
  2. Cauchy-Schwarz inequality 柯西-施瓦茨不等式
  3. Concave function 凹函数
  4. Jensen’s inequality 琴生不等式