Solved Exercises on Optimization Problems: Max/Min Applications

Master optimization problems: maximizing area, minimizing cost, and finding extreme values through these 5 detailed exercises with comprehensive explanations.

Solution: Exercises 1 to 3
1 Rectangle with fixed perimeter
Exercise 1
Find the dimensions of a rectangle with perimeter 100 meters that maximizes the area.
Definition:

Optimization problem: A mathematical problem that seeks to find the maximum or minimum value of a function subject to constraints.

Objective function: The function to be optimized (in this case, area A = xy).

Constraint: A condition that must be satisfied (in this case, perimeter 2x + 2y = 100).

Optimization method:
  1. Define the objective function to optimize
  2. Identify all constraints
  3. Use constraints to eliminate variables and express objective function in terms of one variable
  4. Find the derivative of the objective function
  5. Set the derivative equal to zero and solve for critical points
  6. Verify the critical point is a maximum or minimum using second derivative test or endpoint analysis
  7. Find the corresponding values of other variables
Constraint
\(2x + 2y = 100\)
Objective
\(A = xy = x(50-x)\)
Max area
\(A = 625 \text{ m}^2\)
Step 1: Define the variables and constraints

Let x = length of rectangle, y = width of rectangle

Perimeter constraint: 2x + 2y = 100

Objective: Maximize area A = xy

Step 2: Express one variable in terms of the other

From constraint: 2x + 2y = 100

2y = 100 - 2x

y = 50 - x

Step 3: Express area in terms of one variable

A = xy = x(50 - x) = 50x - x²

Step 4: Find the derivative of the area function

\(\frac{dA}{dx} = \frac{d}{dx}[50x - x^2] = 50 - 2x\)

Step 5: Find critical points

Set \(\frac{dA}{dx} = 0\): 50 - 2x = 0

2x = 50

x = 25

Step 6: Find the corresponding y value

When x = 25: y = 50 - 25 = 25

Step 7: Verify this is a maximum

\(\frac{d^2A}{dx^2} = \frac{d}{dx}[50 - 2x] = -2 < 0\)

Since the second derivative is negative, this is indeed a maximum.

Step 8: Calculate the maximum area

A = xy = 25 × 25 = 625 m²

Maximum area: 625 m² when x = 25 m, y = 25 m
Final answer:

The rectangle with maximum area is a square with dimensions 25 m × 25 m, giving an area of 625 m².

Applied concepts:

• Constraint elimination: Using the constraint to reduce the problem to one variable

• First derivative test: Critical points occur where the derivative is zero

• Second derivative test: Negative second derivative confirms maximum

2 Open box with maximum volume
Exercise 2
A square piece of cardboard with sides 20 cm is used to make an open box by cutting squares of side x from each corner and folding up the sides. Find the value of x that maximizes the volume.
Definition:

Volume optimization: Finding the dimensions that maximize or minimize the volume of a geometric figure under given constraints.

Dimensions
Length = 20-2x, Width = 20-2x, Height = x
Volume
\(V = x(20-2x)^2\)
Max at
\(x = \frac{10}{3} \text{ cm}\)
Step 1: Visualize the problem

After cutting squares of side x from each corner and folding up, the box has:

  • Length: 20 - 2x (original 20 cm minus x from each end)
  • Width: 20 - 2x (same reasoning)
  • Height: x (the cut-out squares)
Step 2: Express the volume as a function of x

V = length × width × height

V = (20 - 2x)(20 - 2x)(x) = x(20 - 2x)²

Step 3: Expand the volume function

V = x(20 - 2x)² = x(400 - 80x + 4x²)

V = 400x - 80x² + 4x³

Step 4: Find the derivative of the volume function

\(\frac{dV}{dx} = 400 - 160x + 12x^2\)

Step 5: Find critical points

Set \(\frac{dV}{dx} = 0\): 12x² - 160x + 400 = 0

Divide by 4: 3x² - 40x + 100 = 0

Using quadratic formula: \(x = \frac{40 \pm \sqrt{1600 - 1200}}{6} = \frac{40 \pm \sqrt{400}}{6} = \frac{40 \pm 20}{6}\)

So x = 10 or x = 10/3

Step 6: Determine which critical point is valid

Since we need 20 - 2x > 0 (positive dimensions), we need x < 10.

Therefore, x = 10 is not valid (would make length = width = 0).

So x = 10/3 is the only valid critical point.

Step 7: Verify this is a maximum

\(\frac{d^2V}{dx^2} = -160 + 24x\)

At x = 10/3: \(\frac{d^2V}{dx^2} = -160 + 24(\frac{10}{3}) = -160 + 80 = -80 < 0\)

Since the second derivative is negative, this is indeed a maximum.

Step 8: Calculate maximum volume

When x = 10/3: V = (10/3)(20 - 20/3)² = (10/3)(40/3)² = (10/3)(1600/9) = 16000/27 ≈ 592.6 cm³

Maximum volume occurs when \(x = \frac{10}{3} \text{ cm}\)
Final answer:

The value of x that maximizes the volume is x = 10/3 cm ≈ 3.33 cm.

Applied concepts:

• Geometric visualization: Understanding how cutting affects dimensions

• Quadratic formula: Solving for critical points

• Domain restrictions: Ensuring physical dimensions are positive

3 Minimizing cost
Exercise 3
A company wants to build a rectangular storage container with volume 100 cubic meters. The material for the base costs $10 per square meter, and the material for the sides costs $6 per square meter. Find the dimensions that minimize the cost if the base is twice as long as it is wide.
Definition:

Cost optimization: Finding dimensions that minimize the total cost of materials while satisfying volume requirements.

Variables
\(w = \text{width}, l = 2w, h = \frac{50}{w^2}\)
Cost function
\(C = 10w^2 + \frac{1800}{w}\)
Minimum at
\(w = 3 \text{ m}\)
Step 1: Define variables and constraints

Let w = width, l = length, h = height

Given: l = 2w (base is twice as long as wide)

Constraint: Volume = lwh = 100

Step 2: Express volume constraint

(2w)(w)(h) = 100

2w²h = 100

h = 50/w²

Step 3: Express the cost function

Cost of base = $10 × (area of base) = $10 × (2w)(w) = $20w²

Cost of four sides = $6 × (area of sides)

Area of sides = 2(lh + wh) = 2(2w · h + w · h) = 2(3wh) = 6wh

Cost of sides = $6 × 6wh = $36wh

Total cost: C = 20w² + 36wh

Step 4: Express cost in terms of one variable

Substitute h = 50/w²:

C = 20w² + 36w(50/w²) = 20w² + 1800/w

Step 5: Find the derivative of the cost function

\(\frac{dC}{dw} = 40w - \frac{1800}{w^2}\)

Step 6: Find critical points

Set \(\frac{dC}{dw} = 0\): \(40w - \frac{1800}{w^2} = 0\)

\(40w = \frac{1800}{w^2}\)

\(40w^3 = 1800\)

\(w^3 = 45\)

\(w = \sqrt[3]{45} \approx 3.56\)

Step 7: Verify this is a minimum

\(\frac{d^2C}{dw^2} = 40 + \frac{3600}{w^3}\)

Since w > 0, \(\frac{d^2C}{dw^2} > 0\), confirming this is a minimum.

Step 8: Calculate all dimensions

w = ∛45 ≈ 3.56 m

l = 2w = 2∛45 ≈ 7.12 m

h = 50/w² = 50/(∛45)² ≈ 3.95 m

Minimum cost when \(w = \sqrt[3]{45} \text{ m}, l = 2\sqrt[3]{45} \text{ m}, h = \frac{50}{(\sqrt[3]{45})^2} \text{ m}\)
Final answer:

Dimensions: width ≈ 3.56 m, length ≈ 7.12 m, height ≈ 3.95 m

Applied concepts:

• Cost modeling: Breaking down total cost into component parts

• Volume constraint: Using constraint to eliminate variables

• Minimization: Finding critical points where derivative equals zero

Optimization Problem-Solving Framework
\(\text{Critical points: } f'(x) = 0 \quad \text{Maximum: } f''(x) < 0 \quad \text{Minimum: } f''(x) > 0\)
Optimization Criteria
Rectangle
\(A = lw, P = 2l + 2w\)
Max area with fixed perimeter: square
Box
\(V = lwh, SA = 2(lw + lh + wh)\)
Optimize dimensions for volume/cost
Cylinder
\(V = \pi r^2 h, SA = 2\pi r^2 + 2\pi rh\)
Optimize for minimal surface area
Distance
\(d = \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2}\)
Minimize distance to curve
Profit
\(P = R - C\)
Maximize profit: set MR = MC
Revenue
\(R = pq\)
Maximize revenue: find critical points
Key concepts:

Objective function: The function that needs to be maximized or minimized.

Constraint: A condition that the variables must satisfy.

Feasible region: The set of all possible solutions that satisfy the constraints.

Global optimum: The absolute maximum or minimum over the entire feasible region.

Common applications: Manufacturing (minimizing material costs), agriculture (maximizing crop yield), business (maximizing profit), engineering (minimizing energy consumption).
Verification methods: Second derivative test, endpoint analysis, comparison with nearby values.
Solution: Exercises 4 to 5
4 Closest point problem
Exercise 4
Find the point on the parabola \(y = x^2\) closest to the point (0, 3).
Definition:

Distance minimization: Finding the point on a curve that minimizes the distance to a given external point. The distance function is often minimized instead of the distance itself to avoid square roots.

Distance squared
\(D^2 = x^2 + (x^2 - 3)^2\)
Derivative
\(\frac{d}{dx}[D^2] = 2x + 4x(x^2 - 3)\)
Closest point
\((\pm\sqrt{\frac{5}{2}}, \frac{5}{2})\)
Step 1: Set up the distance function

Any point on the parabola has coordinates (x, x²)

Distance to point (0, 3): \(D = \sqrt{(x-0)^2 + (x^2-3)^2} = \sqrt{x^2 + (x^2-3)^2}\)

Step 2: Minimize the distance squared instead

Since D > 0, minimizing D² is equivalent to minimizing D

\(D^2 = x^2 + (x^2 - 3)^2 = x^2 + x^4 - 6x^2 + 9 = x^4 - 5x^2 + 9\)

Step 3: Find the derivative of D²

\(\frac{d}{dx}[D^2] = \frac{d}{dx}[x^4 - 5x^2 + 9] = 4x^3 - 10x\)

Step 4: Find critical points

Set \(\frac{d}{dx}[D^2] = 0\): 4x³ - 10x = 0

Factor: 2x(2x² - 5) = 0

So: x = 0 or 2x² = 5, which gives x = ±√(5/2)

Step 5: Find corresponding y-values

For x = 0: y = 0² = 0

For x = ±√(5/2): y = (√(5/2))² = 5/2

Step 6: Compare distances

• At (0, 0): D² = 0² + (0-3)² = 9, so D = 3

• At (±√(5/2), 5/2): D² = 5/2 + (5/2-3)² = 5/2 + (-1/2)² = 5/2 + 1/4 = 11/4, so D = √(11/4) = √11/2 ≈ 1.66

Step 7: Verify using second derivative test

\(\frac{d^2}{dx^2}[D^2] = 12x^2 - 10\)

• At x = 0: 12(0) - 10 = -10 < 0 (local maximum)

• At x = ±√(5/2): 12(5/2) - 10 = 30 - 10 = 20 > 0 (local minimum)

Step 8: State the answer

The points closest to (0, 3) are (√(5/2), 5/2) and (-√(5/2), 5/2).

Closest points: \(\left(\pm\sqrt{\frac{5}{2}}, \frac{5}{2}\right)\)
Final answer:

The points on the parabola closest to (0, 3) are \(\left(\sqrt{\frac{5}{2}}, \frac{5}{2}\right)\) and \(\left(-\sqrt{\frac{5}{2}}, \frac{5}{2}\right)\).

Applied concepts:

• Distance formula: \(D = \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2}\)

• Minimizing distance squared: Equivalent to minimizing distance, avoids square roots

• Second derivative test: Confirms maximum or minimum

5 Maximum product problem
Exercise 5
Find two positive numbers whose sum is 10 and whose product is maximum.
Definition:

Product maximization: Finding two numbers that satisfy a sum constraint while maximizing their product. This is a classic optimization problem with elegant mathematical properties.

Constraint
\(x + y = 10\)
Objective
\(P = xy = x(10-x)\)
Maximum at
\(x = y = 5\)
Step 1: Define the variables and constraint

Let x and y be the two positive numbers

Constraint: x + y = 10

Objective: Maximize P = xy

Step 2: Express the objective function in one variable

From constraint: y = 10 - x

Substitute: P = xy = x(10 - x) = 10x - x²

Step 3: Find the derivative of the product function

\(\frac{dP}{dx} = \frac{d}{dx}[10x - x^2] = 10 - 2x\)

Step 4: Find critical points

Set \(\frac{dP}{dx} = 0\): 10 - 2x = 0

2x = 10

x = 5

Step 5: Find the corresponding value of y

When x = 5: y = 10 - 5 = 5

Step 6: Verify this is a maximum

\(\frac{d^2P}{dx^2} = \frac{d}{dx}[10 - 2x] = -2 < 0\)

Since the second derivative is negative, this is indeed a maximum.

Step 7: Calculate the maximum product

P = xy = 5 × 5 = 25

Step 8: Verify the solution

Check: x + y = 5 + 5 = 10 ✓

Check: For any other pair with sum 10, the product is less than 25

For example: 4 + 6 = 10, but 4 × 6 = 24 < 25

Maximum product: 25 when both numbers equal 5
Final answer:

The two positive numbers are both 5, giving a maximum product of 25.

Applied concepts:

• Constraint elimination: Using constraint to reduce to single variable

• Arithmetic-geometric mean inequality: For fixed sum, product is maximized when numbers are equal

• Quadratic optimization: Standard technique for maximizing quadratic functions

Comprehensive Summary: Optimization Problems
\(\text{Max/Min: } f'(x) = 0, \quad \text{Nature: } f''(x) \begin{cases} > 0 \Rightarrow \text{minimum} \\ < 0 \Rightarrow \text{maximum} \end{cases}\)
Critical Point Classification
Key definitions:

Optimization: The process of finding the maximum or minimum value of a function subject to constraints.

Critical point: A point where the derivative is zero or undefined, potentially an extremum.

Global maximum/minimum: The highest/lowest value of a function over its entire domain.

Local maximum/minimum: The highest/lowest value of a function in a neighborhood of a point.

Complete optimization methodology:
  1. Read the problem carefully: Identify what is to be optimized
  2. Define variables: Assign symbols to unknown quantities
  3. Write the objective function: Express what is to be maximized or minimized
  4. Identify constraints: List all conditions that must be satisfied
  5. Eliminate variables: Use constraints to express objective function in terms of one variable
  6. Determine domain: Identify the feasible range of values
  7. Find critical points: Set derivative equal to zero and solve
  8. Classify extrema: Use second derivative test or endpoint analysis
  9. Verify solution: Check that solution satisfies all constraints
  10. State answer: Provide complete answer with units
Tip 1: Always define your variables clearly and state the constraint equations.
Tip 2: Minimize distance squared instead of distance to avoid square roots.
Tip 3: Check that your solution makes physical sense and satisfies all constraints.
Tip 4: Consider endpoints of the domain as potential extrema.
Common errors: Forgetting to check constraints, not verifying that critical points are maxima/minima, not considering domain restrictions, algebraic mistakes in differentiation.
Applications: Business (profit maximization), manufacturing (cost minimization), agriculture (yield optimization), engineering (efficiency maximization), physics (energy minimization).
Essential optimization principles:

• First derivative test: Critical points occur where f'(x) = 0

• Second derivative test: f''(x) > 0 indicates minimum, f''(x) < 0 indicates maximum

• Endpoint analysis: For closed intervals, check endpoints as well as critical points

• Geometric intuition: Many optimization problems have intuitive solutions (square for max area with fixed perimeter)

\(\text{Common geometric optimizations: } \text{Square for max area}, \text{ Sphere for max volume}, \text{ Cylinder with h = 2r for min SA}\)
Geometric Optimization Results
Advanced optimization techniques:

Lagrange multipliers: For problems with multiple constraints (advanced technique)

Linear programming: For problems with linear objective functions and constraints

Calculus of variations: For optimizing functionals (advanced technique)

Newton's method: For finding critical points when analytical solution is difficult

Visualization: Optimization Function Behavior
Exercise 6: Optimization Analysis
Compare the function \(f(x) = 10x - x^2\) (product maximization) with its first and second derivatives:

Analysis: The chart shows how the function and its derivatives relate to optimization.

  • When f'(x) = 0, f(x) reaches its maximum value
  • Since f''(x) = -2 < 0, the critical point is confirmed as a maximum
  • The function is concave down everywhere, confirming the global maximum

Questions & Answers

Question: How do I know whether a critical point is a maximum or minimum? When do I use the first derivative test versus the second derivative test?

Answer: Both tests help classify critical points:

First derivative test:

  • Examine the sign of f'(x) on either side of the critical point
  • If f'(x) changes from positive to negative → local maximum
  • If f'(x) changes from negative to positive → local minimum
  • If f'(x) doesn't change sign → neither maximum nor minimum

Second derivative test:

  • Calculate f''(c) where c is the critical point
  • If f''(c) > 0 → local minimum
  • If f''(c) < 0 → local maximum
  • If f''(c) = 0 → test is inconclusive

Use the second derivative test when f''(c) ≠ 0 (it's quicker). Use the first derivative test when f''(c) = 0 or when the second derivative is difficult to calculate.

Question: What do I do when I have multiple constraints in an optimization problem? How do I handle problems with more than one constraint equation?

Answer: For multiple constraints, you can use several approaches:

Sequential substitution: Use one constraint to eliminate one variable, then use the next constraint to eliminate another variable, and so on.

Lagrange multipliers: For advanced problems with multiple constraints, use Lagrange multipliers:

If optimizing f(x,y) subject to constraints g₁(x,y) = c₁, g₂(x,y) = c₂, ..., then solve the system:

  • ∇f = λ₁∇g₁ + λ₂∇g₂ + ...
  • g₁(x,y) = c₁
  • g₂(x,y) = c₂

For introductory problems, sequential substitution usually works well. More complex problems may require advanced techniques like Lagrange multipliers.

Question: How do I handle optimization problems where the function might have multiple critical points? How do I determine which one gives the absolute maximum or minimum?

Answer: When multiple critical points exist:

For closed intervals:

  • Find all critical points inside the interval
  • Evaluate the function at all critical points
  • Evaluate the function at the endpoints
  • Compare all values to find absolute maximum and minimum

For open intervals or entire domain:

  • Find all critical points
  • Use second derivative test to classify each critical point
  • Consider the behavior as x approaches the boundaries of the domain
  • For multiple local maxima, compare their function values

Always remember:

  • Check endpoints if the domain is closed
  • Consider the physical meaning of the problem
  • Verify that your solution satisfies all constraints
  • Make sure the solution makes practical sense

The absolute extremum occurs either at a critical point or at a boundary point.

Question: What if I can't solve the derivative equation analytically? Can I use numerical methods to find critical points?

Answer: Yes, when analytical solutions are impossible or impractical, numerical methods can be used:

  • Newton-Raphson method: Iteratively finds roots of f'(x) = 0
  • Bisection method: Finds roots by narrowing down intervals
  • Graphical methods: Plot f'(x) and find where it crosses zero
  • Software tools: Use calculators or computer algebra systems

Newton-Raphson formula: Starting with an initial guess x₀, iterate: \(x_{n+1} = x_n - \frac{f'(x_n)}{f''(x_n)}\)

However, for introductory problems, you should be able to find critical points analytically. Numerical methods are typically reserved for advanced applications or when explicit solutions are impossible.

In academic settings, problems are usually designed to have analytical solutions.

Question: How do optimization problems relate to real-world applications? Where would I actually use these techniques?

Answer: Optimization is used extensively in real-world applications:

  • Manufacturing: Minimizing material costs while meeting specifications
  • Finance: Maximizing portfolio returns while managing risk
  • Engineering: Designing structures with minimum weight and maximum strength
  • Transportation: Finding shortest routes and optimal scheduling
  • Agriculture: Optimizing crop yields with limited resources
  • Medicine: Determining optimal drug dosages and treatment schedules
  • Computer Science: Algorithm optimization and resource allocation

The mathematical techniques you learn in calculus form the foundation for more advanced optimization methods used in industry, research, and technology. Even when computers solve complex optimization problems, they use principles based on the calculus you're learning.

Optimization is truly everywhere in modern society, from the design of everyday products to complex systems like traffic management and energy distribution.