Calculus

Optimization Problems in Calculus: How to Find Max & Min

Master calculus optimization problems with this complete guide. Learn the 6-step method and work through classic examples: fencing, maximum box volume, and minimum distance problems.

Frequently asked questions

How do you know if a critical point is a maximum or a minimum?

Use the second derivative test: if f″ is positive at the critical point it is a minimum, and if f″ is negative it is a maximum. You can also check whether f′ changes from positive to negative (maximum) or from negative to positive (minimum) across the point.

Why do you have to check the endpoints?

On a closed interval, the absolute maximum or minimum can occur at an endpoint instead of where f′ = 0. By the Extreme Value Theorem, a continuous function on [a, b] attains both. Evaluate the function at every critical point and at both endpoints, then compare the values.

How do you write the objective function when there are two variables?

Use the constraint to solve for one variable in terms of the other, then substitute. For 400 feet of fence around a rectangle, the constraint is 2w + 2l = 400, so l = 200 − w. The area A = wl becomes A = w(200 − w), a function of one variable you can differentiate.

What is the difference between the objective function and the constraint?

The objective function is the quantity you want to make as large or as small as possible, such as area, cost, or distance. The constraint is a fixed condition linking the variables, such as a set amount of fencing. The constraint reduces the objective to one variable.

Why minimize the distance squared instead of the distance?

Distance is never negative, and the square root is an increasing function, so the distance and its square are smallest at the same point. Working with d² avoids a square root, which makes the derivative simpler. After finding the point, take the square root only if the problem asks for the distance itself.

Try these solvers

Calculus13 min read

Related Rates in Calculus: How to Solve Them Step by Step

Learn how to solve related rates problems with a reliable 5-step method. This guide walks through classic examples — the sliding ladder, inflating balloon, and filling cone — with every step explained.

Calculus12 min read

Implicit Differentiation: When and How to Use It

Master implicit differentiation with this complete guide. Learn when to use it, the step-by-step method with chain rule, worked examples on circles and complex curves, and how to find tangent lines.

Calculus11 min read

How to Find Limits Algebraically: Techniques and Examples

Master the essential algebraic techniques for evaluating limits: direct substitution, factoring, rationalizing, special trig limits, and limits at infinity with worked examples.

Stuck on your own problem?

Snap a photo in Solver AI for iPhone and iPad and see every step, so you can do the next one yourself.