Hello there. To solve this question, we'll have to remember some properties about maximizing volumes of boxes.
Let's start by drawing the situation:
In the left, we have the cardboard piece that was 40 inches by 50 inches, then on the right we have it after cutting the square corners of measure x inches.
Now, we create a box by closing the walls:
The measures of the cardboard piece after having been cut the corners are 40 - 2x and 50 - 2x, while after in the box format, its height is equal to x.
Therefore, the total volume of the box is given by:
To maximize this function, we take its derivative and find the roots of the polynomial:
Taking its roots, we get:
In this case, we got two values, but only one of them will maximize this function.
Taking the second derivative of the function, we get:
Plugging the values in, we get:
And the value such that f''(x) < 0 will be the value that gives us the maximum volume of the box.
Plugging it into the expression for the volume, we finally get:
This maximum volume is approximately equal to 6564 cubic inches.