State, without solving, the three candidate types you must collect for
f(x,y)=x2+y2on the square D={−1≤x≤1,−1≤y≤1}.
Recall Solution
Type 1 — interior flat spots: solve ∇f=0 inside D.
Here fx=2x, fy=2y, so ∇f=0 only at (0,0), which is inside. One candidate.
Type 2 — boundary flat spots: on each of the four edges, reduce f to one variable and find where its derivative is 0. (Each edge is a segment like x=1,−1≤y≤1.)
Type 3 — corners: the four corners (±1,±1), because a 1-variable function on a closed interval can peak at its endpoints.
We are only listing the types here — no comparison yet.
For D={x2+y2≤4} (a filled disk of radius 2), describe the boundary as a single-variable object.
Recall Solution
The boundary is the circle x2+y2=4. We turn it into one variable using Parametrization of curves:
x=2cost,y=2sint,0≤t≤2π.
Now f on the fence becomes a function of the single angle t — a clean 1-variable problem with no corners (a circle is smooth and closes on itself, so its "endpoints" t=0 and t=2π are the same point).
Find the absolute extrema of f(x,y)=x2+y2 on the square D={−1≤x≤1,−1≤y≤1}.
Recall Solution
Interior.∇f=(2x,2y)=0 at (0,0), inside. f(0,0)=0.
Boundary. By symmetry check one edge, say x=1,−1≤y≤1: f=1+y2, derivative 2y=0 at y=0 giving f=1; endpoints y=±1 give f=2. Same story on all four edges.
Corners.(±1,±1): f=1+1=2.
Compare. Values collected: 0,1,2.
abs max=2 at the four corners;abs min=0 at (0,0).
Find the absolute extrema of f(x,y)=x+2y on the disk x2+y2≤5.
Recall Solution
Interior.∇f=(1,2) — never zero. So there are no interior candidates: a plane has no flat spots. The winners must live on the fence.
Boundary. Parametrize x=5cost,y=5sint:
f=5cost+25sint=5(cost+2sint).
Write cost+2sint=12+22sin(t+φ)=5sin(t+φ) (amplitude trick: acost+bsint has amplitude a2+b2). So f=5⋅5sin(t+φ)=5sin(t+φ).
Since sin lives in [−1,1]:
abs max=5;abs min=−5.
(This equals the length-of-gradient shortcut: max of a linear f on a disk of radius r is r∥∇f∥=5⋅5=5.)
Find the absolute extrema of f(x,y)=xy on the triangle with vertices (0,0), (2,0), (0,2).
Look at the region first — three edges, three corners.
Recall Solution
Interior.fx=y=0 and fy=x=0 force (0,0) — a corner, not interior. So there is no interior critical point strictly inside the triangle.
Boundary, edge by edge.
Edge A, y=0, 0≤x≤2: f=0 everywhere.
Edge B, x=0, 0≤y≤2: f=0 everywhere.
Edge C, the slanted line from (2,0) to (0,2): it satisfies x+y=2, so y=2−x, 0≤x≤2. Then
g(x)=x(2−x)=2x−x2,g′(x)=2−2x=0⇒x=1.
At x=1: point (1,1), f=1⋅1=1. Endpoints x=0,2 give f=0.
Corners.(0,0),(2,0),(0,2) all give f=0.
Compare.{0,1}.
abs max=1 at (1,1);abs min=0 along both legs.
Find the absolute extrema of f(x,y)=x2−y2 on the disk x2+y2≤1.
Recall Solution
Interior.fx=2x=0,fy=−2y=0⇒(0,0), inside. f(0,0)=0. (This is a saddle, but we don't care — we only compare values.)
Boundary.x=cost,y=sint:
f=cos2t−sin2t=cos2t.cos2t ranges over [−1,1]: max 1 at t=0,π (points (±1,0)), min −1 at t=2π,23π (points (0,±1)).
Compare. Interior 0 vs boundary ±1.
abs max=1 at (±1,0);abs min=−1 at (0,±1).
Find the absolute extrema of f(x,y)=x2+2y2−x on the disk x2+y2≤1.
Recall Solution
Interior.fx=2x−1=0⇒x=21; fy=4y=0⇒y=0. Point (21,0): is 41+0=41<1? Yes, inside. f(21,0)=41+0−21=−41.
Boundaryx2+y2=1, so y2=1−x2 with −1≤x≤1. Substitute:
h(x)=x2+2(1−x2)−x=−x2−x+2.h′(x)=−2x−1=0⇒x=−21. Then y2=1−41=43, y=±23.
h(−21)=−41+21+2=49.
Endpoints of the x-range: x=1 (point (1,0)) gives h=−1−1+2=0; x=−1 (point (−1,0)) gives h=−1+1+2=2.
Compare. Candidates: interior −41; boundary 49=2.25, and 0, and 2.
abs max=49 at (−21,±23);abs min=−41 at (21,0).Why substitute y2=1−x2 (not parametrize)? Because f contains yonly as y2 — the substitution instantly removes y with no trig at all. Choose the tool that matches the function.
Use Lagrange multipliers to find the extrema of f(x,y)=xy on the circle x2+y2=8, then confirm by parametrizing.
Recall Solution
Lagrange. We want ∇f=λ∇g with g=x2+y2−8.
fx=y=λ2x,fy=x=λ2y.
Multiply: y⋅x=λ2x⋅? — cleaner to divide the two equations. From them, y=2λx and x=2λy, so x=2λ(2λx)=4λ2x. If x=0: 4λ2=1, λ=±21.
λ=21: y=x. On x2+y2=8: 2x2=8, x=±2, points (2,2),(−2,−2), f=4.
λ=−21: y=−x. Then 2x2=8, x=±2, points (2,−2),(−2,2), f=−4.
Confirm by parametrizing.x=22cost,y=22sint:
f=8costsint=4sin2t∈[−4,4].abs max=4 at (±2,±2)(same signs);abs min=−4 at (±2,∓2).
Both methods agree.
Design-and-solve: f(x,y)=e−(x2+y2)(x), i.e. f=xe−(x2+y2), on the disk x2+y2≤1. Find the absolute extrema.
Recall Solution
Interior. Use the product rule. Let r2=x2+y2.
fx=e−r2(1−2x2),fy=x⋅e−r2(−2y)=−2xye−r2.e−r2>0 always, so it never causes a zero. Set both brackets to 0:
fy=0: xy=0, so x=0 or y=0.
If x=0: then fx=e−y2(1−0)=e−y2=0. No solution.
If y=0: then fx=e−x2(1−2x2)=0⇒x2=21,x=±21.
Points (±21,0): radius2=21<1, both inside.
f(21,0)=21e−1/2; f(−21,0)=−21e−1/2.
Numerically 21e−1/2≈0.7071⋅0.6065≈0.4289.
Boundary. On x2+y2=1, e−r2=e−1 is constant, so f=xe−1. Parametrize x=cost: f=e−1cost∈[−e−1,e−1]. So boundary max =e−1≈0.3679, min =−e−1≈−0.3679.
Compare. Interior ±0.4289 beat boundary ±0.3679.
abs max=21e−1/2≈0.4289 at (21,0);abs min=−21e−1/2≈−0.4289 at (−21,0).Why the exponential factor never gives a critical point by itself:eanything is strictly positive, so it can never equal zero. It only scalesf — the flat spots come entirely from the polynomial-and-derivative brackets. Recognising "which factor can be zero" is the mastery move.