Optimization – Solving
Optimization is one of the most powerful and practical applications of differential calculus. At its core, optimization asks: given a situation described by a mathematical function, what input value produces the largest or smallest possible output? Whether an engineer is minimizing the material needed to build a can, an economist is maximizing profit, or a physicist is finding the path of least time, the underlying mathematical technique is the same — finding critical points of a function and determining their nature. The key insight connecting calculus to optimization is that at any local maximum or minimum of a smooth function, the tangent line is horizontal. In other words, the derivative equals zero at these special points. By setting f′(x) = 0 and solving, we locate candidates for optimal values. We then use either the First Derivative Test or the Second Derivative Test to confirm whether each candidate is actually a maximum, a minimum, or neither. We must also check the endpoints of any closed interval, since the global extreme value might occur at a boundary rather than an interior critical point. Optimization problems in real life almost always require building the objective function yourself from a word description — this modeling step is often the hardest part. You must identify what quantity is being optimized, express it as a function of a single variable (using constraint equations to eliminate extra variables), determine the domain, and then apply calculus. Mastering this process opens the door to solving a huge variety of applied problems across science, engineering, business, and beyond.
- Identify the Quantity to Optimize
- Assign Variables and Write the Objective Function
- Use Constraints to Reduce to One Variable
- Find Critical Points and Check Endpoints
- Apply the First or Second Derivative Test
Identify the Quantity to Optimize
Read the problem carefully and determine exactly what quantity you want to maximize or minimize. Label it clearly — for example, 'Maximize the area A' or 'Minimize the cost C.' This quantity will become your objective function.
Assign Variables and Write the Objective Function
Introduce variables for all relevant quantities and write the objective function in terms of those variables. For instance, if you are maximizing the area of a rectangle with sides x and y, write A = xy. At this stage the function may involve more than one variable.
Use Constraints to Reduce to One Variable
Most problems include a constraint — an equation relating the variables that must always be true (e.g., a fixed perimeter or a fixed volume). Solve the constraint for one variable and substitute into the objective function so it depends on a single variable. For example, if the perimeter is fixed at P = 2x + 2y = 40, then y = 20 − x, giving A = x(20 − x) = 20x − x².
Find Critical Points and Check Endpoints
Determine the domain of the single-variable objective function (consider physical restrictions like x > 0). Differentiate the function, set the derivative equal to zero, and solve for x. These are your critical points. If the domain is a closed interval [a, b], also evaluate the function at the endpoints x = a and x = b.
Apply the First or Second Derivative Test
Use the Second Derivative Test: if f″(c) > 0, the critical point x = c is a local minimum; if f″(c) < 0, it is a local maximum; if f″(c) = 0, the test is inconclusive and you use the First Derivative Test (check the sign change of f′ around c). On a closed interval, compare all critical-point values and endpoint values — the largest is the global maximum, the smallest is the global minimum.
The Key Equation
- f(x) — Objective function (varies): The function representing the quantity being maximized or minimized.
- f'(c) — First derivative at c (varies): The instantaneous rate of change of f at x = c; equals zero at every critical point.
- f''(c) — Second derivative at c (varies): Measures the concavity of f at x = c. Negative means concave down (local max); positive means concave up (local min).
- c — Critical point (dimensionless): An x-value in the domain where f′(x) = 0 or f′(x) is undefined.
Worked Example
Problem. A farmer has 120 meters of fencing and wants to enclose a rectangular field along a straight river. The side along the river needs no fence. What dimensions maximize the enclosed area?
Answer. The optimal dimensions are 60 m parallel to the river and 30 m perpendicular, giving a maximum area of 1800 m².
Origins · 1 minPierre de Fermat and how this was discovered
Fermat developed an early method for finding maxima and minima of algebraic expressions in the 1630s, decades before Newton and Leibniz formalized calculus. His technique of setting an expression 'adequal' to itself after a small perturbation and then letting the perturbation vanish is a conceptual forerunner of setting the derivative equal to zero. His work laid crucial groundwork for the optimization methods used in calculus today. Fermat was a lawyer by profession and did mathematics purely as a hobby — yet he made landmark contributions to number theory, analytic geometry, probability, and the foundations of calculus.
Related Concepts
- Critical Points — Critical points — where f′(x) = 0 or is undefined — are the candidates for maxima and minima that you locate in every optimization problem.
- First Derivative Test — The First Derivative Test confirms whether a critical point is a maximum, minimum, or neither by checking the sign of f′ on either side.
- Second Derivative Test — The Second Derivative Test uses the concavity of the function at a critical point to quickly classify it as a local max or min.
- Extreme Value Theorem — This theorem guarantees that a continuous function on a closed interval actually attains a global maximum and minimum, justifying the closed-interval method used in optimization.
- Related Rates — Like optimization, related rates problems require setting up equations from real-world descriptions and applying differentiation — both are core applied-derivative skills.