Applied Single Variable Calculus
Optimization Techniques
Finding the Best Outcome
Optimization is about finding the best possible result under certain conditions. In mathematics, this usually means finding the maximum or minimum value of a function. The function we want to maximize or minimize is called the objective function.
Formulating this function is the first step. For example, if a company wants to maximize profit, its objective function would model that profit. Let's say it costs $50 to produce an item, and the selling price depends on the quantity produced, following the demand equation . The revenue is price times quantity, . The total cost is . The profit function, our objective function, is the difference between revenue and cost.
Our goal is to find the value of that makes as large as possible.
Locating Peaks and Valleys
To find where a function reaches a maximum or minimum, we look for its critical points. These are the points where the function's slope is zero, meaning the tangent line is horizontal. Since the first derivative, , gives us the slope, we find these points by setting the derivative to zero and solving for the variable.
A critical point of a function occurs where its derivative is either zero or undefined.
For our profit function, , the first derivative is:
Setting this to zero gives us , which solves to . This is our critical point. But is it a maximum, a minimum, or something else? The second derivative test helps us figure that out.
The second derivative, , tells us about the concavity of the function.
- If at a critical point, the function is concave down (like a frown), indicating a local maximum.
- If , the function is concave up (like a cup), indicating a local minimum.
- If , the test is inconclusive.
Let's find the second derivative of our profit function:
Since is negative, our critical point at corresponds to a maximum profit. The company should produce 37.5 units. In a real-world scenario, they would likely produce either 37 or 38 units.
Optimization with Constraints
Often, we don't just want to maximize or minimize a function in a vacuum. We have limitations, or constraints. For example, a farmer wants to maximize the area of a rectangular field but only has a limited amount of fencing. This is a constrained optimization problem.
The method of Lagrange multipliers is a powerful technique for solving these kinds of problems. It allows us to find the maximum or minimum of a multivariable function subject to a constraint .
Optimization is central to economic analysis.
The core idea is that at an optimal point, the gradient of the objective function is parallel to the gradient of the constraint function. The gradient, denoted by , is a vector of partial derivatives that points in the direction of the steepest ascent of a function. If the gradients are parallel, one must be a scalar multiple of the other. We call this scalar multiplier (lambda).
Let's use our farmer example. They want to maximize the area of a rectangular pen. They have 100 meters of fencing, so the perimeter must be .
Our objective function is . Our constraint is .
We need to solve a system of equations derived from and the constraint itself:
From the first two equations, we see that . Substituting this into the third equation gives , or , so . Since , we also have . The dimensions that maximize the area are 25m by 25m, a perfect square.
These techniques form the foundation of optimization. They are used everywhere, from engineering design and financial modeling to machine learning algorithms, helping us find the most efficient and effective solutions to complex problems.
In an optimization problem, what is the function that represents the quantity you want to maximize or minimize called?
A company's profit is modeled by the function . What is the critical point, the quantity where profit might be maximized?
