Skip to content Study Mondo Free study resources for students from Grade 4 through AP and test prep. 24 courses, 700+ topics.
Courses Features Company Stay Ahead in School Free weekly study tips, practice sets, and exam strategies. Join 10,000+ students.
ยฉ 2026 Study Mondo. Built for students.
APยฎ is a trademark registered by the College Board, which is not affiliated with, and does not endorse, this website.
Optimization - Interactive Lesson | Study Mondo
Optimization - Complete Interactive Lesson Part 1: Setting Up Optimization Problems Optimization
Part 1 of 7 โ Setting Up Optimization Problems
Topic Overview
Part Topic 1 Setting up optimization problems 2 Geometric optimization 3 Applied & business optimization 4 3D optimization (cylinders & cones) 5 Distance & mixed optimization 6 AP-style workshop 7 Comprehensive assessment
The 5-Step Optimization Strategy
1.ย Variables โ 2.ย Objective โ 3.ย Constraint โ 4.ย Criticalย pts โ 5.ย Verify \boxed{\text{1. Variables} \to \text{2. Objective} \to \text{3. Constraint} \to \text{4. Critical pts} \to \text{5. Verify}} 1.ย Variables โ 2.ย Objective โ 3.ย Constraint โ 4.ย Criticalย pts โ 5.ย Verify โ
Step Action Example 1. Define variables Label unknowns, draw a diagram x = x = x = width, y = y = y = length2. Write objective Function to max/min A = x y A = xy A = x y 3. Apply constraint Eliminate one variable
Worked Example: Rancher Fencing
A rancher has 200 m of fencing to enclose a rectangle along a river (no fence on the river side). Find the maximum area.
Let x = x = x = width, y = y = y = length along river.
Constraint: 2 x + y = 200 โ y = 200 โ 2 x 2x + y = 200 \Rightarrow y = 200 - 2x 2 x + y = 200 โ y = 200 โ 2 x
Objective: A ( x ) = x ( 200 โ 2 x ) = 200 x โ 2 x 2 A(x) = x(200-2x) = 200x - 2x^2 A ( x ) = x ( 200 โ 2 x ) = 200 x โ 2 x 2
A โฒ ( x ) = 200 โ 4 x = 0 โ x = 50 A'(x) = 200 - 4x = 0 \quad \Rightarrow \quad x = 50 A โฒ ( x ) = 200 โ 4 x = 0 โ x = 50
A โฒ โฒ ( x ) = โ 4 < 0 A''(x) = -4 < 0 A โฒโฒ ( x ) = โ 4 < 0 โ concave down โ maximum
y = 200 โ 100 = 100 y = 200-100 = 100 y = 200 โ 100 = 100 . A max โก = 50 ร 100 = 5000 ย m 2 \boxed{A_{\max} = 50 \times 100 = 5000 \text{ m}^2} A
Key Fact: The optimal rectangle along a wall always has the side parallel to the wall equal to twice the perpendicular side.
Practice โ Setting Up ๐ฏ
Key Takeaways โ Part 1
Define variables clearly and draw a diagram
The objective is what you maximize/minimize
The constraint reduces to one variable
Use the Second Derivative Test or endpoint analysis to verify
AP Tip: Always state the domain of the objective function
Part 2: Geometric Optimization Optimization
Part 2 of 7 โ Geometric Optimization
Classic Geometry Problems
Problem Type Setup Box from sheet Cut squares of side x x x from corners, fold up Rectangle in parabola Vertices at ( ยฑ x , 0 ) (\pm x, 0) ( ยฑ x , 0 ) and ( ยฑ x , f ( x ) ) (\pm x, f(x)) ( ยฑ
Part 3: Cost & Revenue Optimization Optimization
Part 3 of 7 โ Applied & Business Optimization
Business Terminology
Term Formula Meaning Revenue R ( x ) = x โ
p ( x ) R(x) = x \cdot p(x) R ( x ) = x โ
p ( x ) Income from selling x x x units at price
Part 4: 3D Optimization (Cylinders & Cones) Optimization
Part 4 of 7 โ 3D Optimization (Cylinders & Cones)
3D Shape Formulas
Shape Volume Surface Area Cylinder (closed) ฯ r 2 h \pi r^2 h ฯ r 2 h 2 ฯ r 2 + 2 ฯ r h 2\pi r^2 + 2\pi rh 2 ฯ r
Part 5: Distance & Angle Optimization Optimization
Part 5 of 7 โ Distance & Mixed Problems
Distance Optimization
When minimizing the distance from a point ( a , b ) (a,b) ( a , b ) to a curve y = f ( x ) y = f(x) y = f ( x ) :
D 2 = ( x โ a ) 2 + (
Part 6: AP-Style Workshop Optimization
Part 6 of 7 โ AP-Style Workshop
AP FRQ Optimization Patterns
Pattern What They Ask Key Steps Geometric "Find dimensions that maximize/minimize..." Draw diagram, label, constrain Applied "At what rate/quantity is profit maximized?" P = R โ C P = R - C P = R โ C , set P โฒ = 0 P' = 0 P
Part 7: Comprehensive Assessment Optimization
Part 7 of 7 โ Comprehensive Assessment
Optimization Strategy Reference
Step Action Check 1 Draw and label diagram Variables defined? 2 Write objective function What are you optimizing? 3 Apply constraint Down to one variable? 4 Find critical points f โฒ ( x ) = 0 f'(x) = 0 f โฒ ( x ) = solved?
2 x + y = 200 โ y = 200 โ 2 x 2x + y = 200 \Rightarrow y = 200-2x 2 x + y = 200 โ y = 200 โ 2 x
4. Find critical points Set f โฒ ( x ) = 0 f'(x) = 0 f โฒ ( x ) = 0 and solve A โฒ ( x ) = 200 โ 4 x = 0 A'(x) = 200-4x = 0 A โฒ ( x ) = 200 โ 4 x = 0
5. Verify max/min Second derivative or endpoints A โฒ โฒ ( x ) = โ 4 < 0 โ A''(x) = -4 < 0 \Rightarrow A โฒโฒ ( x ) = โ 4 < 0 โ max
m a x
โ
=
50
ร
100
=
5000
ย m 2
โ
x
,
f
(
x
))
Closest point Minimize D 2 = ( x โ a ) 2 + ( f ( x ) โ b ) 2 D^2 = (x-a)^2 + (f(x)-b)^2 D 2 = ( x โ a ) 2 + ( f ( x ) โ b ) 2
Inscribed shapes Express dimensions using the curve equation
Worked Example: Open-Top Box
An open-top box is made by cutting squares of side x x x from the corners of a 12 ร 8 12 \times 8 12 ร 8 sheet and folding up.
V ( x ) = x ( 12 โ 2 x ) ( 8 โ 2 x ) V(x) = x(12-2x)(8-2x) V ( x ) = x ( 12 โ 2 x ) ( 8 โ 2 x )
Domain: 0 < x < 4 0 < x < 4 0 < x < 4
V = 4 x 3 โ 40 x 2 + 96 x V = 4x^3 - 40x^2 + 96x V = 4 x 3 โ 40 x 2 + 96 x
V โฒ ( x ) = 12 x 2 โ 80 x + 96 = 4 ( 3 x 2 โ 20 x + 24 ) V'(x) = 12x^2 - 80x + 96 = 4(3x^2 - 20x + 24) V โฒ ( x ) = 12 x 2 โ 80 x + 96 = 4 ( 3 x 2 โ
x = 20 ยฑ 400 โ 288 6 = 20 ยฑ 112 6 x = \frac{20 \pm \sqrt{400-288}}{6} = \frac{20 \pm \sqrt{112}}{6} x = 6 20 ยฑ 400 โ 288 โ โ = 6 20 ยฑ 112 โ โ
x โ 1.57 x \approx 1.57 x โ 1.57 (only solution in domain). V max โก โ 67.6 ย cubicย units \boxed{V_{\max} \approx 67.6 \text{ cubic units}} V m a x โ โ 67.6 ย cubicย units โ
AP Tip: When asked to "set up but do not solve," write V ( x ) V(x) V ( x ) , state the domain, and show V โฒ ( x ) = 0 V'(x) = 0 V โฒ ( x ) = 0 . You earn full credit without solving the quadratic.
Worked Example: Closest Point
Find the point on y = x y = \sqrt{x} y = x โ closest to ( 3 , 0 ) (3, 0) ( 3 , 0 ) .
Minimize D 2 = ( x โ 3 ) 2 + ( x ) 2 = ( x โ 3 ) 2 + x D^2 = (x-3)^2 + (\sqrt{x})^2 = (x-3)^2 + x D 2 = ( x โ 3 ) 2 + ( x โ ) 2 = ( x โ 3 ) 2 + x
d d x D 2 = 2 ( x โ 3 ) + 1 = 2 x โ 5 = 0 โ x = 5 2 \frac{d}{dx}D^2 = 2(x-3) + 1 = 2x - 5 = 0 \quad \Rightarrow \quad x = \frac{5}{2} d x d โ D 2 = 2 ( x โ 3 ) + 1 = 2 x โ 5 = 0 โ x = 2 5 โ
Point: ( 5 2 , โ 5 2 ) \left(\frac{5}{2},\, \sqrt{\frac{5}{2}}\right) ( 2 5 โ , 2 5 โ โ )
Key Fact: Always minimize D 2 D^2 D 2 instead of D D D โ it avoids square roots and gives the same critical points.
Practice โ Geometric Optimization ๐ฏ
Identify the correct approach. ๐
Key Takeaways โ Part 2
Box-cutting problems: V = x ( L โ 2 x ) ( W โ 2 x ) V = x(L-2x)(W-2x) V = x ( L โ 2 x ) ( W โ 2 x ) , domain 0 < x < min โก ( L , W ) / 2 0 < x < \min(L,W)/2 0 < x < min ( L , W ) /2
Minimize D 2 D^2 D 2 for closest-point problems
Inscribed rectangle under a curve: A = 2 x โ
f ( x ) A = 2x \cdot f(x) A = 2 x โ
f ( x )
Always check domain endpoints for absolute max/min
p
Cost C ( x ) C(x) C ( x ) Total cost to produce x x x units
Profit P ( x ) = R ( x ) โ C ( x ) P(x) = R(x) - C(x) P ( x ) = R ( x ) โ C ( x ) Revenue minus cost
Marginal cost C โฒ ( x ) C'(x) C โฒ ( x ) Cost of producing one more unit
Average cost C ห ( x ) = C ( x ) / x \bar{C}(x) = C(x)/x C ห ( x ) = C ( x ) / x Cost per unit
Maxย profitย whereย R โฒ ( x ) = C โฒ ( x ) \boxed{\text{Max profit where } R'(x) = C'(x)} Maxย profitย whereย R โฒ ( x ) = C โฒ ( x ) โ
Worked Example: Widget Company
A company sells widgets at price p = 100 โ 2 x p = 100 - 2x p = 100 โ 2 x per widget. Cost: C ( x ) = 200 + 5 x C(x) = 200 + 5x C ( x ) = 200 + 5 x . Find maximum profit.
R ( x ) = x ( 100 โ 2 x ) = 100 x โ 2 x 2 R(x) = x(100-2x) = 100x - 2x^2 R ( x ) = x ( 100 โ 2 x ) = 100 x โ 2 x 2
P ( x ) = R ( x ) โ C ( x ) = 100 x โ 2 x 2 โ 200 โ 5 x = โ 2 x 2 + 95 x โ 200 P(x) = R(x) - C(x) = 100x - 2x^2 - 200 - 5x = -2x^2 + 95x - 200 P ( x ) = R ( x ) โ C ( x ) = 100 x โ 2 x 2 โ 200 โ 5 x = โ
P โฒ ( x ) = โ 4 x + 95 = 0 โ x = 23.75 P'(x) = -4x + 95 = 0 \quad \Rightarrow \quad x = 23.75 P โฒ ( x ) = โ 4 x + 95 = 0 โ x = 23.75
Since x x x must be whole: P ( 24 ) = โ 2 ( 576 ) + 95 ( 24 ) โ 200 = โ 1152 + 2280 โ 200 = 928 P(24) = -2(576) + 95(24) - 200 = -1152 + 2280 - 200 = 928 P ( 24 ) = โ 2 ( 576 ) + 95 ( 24 ) โ 200 = โ 1152 + 2280 โ 200 = 928 .
\boxed{P_{\max} = \ 928 \text{ at } x = 24 \text{ widgets}}$
AP Tip: On the AP exam, optimization word problems may use business language. Know the formulas for R R R , C C C , P P P , and marginal quantities.
Practice โ Applied Optimization ๐ฏ
Classify the quantity. ๐
Key Takeaways โ Part 3
Profit = R โ C = R - C = R โ C ; max profit when R โฒ ( x ) = C โฒ ( x ) R'(x) = C'(x) R โฒ ( x ) = C โฒ ( x )
Average cost C ห = C ( x ) / x \bar{C} = C(x)/x C ห = C ( x ) / x ; minimize by setting C ห โฒ = 0 \bar{C}' = 0 C ห
Revenue R ( x ) = x โ
p ( x ) R(x) = x \cdot p(x) R ( x ) = x โ
p ( x ) where p ( x ) p(x) p ( x ) is the demand function
When units must be integers, check both nearest whole numbers
2
+
2 ฯ r h
Cylinder (open top) ฯ r 2 h \pi r^2 h ฯ r 2 h ฯ r 2 + 2 ฯ r h \pi r^2 + 2\pi rh ฯ r 2 + 2 ฯ r h
Cone 1 3 ฯ r 2 h \frac{1}{3}\pi r^2 h 3 1 โ ฯ r 2 h ฯ r 2 + ฯ r โ \pi r^2 + \pi r\ell ฯ r 2 + ฯ r โ
Sphere 4 3 ฯ r 3 \frac{4}{3}\pi r^3 3 4 โ ฯ r 3 4 ฯ r 2 4\pi r^2 4 ฯ r 2
Worked Example: Minimize Surface Area
A closed cylinder has volume V = 1000 V = 1000 V = 1000 cm3 ^3 3 . Find the radius that minimizes surface area.
Constraint: ฯ r 2 h = 1000 โ h = 1000 ฯ r 2 \pi r^2 h = 1000 \Rightarrow h = \frac{1000}{\pi r^2} ฯ r 2 h = 1000 โ h = ฯ r 2 1000 โ
Objective: S = 2 ฯ r 2 + 2 ฯ r h = 2 ฯ r 2 + 2000 r S = 2\pi r^2 + 2\pi rh = 2\pi r^2 + \frac{2000}{r} S = 2 ฯ r 2 + 2 ฯ r h = 2 ฯ r 2 + r 2000 โ
S โฒ ( r ) = 4 ฯ r โ 2000 r 2 = 0 S'(r) = 4\pi r - \frac{2000}{r^2} = 0 S โฒ ( r ) = 4 ฯ r โ r 2 2000 โ = 0
4 ฯ r 3 = 2000 โ r = ( 500 ฯ ) 1 / 3 โ 5.42 ย cm 4\pi r^3 = 2000 \quad \Rightarrow \quad r = \left(\frac{500}{\pi}\right)^{1/3} \approx 5.42 \text{ cm} 4 ฯ r 3 = 2000 โ r = (
Then h = 1000 ฯ ( 5.42 ) 2 โ 10.84 โ 2 r h = \frac{1000}{\pi(5.42)^2} \approx 10.84 \approx 2r h = ฯ ( 5.42 ) 2 1000 โ โ 10.84 โ 2 r .
Optimalย closedย cylinder:ย h = 2 r \boxed{\text{Optimal closed cylinder: } h = 2r} Optimalย closedย cylinder:ย h = 2 r โ
Key Fact: The optimal closed cylinder always has h = 2 r h = 2r h = 2 r (height equals diameter). For an open-top cylinder, the optimal ratio is h = r h = r h = r .
Practice โ 3D Optimization ๐ฏ
Key Takeaways โ Part 4
3D optimization: same 5-step process with volume/surface area formulas
Closed cylinder: optimal when h = 2 r h = 2r h = 2 r
Open-top cylinder: optimal when h = r h = r h = r
Always express S S S or V V V in one variable using the constraint
f ( x ) โ b ) 2 \boxed{D^2 = (x-a)^2 + (f(x)-b)^2} D 2 = ( x โ a ) 2 + ( f ( x ) โ b ) 2 โ
Key Fact: Always minimize D 2 D^2 D 2 โ it shares the same critical points as D D D and avoids square roots.
Worked Example: Wire-Cutting
A wire of length 20 is cut into two pieces. One is bent into a square, the other into a circle. What cut minimizes total area?
Let x = x = x = circumference of circle, 20 โ x = 20-x = 20 โ x = perimeter of square.
Circle: r = x 2 ฯ r = \frac{x}{2\pi} r = 2 ฯ x โ , area = x 2 4 ฯ = \frac{x^2}{4\pi} = 4 ฯ x 2 โ
Square: side = 20 โ x 4 = \frac{20-x}{4} = 4 20 โ x โ , area = ( 20 โ x ) 2 16 = \frac{(20-x)^2}{16} = 16 ( 20 โ x ) 2 โ
A ( x ) = x 2 4 ฯ + ( 20 โ x ) 2 16 A(x) = \frac{x^2}{4\pi} + \frac{(20-x)^2}{16} A ( x ) = 4 ฯ x 2 โ + 16 ( 20 โ x ) 2 โ
A โฒ ( x ) = x 2 ฯ โ 20 โ x 8 = 0 A'(x) = \frac{x}{2\pi} - \frac{20-x}{8} = 0 A โฒ ( x ) = 2 ฯ x โ โ 8 20 โ x โ = 0
4 x 8 ฯ = ฯ ( 20 โ x ) 8 ฯ โ 4 x = 20 ฯ โ ฯ x \frac{4x}{8\pi} = \frac{\pi(20-x)}{8\pi} \quad \Rightarrow \quad 4x = 20\pi - \pi x 8 ฯ 4 x โ = 8 ฯ ฯ ( 20 โ x ) โ โ 4 x = 20 ฯ โ ฯ x
x = 20 ฯ ฯ + 4 โ 8.80 x = \frac{20\pi}{\pi + 4} \approx 8.80 x = ฯ + 4 20 ฯ โ โ 8.80
Special Optimization Patterns Pattern Key Idea Max/min with absolute value Split into cases Optimization on closed interval Check critical points AND endpoints Profit with discrete units Check both integers near the critical point Constrained by two inequalities Domain may be restricted
Practice โ Mixed Problems ๐ฏ
Key Takeaways โ Part 5
Minimize D 2 D^2 D 2 for closest-point problems (avoids square roots)
Wire-cutting/splitting problems: express total in one variable
Closed interval: always check endpoints AND critical points
Discrete constraints: check both nearby integers
โฒ
=
0
Justification "Justify that your answer is a maximum" Second derivative test or endpoints
Setup only "Write but do not solve..." Show objective, constraint, domain
Full Worked AP Problem
A rectangle has one side on the x x x -axis, the upper two vertices on y = 4 โ x 2 y = 4 - x^2 y = 4 โ x 2 .
(a) Express the area A A A in terms of x x x .
(b) Find the value of x x x that maximizes A A A .
(c) Justify that your answer gives a maximum.
Solution (a): Vertices at ( ยฑ x , 0 ) (\pm x, 0) ( ยฑ x , 0 ) and ( ยฑ x , 4 โ x 2 ) (\pm x, 4-x^2) ( ยฑ x , 4 โ x 2 ) . Width = 2 x = 2x = 2 x , height = 4 โ x 2 = 4-x^2 = 4 โ x 2 .
A ( x ) = 2 x ( 4 โ x 2 ) = 8 x โ 2 x 3 , 0 < x < 2 A(x) = 2x(4-x^2) = 8x - 2x^3, \quad 0 < x < 2 A ( x ) = 2 x ( 4 โ x 2 ) = 8 x โ 2 x
Solution (b): A โฒ ( x ) = 8 โ 6 x 2 = 0 โ x 2 = 4 / 3 โ x = 2 3 = 2 3 3 A'(x) = 8 - 6x^2 = 0 \Rightarrow x^2 = 4/3 \Rightarrow x = \frac{2}{\sqrt{3}} = \frac{2\sqrt{3}}{3} A โฒ ( x ) = 8 โ 6 x 2 = 0 โ x 2 = 4/3 โ x = 3 โ 2 โ = 3 2 3 โ โ
Solution (c): A โฒ โฒ ( x ) = โ 12 x A''(x) = -12x A โฒโฒ ( x ) = โ 12 x . At x = 2 3 / 3 x = 2\sqrt{3}/3 x = 2 3 โ /3 : A โฒ โฒ = โ 12 โ
2 3 3 < 0 A'' = -12 \cdot \frac{2\sqrt{3}}{3} < 0 A โฒโฒ = โ 12 โ
3 2 3 .
Since A โฒ โฒ < 0 A'' < 0 A โฒโฒ < 0 at the critical point, A A A is concave down there, so this gives a maximum .
A max โก = 2 โ
2 3 3 ( 4 โ 4 3 ) = 4 3 3 โ
8 3 = 32 3 9 A_{\max} = 2 \cdot \frac{2\sqrt{3}}{3}\left(4 - \frac{4}{3}\right) = \frac{4\sqrt{3}}{3} \cdot \frac{8}{3} = \frac{32\sqrt{3}}{9} A m a x โ = 2 โ
3 2 3 โ โ ( 4 โ 3 4 โ ) = 3 4 3 โ โ โ
3 8 โ = 9 32 3 โ โ
AP Tip: On justification, you must state the Second Derivative Test result AND explicitly conclude "maximum" or "minimum." Just computing f โฒ โฒ f'' f โฒโฒ is not enough.
Key Takeaways โ Part 6
AP FRQs require complete justification for max/min
"Write but do not solve" earns credit for setup
Second Derivative Test is the standard justification
On closed intervals, compare all candidates (critical points + endpoints)
0
5 Verify max/min 2nd derivative or endpoints?
6 Answer the question Units included?
Common AP Mistakes Mistake Fix Not stating the domain Write 0 < x < bound 0 < x < \text{bound} 0 < x < bound Forgetting to verify max vs min Always use 2nd derivative test Wrong constraint Re-read what's "fixed" or "given" Ignoring endpoints on [ a , b ] [a,b] [ a , b ] Compare f f f at all candidates Not labeling units Include m, cm2 ^2 2 , etc.
Quiz Set 1 โ Core Skills ๐ฏ
Quiz Set 2 โ Advanced Problems ๐ฏ
๐ Topic Complete!
You've mastered Optimization :
Part Topic Status 1 Setting up optimization problems โ
2 Geometric optimization โ
3 Applied & business optimization โ
4 3D optimization (cylinders & cones) โ
5 Distance & mixed problems โ
6 AP-style workshop โ
7 Comprehensive assessment โ
Key Fact: The 5-step optimization strategy (variables โ objective โ constraint โ critical points โ verify) works for every optimization problem. On the AP exam, always justify your answer using the Second Derivative Test or endpoint comparison.
20
x
+
24 )
2
x 2
+
95 x โ
200
โฒ
=
0
ฯ
500
โ
)
1/3
โ
5.42 ย cm
3
,
0
<
x <
2
โ
โ
<
0