| English | 释义 | 拼音 |
|---|---|---|
| optimization/ˌɒptɪmaɪˈzeɪʃn/ | 最优化 | zuì yōu huà |
| variable/ˈveərɪəbl/ | 变量 | biàn liàng |
| objective function/ɒbˈdʒektɪv ˈfʌŋkʃn/ | 目标函数 | mù biāo hán shù |
| constraint/kənˈstreɪnt/ | 约束条件 | yuē shù tiáo jiàn |
Making something as big (or small) as possible
- Real problems ask: what dimensions give the largest area? the cheapest cost? the shortest time?
- These are optimization 最优化 problems — find the max or min of a quantity.
- Calculus finds interior candidates where the derivative is zero or undefined; domain boundaries also matter.
- This lesson is about the setup; the solving comes next.
Name a variable and write the objective
- Choose a variable 变量 for the quantity you can control (a length, a radius, a price).
- Write the thing you want to maximize or minimize as a function of that variable — the objective function 目标函数.
- Example: for a rectangle of fixed perimeter, write the area in terms of one side length.
- Draw a picture and label it — most setup errors are unlabeled diagrams.

Fenced enclosures: optimization finds the dimensions that maximise area for a fixed fence length
In "maximize area with a fixed perimeter," the area is the...
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
You optimize the objective (area); the perimeter is the constraint.
Use a constraint to get one variable
- Usually the objective starts with two variables (like length and width).
- A constraint 约束条件 equation relates them (a fixed perimeter, a fixed volume, a budget).
- Solve the constraint for one variable and substitute, so the objective depends on a single variable.
- Now it's an ordinary "find the extremum" problem.
Area as one downward parabola
y = ax² + bx
For the perimeter-12 review case, $A=6x-x^2$ on $0<x<6$: a downward parabola whose peak is at $x=3$, $A=9$.
A constraint equation is used to...
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
Solve the constraint for one variable and substitute.
The goal of the setup is to write the objective in terms of a ____ variable.
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
One variable ⇒ an ordinary extremum problem.
Order the optimization setup steps.
难度 3/5 · 今日首次完成可获 200 金币及少量额外奖励
Variable, objective, constraint, substitute.
A worked setup
- "A farmer has $40$ m of fence for a rectangular pen against a wall (no fence on the wall side)."
- Let $x$ be each side perpendicular to the wall and $y$ the fenced side parallel to it. Constraint: fence used $=2x+y=40$, so $y=40-2x$.
- Objective: area $A=xy=x(40-2x)=40x-2x^2$, now a function of $x$ alone.
- Ready to maximize $A(x)$ — that's lesson 5.11.
With $2x+y=40$ (wall on one side), the area $A=xy$ becomes...
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
$y=40-2x$, so $A=x(40-2x)=40x-2x^2$.
Noting the domain of the variable (e.g. $0<x<10$) is part of a correct optimization setup.
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
The domain bounds where a valid answer can be.
Keep the objective (what you optimize) separate from the constraint (the fixed relationship). You maximize/minimize the objective, and you use the constraint only to eliminate a variable. Also note the domain of the variable (e.g. $x>0$ and $y>0$) — it bounds where a valid answer can lie.
Set up: maximize the area of a rectangle with perimeter $20$.
- Let the sides be $x$ and $y$. Constraint: $2x+2y=20\Rightarrow y=10-x$.
- Objective: $A=xy=x(10-x)=10x-x^2$.
- Domain: $0<x<10$. The problem is now "maximize $A(x)=10x-x^2$."
An optimization problem finds a maximum or minimum. Set it up by naming a variable, writing the objective function to optimize, and using a constraint equation to reduce it to a single variable. Note the domain. Then it becomes a standard extremum problem (next lesson).
Write from a single variable
- A rectangle has perimeter 12.
- The area is to be maximised.
What objective, in one variable, should you optimise?
Half the perimeter is the sum of the two sides.
A rectangle of perimeter 12 has area, in one variable, equal to what?
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
The two sides add to 6.