Optimization problems require you to find the best option from a set of alternatives, based on some criteria. In general, you have some function that you want to maximize or minimize by choosing the value of that results in the optimal (maximal or minimal) value.
Often, your equation for will contain another variable other than . This is where the constraint comes in. It is a different equation that has both variables in it, so you can solve it for the other variable and substitute that into the original function.
Here is the basic strategy for solving optimization problems:
- Draw a sketch of the problem, if applicable.
- Introduce variables (as few as possible).
- Develop a formula for the constrained quantity.
- Develop a formula for the quantity to optimize.
- Substitute (3) into (4) and simplify.
- Take the derivative, set it equal to zero, and solve.
- Compare the function values for each solution and for the endpoints.
- Choose the optimal value and determine any remaining variables.
Given two nonnegative integers and that sum to 9, find the maximum value of assuming .
Since , we have
Now we can rewrite the function that we want to maximize:
Taking the derivative gives us
and now we can set it equal to zero to find the turning point:
Assuming that , we can drop the denominator, since zeros come from the numerator of a rational:
If , then . The values that maximize this function are 6 and 3. They result in a value of .