최대·최소와 일계·이계 조건Extrema and first- and second-order conditions
달성·경계·반례에서 헤시안과 볼록성의 입구까지From attainment, boundaries and counterexamples to Hessians and introductory convexity
실습 6종 · 풀이 포함 연습문제 44개6 labs · 44 exercises with solutions
기초Foundations
1. 가장 낮은 곳을 찾기 전에 무엇을 비교할까?1. What are we comparing before finding the lowest point?
언덕 지도에서 가장 낮은 곳을 찾는다고 해 봅시다. 운동장 안에서만 찾는지, 도시 전체에서 찾는지에 따라 답이 달라집니다. 눈앞의 작은 골짜기가 전체 지역의 가장 낮은 곳이라는 보장도 없습니다. 최적화는 ‘좋아 보이는 숫자 찾기’에 앞서 비교할 대상과 허용 범위를 정하는 작업입니다.
지금까지 미분은 작은 입력 변화가 출력을 얼마나 바꾸는지 설명했습니다. 이제 그 변화율을 이용해 더 작거나 큰 값이 있는지 판단합니다. 그러나 기울기 0이라는 계산 한 줄로 모든 문제가 해결되지는 않습니다. 경계의 최소점, 모서리의 최소점, 평평하지만 극값이 없는 점을 차례로 비교하겠습니다.
Finding the lowest place on a map requires a search region: a playground and an entire city can have different answers. A nearby valley need not be the lowest place in the whole region. Optimization begins by specifying what is compared and which inputs are allowed.
Derivatives describe small changes. We now use them to decide whether smaller or larger values are possible. A zero slope alone is insufficient: boundary minima, corners and flat points without extrema require different reasoning.
기초Foundations
2. 목적함수·허용집합·단위가 문제를 만든다2. Objectives, feasible sets and units define the problem
목적함수 f는 비교할 점수입니다. 허용집합 C는 선택할 수 있는 입력들의 모음입니다. 같은 f(x)=(x−2)²도 C=실수 전체이면 최소점 2, C=[0,1]이면 최소점 1입니다. 계산을 시작하기 전에 식과 범위를 나란히 쓰세요.
x∈Cminf(x),x⋆∈C,f(x⋆)≤f(x)for every x∈C
위 부등식은 ‘최소점’이 무엇을 만족해야 하는지 정의합니다. x*는 입력이며 f(x*)는 최솟값입니다. minimizer와 minimum value를 구별하면 시간과 비용처럼 단위가 다른 두 숫자를 섞지 않게 됩니다.
실습의 다항함수는 단위 없는 가정 모형입니다. 실제 매출 자료로 만든 제곱손실은 매출 자체가 아니라 매출 오차의 제곱을 비교합니다. 손실 최소화가 기업의 실제 이익 최대화라는 뜻은 아닙니다.
The objective f assigns the quantity being compared; the feasible set C contains allowed inputs. For f(x)=(x−2)², the minimum occurs at 2 on the real line and at 1 on [0,1]. State both formula and domain before calculating.
x∈Cminf(x),x⋆∈C,f(x⋆)≤f(x)for every x∈C
The inequality defines a minimizer. The input x* and the minimum value f(x*) are different objects, often with different units.
Polynomial labs are dimensionless hypothetical models. A squared loss built from actual sales compares squared fitting errors; minimizing it does not maximize actual company profit.
기초Foundations
3. 전역 최소·최대와 동률3. Global minima, maxima and ties
전역 최소점은 허용집합의 모든 점과 비교해 값이 작거나 같은 점입니다. 전역 최대점은 반대입니다. 비교 기호가 ≤이므로 동률이 허용됩니다. f(x)=x²의 실수 전체 최소점은 0 하나지만, f(x)=(x²−1)²의 최소점은 −1과 1 두 개입니다.
x∈Rargmin(x2−1)2={−1,1},x∈Rmin(x2−1)2=0
argmin은 답이 되는 입력들의 집합입니다. 두 최소점이 있어도 최솟값은 같은 숫자 0입니다. 함수가 상수이면 허용되는 모든 점이 최소점이면서 최대점입니다.
전역이라는 말은 지구 전체라는 뜻이 아니라 명시한 허용집합 전체라는 뜻입니다. 제한 범위를 바꿨다면 ‘전역 최적’이라는 주장도 그 새 범위에 맞춰 읽어야 합니다.
A global minimizer has value no larger than any value on the feasible set. Non-strict inequalities allow ties. The function (x²−1)² has two real minimizers, −1 and 1, both with value zero.
x∈Rargmin(x2−1)2={−1,1},x∈Rmin(x2−1)2=0
Argmin denotes a set of inputs, whereas the minimum value is a number. Every feasible point minimizes and maximizes a constant function.
Global always means across the entire stated feasible set. Changing that set changes the claim.
기초Foundations
4. 국소 극값은 허용되는 가까운 점과 비교한다4. Local extrema compare nearby feasible points
국소 최소점 a는 충분히 가까운 허용점들과 비교해서 값이 작거나 같은 점입니다. 가까운 곳만 비교하므로 멀리 더 낮은 골짜기가 있을 수 있습니다. 엄격한 국소 최소점에서는 가까운 다른 허용점의 값이 모두 더 큽니다.
∃r>0:f(a)≤f(x)for all x∈C,∥x−a∥<r
이 장은 경계에서도 ‘C 안에서의 국소’라는 상대적 정의를 사용합니다. f(x)=x를 C=[0,1]에서 보면 0은 국소·전역 최소점입니다. 일부 입문서는 국소 극값이라는 말을 내부점에만 쓰므로 정의를 먼저 확인하세요. 뒤의 미분 0 정리는 어느 정의를 쓰든 내부점을 따로 요구합니다.
엄격함과 유일함도 다릅니다. (x²−1)²는 두 전역 최소점을 가지지만 각각은 엄격한 국소 최소점입니다. 집합 C가 한 점이면 그 점이 전역 최소·최대이고, 다른 가까운 허용점이 없어서 엄격 국소 조건도 공허하게 성립할 수 있습니다.
A local minimizer a has no smaller value among sufficiently close feasible points. A distant lower valley may still exist. A strict local minimizer has strictly smaller value than every distinct feasible point sufficiently nearby.
∃r>0:f(a)≤f(x)for all x∈C,∥x−a∥<r
We use local relative to C, including boundary points. Thus zero minimizes f(x)=x locally and globally on [0,1]. Some introductory conventions reserve local extrema for interior points. In either convention, the zero-derivative theorem specifically requires an interior point.
Strict local minima need not be unique globally: (x²−1)² has strict local minima at both −1 and 1. On a singleton feasible set, the only point minimizes and maximizes; a strict local comparison can also hold vacuously because there are no other nearby feasible points.
기초Foundations
5. 가장 가까워지는 값과 실제로 얻는 값5. An infimum need not be attained
C=(0,1)에서 f(x)=x를 작게 하려면 x를 0에 가깝게 고르면 됩니다. 하지만 0은 허용되지 않습니다. 어느 양수 x를 골라도 x/2라는 더 작은 허용점이 있으므로 최소점이 없습니다. 값들의 가장 큰 하한인 하한값(infimum)은 0입니다.
0<x<1infx=0,0<x<1argminx=∅
‘최솟값이 약 0’이라고 말하면 달성 여부가 사라집니다. 컴퓨터가 0.000001을 반환해도 정확한 최소점이 생긴 것이 아닙니다. C=[0,1]로 바꾸면 0이 들어와 실제 최소가 됩니다.
f(x)=eˣ를 실수 전체에서 최소화할 때도 하한값은 0이지만 eˣ>0이므로 달성되지 않습니다. 반대로 f(x)=−x²는 아래로 한없이 작아져 유한한 하한조차 없습니다. 달성되지 않음과 아래로 유계가 아님을 구별하세요.
For f(x)=x on (0,1), every feasible x has a smaller feasible x/2. No minimizer exists, although zero is the infimum, the greatest lower bound of its values.
0<x<1infx=0,0<x<1argminx=∅
A numerical answer near zero does not create an attained minimum. Including the endpoint by changing the domain to [0,1] does.
Likewise, eˣ on the real line has unattained infimum zero. In contrast, −x² is unbounded below. Failure of attainment and absence of a finite lower bound are distinct.
기초Foundations
6. 연속함수와 닫히고 유계인 범위의 존재 보장6. Continuity on a compact feasible set guarantees attainment
최댓값·최솟값 정리는 연속함수가 비어 있지 않은 닫힌 유계 구간 [a,b]에서 최대와 최소를 모두 얻는다고 말합니다. 미분 가능성은 필요하지 않습니다. |x|도 [−1,1]에서 연속이므로 최소 0과 최대 1을 갖습니다.
C⊂Rn nonempty and compact,f:C→R continuous⟹Cminf,Cmaxf are attained
유한 차원 실수 공간에서 compact(콤팩트)는 닫히고 유계라는 조건과 같습니다. ‘닫힘’은 가까워져 도착하는 한계점이 빠져나가지 않는다는 뜻이고, ‘유계’는 집합이 어떤 유한 크기의 공 안에 들어간다는 뜻입니다. 동그란 경계를 포함한 원판은 해당하지만 경계가 빠진 원 내부는 닫혀 있지 않습니다.
선택 심화의 증명 아이디어는 최소에 가까워지는 점열을 고른 뒤 콤팩트성으로 수렴 부분열을 얻는 것입니다. 그 극한이 C 안에 있고 연속성이 함수값의 극한을 보존하므로 최소가 달성됩니다. 최댓값은 −f의 최소를 구하면 됩니다.
The extreme value theorem guarantees both extrema for a continuous function on a nonempty closed bounded interval. Differentiability is unnecessary: |x| attains minimum zero and maximum one on [−1,1].
C⊂Rn nonempty and compact,f:C→R continuous⟹Cminf,Cmaxf are attained
In finite-dimensional Euclidean space, compact means closed and bounded. Closedness retains limit points; boundedness places the set inside a finite ball. A disk with its boundary qualifies; an open disk is not closed.
For an optional proof idea, choose points approaching the infimum, extract a convergent subsequence by compactness, and use closedness and continuity to attain the limiting value. Apply the same argument to −f for a maximum.
기초Foundations
7. 정리의 조건을 빼면 무엇이 실패할까?7. What can fail when theorem assumptions are removed?
닫힘을 빼면 f(x)=x on (0,1)의 두 극값이 사라집니다. 유계성을 빼면 f(x)=x on 실수 전체에는 어느 극값도 없습니다. 연속성을 빼면 닫힌 유계 구간에서도 실패할 수 있습니다.
f(x)={x10<x≤1x=0on [0,1]:inff=0 is not attained
위 함수는 0에서 불연속입니다. 0에서 값을 1로 다시 올려 놓았기 때문에 양의 x를 0으로 가까이 보내도 최솟값 0을 얻지 못합니다. 값이 정의되어 있다는 사실과 연속이라는 조건은 다릅니다.
이 예들은 정리의 가정이 보장을 위해 중요함을 보여 줍니다. 그렇다고 모든 최소화 문제에서 세 조건이 각각 필요하다는 뜻은 아닙니다. x²는 실수 전체처럼 유계가 아닌 범위에서도 최소를 얻습니다. ‘정리를 적용할 수 없다’와 ‘극값이 없다’는 같은 문장이 아닙니다.
Without closedness, x on (0,1) loses both extrema. Without boundedness, x on the real line has neither. Without continuity, even a closed bounded interval can fail to attain an infimum.
f(x)={x10<x≤1x=0on [0,1]:inff=0 is not attained
Resetting the value at zero to one breaks continuity and prevents attainment of zero.
These assumptions guarantee existence; they are not individually necessary for every particular problem. For example, x² attains a minimum on the unbounded real line. An inapplicable theorem does not prove nonexistence.
선택 심화Optional extension
8. 범위가 무한해도 바깥에서 값이 커지면8. Coercivity can control an unbounded domain
f(x)=x²는 멀리 갈수록 커집니다. 그래서 최소를 찾는 사람이 무한히 멀리 도망갈 필요가 없습니다. 이런 성질을 강제성(coercivity)이라고 부릅니다. 여기서는 실수 공간 전체에서 연속인 함수를 먼저 다룹니다.
f(x)→+∞as ∥x∥→∞⟹continuous f:Rn→R attains a minimum
기준점 x₀의 값을 하나 정하면 충분히 큰 공 바깥에서는 f(x)>f(x₀)입니다. 그 공 안에서 연속함수의 최소를 찾으면 바깥이 더 낮을 수 없으므로 전역 최소입니다. 무한 범위를 유한한 닫힌 공으로 줄이는 논리입니다.
강제성은 유일성을 보장하지 않습니다. (x²−1)²는 강제적이지만 최소점이 둘입니다. 또 연속인 eˣ는 강제적이지 않으며 최소를 얻지 못합니다. 실수 공간의 닫힌 비어 있지 않은 부분집합에서도 그 집합을 따라 무한히 갈 때 강제성이 성립하면 같은 논리를 적용할 수 있습니다.
The value x² grows far from the origin, preventing a minimizing search from escaping to infinity. This property is called coercivity.
f(x)→+∞as ∥x∥→∞⟹continuous f:Rn→R attains a minimum
Fix a reference value f(x₀). Outside a sufficiently large ball, every value exceeds it. A minimum on the closed ball is therefore global.
Coercivity does not imply uniqueness: (x²−1)² has two minimizers. The same argument works on a nonempty closed feasible subset when the function is continuous there and grows to infinity along that set.
기초Foundations
9. 내부의 매끄러운 최소점에서 도함수는 왜 0일까?9. Why must an interior differentiable extremum have zero derivative?
a가 열린 구간 안의 국소 최소점이고 f가 a에서 미분 가능하다고 합시다. 작은 양의 h에 대해 f(a+h)−f(a)≥0이므로 차분몫은 0 이상입니다. 작은 음의 h에서는 같은 분자를 음수로 나누므로 차분몫이 0 이하입니다.
h>0:hf(a+h)−f(a)≥0,h<0:hf(a+h)−f(a)≤0,f′(a)=0
미분 가능하면 두 극한이 같은 숫자로 합쳐져야 합니다. 0 이상이면서 0 이하인 숫자는 0뿐입니다. 최대점은 부등식을 뒤집으면 됩니다. 이것이 Fermat의 내부 극값 필요조건입니다.
‘내부’ 덕분에 양쪽 h가 모두 허용되었고, ‘미분 가능’ 덕분에 두 극한이 같았습니다. 이 두 조건 중 하나가 빠지면 결론을 강요할 수 없습니다. [0,1]의 x는 경계 0에서 최소지만 도함수 1이고, |x|는 내부 0에서 최소지만 미분이 없습니다.
Let a be an interior local minimizer where f is differentiable. Small positive h produce nonnegative difference quotients; small negative h produce nonpositive ones.
h>0:hf(a+h)−f(a)≥0,h<0:hf(a+h)−f(a)≤0,f′(a)=0
Differentiability makes the two limits equal. A number both nonnegative and nonpositive must be zero. Reverse signs for maxima. This is Fermat's necessary condition.
Interiority permits both step signs; differentiability equates both limits. Without either assumption the conclusion can fail: x on [0,1] minimizes at zero with derivative one, and |x| minimizes at zero without a derivative.
기초Foundations
10. 정지점은 답이 아니라 검사할 후보10. Stationary points are candidates, not conclusions
미분 가능하고 f′(a)=0인 점을 정지점이라고 하겠습니다. 최소·최대의 후보이지만 둘 다 아닐 수 있습니다. x²는 0에서 최소, −x²는 최대, x³는 계속 증가하며 0을 지나갑니다. 셋 모두 0에서 기울기가 0입니다.
(x2)′(0)=(−x2)′(0)=(x3)′(0)=0,classification requires more information
실습에서 x², x³, x⁴, |x|를 바꾸며 원점 양쪽의 함수값을 먼저 읽으세요. x⁴는 곡선이 더 평평하지만 최소라는 사실은 x⁴≥0에서 바로 확인됩니다. |x|는 정지점이 아니라 미분 불가능한 최소점입니다.
이 장에서 ‘임계 후보’는 내부의 정지점과 미분 불가능한 점을 함께 탐색할 때 쓰겠습니다. 경계점은 별도로 포함합니다. 용어보다 ‘정지점이면 극값’이라는 잘못된 역추론을 막는 것이 중요합니다.
A stationary point is a differentiable point where f′ vanishes. It may be a minimum, a maximum or neither: x², −x² and x³ all have zero derivative at zero.
(x2)′(0)=(−x2)′(0)=(x3)′(0)=0,classification requires more information
Compare x², x³, x⁴ and |x| in the lab. The flatter x⁴ still has a minimum because it is nonnegative. The origin of |x| is a nondifferentiable minimizer, not a stationary point under this definition.
When searching for interior critical candidates, inspect both stationary points and points without derivatives; include boundaries separately. A necessary condition does not become sufficient by reversing its implication.
기초Foundations
11. 모서리 최소점과 한쪽 변화율11. Corners and one-sided rates
|x|의 0에서 왼쪽 기울기는 −1, 오른쪽은 1입니다. 같은 도함수로 합쳐지지 않지만 양쪽에서 값이 0 이상이므로 최소입니다. ‘기울기 0을 못 찾았으니 최소가 없다’는 탐색은 이 답을 놓칩니다.
f−′(a)≤0≤f+′(a)is necessary for a local minimum when finite one-sided derivatives exist
이 부등식도 충분조건은 아닙니다. f(x)=−x²는 양쪽 미분이 모두 0이라 만족하지만 최소가 아니라 최대입니다. 한쪽 미분의 부호가 엄격하거나 주변의 증가·감소를 아는 경우에는 더 강한 판정이 가능합니다.
경계에서는 허용 방향만 봅니다. [0,1]의 왼쪽 끝 최소점이라면 오른쪽 미분이 존재할 때 0 이상이어야 합니다. 오른쪽 끝 최소점에서는 왼쪽 미분이 0 이하입니다. 양쪽을 모두 움직일 수 있다는 가정을 몰래 넣지 마세요.
At zero, |x| has left derivative −1 and right derivative 1. Although they do not form a derivative, both sides have values at least zero, establishing a minimum.
f−′(a)≤0≤f+′(a)is necessary for a local minimum when finite one-sided derivatives exist
The inequalities alone are insufficient: −x² has both one-sided derivatives zero but a maximum. Strict sign information in a neighborhood gives stronger tests.
At a left endpoint, a minimum with a finite right derivative requires that derivative to be nonnegative. At a right endpoint it requires a nonpositive left derivative. Only feasible directions are available.
기초Foundations
12. 도함수 부호표로 증가와 감소를 잇기12. A derivative sign chart connects increasing and decreasing parts
연속인 f가 a 양쪽의 작은 열린 구간에서 미분 가능하다고 합시다. 왼쪽에서 f′<0, 오른쪽에서 f′>0이면 내려갔다 올라가므로 a는 엄격한 국소 최소점입니다. 반대이면 엄격한 국소 최대점입니다. 평균값정리가 이 그림을 증명으로 연결합니다.
f(x)=x3−3x,f′(x)=3(x−1)(x+1):+−1−1+
예에서 x<−1에서는 증가, −1<x<1에서는 감소, x>1에서는 증가합니다. 따라서 −1은 국소 최대이고 값은 2, 1은 국소 최소이고 값은 −2입니다. 실수 전체에서는 양끝이 각각 무한대로 뻗으므로 전역 최대·최소는 없습니다.
정지점을 넣은 작은 표의 숫자 몇 개만 비교하는 것과 구간 전체의 도함수 부호를 확인하는 것은 다릅니다. 부호표는 부등식이 구간 전체에서 성립한다는 계산을 포함해야 합니다.
If a continuous function is differentiable on small intervals beside a, negative derivative to the left and positive derivative to the right establish a strict local minimum. The reversed signs establish a strict local maximum. The mean value theorem justifies this picture.
f(x)=x3−3x,f′(x)=3(x−1)(x+1):+−1−1+
Here −1 is a local maximum with value 2, and 1 a local minimum with value −2. Neither is global on the real line, because the cubic is unbounded in both directions.
A sign chart establishes derivative signs across entire intervals. Merely sampling a few nearby function values does not provide the same proof.
기초Foundations
13. 이계 조건은 나머지항까지 통제한다13. Second-order tests control the remainder too
f가 a 주변에서 C²이고 f′(a)=0이면 11장의 Taylor 전개를 쓸 수 있습니다. 작은 h에서 값의 차이는 주로 ½f″(a)h²입니다. f″(a)>0이면 이 양의 이차항이 더 작은 나머지항을 이겨 엄격한 국소 최소가 됩니다. 음수이면 엄격한 국소 최대입니다.
f(a+h)−f(a)=21f′′(a)h2+o(h2),f′(a)=0
예를 들어 f(x)=x²+3x+2의 정지점은 −3/2이고 f″=2입니다. 완전제곱으로도 f=(x+3/2)²−1/4이므로 그 점의 최솟값이 −1/4임을 확인할 수 있습니다. 이 예는 전역이지만 이계 판정 자체는 일반적으로 국소 결론입니다.
필요조건과 충분조건을 구별하세요. C²인 내부 국소 최소점에서는 f″(a)≥0이 필요합니다. f″(a)>0은 충분하지만 필요하지 않습니다. x⁴의 0에서는 f″=0인데도 엄격한 최소입니다.
For a C² function near a stationary point a, Taylor expansion makes the leading change ½f″(a)h². A positive second derivative dominates the smaller remainder and gives a strict local minimum; a negative one gives a strict local maximum.
f(a+h)−f(a)=21f′′(a)h2+o(h2),f′(a)=0
For x²+3x+2, the stationary point is −3/2 and f″=2. Completing the square yields (x+3/2)²−1/4, independently confirming the minimum value −1/4.
At an interior C² local minimum, f″≥0 is necessary. Strict positivity is sufficient, not necessary: x⁴ has a strict minimum at zero with second derivative zero. The general second-order test is local, even when a particular quadratic conclusion is global.
학부 연결 · 선택Undergraduate bridge · optional
14. 이계 미분이 0이면 답을 보류하고 더 살핀다14. A zero second derivative leaves the test inconclusive
x⁴, −x⁴, x³는 모두 0에서 일계·이계 미분이 0이지만 각각 최소·최대·어느 쪽도 아님입니다. ‘이계 미분이 0이면 변곡점’이라는 규칙은 성립하지 않습니다. 도함수 부호나 함수값 자체, 더 높은 차수의 Taylor 항으로 돌아가야 합니다.
f(a+h)−f(a)=chm+o(∣h∣m),c=0:⎩⎨⎧m even,c>0: strict local minm even,c<0: strict local maxm odd: neither
위 고차 판정은 실제로 표시한 차수까지의 나머지 전개가 성립한다는 가정 아래 사용합니다. m이 짝수면 hᵐ의 부호가 양쪽에서 같고, 홀수면 반대입니다. 충분히 작은 h에서 나머지가 선도항의 절반보다 작도록 잡으면 결론이 따릅니다.
모든 도함수가 0인 매끄러운 함수도 있습니다. f(0)=0, x≠0에서 f(x)=e^(−1/x²)는 0에서 엄격한 최소지만 유한 차수의 첫 비영 Taylor 항이 없습니다. 함수값이 양수라는 직접 논증으로 판단할 수 있습니다. 특정 판정법이 침묵한다고 답이 없는 것은 아닙니다.
The functions x⁴, −x⁴ and x³ have zero first and second derivatives at zero, yet give a minimum, a maximum and neither. A zero second derivative does not automatically indicate an inflection point.
f(a+h)−f(a)=chm+o(∣h∣m),c=0:⎩⎨⎧m even,c>0: strict local minm even,c<0: strict local maxm odd: neither
This higher-order test assumes the displayed expansion with its remainder. The leading power keeps its sign for even m and changes it for odd m; the smaller remainder cannot reverse that conclusion sufficiently close to a.
Not every smooth extremum has a first nonzero Taylor term. The function e^(−1/x²) for nonzero x, extended by zero, has a strict minimum at zero although every derivative there vanishes. Direct positivity settles what finite Taylor tests cannot.
기초Foundations
15. 닫힌 구간에서는 후보를 모은 뒤 실제 값을 비교15. On a closed interval, collect candidates and compare values
[a,b]에서 연속인 함수의 전역 극값을 찾는 순서는 이렇습니다. 먼저 내부의 정지점과 미분 불가능한 점을 찾고, 양 끝점을 더한 뒤 모든 후보의 실제 함수값을 비교합니다. 극값의 존재는 연속성·콤팩트성에서, 내부 후보의 필요조건은 Fermat 정리에서 옵니다.
이 예는 최소점 −2와 1, 최대점 −1과 2가 각각 동률입니다. 내부 정지점만 봤다면 경계에서 동률인 답을 놓칩니다. 모든 전역 답을 묻는 문제에서는 최소 숫자 하나만 적어서는 부족합니다.
후보 집합이 반드시 유한한 것은 아닙니다. 상수함수나 진동하는 함수에서는 정지점이 무한히 많을 수 있습니다. ‘후보를 전부 조사한다’는 원리는 유지되지만 컴퓨터로 몇 개 뽑는 절차가 항상 완전하다는 뜻은 아닙니다.
For a continuous function on [a,b], inspect interior stationary and nondifferentiable points, add the endpoints, and compare actual values. Existence comes from compactness and continuity; Fermat's theorem identifies differentiable interior candidates.
The minima tie at −2 and 1; the maxima tie at −1 and 2. Checking only stationary points misses tied endpoint solutions.
The candidate set need not be finite. Constant or oscillatory functions may have infinitely many critical points. The principle remains valid, but an arbitrary finite numerical list need not be exhaustive.
기초Foundations
16. 경계 실습: 허용 구간이 답을 잘라 낸다16. Boundary lab: the feasible interval changes the solution
f(x)=(x−c)²를 닫힌 구간 [a,b]에서 최소화해 봅시다. c가 구간 안이면 c를 고릅니다. 왼쪽 밖이면 a, 오른쪽 밖이면 b가 가장 가깝습니다. 이것은 실수 전체의 답 c를 구간에 투영하는 간단한 예입니다.
xmin=⎩⎨⎧acbc<aa≤c≤bc>b,a≤b
최대는 c에서 더 먼 끝점입니다. |a−c|=|b−c|이면 양끝이 동률입니다. a=b이면 구간에 점 하나만 있으므로 그 점이 최소·최대이고 함수값도 같습니다. 이 경우 내부 정지점을 찾는 절차가 필요하지 않습니다.
예를 들어 c=2, [a,b]=[0,1]이면 최소는 1, 값은 1이고 도함수는 −2입니다. 1에서 오른쪽으로 가면 감소하지만 허용되지 않으므로 모순이 아닙니다. 실습에서 표시 범위와 허용 구간을 구별하고 열린 구간으로 바꾸면 달성 여부가 달라지는지도 생각해 보세요.
For (x−c)² on [a,b], choose c when feasible, otherwise the nearest endpoint. This clamps the unrestricted minimizer to the interval.
xmin=⎩⎨⎧acbc<aa≤c≤bc>b,a≤b
The farthest endpoint maximizes; equal endpoint distances produce a tie. When a=b, the singleton point both minimizes and maximizes, with the same value. No interior stationary search is needed.
For c=2 on [0,1], the minimum is at 1 with value one and derivative −2. Moving right would lower the function but is infeasible. Distinguish the feasible interval from a plotting window and consider how excluding endpoints changes attainment.
기초Foundations
17. 관측표의 최대와 연속함수의 최대는 다른 질문17. A table maximum differs from a continuous-function maximum
유효한 관측값이 하나 이상인 유한 표에서는 값을 비교해 최소·최대를 얻을 수 있습니다. 미분이나 연속성 가정은 필요하지 않습니다. 결측값은 유효한 측정값처럼 0으로 바꾸지 말고 제외 규칙과 남은 관측 개수를 기록합니다.
반면 표 사이에 더 큰 값이 있었는지는 표만으로 알 수 없습니다. 1분 평균 전력 기록의 최댓값은 기록된 1분 평균들 중 최대입니다. 그날의 실제 순간 최대 전력이라고 부르면 시간 해상도를 뛰어넘는 주장입니다.
그림에 찍은 모형값의 최소도 연속 범위의 최소와 다를 수 있습니다. 작은 봉우리가 격자점 사이에 숨어 있을 수 있기 때문입니다. 촘촘한 격자는 유용한 탐색 도구지만, 오차 보장이나 연속 범위 전체의 논증 없이 전역 최적의 증명이 되지는 않습니다.
A finite table with at least one valid observation attains observed minima and maxima by comparison. No derivative or continuity is required. Keep missing values distinct from measured zeros and state the exclusion rule and valid count.
The table alone cannot determine larger values between records. A maximum of one-minute average power records is not necessarily the day's instantaneous power peak.
Likewise, the smallest sampled model value need not be the minimum over a continuous domain. Narrow features may lie between grid points. Dense grids aid exploration but require additional error guarantees or an analytic argument to certify global optimality.
기초Foundations
18. 여러 입력의 내부 최소점에서는 기울기 벡터가 018. At a differentiable interior minimum, the gradient vanishes
a가 열린 영역 안의 국소 최소점이고 f가 전미분 가능하다고 합시다. 좌표 하나씩만 움직인 절단함수에도 국소 최소가 있으므로 모든 편미분이 0입니다. 따라서 ∇f(a)=0입니다. 18장의 방향미분으로 보면 임의의 방향 v와 −v로 움직일 수 있다는 같은 논리입니다.
g(t)=f(a+tv),g′(0)=∇f(a)Tv=0for all v,∇f(a)=0
예로 f(x,y)=(x−1)²+2(y+2)²의 기울기는 (2(x−1),4(y+2))이므로 정지점은 (1,−2)입니다. 두 제곱항이 모두 0 이상이어서 실제로 전역 최소임을 직접 확인할 수 있습니다.
그러나 ∇f=0을 푸는 것은 여전히 후보 찾기입니다. x²−y²는 원점에서 기울기 0이지만 x축에서는 올라가고 y축에서는 내려갑니다. 이 점을 안장점이라고 합니다. 이 장에서는 정지점이면서 주변에 더 큰 값과 더 작은 값이 모두 있는 경우를 안장점이라 부르겠습니다.
At a differentiable interior local minimum, each coordinate slice has a minimum and hence each partial derivative vanishes. Equivalently, restrict the function to every line through the point.
g(t)=f(a+tv),g′(0)=∇f(a)Tv=0for all v,∇f(a)=0
For (x−1)²+2(y+2)², solving the gradient equation gives (1,−2). Nonnegative squares separately prove it is a global minimizer.
The gradient equation alone only supplies candidates. The origin of x²−y² has zero gradient but increases along one axis and decreases along the other. Here a saddle means a stationary point with both higher and lower values in every neighborhood.
학부 연결 · 선택Undergraduate bridge · optional
19. 최소점의 헤시안은 왜 양의 준정부호인가?19. Why is a minimum Hessian positive semidefinite?
f가 내부점 a 주변에서 C²이고 a가 국소 최소라고 합시다. 어떤 방향 v를 정해도 g(t)=f(a+tv)는 t=0에서 국소 최소입니다. 단변수 이계 필요조건을 적용하면 g″(0)≥0입니다. 18장의 직선 연쇄법칙에서 이 값은 vᵀH(a)v입니다.
interior local minimum,f∈C2⟹∇f(a)=0,vTH(a)v≥0for all v
이것이 H(a) 양의 준정부호 조건입니다. 최대에서는 음의 준정부호가 필요합니다. 대칭 헤시안의 모든 고유값이 0 이상이라는 16장의 판정과 연결됩니다.
필요조건을 충족해도 최소라고 결론 내리지 않습니다. 원점에서 x⁴−y⁴의 헤시안은 영행렬이라 양의 준정부호이지만 안장점입니다. 이차항이 사라졌으므로 더 높은 항이 판단을 맡습니다.
For a C² local minimum a, every line restriction g(t)=f(a+tv) has a one-variable minimum at zero. Its second derivative is vᵀH(a)v and must be nonnegative.
interior local minimum,f∈C2⟹∇f(a)=0,vTH(a)v≥0for all v
Thus the Hessian must be positive semidefinite; at a maximum it must be negative semidefinite. This connects to nonnegative eigenvalues of a symmetric matrix.
Necessity is not sufficiency. The zero Hessian of x⁴−y⁴ at the origin is positive semidefinite, yet the point is a saddle because higher-order terms decide the signs.
학부 연결 · 선택Undergraduate bridge · optional
20. 양의 정부호이면 작은 모든 방향에서 올라간다20. Positive definiteness raises every sufficiently small direction
f가 a 주변에서 C², ∇f(a)=0, H(a)가 양의 정부호라고 합시다. 대칭 행렬의 최소 고유값 m은 양수이고 hᵀH(a)h≥m‖h‖²입니다. Taylor 나머지를 이 양의 이차항보다 작게 통제할 수 있습니다.
따라서 엄격한 국소 최소입니다. H가 음의 정부호면 −f에 같은 증명을 적용해 엄격한 국소 최대입니다. 양·음의 고유값이 모두 있으면 각 고유방향의 이차항 부호가 달라 안장점입니다.
이 결론은 a 근처에 관한 것입니다. 멀리서 함수가 다시 내려갈 수 있습니다. H(a) 한 점의 양의 정부호와 정의역 전체의 볼록성을 같은 말로 바꾸지 마세요.
Suppose f is C² near a, its gradient vanishes, and H(a) is positive definite. Its smallest eigenvalue m is positive, providing a uniform quadratic lower bound in every direction.
This proves a strict local minimum. Negative definiteness gives a strict local maximum, and positive plus negative eigenvalues yield a saddle along their eigenvector directions.
The conclusion concerns a neighborhood. Positive definiteness at one point does not establish convexity or global optimality over the entire domain.
기초Foundations
21. 두 변수 이계 판정과 실습21. Two-variable second-order classification and a lab
C² 함수의 정지점에서 H=[[a,b],[b,c]], D=ac−b²라고 합시다. D>0이고 a>0이면 양의 정부호라 엄격 국소 최소입니다. D>0이고 a<0이면 음의 정부호라 최대입니다. D<0이면 두 고유값의 부호가 달라 안장점입니다.
D=fxxfyy−fxy2;D=0⟹this test is inconclusive
실습에서 x²+y², −x²−y², x²−y², x⁴+y⁴, x⁴−y⁴의 원점을 비교하세요. 뒤의 두 함수는 원점 헤시안이 모두 0인데 하나는 엄격 최소, 하나는 안장점입니다. 실습은 단지 ‘판정 불가’를 표시하는 것에서 끝나지 않고 실제 함수값의 부호를 함께 읽도록 합니다.
a 하나의 부호만 보거나 D≥0만 확인하면 충분하지 않습니다. 특히 D=0은 ‘최소’라는 결론을 주지 않습니다. 행렬 판정에는 C² 대칭성, 정지점이라는 전제도 함께 있어야 합니다.
At a C² stationary point with H=[[a,b],[b,c]], let D=ac−b². Positive D with positive a gives a strict local minimum; positive D with negative a gives a strict local maximum. Negative D gives a saddle.
D=fxxfyy−fxy2;D=0⟹this test is inconclusive
Compare the origins of x²+y², −x²−y², x²−y², x⁴+y⁴ and x⁴−y⁴. The last two have identical zero Hessians but different classifications. Inspect actual function signs as well as the inconclusive second-order result.
A single diagonal sign or D≥0 alone is insufficient. Include the stationary-point and C² assumptions when applying the test.
기초Foundations
22. 평평한 방향이 있으면 남은 항을 직접 조사22. Flat directions require further analysis
f(x,y)=x²+y⁴의 원점 헤시안은 diag(2,0)입니다. 양의 준정부호지만 양의 정부호는 아닙니다. 그래도 f>0인 모든 비영점 때문에 원점은 엄격한 전역 최소입니다. 반대로 g=x²−y⁴는 같은 헤시안을 가지지만 y축을 따라 음수라 안장점입니다.
Hf(0,0)=Hg(0,0)=(2000),f=x2+y4,g=x2−y4
h(x,y)=x²는 y축 전체에서 0이므로 원점은 최소지만 엄격하지 않습니다. 같은 준정부호 헤시안 아래 엄격 최소·비엄격 최소·안장이 모두 가능합니다.
‘영 고유값이 있으니 최소가 아니다’도 틀립니다. 영 고유값은 이차 근사에서 그 방향의 정보가 부족하다는 뜻입니다. 고차항, 정확한 제곱표현, 별도의 부등식으로 보완하세요.
The origin Hessian of x²+y⁴ is diag(2,0). Despite lacking positive definiteness, direct positivity gives a strict global minimum. The function x²−y⁴ has the same Hessian but a saddle.
Hf(0,0)=Hg(0,0)=(2000),f=x2+y4,g=x2−y4
For x² alone, the entire y-axis minimizes, so the origin is a non-strict minimum. The same semidefinite Hessian can therefore accompany strict minima, non-strict minima or saddles.
A zero eigenvalue means the quadratic approximation lacks information along some direction. Higher-order terms or exact inequalities must supply it.
기초Foundations
23. 좌표축에서만 올라간다고 최소는 아니다23. Increasing on the coordinate axes does not prove a minimum
f(x,y)=x²+y²−4xy는 x축에서 x², y축에서 y²이므로 두 축에서 모두 원점이 최소입니다. 하지만 y=x에서는 f=−2x²<0입니다. 원점 근처에 더 낮은 값이 있으므로 안장점입니다.
Two coordinate slices miss decreasing directions. Hessian eigenvectors can reveal them; the definition still compares every sufficiently close feasible point.
One counterexample path disproves a minimum, whereas success along a finite selection of paths generally does not prove one. Uniform arguments, such as positive definiteness, control all directions together.
기초Foundations
24. 원판의 내부와 경계는 서로 다른 후보를 낸다24. A disk has interior and boundary candidates
원판 C={(x,y):x²+y²≤1}에서 f(x,y)=x를 비교합시다. 기울기는 (1,0)이라 내부 정지점은 없습니다. 그래도 함수는 콤팩트 원판에서 연속이므로 최소·최대가 반드시 있습니다. 실제 −1≤x≤1이므로 최소점은 (−1,0), 최대점은 (1,0)입니다.
x=cosθ,y=sinθon the boundary,f=cosθ,0≤θ≤2π
경계의 원을 한 변수로 표현하면 경계 문제를 단변수 문제로 바꿀 수 있습니다. x²+y²처럼 원판 안에서 중심 최소 0과 경계 전체 최대 1을 갖는 함수도 있습니다. 최대점이 반드시 하나라는 생각도 버려야 합니다.
다변수 닫힌 영역의 전역 탐색에서는 내부 정지점·미분 불가능점, 경계의 매끄러운 조각, 모서리·꼭짓점을 빠짐없이 다룹니다. 다음 장은 경계를 매개화하지 않고도 제약식의 변화 방향으로 후보를 찾는 방법을 배웁니다.
For f(x,y)=x on the closed unit disk, the gradient (1,0) never vanishes. Compactness still guarantees extrema: the minimum occurs at (−1,0), the maximum at (1,0).
x=cosθ,y=sinθon the boundary,f=cosθ,0≤θ≤2π
Parameterizing the boundary reduces it to a one-variable problem. For x²+y² on the same disk, the center minimizes and every boundary point maximizes, demonstrating that extrema need not be unique.
A complete multivariable search includes interior critical points, nondifferentiable points, smooth boundary pieces and corners. The next chapter introduces constraint-based methods for boundary candidates.
기초Foundations
25. 두 골짜기 중 더 낮은 곳을 증명하기25. Proving which of two valleys is globally lower
다음 가정함수는 두 골짜기를 가진 간단한 실험실입니다. 도함수를 인수분해하면 정지점이 −1,0,2임을 정확히 찾을 수 있습니다. 이계 미분과 함수값을 각각 계산해 분류합니다.
−1은 엄격 국소 최소, 0은 엄격 국소 최대, 2는 더 낮은 엄격 국소 최소입니다. f는 양의 사차항 때문에 양쪽 무한대에서 +∞로 가므로 전역 최소를 얻습니다. 모든 내부 최소 후보를 이미 열거했으므로 두 최소값을 비교해 2가 유일한 전역 최소임을 결론 냅니다.
다른 증명으로 f(x)+8/3=(x−2)²(3x²+8x+8)/12입니다. 마지막 이차식은 3(x+4/3)²+8/3>0이어서 모든 실수 x에서 값이 −8/3 이상이고 등호는 2에서만 성립합니다. 실습의 표시 창 [−3,3]은 수학적 허용집합 실수 전체를 잘라 낸 제약이 아닙니다.
This hypothetical polynomial has two valleys. Factor its derivative to locate the three stationary points exactly, then evaluate curvature and objective values.
The point −1 is a strict local minimum, zero a strict local maximum, and 2 a lower strict local minimum. Coercivity guarantees a global minimum, and the complete stationary list shows that 2 uniquely attains it.
Alternatively, f(x)+8/3=(x−2)²(3x²+8x+8)/12. The final factor equals 3(x+4/3)²+8/3 and is always positive. Equality therefore occurs only at 2. The plotting window [−3,3] is not a constraint replacing the mathematical domain, the real line.
기초Foundations
26. 볼록집합: 두 허용점을 잇는 선분도 허용되는가?26. Convex sets keep the segment between feasible points
볼록집합은 두 점을 고르면 그 사이의 모든 선분점도 집합 안에 있는 집합입니다. 구간, 원판, 직사각형, 실수 공간 전체가 예입니다. 구멍이 난 고리나 서로 떨어진 두 구간은 보통 이 조건을 어깁니다.
C convex⟺(1−t)x+ty∈Cfor all x,y∈C,0≤t≤1
t=0이면 x, t=1이면 y이고, t=1/2이면 중점입니다. 중점 하나만 확인하는 것이 정의의 전부는 아닙니다. 모든 두 점과 모든 t가 대상입니다.
닫힘·유계성과 볼록성은 다른 성질입니다. 열린 구간도 볼록이고 실수 전체도 볼록입니다. 닫히고 유계인 두 분리 원판의 합집합은 콤팩트지만 볼록하지 않을 수 있습니다. 볼록성은 주로 점과 점 사이를 잇는 논증에, 콤팩트성은 주로 존재 보장에 쓰입니다.
A set is convex if it contains the entire segment joining every pair of its points. Intervals, disks, rectangles and Euclidean space qualify; rings with holes or separated intervals generally do not.
C convex⟺(1−t)x+ty∈Cfor all x,y∈C,0≤t≤1
The parameter moves from x to y; t=1/2 gives the midpoint. Checking a single midpoint is not the complete definition.
Convexity is distinct from closedness and boundedness. Open intervals and the unbounded real line are convex. A compact union of separated disks need not be convex. Segment geometry and existence guarantees serve different purposes.
볼록집합 C 위의 함수가 볼록이라는 것은, 두 입력을 섞어서 얻는 함수값이 두 함수값을 같은 비율로 섞은 것보다 작거나 같다는 뜻입니다. 그림에서는 그래프가 양끝을 잇는 직선 아래에 놓입니다.
f((1−t)x+ty)≤(1−t)f(x)+tf(y)(x,y∈C,0≤t≤1)
x²에서 두 입력 −1과 1을 반씩 섞으면 입력 0의 값은 0, 점수들의 평균은 1입니다. 차이 1이 부등식의 여유입니다. 일반적으로 x²의 여유는 t(1−t)(x−y)²≥0이어서 모든 입력에 대한 증명이 됩니다.
실습은 이 여유를 계산합니다. 정확한 함수의 여유가 음수인 조합 하나면 볼록성이 반증됩니다. 다만 컴퓨터의 0에 아주 가까운 여유는 반올림 때문에 부호가 뒤집힐 수 있으므로 정확한 식이나 높은 정밀도로 별도 검산해야 합니다. 유한 개 실험에서 모두 0 이상이어도 전체 볼록성이 증명되는 것은 아닙니다. −x²와 25절 사차식에는 실패 조합이 있으며, x⁴는 모든 조합에서 성립합니다. 최대화에서는 −f의 볼록성, 즉 f의 오목성이 같은 역할을 합니다.
A function on a convex set is convex when evaluating at a mixed input gives no more than the same mixture of the endpoint values. Its graph lies below every chord.
f((1−t)x+ty)≤(1−t)f(x)+tf(y)(x,y∈C,0≤t≤1)
For x², mixing −1 and 1 equally gives value zero, below the average value one. Its general chord gap is t(1−t)(x−y)²≥0, proving the property for all inputs.
The lab computes this gap. A negative exact-function gap disproves convexity; a computed near-zero gap may have a rounding-induced sign error and needs exact or higher-precision checking. Finitely many nonnegative experiments do not prove convexity. The negative square and the earlier two-valley polynomial admit counterexamples, while x⁴ is convex. Concavity, equivalently convexity of −f, is the corresponding concept for maximization.
학부 연결 · 선택Undergraduate bridge · optional
28. 볼록함수의 접평면은 전역적인 아래 지지대28. A convex function has a global supporting tangent plane
미분 가능한 볼록함수에서는 a에서의 접평면이 단순한 국소 근사를 넘어 전체 함수의 아래쪽에 놓입니다. 열린 볼록 영역에서 다음 부등식이 성립합니다.
f(y)≥f(a)+∇f(a)T(y−a)for every a,y in the domain
유도는 a에서 y로 가는 선분을 사용합니다. 볼록 정의에서 f(a+t(y−a))−f(a)≤t(f(y)−f(a))이고, 양수 t로 나눠 t→0+을 보내면 됩니다. 접선의 변화율이 먼 점까지의 평균 증가율보다 크지 않다는 뜻입니다.
역도 성립합니다. 모든 a,y에서 이 접평면 부등식이 있으면 혼합점 z를 기준으로 x와 y 각각의 부등식을 써서 가중합합니다. 기울기 항은 (1−t)(x−z)+t(y−z)=0으로 소거되어 볼록 부등식이 나옵니다. 한 점의 접평면만 아래에 있는 것은 이 전역 동치 조건과 다릅니다.
For a differentiable convex function on an open convex domain, the tangent plane is a global lower support, not merely a local approximation.
f(y)≥f(a)+∇f(a)T(y−a)for every a,y in the domain
Apply convexity on the segment from a to y, subtract f(a), divide by positive t and let t approach zero. The initial directional rate cannot exceed the full secant rate.
Conversely, if the inequality holds for every pair, apply it from the mixed point z to both endpoints and average. The gradient terms cancel, yielding convexity. Support from just one selected point is not the same global condition.
학부 연결 · 선택Undergraduate bridge · optional
29. 한 점의 헤시안과 영역 전체의 헤시안을 구별29. Distinguish a Hessian at one point from Hessians across a domain
C² 함수가 열린 볼록 영역 전체에서 볼록일 필요충분조건은 모든 점의 헤시안이 양의 준정부호인 것입니다. 두 점을 잇는 선분에 함수를 제한하면 이계 도함수가 vᵀH v이므로 단변수 볼록성과 연결됩니다.
f∈C2,U open and convex:f convex on U⟺Hf(x)⪰0for every x∈U
x⁴에서는 f″=12x²≥0이 실수 전체에 성립합니다. 25절 사차식은 f″(0)=−2라 실수 전체에서 볼록하지 않습니다. 하지만 그 함수의 특정 국소 최소점에서는 f″>0입니다. 한 점의 곡률은 주변 판정, 모든 점의 곡률은 전체 모양에 관한 조건입니다.
주변 헤시안이 양의 정부호라고 해서 전체 영역에서 동일한 양수 하한이 있다는 뜻도 아닙니다. 이 차이는 32절 강볼록성과 다음 최적화 알고리즘의 보장에서 중요해집니다.
For a C² function on an open convex domain, convexity is equivalent to a positive semidefinite Hessian at every point. Restricting to each segment gives second derivative vᵀHv.
f∈C2,U open and convex:f convex on U⟺Hf(x)⪰0for every x∈U
The square curvature 12x² of x⁴ is nonnegative everywhere. The two-valley polynomial has negative second derivative at zero, even though its local minima have positive second derivatives. Pointwise local tests and domain-wide shape conditions differ.
Positive definiteness at every point also need not provide one positive lower bound uniform across the domain. Strong convexity requires such additional control.
기초Foundations
30. 볼록성에서는 국소 최소가 곧 전역 최소30. For convex problems, every local minimum is global
C가 볼록이고 f가 C 위에서 볼록이라고 합시다. 국소 최소 a보다 낮은 먼 점 y가 있다고 가정해 봅시다. a에서 y로 아주 조금만 간 z=(1−t)a+ty도 C 안에 있고 볼록성 때문에 f(z)≤(1−t)f(a)+tf(y)<f(a)입니다. a에 얼마든지 가깝게 더 낮은 점을 만들었으므로 국소 최소라는 가정과 모순입니다.
C convex,f convex on C:local minimizer⟹global minimizer
이 증명은 미분 가능성을 요구하지 않습니다. |x|도 볼록하므로 적용됩니다. 미분 가능한 내부 정지점에서는 28절 접평면 부등식의 기울기 항이 0이 되어 바로 전역 최소를 얻습니다.
함수만 볼록이고 허용집합은 비볼록이면 결론이 깨질 수 있습니다. f(x)=x², C={−2,1}에서 고립된 두 점은 모두 상대적 국소 최소지만 −2는 전역 최소가 아닙니다. 함수와 허용집합의 볼록성을 함께 확인하세요.
Suppose a convex function on a convex set has a local minimizer a but a lower point y. Points (1−t)a+ty remain feasible and have smaller values for arbitrarily small positive t, contradicting local minimality.
C convex,f convex on C:local minimizer⟹global minimizer
No differentiability is required. At a differentiable interior stationary point, the global tangent lower bound gives the result immediately.
The feasible set must also be convex. On C={−2,1}, the convex function x² has a relative local minimum at each isolated point, but −2 is not global.
기초Foundations
31. 엄격볼록성은 존재가 아니라 최대 한 개를 말한다31. Strict convexity gives at most one minimizer, not existence
서로 다른 x,y와 0<t<1에서 볼록 부등식이 엄격하게 성립하면 엄격볼록 함수입니다. 만약 서로 다른 두 최소점이 있으면 그 중점의 값이 두 최소값보다도 작아져 모순입니다. 따라서 볼록집합 위의 엄격볼록함수는 최소점이 있다면 유일합니다.
x=y,0<t<1:f((1−t)x+ty)<(1−t)f(x)+tf(y)
x²와 x⁴는 실수 전체에서 엄격볼록합니다. x⁴의 이계 도함수가 0에서 0이라는 사실은 엄격볼록성을 부정하지 않습니다. 예를 들어 도함수 4x³가 엄격히 증가하므로 서로 다른 점을 잇는 선분에서 엄격한 볼록 부등식이 성립합니다.
엄격볼록함수 eˣ는 실수 전체에서 최소를 얻지 못합니다. ‘최대 한 개’와 ‘정확히 한 개’는 다릅니다. 존재 정리와 유일성 논증을 각각 적는 습관이 필요합니다.
Strict convexity replaces the chord inequality by a strict one for distinct endpoints and an interior mixing weight. Two distinct minimizers would have a midpoint with still lower value, a contradiction. Hence an existing minimizer is unique on a convex feasible set.
x=y,0<t<1:f((1−t)x+ty)<(1−t)f(x)+tf(y)
Both x² and x⁴ are strictly convex on the real line. The zero curvature of x⁴ at zero does not prevent strict convexity; its derivative 4x³ is strictly increasing.
The strictly convex function eˣ has no real minimizer. At most one and exactly one are different statements. Establish existence and uniqueness separately.
학부 연결 · 선택Undergraduate bridge · optional
32. 강볼록성은 공통된 양의 곡률 하한32. Strong convexity supplies a uniform positive curvature bound
강볼록성은 볼록성보다 더 정량적인 조건입니다. 볼록 정의역 위의 미분 가능한 함수가 어떤 공통 상수 μ>0에 대해 아래 부등식을 모든 두 점에서 만족하면 μ-강볼록이라고 합니다. 유클리드 노름과 해당 좌표의 단위를 정한 뒤 사용하는 정의입니다.
f(y)≥f(x)+∇f(x)T(y−x)+2μ∥y−x∥2
C² 함수의 열린 볼록 영역에서는 H(x)≥μI라는 행렬 부등식과 동치입니다. x²는 μ=2로 강볼록입니다. x⁴는 엄격볼록이지만 실수 전체에서 어떤 μ>0으로도 강볼록하지 않습니다. x=0,y=h를 넣으면 h⁴≥μh²/2가 필요하고, 작은 비영 h에서는 실패합니다.
실수 공간 전체에서 미분 가능한 강볼록함수는 고정점의 이차 아래 지지대 때문에 강제적이며 연속이어서 최소를 얻고, 엄격볼록이어서 유일합니다. 하지만 열린 제한 영역에서는 달성 여부가 별도입니다. x²를 (0,1)에서 보면 여전히 μ=2지만 최소점은 없습니다. 영역을 빼고 강볼록성만 말하면 존재 조건을 놓칩니다.
Strong convexity quantifies a uniform amount of curvature. For a differentiable function on a convex domain, the following inequality with one constant μ>0 for all pairs defines μ-strong convexity in the specified Euclidean coordinates.
f(y)≥f(x)+∇f(x)T(y−x)+2μ∥y−x∥2
For C² functions on an open convex domain it is equivalent to H(x)≥μI everywhere. The function x² is 2-strongly convex. The strictly convex x⁴ is not strongly convex on the whole real line: using x=0,y=h would require h⁴≥μh²/2 for arbitrarily small nonzero h.
On all of Euclidean space, differentiable strong convexity supplies a coercive quadratic lower bound and a unique attained minimum. On an open restricted domain, attainment is separate: x² on (0,1) remains 2-strongly convex but has no minimizer.
기초Foundations
33. 존재·유일성·검사 조건을 세 칸으로 나누기33. Separate existence, uniqueness and classification
문제를 풀 때 세 질문을 나란히 적어 보세요. 첫째, 최소가 실제로 달성되는가? 연속성·콤팩트성이나 강제성이 답할 수 있습니다. 둘째, 있다면 하나인가? 엄격볼록성 같은 조건이 답합니다. 셋째, 계산한 후보가 그 점인가? 직접 부등식, 도함수 부호, 헤시안, 볼록 접평면 조건 등이 답합니다.
볼록 상수함수는 최소점이 많고, 엄격볼록 eˣ는 최소점이 없으며, 비볼록인 25절 사차식은 유일한 전역 최소를 갖습니다. 볼록성은 매우 유용한 충분 구조이지만 모든 유일 최소의 필요조건은 아닙니다.
볼록집합에서 볼록함수의 최소점들이 이루는 집합도 볼록입니다. 두 최소점 사이의 값은 볼록 부등식으로 최솟값 이하이고 최솟값의 정의로 그 이상이므로 똑같습니다. 최소점 둘 사이가 높게 솟아 있는 모양은 볼록 최소화에서 나타날 수 없습니다.
Ask three separate questions: Is a minimum attained? Is it unique if attained? Does the computed candidate actually minimize? Compactness or coercivity address existence, strict convexity addresses uniqueness, and direct inequalities or appropriate optimality conditions validate candidates.
A convex constant function has many minimizers; strictly convex eˣ has none; the nonconvex two-valley polynomial has one global minimizer. Useful sufficient structure need not be necessary in every problem.
The minimizer set of a convex function on a convex set is itself convex. Between two minimizers, convexity gives a value no greater than the minimum and its definition gives no less, forcing equality along the segment.
학부 연결 · 선택Undergraduate bridge · optional
34. 경계에서는 허용 방향의 일계 부등식34. At a boundary, first-order conditions use feasible directions
C가 볼록이고 f가 주변에서 미분 가능할 때, 국소 최소 a에서 임의의 허용점 y로 향하는 작은 선분은 허용됩니다. t≥0 방향만 허용되므로 g(t)=f(a+t(y−a))의 오른쪽 미분은 0 이상입니다.
∇f(a)T(y−a)≥0for all y∈C
내부점이면 양쪽 모든 방향이 있어 ∇f(a)=0으로 돌아갑니다. 경계에서는 기울기가 0이 아니어도 위 부등식을 만족할 수 있습니다. f(x)=x on [0,1], a=0이면 1·(y−0)≥0입니다.
이 부등식은 볼록집합의 미분 가능한 국소 최소에 필요한 조건입니다. f도 볼록이면 접평면 아래 지지대와 결합하여 전역 최소의 충분조건도 됩니다. 비볼록함수에서는 이것만으로 충분하지 않습니다. −x²의 a=0에서는 기울기가 0이라 조건을 만족하지만 최소가 아닙니다. 다음 장의 Lagrange·KKT 조건은 이러한 허용 방향을 제약의 기울기로 다룹니다.
On a convex feasible set C, the short segment from a local minimizer a toward any y in C is feasible. Differentiability therefore gives a nonnegative right derivative along that segment.
∇f(a)T(y−a)≥0for all y∈C
At an interior point this reduces to zero gradient. At a boundary it need not: for x on [0,1] at zero, the condition reads y≥0.
The inequality is necessary for differentiable local minima on convex sets. If the objective is also convex, the supporting-plane inequality makes it sufficient for global optimality. It is insufficient for general nonconvex functions, as −x² at zero shows. Lagrange and KKT conditions in the next chapter express feasible directions through constraints.
기초Foundations
35. 단위·목적함수 배율·수치 허용오차35. Units, objective scaling and numerical tolerances
양수 c로 목적함수를 곱해도 최소점 집합은 같습니다. 그러나 기울기와 헤시안은 c배입니다. SSE와 SSE/(2n)은 같은 최소점을 가지지만 도함수 숫자와 뒤에 배울 적절한 학습률은 달라집니다. 음수를 곱하면 최소·최대가 바뀝니다.
argmincf=argminf(c>0),∇(cf)=c∇f,Hcf=cHf
입력 단위를 바꿔도 기울기 숫자는 달라집니다. 따라서 ‘기울기가 0.001보다 작으니 최적’이라는 기준은 좌표·단위·목적함수의 배율을 알아야 해석할 수 있습니다. 작은 기울기만으로 경계·전역성·평평한 안장점을 배제하지 못합니다.
정확한 수학에서 0과 컴퓨터에서 허용오차 이하인 숫자를 구별하세요. 작은 음의 고유값을 0으로 처리했다면 사용한 기준을 밝히고 수치적으로 준정부호라는 판단과 이론적 증명을 분리합니다. 수치해석 장의 반올림·상쇄 논의가 여기서 다시 필요합니다.
Multiplying the objective by a positive constant preserves its minimizers but scales gradients and Hessians. SSE and SSE/(2n) therefore share minimizers while having different derivative magnitudes and appropriate step sizes. Negative scaling reverses minima and maxima.
argmincf=argminf(c>0),∇(cf)=c∇f,Hcf=cHf
Changing input units also changes gradient numbers. A small-gradient tolerance needs coordinate, unit and scaling context; it does not alone establish feasibility or global optimality.
Distinguish exact zero from a computed value below tolerance. If a small negative eigenvalue is treated as zero, state the threshold and separate a numerical classification from a mathematical proof.
기초Foundations
36. 실제 자료: 관측 극값과 선택한 손실의 극값36. Actual data: observed extrema versus chosen loss extrema
이 장의 세 자료는 서로 다른 질문을 구분하도록 구성했습니다. 한국 연간 GDP/명의 11개 숫자는 유한 표의 최소·최대를 갖습니다. 같은 자료의 적합 직선은 별도의 연속 모형이며, 양의 기울기 때문에 정한 닫힌 연도 구간의 양끝에서 극값을 얻습니다.
가구의 1,440개 분평균 전력은 기록된 값 중 최소 0.206 kW를 02:52와 04:23에서, 최대 7.064 kW를 09:03에서 갖습니다. 반면 일정한 예측값 c를 정하는 손실 ℓ(c)=Σ(Pᵢ−c)²/(2·1440)의 최소점은 평균 μ=169523/72000≈2.354486111 kW입니다. ℓ′=c−μ, ℓ″=1이므로 실수 전체에서 유일한 전역 최소입니다.
기업의 x,z는 실제 두 회계연도의 5개 품목 매출이고 α만 바뀌는 가정 계수입니다. 가정 허용범위 [0.95,1.01]에서는 α*가 밖에 있으므로 최소는 1.01입니다. 거기서 L′=−81,455,313.074로 0이 아니지만 모든 허용 작은 변화는 왼쪽이므로 경계 최소와 양립합니다. 손실 단위는 (백만 USD)²이며 실제 매출 최대화나 전망이 아닙니다.
실습에서는 어떤 선이 실측이고 어떤 값이 적합 함수인지 확인하세요. 연도나 분 사이를 실제 연속 경로처럼 연결해 도함수를 선언하지 않습니다. 37절은 출처와 변환, 동률, 손실값까지 자세히 풉니다.
The actual datasets pose distinct questions. Eleven annual Korean GDP-per-person observations have finite-table extrema. A fitted line is a separate continuous model whose positive slope puts its extrema at the ends of the chosen closed year interval.
The household's 1,440 minute-average power observations attain 0.206 kW at 02:52 and 04:23 and 7.064 kW at 09:03. In contrast, the chosen constant-prediction loss ℓ(c)=Σ(Pᵢ−c)²/(2·1440) uniquely minimizes at μ=169523/72000≈2.354486111 kW because ℓ′=c−μ and ℓ″=1.
The company inputs x,z are actual five-category sales vectors; α is a hypothetical descriptive coefficient. On the assumed interval [0.95,1.01], the minimum is at 1.01 because the unrestricted optimum lies outside. Its derivative −81,455,313.074 is nonzero, consistent with a boundary minimum. Loss is in squared million USD, not profit or a sales forecast.
Identify observations and fitted quantities separately. Annual or minute records do not establish a continuous observed path with a known derivative. Section 37 supplies sources, transformations, ties and worked loss comparisons.
기초Foundations
37. 국가·가구·기업의 실제 사례37. Actual country, household and company cases
국가 사례 · 가장 작은 관측연도와 함수의 최소점은 같은 질문일까?
실제 World Bank 한국 1인당 실질 GDP의 2014~2024년 기록 11개를 비교합니다. 첫 질문은 “이 표의 숫자 중 무엇이 가장 큰가?”입니다. 유한한 표에서 값을 비교하는 문제이므로 미분이나 연속성 가정이 필요하지 않습니다. 단위는 2015년 불변 USD/명이며 개인의 월급이나 재산을 뜻하지 않습니다.
실제 연간 관측과 별도로 계산한 직선
연도
실제 GDP/명 (2015 USD)
기술적 직선 값 (실측 아님)
선택 표에서의 위치
2014
29,470.673
29,517.710
최소
2015
30,171.791
30,272.186
2016
31,005.407
31,026.662
2017
31,979.903
31,781.138
2018
32,852.889
32,535.614
2019
33,496.311
33,290.090
2020
33,215.930
34,044.566
2019·2021보다 작은 값
2021
34,792.940
34,799.042
2022
35,809.014
35,553.518
2023
36,347.704
36,307.993
2024
37,048.426
37,062.469
최대
이 11개 기록의 최솟값은 2014년 약 29,470.673, 최댓값은 2024년 약 37,048.426입니다. 2020년은 바로 옆 2019·2021년보다 작지만 전체 표의 최솟값은 아닙니다. 이웃한 두 연도와 비교한 “관측된 골짜기”를 실제 연속 경로의 미분 가능한 극소점이라고 바꾸어 부르지 않습니다.
1. 연속 함수의 극값을 묻기 전에 식과 구간부터 정하기
이제 같은 실제 자료에 최소제곱으로 맞춘 기술적 직선을 별도 대상으로 둡니다. t=연도−2019이고, 연도를 연속 변수로 확장한 아래 함수는 관측 사이의 실제 GDP를 재현한다는 보장이 없는 모형입니다.
g(t)=a+bt,a≈33290.0897787474,b=754.47592853475>0
−5≤t≤5,g′(t)=b>0
이 닫힌 구간의 모형은 엄격히 증가하므로 최소는 t=−5(2014), 최대는 t=5(2024)에 있습니다. 모형 값은 각각 약 29,517.710과 37,062.469으로 실제 공시 값과 다릅니다. 두 경계에서 도함수는 0이 아닙니다. “도함수가 0인 곳만 찾기”는 이 문제의 답을 놓칩니다.
먼저 생각한 뒤 풀이 보기: 2019→2020과 2020→2021의 변화로 2020의 도함수가 0임을 증명할 수 있나요?
두 실제 연간 차이는 각각 -280.381489과 +1,577.009829 (2015 USD/명)입니다. 관측값이 내려갔다 올라간다는 것은 확인하지만 연간 표만으로 그 사이의 연속 경로, 미분가능성, 순간 기울기 또는 정확한 바닥 시점을 식별하지는 못합니다.
먼저 생각한 뒤 풀이 보기: 모형의 구간을 (2014,2024)처럼 양끝을 뺀 열린 구간으로 바꾸면?
동일한 증가 직선은 열린 구간에서 최솟값과 최댓값을 달성하지 않습니다. 양끝의 함수 값은 각각 하한과 상한이지만 그 연도는 허용되지 않습니다. 연속이라는 조건만으로 극값의 존재를 보장할 수 없고, 구간을 포함하는지 확인해야 합니다.
먼저 생각한 뒤 풀이 보기: 2019~2021년 세 기록만 고르면 실제 최솟값은 무엇인가요?
그 표에서는 2020년 33,215.930이 최솟값입니다. 비교집합을 바꾸면 답도 달라집니다. 따라서 “최고의 해”를 말할 때는 변수·허용집합·목적함수와 단위를 함께 적습니다. GDP의 표본 극값은 정책의 최적 연도나 사회후생 순위를 뜻하지 않습니다.
공개 UCI 자료의 프랑스 한 가구, 2006년 12월 17일 1,440개 분평균 전체 유효전력 기록을 사용합니다. 각 값의 단위는 kW이며 한 분의 평균입니다. 한순간에 측정한 최대전력이나 가전의 정격 출력으로 해석하지 않습니다. 해당 날짜의 선택 자료에는 결측값이 없습니다.
최솟값·최댓값과 모든 동률 기록
기록 시각 (원자료 표기)
분평균 전력 (kW)
선택한 하루의 위치
원자료 행 ID
02:52:00
0.206
최소 (동률 2개)
569
04:23:00
0.206
최소 (동률 2개)
660
09:03:00
7.064
최대 (1개)
940
최솟값을 달성하는 기록이 둘이라는 사실을 보존합니다. 최댓값은 09:03의 7.064 kW이며 앞뒤 기록은 09:02의 5.908과 09:04의 6.926 kW입니다. 그림에서 점을 이어 보더라도 이것은 기록 비교를 위한 안내선이지, 분 사이의 실제 연속 전력이나 미분값을 관측했다는 뜻이 아닙니다.
먼저 생각한 뒤 풀이 보기: 7.064 kW가 이 하루의 순간전력 최고값이라고 확정할 수 있나요?
아닙니다. 기록은 분평균이므로 그 분 안에서 더 큰 순간값이 있었는지 알 수 없습니다. 이 평균에 해당하는 1분 에너지는 7.064/60=0.117733333 kWh입니다. 같은 평균과 서로 다른 순간 최대를 갖는 경로가 가능하므로 순간 피크를 찾으려면 더 적합한 고해상도 측정이 필요합니다.
1. 자료는 고정하고 예측 상수 c를 선택하기
다음 질문은 실제 최저 기록을 고르는 문제가 아닙니다. 1,440개 값 전체를 하나의 c kW로 요약할 때, 아래의 선택한 평균 제곱손실을 가장 작게 하는 c를 찾습니다. c를 바꾼다고 실측 가구의 전력이 변하지 않습니다.
ℓ(c)=2n1i∑(Pi−c)2,n=1440,ℓ′(c)=c−Pˉ,ℓ′′(c)=1
c=Pˉ=72000169523≈2.354486111kW
유일한 정지점은 하루 평균이며, 2차 도함수가 양수이므로 엄격한 국소 최소입니다. 전역 최소인지까지 증명하려면 다음의 정확한 차이를 보면 됩니다.
ℓ(c)−ℓ(Pˉ)=21(c−Pˉ)2≥0
실제 고정 자료로 계산한 손실 (실측 전력 자체가 아님)
예측 상수 c (kW)
ℓ(c) (kW²)
ℓ′(c) (kW)
판단
0
3.498268908
-2.354486111
평균보다 작은 참조값
2.354486111
0.726466485
0
유일한 전역 최소
3
0.934810575
0.645513889
평균보다 큰 참조값
먼저 생각한 뒤 풀이 보기: 가장 작은 관측값 0.206을 c로 고르면 손실도 가장 작을까요?
아닙니다. 관측 중 최소를 찾는 것과 전체 자료에 대한 제곱손실을 최소화하는 것은 다릅니다. 최저 기록은 0.206 kW이고 가장 좋은 상수는 평균 약 2.354486111 kW입니다. ℓ은 c를 실수 전체에서 허용할 때 유일한 최소를 갖지만 위로는 끝없이 커져 최댓값은 없습니다.
2. 두 계통을 동시에 요약하는 전역 최소
같은 원자료의 주방·세탁실 분별 에너지(각 Wh)에 별도 상수 a,b를 맞추면, 18장의 손실 J에는 아래 등식이 성립합니다. 이 식은 두 변수를 함께 움직여도 평균쌍을 이길 수 없음을 보여줍니다. 전체 전력 kW와 이 두 계통의 분별 Wh는 다른 변수입니다.
오른쪽은 모든 (a,b)에서 음수가 아니고 두 차이가 모두 0일 때만 0입니다. 그래서 평균쌍이 유일한 전역 최소입니다. 양의 정부호 Hessian이라는 국소 판정에만 의존하지 않고 전체 영역의 정확한 손실 차이를 확인했습니다. 임의의 다른 함수에서는 한 점의 양의 정부호 Hessian만으로 전역 최소를 보장하지 않습니다.
먼저 α를 실수 전체에서 허용하면 α*가 유일한 전역 최소입니다. 이제 학습용 가정으로 0.95≤α≤1.01만 허용합니다. 이 범위는 Apple이 실제로 적용한 경영 규칙·회계 제약·목표가 아닙니다. 실제 공시를 입력으로 쓰지만 허용범위와 목적함수는 우리가 선택했습니다.
무제약 해 α*는 이 구간 밖입니다. 구간 전체가 α*보다 작으므로 L′(α)<0이고 손실은 엄격히 감소합니다. 따라서 닫힌 구간의 최소는 오른쪽 경계 α=1.01, 최대는 왼쪽 경계 α=0.95입니다. 그림의 모든 점은 관측이 아니라 가정한 α의 손실 계산입니다.
같은 손실, 서로 다른 허용 여부
α
가정 범위에서 허용?
L ((백만 USD)²)
L′ ((백만 USD)²)
판단
0.95
예
35,004,482.83075
-690,370,441.430
구간 최대
1.01
예
11,849,710.19563
-81,455,313.074
구간 최소
1.018026272557
아니요
11,522,818.92364
0
무제약 최소, 구간에서 불가
먼저 생각한 뒤 풀이 보기: 최소 α=1.01에서 L′가 음수인데 왜 최소인가요?
도함수 0이라는 필요조건은 미분 가능한 내부 국소 극값에 적용됩니다. 오른쪽 경계에서는 양쪽으로 움직일 수 없습니다. α를 더 키우면 손실이 줄겠지만 그 점은 허용집합 밖입니다. 허용된 작은 이동은 h≤0이고 L′(1.01)h≥0입니다. 그래서 이 범위의 최소와 음의 도함수는 모순되지 않습니다.
L′(1.01)=−81455313.074=0,L(1.01)=11849710.19563
먼저 생각한 뒤 풀이 보기: 1.01이 진짜 전역 최소인지 그림의 61개 점만 보고 확정하나요?
아닙니다. 실제 수치로 유도한 도함수의 부호가 구간 전체에서 음수임을 확인합니다. 또 L(α)−L(α*)=(xᵀx)(α−α*)²/10이므로 구간에서 α*에 가장 가까운 1.01이 유일한 최소입니다. 그림의 샘플과 연속 구간 전체에 대한 증명을 구별합니다.
먼저 생각한 뒤 풀이 보기: 닫힌 범위를 (0.95,1.01)로 바꾸면 최소는 존재하나요?
엄격히 감소하는 같은 함수는 이 열린 구간에서 최소를 달성하지 않습니다. L(1.01)은 하한이지만 α=1.01은 허용되지 않습니다. 도함수·구간·끝점 포함 여부가 모두 같은 문제 정의의 일부입니다.
먼저 생각한 뒤 풀이 보기: 제곱손실이 더 작은 α를 찾으면 Apple의 이익도 더 커지나요?
그렇게 결론 낼 수 없습니다. 실제 매출은 고정되어 있고 움직인 것은 기술적 참조식의 계수입니다. 손실의 단위는 매출의 제곱이지 이익이나 증가 매출이 아닙니다. FY2023은 53주, FY2024는 52주이고 가격·수량·환율 등을 통제하지 않았으므로 인과효과나 미래 성과도 식별하지 않습니다.
Country case · A smallest recorded year versus a function minimum
Compare eleven actual World Bank Korean real-GDP-per-capita records for 2014–2024. The first question asks which number in this table is largest. Comparing a finite collection needs no derivative or continuity assumption. Units are constant 2015 USD/person, not an individual wage or wealth measure.
Actual annual observations and a separately fitted line
Year
Actual GDP/person (2015 USD)
Descriptive line (not observed)
Position within selected sample
2014
29,470.673
29,517.710
Minimum
2015
30,171.791
30,272.186
2016
31,005.407
31,026.662
2017
31,979.903
31,781.138
2018
32,852.889
32,535.614
2019
33,496.311
33,290.090
2020
33,215.930
34,044.566
Below 2019 and 2021
2021
34,792.940
34,799.042
2022
35,809.014
35,553.518
2023
36,347.704
36,307.993
2024
37,048.426
37,062.469
Maximum
Among these eleven records, the minimum is approximately 29,470.673 in 2014 and the maximum 37,048.426 in 2024. The 2020 record is below its immediate 2019/2021 neighbors but is not the full-sample minimum. This observed annual dip does not establish a differentiable local minimum of an actual continuous path.
1. Specify the function and domain before continuous optimization
Separately use the descriptive least-squares line fitted to the same records. Let t=year−2019. Extending the year coordinate continuously defines a model; it does not recover actual GDP between annual observations.
g(t)=a+bt,a≈33290.0897787474,b=754.47592853475>0
−5≤t≤5,g′(t)=b>0
On this closed interval the model strictly increases, attaining its minimum at t=−5 (2014) and maximum at t=5 (2024). Fitted values are approximately 29,517.710 and 37,062.469, distinct from actual records. Neither endpoint has zero derivative. Searching only for zero derivatives misses both extrema.
Think first, then reveal: Do the 2019→2020 and 2020→2021 differences prove a zero derivative in 2020?
The actual annual differences are -280.381489 and +1,577.009829 in 2015 USD/person. They show a fall followed by a rise in recorded values. Annual observations alone do not identify a continuous path, differentiability, instantaneous slope or exact trough time.
Think first, then reveal: What if both endpoints are removed, giving the open interval (2014,2024)?
The same increasing line attains neither a minimum nor a maximum there. The endpoint values are its infimum and supremum, but those years are excluded. Continuity alone does not guarantee attainment; the domain matters.
Think first, then reveal: What is the smallest actual record if only 2019–2021 are compared?
It is the 2020 value 33,215.930. Changing the comparison set changes the answer. Every optimization statement needs variables, feasible set, objective and units. An observed GDP extremum does not identify an optimal policy year or a welfare ranking.
Household case · Lowest recorded power versus best constant prediction
Use 1,440 public UCI minute-average global active-power records from one French household on 17 December 2006. Each value is in kW and averages one minute. It is not an instantaneous peak or an appliance rating. No value is missing on this selected day.
Minimum, maximum and every tied record
Recorded time (source notation)
Minute-average power (kW)
Position within selected day
Original row ID
02:52:00
0.206
Minimum (two tied records)
569
04:23:00
0.206
Minimum (two tied records)
660
09:03:00
7.064
Maximum (one record)
940
Preserve both records attaining the minimum. The maximum is 7.064 kW at 09:03, with neighbors 5.908 at 09:02 and 6.926 kW at 09:04. Connecting points only guides comparison; it does not observe a continuous between-record power path or its derivative.
Think first, then reveal: Does 7.064 kW establish the day’s greatest instantaneous power?
No. A minute average does not identify within-minute peaks. The corresponding energy for that minute is 7.064/60=0.117733333 kWh. Different within-minute paths can share this average but have different maxima. Appropriate higher-resolution measurements would be required.
1. Fix actual records and choose a prediction constant c
This asks a different question from selecting the smallest measured value. Choose c kW to summarize all 1,440 records with the specified squared-error loss. Changing c does not change actual household consumption.
ℓ(c)=2n1i∑(Pi−c)2,n=1440,ℓ′(c)=c−Pˉ,ℓ′′(c)=1
c=Pˉ=72000169523≈2.354486111kW
The unique stationary point is the daily mean. Positive second derivative gives a strict local minimum. The following exact difference establishes the stronger global claim.
ℓ(c)−ℓ(Pˉ)=21(c−Pˉ)2≥0
Calculated loss based on fixed actual inputs (not measured power)
Prediction c (kW)
ℓ(c) (kW²)
ℓ′(c) (kW)
Interpretation
0
3.498268908
-2.354486111
Reference below the mean
2.354486111
0.726466485
0
Unique global minimum
3
0.934810575
0.645513889
Reference above the mean
Think first, then reveal: Does choosing the smallest observed value, 0.206, minimize loss?
No. Minimizing over recorded values and minimizing squared fitting loss are different tasks. The smallest record is 0.206 kW; the best constant is the mean, approximately 2.354486111 kW. With c allowed over the real line, ℓ has a unique minimum but no maximum because it is unbounded above.
2. A global minimum for two channel summaries
Fit separate constants a,b to the actual kitchen/laundry minute energies in Wh. The Chapter 18 loss J satisfies the identity below. Both inputs may move, yet no pair improves on the two means. These channel energies in Wh differ from global power in kW.
Think first, then reveal: Why is this identity-Hessian example a unique global minimum?
The right side is nonnegative for every pair and zero only when both differences vanish. Thus the mean pair is the unique global minimum. The argument checks the entire domain through an exact loss difference. A positive definite Hessian at one point of an arbitrary function alone would establish only a local result under the appropriate conditions.
Company case · A minimum can have nonzero derivative
Use actual Apple FY2023 category sales x and FY2024 sales z. This does not maximize the company’s actual sales or profit. Select a descriptive squared-error loss comparing z with the common-scale reference αx. Sales units are million nominal USD; α is dimensionless.
Fixed actual filings and the α=1.01 reference (million USD)
Allowing all real α gives the unique global minimum α*. Now impose assumed teaching bounds 0.95≤α≤1.01. These are not an actual Apple management rule, accounting constraint or target. Inputs are actual filings; the feasible set and objective are our choices.
The unrestricted optimum lies outside this interval. Every feasible α is below α*, so L′(α)<0 throughout and loss strictly decreases. The closed-interval minimum is at its upper endpoint 1.01; its maximum is at the lower endpoint 0.95. Every plotted point is a calculated parameter scenario, not an observation.
Same loss, different feasibility
α
Within assumed bounds?
L ((million USD)²)
L′ ((million USD)²)
Interpretation
0.95
Yes
35,004,482.83075
-690,370,441.430
Interval maximum
1.01
Yes
11,849,710.19563
-81,455,313.074
Interval minimum
1.018026272557
No
11,522,818.92364
0
Unrestricted minimum, infeasible here
Think first, then reveal: Why is α=1.01 a minimum when L′ there is negative?
The zero-derivative necessary condition concerns differentiable interior local extrema. At the upper endpoint one cannot move both ways within the domain. Increasing α would reduce loss, but is infeasible. Small feasible changes have h≤0 and L′(1.01)h≥0. A negative derivative is consistent with this interval minimum.
L′(1.01)=−81455313.074=0,L(1.01)=11849710.19563
Think first, then reveal: Do 61 plotted points prove the continuous global minimum?
No. The derivative formula from actual inputs is negative throughout the interval. Also L(α)−L(α*)=(xᵀx)(α−α*)²/10. The feasible point closest to α* is uniquely 1.01. Distinguish sampled plot values from a proof covering the entire continuous domain.
Think first, then reveal: What if the domain is the open interval (0.95,1.01)?
The same strictly decreasing function attains no minimum there. L(1.01) is the infimum but the endpoint is excluded. The derivative, domain and endpoint inclusion all belong to the problem definition.
Think first, then reveal: Does a lower fitting loss imply higher Apple profit?
No. Actual sales stay fixed while a descriptive reference coefficient changes. Squared sales units are not profit or incremental sales. FY2023 has 53 weeks and FY2024 52; prices, quantities and exchange rates are not controlled. This exercise identifies neither a causal effect nor future performance.
38. 풀이 점검표와 다음 읽기38. A solution checklist and further reading
답안을 완성할 때는 ① 목적함수·허용집합·단위 ② 달성 여부 ③ 후보를 빠짐없이 찾은 근거 ④ 후보 분류·실제 값 비교 ⑤ 국소인지 전역인지 ⑥ 유일성·동률 ⑦ 관측·가정 모형의 구분을 차례로 써 보세요. 정리를 적용했다면 그 가정을 어디서 확인했는지도 적습니다.
OpenStax Calculus 1, 4.3에서는 단변수의 극값·존재·후보를 읽으세요. 교재의 국소 용어가 내부점 중심일 수 있으므로 이 장의 상대적 국소 정의와 구별합니다. Calculus 3, 4.7에서는 두 변수의 헤시안 판정과 경계 비교를 골라 읽고 정지점·정의역 가정을 직접 확인하세요.
선택 심화는 저자 공개본 Boyd·Vandenberghe, Convex Optimization의 2.1 볼록집합, 3.1 볼록함수와 일계·이계 조건, 4.2의 국소·전역 관계입니다. 다음 장에서 제약과 KKT를 배우고, 이후 경사하강법에서 ‘최소가 존재함’과 ‘알고리즘이 그 점에 도달함’을 다시 분리합니다. 볼록성의 자세한 보존 연산과 쌍대성은 뒤의 전용 장에서 확장합니다.
A complete solution states: objective, feasible set and units; attainment; an exhaustive candidate argument; classification and actual values; local or global scope; uniqueness or ties; and the distinction between observations and hypothetical models. State where each theorem assumption was verified.
Read OpenStax Calculus 1, Section 4.3 for one-variable definitions and candidates. Compare its interior-focused local convention with our relative-to-set definition. Use Calculus 3, Section 4.7 for two-variable tests and boundary comparisons, checking domains and stationarity explicitly.
For an optional bridge, read the authors' Convex Optimization, Sections 2.1, 3.1 and 4.2, on convex sets, first/second-order characterizations and local versus global solutions. Constraints and KKT follow next. Later algorithm chapters distinguish existence of a minimizer from convergence of an algorithm to it, and a dedicated convexity chapter develops further operations and duality.
자료 묶음을 풀고 코드와 실제데이터 폴더를 함께 두세요. 터미널에서 코드 파일이 있는 폴더로 이동해 아래 명령을 실행합니다. 코딩이 처음이라면 손계산과 웹 실습을 먼저 하고, 데이터 사이언스 입문에서 코드를 배운 뒤 돌아와도 됩니다.Extract the bundle, keeping the scripts beside the data folder. In a terminal, enter the script folder and run the commands below. Beginners can complete hand calculations and browser labs first, returning to code after studying introductory data science.
결과 파일은 각 코드에 지정된 결과 폴더에 저장됩니다. CSV 원자료는 덮어쓰지 않습니다.Result files are saved in the result directory specified by each script; the input CSVs are not overwritten.
영상·학자·함께 읽기Videos, thinkers and guided reading
본문의 질문을 넓히는 선택 학습입니다. 영상을 보기 전 질문을 먼저 읽고, 자신의 답을 쓴 뒤 해설과 비교하세요. 자료의 언어·선수 지식은 각 항목에 표시했습니다.Optional extensions to the chapter. Read the question first, write your answer, then compare with the explanation. Language and prerequisites are indicated below.
이계 도함수 검사: 정지점에서 곡률 읽기Second derivative test
Khan Academy · Sal Khan
공식 영어 영상을 본문에서 보고, 내부 정지점의 이계 도함수 검사와 끝점 비교를 구별하세요. 가구 상수손실의 곡률 1과 기업의 경계 최소를 연결합니다.Watch the official English video in the chapter. Distinguish a second-derivative test at an interior stationary point from endpoint comparisons.
교재 안의 YouTube 플레이어에서 재생합니다. 원영상에서 제공하는 자막은 플레이어의 CC·설정에서 선택할 수 있습니다.Playback stays in this chapter’s YouTube player. Available captions can be selected through CC/settings.
보고 읽은 뒤 답하기Respond after watching/reading양의 이계 도함수만으로 모든 점을 최소점이라고 하나요?Does a positive second derivative make every point a minimum?
생각을 점검하는 해설Check your reasoning
아닙니다. 내부점의 해당 검사에는 먼저 일계 도함수가 0이라는 조건이 필요합니다. 경계는 허용되는 방향과 끝점 값을 별도로 확인합니다.No. This interior-point test first requires zero first derivative. At a boundary, inspect feasible directions and endpoint values separately.
피에르 드 페르마 · 극값과 접선이라는 질문Pierre de Fermat: questions about extrema and tangents
University of St Andrews · MacTutor
대학 아카이브의 극대·극소와 접선 연구 소개를 읽습니다. 여기서의 내부 극값 필요조건은 유명한 정수론의 마지막 정리와 다른 내용입니다.Read the university archive’s account of work on maxima, minima and tangents. The interior-extremum condition is distinct from the famous number-theory theorem.
보고 읽은 뒤 답하기Respond after watching/reading“미분 가능한 내부 최소이면 도함수 0”을 거꾸로 써도 되나요?Can the implication “differentiable interior minimum implies zero derivative” be reversed?
생각을 점검하는 해설Check your reasoning
일반적으로는 안 됩니다. 가정함수 x³은 0에서 도함수가 0이지만 좌우로 계속 증가해 극값이 아닙니다. 가구 이차손실에서는 별도의 곡률·정확한 손실 차이가 최소임을 보장합니다.Not generally. The illustrative function x³ has zero derivative at zero without an extremum. Curvature and an exact loss-difference identity establish the household quadratic minimum.
닫힌 구간의 극값과 내부 필요조건Closed-interval extrema and interior necessary conditions
OpenStax · Rice University · Calculus Volume 1 §4.3
극값정리 4.1, 페르마 정리 4.2와 끝점 비교를 읽습니다. 내부라는 조건을 적고 닫힌 구간·열린 구간을 실제 자료 모형에 적용합니다.Read Theorems 4.1/4.2 and endpoint comparisons. State the interior condition and contrast open versus closed domains in our models.
보고 읽은 뒤 답하기Respond after watching/reading유한한 실제 표의 최댓값 존재에 연속함수의 극값정리가 필요한가요?Does existence of a maximum in a finite actual table need the continuous extreme-value theorem?
생각을 점검하는 해설Check your reasoning
아닙니다. 비어 있지 않은 유한한 실수값 집합은 비교만으로 최대·최소를 갖습니다. 연속 함수의 정리는 구간 전체의 함수값을 다루는 다른 근거입니다.No. A nonempty finite set of finite real values has a maximum and minimum by comparison. The continuous theorem addresses all values over a domain.
두 변수의 이계 조건과 경계 확인Second-order tests in two variables and boundary checks
보고 읽은 뒤 답하기Respond after watching/reading한 내부점에서 Hessian이 양의 정부호이면 자동으로 모든 영역의 유일한 전역 최소인가요?Does a positive definite Hessian at one interior point automatically give a unique global minimum?
생각을 점검하는 해설Check your reasoning
정지점과 매끄러움 조건 아래 엄격한 국소 최소를 보장합니다. 전역·유일성은 별도 근거가 필요합니다. 가구 사례는 모든 변화에서의 정확한 제곱차 등식으로 그 근거를 제시합니다.At a stationary point with suitable regularity it guarantees a strict local minimum. Global uniqueness needs more evidence, supplied here by the household’s exact squared-distance identity.
연습문제 · 계산에서 설명과 증명까지Exercises: calculation, explanation and proof
먼저 혼자 풀고 풀이를 여세요. 숫자와 함께 단위·포함 기준·계산 이유를 확인하세요.Attempt each problem before opening its solution. Check units, inclusion rules and the reason for the calculation.
1. 최소점과 최솟값Input versus value
f(x)=(x−3)²+5를 실수 전체에서 최소화하세요. 최소점과 최솟값을 단위 없는 별도 숫자로 쓰세요.
Minimize (x−3)²+5 on the real line. State the minimizer and minimum value separately.
풀이와 확인할 이유Solution and explanation
제곱항이 0 이상이고 x=3일 때만 0입니다. 따라서 유일한 최소점은 3, 최솟값은 5입니다. 5는 입력이 아니라 함수값입니다. 위로 한없이 커지므로 최댓값은 없습니다.
The square is nonnegative and vanishes only at x=3. The unique minimizer is 3 and minimum value 5. The function is unbounded above and has no maximum.
2. 허용범위를 바꾸기Changing the domain
같은 f(x)=(x−3)²+5를 [0,2]에서 최소·최대화하세요.
Find both extrema of (x−3)²+5 on [0,2].
풀이와 확인할 이유Solution and explanation
f′=2(x−3)<0이 구간 전체에 성립하므로 감소합니다. 최소점 2에서 값 6, 최대점 0에서 값 14입니다. 실수 전체의 최소점 3은 허용되지 않습니다. 최소점의 도함수는 −2로 0이 아닙니다.
The derivative 2(x−3) is negative throughout, so the function decreases. The minimum is 6 at 2 and maximum 14 at 0. The unrestricted minimizer 3 is infeasible; the boundary minimum has derivative −2.
3. 동률과 argminTies and argmin
f(x)=(x²−4)²의 실수 전체 최소점 집합과 최솟값을 구하세요.
Find argmin and the minimum value of (x²−4)² on the real line.
풀이와 확인할 이유Solution and explanation
모든 값이 0 이상이고 x²−4=0일 때 등호입니다. 따라서 argmin={−2,2}, 최솟값 0입니다. 두 점은 각각 엄격한 국소 최소지만 전역 최소점은 하나가 아닙니다.
Nonnegativity gives lower bound zero, attained exactly when x²=4. Thus argmin={−2,2} and the minimum value is zero. Both points are strict local minima but global uniqueness fails.
4. 하한값의 미달성Unattained infimum
f(x)=x² on (0,1)의 하한값과 최소점 존재를 판단하세요. 컴퓨터가 x=10⁻⁶을 골랐다고 답이 달라지나요?
For x² on (0,1), find the infimum and decide whether a minimizer exists. Does selecting x=10⁻⁶ change the answer?
풀이와 확인할 이유Solution and explanation
하한값은 0이지만 모든 허용 x에서 x²>0입니다. x/2를 고르면 값이 1/4로 줄므로 최소점은 없습니다. 10⁻⁶도 더 나은 점을 허용하는 근삿값일 뿐입니다. [0,1]로 바꾸면 0에서 달성됩니다.
The infimum is zero but every feasible value is positive. Replacing x by x/2 quarters the value, so no minimizer exists. A numerical near-zero point does not change attainment. On [0,1], zero is attained.
5. 연속성 조건 확인Checking continuity
[0,1]에서 f(0)=1, x>0이면 f(x)=x입니다. 닫히고 유계인데 왜 최소가 없나요?
On [0,1], let f(0)=1 and f(x)=x for x>0. Why does compactness not guarantee a minimum here?
풀이와 확인할 이유Solution and explanation
0에서 오른쪽 극한은 0인데 함수값은 1이라 불연속입니다. 양의 모든 입력은 그 절반에서 더 작은 값을 갖고, x=0의 값도 최소가 아닙니다. 극값 정리의 연속성 가정이 실패합니다. 최대 1은 0과 1에서 달성됩니다.
The function is discontinuous at zero: its right limit is zero but its value is one. Every positive input has a smaller value at half the input, and zero is not a minimizer. The continuity hypothesis fails. Maximum one is attained at both endpoints.
6. 강제성과 유일성Coercivity versus uniqueness
f(x)=(x²−1)²가 최소를 얻는 이유와 유일하지 않은 이유를 나누어 설명하세요.
Explain separately why (x²−1)² attains a minimum and why it is not unique.
풀이와 확인할 이유Solution and explanation
다항식이라 연속이고 |x|→∞에서 +∞로 가므로 강제성으로 최소가 존재합니다. 정확한 제곱식에서 최솟값 0이 x=−1,1 두 곳에서 달성됨을 확인합니다. 강제성은 존재 보장이지 유일성 보장이 아닙니다.
Continuity and growth to positive infinity establish existence by coercivity. Directly, value zero is attained at −1 and 1. Coercivity guarantees existence, not uniqueness.
7. Fermat의 가정Fermat hypotheses
‘최소점이면 도함수 0’이라는 문장을 정확한 정리로 고치고 두 가지 가정 실패 예를 드세요.
Correct “a minimizer has zero derivative” and give two examples showing missing hypotheses.
풀이와 확인할 이유Solution and explanation
열린 구간 안의 내부 국소 최소점에서 함수가 미분 가능하면 도함수는 0입니다. x on [0,1]의 0은 경계 최소로 도함수 1입니다. |x|의 0은 내부 최소지만 미분이 없습니다. 각각 내부·미분 가능 가정이 빠졌습니다.
A differentiable interior local minimizer has zero derivative. The boundary minimum of x on [0,1] at zero has derivative one; the interior minimum of |x| at zero has no derivative. These remove interiority and differentiability, respectively.
8. 필요조건의 역은 틀리다A false converse
f(x)=x³의 0을 도함수와 주변 함수값으로 분류하세요.
Classify zero for x³ using the derivative and neighboring values.
풀이와 확인할 이유Solution and explanation
f′=3x²이므로 f′(0)=0입니다. 그러나 음의 작은 x에서는 f(x)<0, 양의 작은 x에서는 f(x)>0입니다. 따라서 최소·최대가 아닙니다. 도함수 0은 이 경우 정지 후보라는 정보만 줍니다.
The derivative 3x² vanishes at zero, but negative inputs have lower values and positive inputs higher values. Zero is neither a minimum nor a maximum; stationarity alone does not classify it.
Compute the one-sided derivatives of |x| at zero, prove its minimum directly, and assess whether the one-sided inequalities alone are sufficient in general.
풀이와 확인할 이유Solution and explanation
좌미분 −1, 우미분 1입니다. |x|≥0이고 등호가 0에서만 성립하므로 엄격한 전역 최소입니다. 일반적으로 좌미분≤0≤우미분만으로 충분하지 않습니다. −x²는 둘 다 0이지만 원점이 최대입니다.
The derivatives are −1 and 1. Nonnegativity with equality only at zero proves a strict global minimum. The weak inequalities alone are insufficient: both one-sided derivatives of −x² vanish at its maximum.
10. 부호표와 전역성A sign chart and global scope
f(x)=x³−3x의 실수 전체 국소 극값을 구하고 전역 극값 여부를 설명하세요.
Find the local extrema of x³−3x on the real line and decide whether any are global.
풀이와 확인할 이유Solution and explanation
f′=3(x−1)(x+1)의 부호는 +,−,+입니다. 따라서 −1에서 국소 최대 2, 1에서 국소 최소 −2입니다. x→∞에서 f→∞, x→−∞에서 f→−∞이므로 어느 것도 전역 극값은 아니며 전역 최대·최소가 없습니다.
The derivative sign pattern is +,−,+. Thus −1 gives local maximum 2 and 1 local minimum −2. Opposite unbounded cubic tails rule out both global extrema.
11. 이계 판정과 완전제곱Curvature and completing the square
f(x)=2x²−8x+7의 최소를 두 방법으로 확인하세요.
Find and verify the minimum of 2x²−8x+7 in two ways.
풀이와 확인할 이유Solution and explanation
f′=4x−8에서 정지점 2, f″=4>0이라 엄격 국소 최소입니다. 완전제곱 f=2(x−2)²−1로 실수 전체의 유일한 최소임과 최솟값 −1을 확인합니다. 두 번째 논증이 전역성을 직접 보장합니다.
The stationary point is 2, with second derivative 4, giving a strict local minimum. The identity 2(x−2)²−1 proves the unique global minimum value −1 directly.
12. 영 이계 미분의 세 결과Three zero-curvature outcomes
x⁴, −x⁴, x³의 0을 비교하고 f″(0)=0에서 얻을 수 있는 결론을 쓰세요.
Compare zero for x⁴, −x⁴ and x³. What does f″(0)=0 establish?
풀이와 확인할 이유Solution and explanation
세 함수 모두 일계·이계 미분이 0입니다. x⁴는 엄격 최소, −x⁴는 엄격 최대, x³는 어느 쪽도 아닙니다. 따라서 이계 판정이 미결정이라는 결론만 얻습니다. 함수값 부호 또는 선도항을 추가로 조사해야 합니다.
All have zero first and second derivatives. Their classifications are strict minimum, strict maximum and neither. The second-order test is inconclusive, requiring direct sign or higher-order analysis.
13. 고차 선도항Leading higher-order terms
f(a+h)−f(a)=3h⁶+o(|h|⁶)인 경우와 −2h⁵+o(|h|⁵)인 경우를 분류하세요.
Classify expansions 3h⁶+o(|h|⁶) and −2h⁵+o(|h|⁵) for f(a+h)−f(a).
풀이와 확인할 이유Solution and explanation
첫 경우 충분히 작은 비영 h에서 나머지 절댓값을 (3/2)|h|⁶보다 작게 잡으면 차이가 양수라 엄격 국소 최소입니다. 둘째는 홀수 선도항이 양쪽에서 반대 부호를 가지므로 더 큰 값과 더 작은 값이 모두 있어 극값이 아닙니다.
In the first, bound the remainder by (3/2)|h|⁶ to obtain a positive change for all sufficiently small nonzero h: a strict local minimum. The odd leading term in the second changes sign and dominates its remainder, yielding neither extremum.
14. 닫힌 구간의 동률Tied closed-interval extrema
x³−3x를 [−2,2]에서 최소·최대화하고 모든 답을 쓰세요.
Find every minimizer and maximizer of x³−3x on [−2,2].
풀이와 확인할 이유Solution and explanation
내부 후보 −1,1과 끝점 −2,2를 비교합니다. 값은 차례로 f(−2)=−2, f(−1)=2, f(1)=−2, f(2)=2입니다. 최소점 집합 {−2,1}, 최대점 집합 {−1,2}입니다. 함수가 연속이므로 이 후보 비교는 존재 보장과 결합해 완전합니다.
Compare stationary points −1,1 and endpoints −2,2. Values are −2,2,−2,2 in increasing input order. The minimizers are {−2,1}, maximizers {−1,2}. Continuity and the exhaustive candidate list justify completeness.
15. 한 점 구간A singleton interval
f(x)=(x−5)²를 [2,2]에서 최소·최대화하세요. 도함수 0이 필요한가요?
Optimize (x−5)² on [2,2]. Is a zero derivative required?
풀이와 확인할 이유Solution and explanation
허용점은 2 하나이고 값은 9입니다. 따라서 최소·최대점 모두 2, 두 극값 모두 9입니다. 도함수는 −6이지만 내부점이 없으므로 Fermat의 내부 조건을 적용하지 않습니다.
The only feasible point is 2, with value 9, so it both minimizes and maximizes. Its derivative is −6. There is no interior point to which the Fermat condition applies.
16. 가장 먼 끝점Farthest endpoints
(x−1)²를 [−1,3]에서 최소·최대화하고 동률을 확인하세요.
Find both extrema of (x−1)² on [−1,3], including ties.
풀이와 확인할 이유Solution and explanation
중심 1이 구간 안에 있어 최소 0은 1에서 얻습니다. 두 끝점은 중심과의 거리가 모두 2라 값 4로 최대 동률입니다. 이는 [a,b] 끝점 거리 비교로 찾는 최대입니다.
The center 1 is feasible and uniquely gives minimum zero. Each endpoint is distance two from it and gives maximum four, so both −1 and 3 maximize.
17. 유한 격자의 한계A finite grid is not a proof
f를 x=−1,0,1에서만 계산했고 세 값이 모두 1입니다. 실수 구간 [−1,1]에서 f≥1이라고 결론 내릴 수 있나요?
If f(−1)=f(0)=f(1)=1, must f≥1 throughout [−1,1]?
풀이와 확인할 이유Solution and explanation
없습니다. 반례로 f(x)=1−4x²(1−x²)는 표시한 세 점에서 1이지만 x=1/√2에서는 0입니다. 유한 표의 최소 1과 연속 범위 최소는 다릅니다. 실제로 x²(1−x²)≤1/4이므로 이 함수의 구간 최솟값은 0입니다.
No. The function 1−4x²(1−x²) matches all three values but equals zero at x=1/√2. Since x²(1−x²)≤1/4 on this interval, its actual minimum is zero. A sampled minimum differs from the continuous minimum.
18. 기울기 방정식A gradient equation
f(x,y)=(x−1)²+2(y+2)²의 정지점·헤시안·전역 최소를 구하세요.
Find the stationary point, Hessian and global minimum of (x−1)²+2(y+2)².
풀이와 확인할 이유Solution and explanation
∇f=(2(x−1),4(y+2))=0에서 (1,−2)입니다. H=diag(2,4)는 양의 정부호라 엄격 국소 최소입니다. 두 제곱항의 합이 0 이상이며 그 점에서만 0이므로 유일한 전역 최소입니다.
The gradient vanishes only at (1,−2). The Hessian diag(2,4) is positive definite. Nonnegative squares with simultaneous equality only there establish the unique global minimum value zero.
19. 양의 정부호의 양적 하한A quantitative curvature bound
H=[[2,1],[1,4]]의 최소 고유값을 이용해 q(h)=½hᵀHh의 하한과 최소를 설명하세요.
Use the smallest eigenvalue of H=[[2,1],[1,4]] to bound q(h)=½hᵀHh and classify its minimum.
풀이와 확인할 이유Solution and explanation
고유값은 3±√2라 m=3−√2>0입니다. 따라서 q(h)≥(3−√2)‖h‖²/2이고 비영 h에서는 양수입니다. 원점이 유일한 전역 최소입니다. 일반 C² 함수에서 ∇f(0)=0이고 원점 헤시안이 H라면 이 구조에 작은 나머지를 더해 엄격 국소 최소를 증명합니다.
The eigenvalues are 3±√2, so q(h)≥(3−√2)‖h‖²/2. It is positive for nonzero h, giving a unique global minimum at zero. For a general C² function at a stationary point with this Hessian, an additional remainder argument yields a strict local minimum.
20. 준정부호로 충분하지 않다Semidefiniteness is insufficient
원점에서 x²+y⁴, x²−y⁴, x²의 헤시안과 극값을 비교하세요.
Compare the origin Hessians and extrema of x²+y⁴, x²−y⁴ and x².
풀이와 확인할 이유Solution and explanation
모두 H=diag(2,0)입니다. 첫 함수는 모든 비영점에서 양수라 엄격 전역 최소입니다. 둘째는 x축 양수·y축 음수라 안장점입니다. 셋째는 y축 전체가 최소여서 비엄격 전역 최소입니다. 같은 준정부호 이차정보로 세 결과가 가능합니다.
All Hessians equal diag(2,0). The first has a strict global minimum, the second a saddle, and the third a non-strict global minimum with the whole y-axis minimizing. Their quadratic information is identical.
21. 이변수 판정 세 행렬Three two-variable tests
정지점의 C² 헤시안이 각각 [[4,1],[1,2]], [[−4,1],[1,−2]], [[2,3],[3,2]]이면 분류하세요.
Classify C² stationary points with Hessians [[4,1],[1,2]], [[−4,1],[1,−2]] and [[2,3],[3,2]].
풀이와 확인할 이유Solution and explanation
첫째 D=8−1=7>0,a=4>0이므로 엄격 국소 최소입니다. 둘째 D=7>0,a=−4<0이므로 엄격 국소 최대입니다. 셋째 D=4−9=−5<0이므로 안장점입니다. 정지점·C² 조건이 함께 주어졌기 때문에 판정할 수 있습니다.
The first has determinant 7 and positive leading entry: strict local minimum. The second has determinant 7 and negative leading entry: strict local maximum. The third has determinant −5: saddle. Stationarity and C² are essential premises.
22. 두 축만 보면 놓치는 것What coordinate slices miss
f=x²+y²−4xy의 원점이 최소가 아닌 것을 경로와 고유값으로 각각 보이세요.
Show using paths and eigenvalues that the origin of x²+y²−4xy is not a minimum.
풀이와 확인할 이유Solution and explanation
축에서는 t²≥0이지만 (t,t)에서는 −2t²<0입니다. 따라서 축의 큰 값과 대각선의 작은 값이 모두 있어 안장점입니다. H=[[2,−4],[−4,2]]의 고유값 −2,6도 부정정을 확인합니다.
Coordinate axes yield t², but (t,t) gives −2t². There are both higher and lower nearby values. The Hessian [[2,−4],[−4,2]] has eigenvalues −2 and 6, independently confirming a saddle.
23. 원판의 경계A disk boundary
x²+y²≤1에서 f(x,y)=x의 최소·최대를 찾고 내부 기울기 조건이 답을 찾지 못하는 이유를 설명하세요.
Optimize f(x,y)=x on x²+y²≤1 and explain why a zero-gradient search misses the answer.
풀이와 확인할 이유Solution and explanation
−1≤x≤1이므로 최소 −1은 (−1,0), 최대 1은 (1,0)에서 얻습니다. 기울기 (1,0)는 0이 아니지만 두 답 모두 경계에 있습니다. 내부 정지점은 없고, 연속성·콤팩트성은 존재를 보장합니다.
The minimum −1 occurs at (−1,0), maximum 1 at (1,0). The constant gradient (1,0) never vanishes, but both extrema are boundary points. Compactness and continuity guarantee existence despite no stationary interior point.
24. 경계 전체의 동률An entire boundary tie
닫힌 단위원판에서 f=x²+y²의 최소점·최대점 집합을 구하세요.
Find all minimizers and maximizers of x²+y² on the closed unit disk.
풀이와 확인할 이유Solution and explanation
정의에서 0≤f≤1입니다. 0은 원점에서만, 1은 x²+y²=1인 원 전체에서 달성됩니다. 최대점은 무한히 많습니다. ‘후보를 몇 개 찍고 비교’하는 방식만으로 경계 전체의 동률을 설명할 수 없고 등호 조건이 필요합니다.
The value lies between zero and one. Zero occurs only at the origin; one occurs at every boundary point. An equality-condition argument identifies this infinite set of maximizers.
25. 두 골짜기의 국소 분류Local classification of two valleys
f=x⁴/4−x³/3−x²의 실수 정지점을 찾아 이계 조건으로 분류하세요.
Classify all stationary points of x⁴/4−x³/3−x² by the second derivative.
풀이와 확인할 이유Solution and explanation
f′=x(x−2)(x+1)=0에서 −1,0,2입니다. f″=3x²−2x−2의 값은 3,−2,6입니다. 따라서 −1과 2는 엄격 국소 최소, 0은 엄격 국소 최대입니다. 이 분류만으로 두 최소 중 어느 쪽이 전역인지는 아직 비교하지 않았습니다.
Factoring the derivative gives −1,0,2. The second derivative values are 3,−2,6, so −1 and 2 are strict local minima and zero a strict local maximum. Comparing global values is a separate step.
26. 두 골짜기의 전역 증명A global proof for the lower valley
f=x⁴/4−x³/3−x²에서 f+8/3=(x−2)²(3x²+8x+8)/12를 확인하고 유일한 전역 최소를 증명하세요.
Verify f+8/3=(x−2)²(3x²+8x+8)/12 for f=x⁴/4−x³/3−x² and prove the unique global minimum.
풀이와 확인할 이유Solution and explanation
곱을 전개하면 x⁴/4−x³/3−x²+8/3입니다. 3x²+8x+8=3(x+4/3)²+8/3>0이므로 우변은 0 이상이고 x=2에서만 0입니다. 따라서 유일한 전역 최소점 2, 최솟값 −8/3입니다. −1의 값 −5/12는 더 큽니다.
Expansion verifies the identity. The last factor is 3(x+4/3)²+8/3>0, so equality with the lower bound −8/3 holds only at x=2. The other local minimum has value −5/12 and is higher.
27. 볼록집합 판별Testing convex sets
(0,1), 단위원판, {−2,1}, 실수 전체 중 어느 집합이 볼록인지 정의로 설명하세요.
Which of (0,1), the unit disk, {−2,1} and the real line are convex? Use the definition.
풀이와 확인할 이유Solution and explanation
열린 구간·원판·실수 전체는 두 점 사이의 모든 선분점을 포함하므로 볼록입니다. {−2,1}은 중점 −1/2를 포함하지 않아 비볼록입니다. 열린 구간은 닫혀 있지 않고 실수 전체는 유계가 아니므로 볼록성과 콤팩트성이 다름도 확인됩니다.
The interval, disk and real line contain every segment between their points. The two-point set fails at midpoint −1/2. Open and unbounded convex examples also distinguish convexity from compactness.
28. Jensen 여유의 직접 유도Deriving a Jensen gap
x²의 볼록 부등식에서 (1−t)x²+ty²−((1−t)x+ty)²를 전개하세요.
Expand (1−t)x²+ty²−((1−t)x+ty)².
풀이와 확인할 이유Solution and explanation
전개하면 t(1−t)(x²−2xy+y²)=t(1−t)(x−y)²입니다. 0≤t≤1에서 0 이상이므로 볼록합니다. x≠y,0<t<1이면 양수라 엄격볼록도 증명됩니다. 이는 몇 개의 실험이 아니라 모든 입력에 대한 항등식입니다.
It equals t(1−t)(x−y)², nonnegative for 0≤t≤1. It is positive for distinct x,y and interior t, proving strict convexity. This identity covers all inputs rather than a finite experiment.
29. 볼록성의 한 반례One convexity counterexample
f(x)=−x², x=−1,y=1,t=1/2에서 볼록 부등식을 검사하세요.
Test convexity of −x² at x=−1,y=1,t=1/2.
풀이와 확인할 이유Solution and explanation
중간 함수값 f(0)=0이고 끝값 혼합은 (−1−1)/2=−1입니다. 요구되는 0≤−1은 거짓이며 여유는 −1입니다. 이 한 조합으로 볼록성이 반증됩니다. 반대로 한 조합에서 참이라고 볼록성이 증명되지는 않습니다.
The mixed-input value is zero and the averaged endpoint value −1. The required inequality 0≤−1 fails, so this single instance disproves convexity. A successful single instance could not prove it.
30. 접선 아래 지지대A supporting tangent
f(x)=x², a=2에서 전역 접선 아래 지지대 부등식을 쓰고 차이를 확인하세요.
Write and verify the global tangent lower bound for x² at a=2.
풀이와 확인할 이유Solution and explanation
f(y)≥f(2)+f′(2)(y−2)=4+4(y−2)=4y−4입니다. 차이는 y²−4y+4=(y−2)²≥0입니다. 이 예에서 접선은 모든 실수에서 아래에 있습니다. 일반 비볼록함수의 접선에 같은 성질을 자동 적용하지 않습니다.
The tangent is 4+4(y−2)=4y−4. Subtracting it from y² gives (y−2)²≥0 for every real y. Such global support requires the appropriate convexity conditions.
31. 한 점 대 모든 점One point versus every point
25절 사차식의 x=2에서 f″=6>0입니다. 이것으로 실수 전체 볼록성을 결론 낼 수 있나요?
The two-valley polynomial has f″(2)=6>0. Does this prove convexity on the real line?
풀이와 확인할 이유Solution and explanation
없습니다. f″(0)=−2<0이므로 C² 볼록함수의 모든 점 준정부호 조건을 어깁니다. x=2에서의 양의 이계 미분은 그 정지점의 엄격 국소 최소를 보장할 뿐입니다.
No. Its second derivative at zero is −2, violating the everywhere-nonnegative curvature condition for C² convexity. Positive curvature at a stationary point only supplies a local classification.
32. 볼록함수의 국소→전역Local-to-global proof
볼록집합 위 볼록함수의 국소 최소 a보다 더 낮은 y가 있다고 가정해 모순을 만드세요.
Assume a local minimizer a of a convex function on a convex set has a lower feasible point y. Derive a contradiction.
풀이와 확인할 이유Solution and explanation
z=(1−t)a+ty는 t∈(0,1)에서 허용되고 f(z)≤(1−t)f(a)+tf(y)<f(a)입니다. t를 작게 하면 z는 a에 얼마든지 가까워집니다. 이는 가까운 허용점에 더 낮은 값이 없다는 국소 최소 정의와 모순입니다.
The feasible points z=(1−t)a+ty have values strictly below f(a) for every t∈(0,1). Taking t arbitrarily small contradicts local minimality.
33. 허용집합의 볼록성도 필요The feasible set matters too
f=x²와 C={−2,1}에서 두 점의 국소·전역 최소 여부를 상대적 정의로 판단하세요.
For x² on C={−2,1}, classify both points as relative local or global minima.
풀이와 확인할 이유Solution and explanation
반경을 두 점 사이 거리 3보다 작게 고르면 각 점 주변에 다른 허용점이 없습니다. 따라서 둘 다 상대적 국소 최소입니다. 값은 4와 1이므로 전역 최소는 1뿐입니다. 비볼록 허용집합에서는 볼록 목적함수만으로 국소→전역을 결론 내리지 못합니다.
Each isolated point is a relative local minimizer because a sufficiently small neighborhood contains no other feasible point. Their values are four and one, so only input one is global. Convexity of the objective alone is insufficient on a nonconvex set.
34. 엄격볼록과 존재Strict convexity and existence
eˣ는 엄격볼록인데 실수 전체 최소가 왜 없나요? 최소가 있다면 유일하다는 명제와 모순인가요?
Why does strictly convex eˣ have no minimum on the real line? Does this contradict uniqueness?
풀이와 확인할 이유Solution and explanation
f″=eˣ>0으로 엄격볼록이고 모든 값이 양수입니다. x→−∞에서 0으로 접근하지만 어떤 실수에서도 0을 얻지 못합니다. 최소가 존재하지 않으므로 ‘존재하면 유일’과 모순되지 않습니다.
Positive second derivative gives strict convexity, but its positive values only approach zero as x tends to negative infinity. There is no attained minimum. The conditional assertion “if a minimizer exists, it is unique” remains valid.
35. 엄격볼록과 강볼록의 차이Strict versus strong convexity
x⁴가 실수 전체에서 엄격볼록이지만 강볼록은 아님을 설명하세요.
Explain why x⁴ is strictly convex but not strongly convex on the whole real line.
풀이와 확인할 이유Solution and explanation
도함수 4x³가 엄격히 증가하므로 엄격볼록입니다. μ>0 강볼록이라면 x=0,y=h에서 h⁴≥μh²/2여야 합니다. 0<h²<μ/2를 고르면 실패하므로 어떤 공통 양수 μ도 불가능합니다.
Its derivative 4x³ is strictly increasing, establishing strict convexity. Strong convexity would require h⁴≥μh²/2 at x=0,y=h. Any positive μ fails for sufficiently small nonzero h.
36. 강볼록성 상수A strong-convexity constant
f(x,y)=x²+3y²에 대해 가능한 최대 유클리드 강볼록성 상수 μ와 최소점을 구하세요.
Find the largest Euclidean strong-convexity constant μ and the minimizer of x²+3y².
풀이와 확인할 이유Solution and explanation
H=diag(2,6)의 최소 고유값이 2이므로 μ=2가 최대입니다. y방향만 보면 더 큰 곡률이 있지만 x방향에서 상한이 2로 제한됩니다. 함수는 실수 평면 전체에서 연속·강제적이고 엄격볼록이므로 유일한 최소는 원점, 값 0입니다.
The Hessian diag(2,6) has smallest eigenvalue two, so the largest μ is two. Curvature in the x direction prevents a larger uniform constant. The unique global minimum is zero at the origin.
37. 강볼록이어도 열린 범위 주의Strong convexity on an open domain
x² on (0,1)이 2-강볼록이라는 사실과 최소 미달성을 함께 설명하세요.
Explain how x² on (0,1) is 2-strongly convex yet has no minimizer.
풀이와 확인할 이유Solution and explanation
항등식 y²=x²+2x(y−x)+(y−x)²로 μ=2 조건이 영역 안의 모든 두 점에 성립합니다. 그러나 하한값 0에 해당하는 입력 0은 제외되어 최소가 없습니다. 강볼록성을 언급할 때 실수 전체인지 제한 영역인지와 달성 조건을 함께 적어야 합니다.
The identity y²=x²+2x(y−x)+(y−x)² proves the strong-convexity inequality for all domain pairs. The excluded endpoint zero prevents attainment of the infimum. Domain and attainment conditions remain essential.
Prove that the segment between two minimizers of a convex function on a convex set consists of minimizers.
풀이와 확인할 이유Solution and explanation
최솟값을 m이라 하면 f((1−t)x+ty)≤(1−t)m+tm=m입니다. 선분은 C 안에 있고 m은 모든 허용값의 하한이므로 반대 부등식도 성립합니다. 따라서 선분 전체에서 값이 m입니다. 엄격볼록일 때 서로 다른 두 최소점이 불가능한 이유도 이 논증에서 보입니다.
If the minimum value is m, convexity bounds every segment value above by m. Feasibility bounds it below by m. Equality follows throughout; strict convexity would rule out two distinct minimizers.
39. 경계 일계 부등식A boundary first-order inequality
f(x)=(x−2)², C=[0,1], a=1에서 f′(a)(y−a)≥0을 확인하고 전역 최소와 연결하세요.
Verify f′(a)(y−a)≥0 for f=(x−2)² on [0,1] at a=1, and establish global minimality.
풀이와 확인할 이유Solution and explanation
f′(1)=−2이고 y−1≤0이므로 곱은 0 이상입니다. f는 볼록하므로 f(y)≥f(1)+f′(1)(y−1)≥f(1)입니다. 따라서 경계점 1이 전역 최소입니다. ‘도함수 0’ 대신 허용 방향의 부등식을 사용했습니다.
The derivative is −2 and y−1≤0, so their product is nonnegative. Convex support gives f(y)≥f(1)+f′(1)(y−1)≥f(1). Thus one globally minimizes despite a nonzero derivative.
40. 목적함수 배율Scaling the objective
L=SSE/(2n)와 SSE가 같은 최소점을 갖는 이유와 헤시안·수치 종료 기준이 달라지는 이유를 설명하세요.
Why do SSE and L=SSE/(2n) have the same minimizers but different Hessians and stopping thresholds?
풀이와 확인할 이유Solution and explanation
n>0이면 SSE=2nL은 양수 배율이므로 값의 대소관계와 최소점은 같습니다. 기울기와 헤시안은 2n배입니다. 따라서 같은 절대 기울기 허용오차는 두 목적함수에서 같은 종료 조건이 아닙니다. 같은 좌표에서 강볼록성 상수도 2n배입니다.
For n>0, positive scaling by 2n preserves ordering and minimizers. Gradients, Hessians and strong-convexity constants scale by 2n. An unchanged absolute gradient tolerance therefore has a different meaning.
41. 실제 가구 관측 극값Actual household observed extrema
기록된 하루의 분평균 전력 최솟값은 0.206 kW가 두 번, 최댓값은 7.064 kW가 한 번입니다. 무엇이 관측되었고 무엇은 주장할 수 없나요?
The recorded day has minute-average minimum 0.206 kW twice and maximum 7.064 kW once. What is established, and what is not?
풀이와 확인할 이유Solution and explanation
유효한 1,440개 분평균 중 최솟값과 동률 두 시각, 최댓값과 한 시각을 확인했습니다. 이것은 실제 순간 전력의 최대·최소나 다른 날의 극값을 결정하지 않습니다. 연속함수의 미분 0도 이 유한 표에서 바로 추론하지 않습니다.
These are extrema and ties among 1,440 valid minute averages. They do not determine instantaneous extrema, other days or a zero derivative of a continuous power path.
42. 실제 평균예측 손실An actual constant-prediction loss
실제 1,440개 전력값 Pᵢ와 μ=169523/72000 kW에 대해 ℓ(c)=Σ(Pᵢ−c)²/(2·1440)의 유일 최소를 증명하세요.
For 1,440 observed powers Pᵢ with μ=169523/72000 kW, prove the unique minimum of ℓ(c)=Σ(Pᵢ−c)²/(2·1440).
풀이와 확인할 이유Solution and explanation
미분하면 ℓ′=(1440c−ΣPᵢ)/1440=c−μ이고 ℓ″=1입니다. 더 직접적으로 ℓ(c)=ℓ(μ)+(c−μ)²/2입니다. 따라서 c=μ≈2.354486111 kW가 실수 전체 유일 최소입니다. 손실 단위는 kW²이고 μ는 최댓값이 아니라 상수예측의 최적 요약입니다.
The derivatives are c−μ and one. Equivalently, ℓ(c)=ℓ(μ)+(c−μ)²/2, proving the unique real minimizer μ≈2.354486111 kW. This is a constant-prediction summary; loss has units kW².
43. 실제 기업의 제한 계수A bounded actual-data reference coefficient
실제 매출벡터로 만든 L(α)=Σ(αxᵢ−zᵢ)²/10에서 α*≈1.018026272557, L″=50742927363/5입니다. [0.95,1.01]의 최소와 도함수 부호를 설명하세요.
For L(α)=Σ(αxᵢ−zᵢ)²/10 built from actual sales, α*≈1.018026272557 and L″=50742927363/5. Minimize on [0.95,1.01] and explain the derivative sign.
풀이와 확인할 이유Solution and explanation
L′(α)=L″(α−α*)이므로 구간 전체에서 음수입니다. 따라서 상단 1.01이 유일한 최소입니다. L′(1.01)=−81,455,313.074이고 L(1.01)=11,849,710.19563 (백만 USD)²입니다. 감소 방향인 오른쪽은 허용되지 않습니다. 이는 실제 매출이 아니라 고정 실측을 비교하는 가정 계수의 손실 최소입니다.
Since L′=L″(α−α*), the loss decreases throughout the interval. The unique minimum is at 1.01, where L′=−81,455,313.074 and L=11,849,710.19563 squared million USD. Further rightward decrease is infeasible. This minimizes a descriptive fitting loss, not actual sales.
44. 열린 제약으로 바꾸면Opening the feasible interval
바로 앞 기업 손실의 범위를 (0.95,1.01)로 바꾸면 최소·최대·하한값은 어떻게 되나요?
For the preceding actual-data loss, what changes if the feasible interval is (0.95,1.01)?
풀이와 확인할 이유Solution and explanation
계속 엄격히 감소하고 양끝이 제외되므로 최소·최대는 모두 없습니다. 하한값은 연속 확장한 L(1.01)=11,849,710.19563이고 상한값은 L(0.95)=35,004,482.83075입니다. 두 숫자는 열린 범위에서 달성되지 않습니다. 실제 관측값이나 손실식은 바뀌지 않았고 허용집합만 달라졌습니다.
Strict decrease with excluded endpoints gives neither a minimum nor a maximum. The unattained infimum is L(1.01)=11,849,710.19563 and supremum L(0.95)=35,004,482.83075. Only the feasible set changed, not the observations or loss formula.
자료별 확보일·원행 식별·단위·이용 조건은 출처 기록을 확인하세요. 학습 사본은 제공처의 현재 최신 자료와 다를 수 있습니다.Consult each source record for retrieval dates, row identifiers, units and terms. Teaching copies can differ from current provider releases.