IntroductionEdit
Optimization is one of the uses of calculus in the real world. Let us assume we are a pizza parlor and wish to maximize profit. Perhaps we have a flat piece of cardboard and we need to make a box with the greatest volume. How does one go about this process?
Obviously, this requires the use of maximums and minimums. We know that we find maximums and minimums via derivatives. Therefore, one can conclude that calculus will be a useful tool for maximizing or minimizing (collectively known as "optimizing") a situation.
ExamplesEdit
Volume ExampleEdit
A box manufacturer desires to create a box with a surface area of 100 inches squared. What is the maximum size volume that can be formed by bending this material into a box? The box is to be closed. The box is to have a square base, square top, and rectangular sides.
 Write out known formulas and information
 Eliminate the variable h in the volume equation

= =
 Find the derivative of the volume equation in order to maximize the volume
 Set and solve for
 Plugin the x value into the volume equation and simplify

= =
Answer:
Volume Example IIEdit
It is desired to make an opentop box of greatest possible volume from a square piece of tin whose side is , by cutting equal squares out of the corners and then folding up the tin to form the sides. What should be the length of a side of the squares cut out?
If we call the side length of the cut out squares , then each side of the base of the folded box is , and the height is . Therefore, the volume function is .
We must optimize the volume by taking the derivative of the volume function and setting it equal to 0. Since it does not change, is treated as a constant, not a variable.
We can now use the quadratic formula to solve for :
We reject , since it is a minimum (it results in the base length being 0, making the volume 0). Therefore, the answer is .
Sales ExampleEdit
A small retailer can sell n units of a product for a revenue of and at a cost of , with all amounts in thousands. How many units does it sell to maximize its profit?
The retailer's profit is defined by the equation , which is the revenue generated less the cost. The question asks for the maximum amount of profit which is the maximum of the above equation. As previously discussed, the maxima and minima of a graph are found when the slope of said graph is equal to zero. To find the slope one finds the derivative of . By using the subtraction rule :
=  
=  
= 
Therefore, when the profit will be maximized or minimized. Use the quadratic formula to find the roots, giving {3.798,0.869}. To find which of these is the maximum and minimum the function can be tested:
Because we only consider the functions for all (i.e., you can't have units), the only points that can be minima or maxima are those two listed above. To show that 3.798 is in fact a maximum (and that the function doesn't remain constant past this point) check if the sign of changes at this point. It does, and for n greater than 3.798 the value will remain decreasing. Finally, this shows that for this retailer selling 3.798 units would return a profit of $8,588.02.