MathLab with Mr. Ahmed
MathLab with Mr. Ahmed is a math learning website by Ahmed Amasha, a mathematics teacher teaching the American curriculum. Explore Algebra 2, Precalculus, Calculus, and SAT and PSAT Math Prep through lessons, focused practice and printable resources.
Before you solve
Ideas in this lesson
Idea 1 of 3
A one-variable objective
Use the constraint to express the quantity being optimized in one variable. State its feasible interval.
Worked example 1
A rectangle has perimeter 8. Find the side length that maximizes area. - y=4−x; A(x)=x(4−x)
- A′(x)=4−2x=0⟹x=2; A′′=−2
- Maximizing side =2
Answer: 2
Worked example 2
A rectangle has perimeter 12. Find the maximum area. - y=6−x; A(x)=x(6−x)
- A′(x)=6−2x=0⟹x=3; A′′=−2
- A(3)=32=9
Answer: 9
Idea 2 of 3
Open-box optimization
The cut size changes both height and base dimensions. Reject roots outside the geometric domain.
Worked example 1
Squares of side x are cut from a 12 by 12 sheet to form an open box. Find the volume at x=2. - V(x)=x(12−2x)2; 0<x<6
- V′(x)=(12−2x)(12−6x)=0⟹x=2
- V(0)=V(6)=0; V(2)=128
- Requested value =128
Answer: 128
Worked example 2
Squares of side x are cut from a 18 by 18 sheet to form an open box. Find the positive interior cut that maximizes volume. - V(x)=x(18−2x)2; 0<x<9
- V′(x)=(18−2x)(18−6x)=0⟹x=3
- V(0)=V(9)=0; V(3)=432
- Requested value =3
Answer: 3
Idea 3 of 3
Constrained versus unconstrained maxima
An interior critical point may be infeasible. Check boundary values as well as valid critical points.
Worked example 1
A rectangle has perimeter 8. Find the side length that maximizes area. - y=4−x; A(x)=x(4−x)
- A′(x)=4−2x=0⟹x=2; A′′=−2
- Maximizing side =2
Answer: 2
Worked example 2
A rectangle has perimeter 12. Find the maximum area. - y=6−x; A(x)=x(6−x)
- A′(x)=6−2x=0⟹x=3; A′′=−2
- A(3)=32=9
Answer: 9
Resource alignment: Larson & Edwards, Calculus of a Single Variable, Tenth Edition, §3.7,p. 215. Explanations, diagrams and numerical practice variants are original MathLab content aligned to this section.