← Return to lessonClass materials · 5.10
Introduction to Optimization Problems
Lecture transcript
0:00A farmer has six hundred meters of fence, and a long, straight river. The side along the river needs no fence. What's the biggest field the farmer can fence in? Short sides of fifty and a long side of five hundred give twenty-five thousand square meters. Two hundred on every side, a square, gives forty thousand. Two fifty deep and one hundred along the river gives twenty-five thousand again. Most people bet on the square.
0:31Hold on to that bet. Name the parts. The two short sides are x. The side along the river is y. What we want as big as possible is the area: x times y. What we're stuck with is the fence. Walk along it: x, plus x, plus y, is six hundred. Two variables is one too many. The fence trades one for the other: y equals six hundred minus two x. Same move as related rates: the rule drops a variable.
1:05Put it into the area. A of x is x times the quantity six hundred minus two x. Multiply out: six hundred x, minus two x squared. Now it's one variable. The formula we want to maximize is the objective. The rule it has to obey is the constraint. Before any derivative, ask: which x even make sense? x can't be negative, and the river side, six hundred minus two x, can't be either.
1:39So x runs from zero to three hundred. Try x equals four hundred: y is negative two hundred. That's not a fence. The derivative is six hundred minus four x. It's zero at x equals one fifty. It's a closed domain, so compare the candidates. A of zero is zero. A of one fifty is forty-five thousand. A of three hundred is zero. Here's the area as x slides from zero to three hundred.
2:10The square sits here, at forty thousand. The top is here, at forty-five thousand. The river side is free, so the best field is not a square. It's one hundred fifty by three hundred: forty-five thousand square meters. And the ends stay on the list. In some problems, the winner sits at an end. So here's the recipe, in five steps. Step one: draw the picture, and name the parts.
2:41Step two: write the max or min quantity as one formula, the objective. Step three: the rule you're stuck with, the constraint, cuts it down to one variable. Step four: the domain comes from the picture. Lengths can't go negative. Step five: inside the domain, find where the derivative is zero, or doesn't exist. If the domain is closed, compare those points with the ends, the candidates test from before. The biggest or smallest value wins.
3:15Differentiate A equals x y while y is still in it, and you're stuck. Some people even differentiate the fence rule. That finds nothing. Cut down to one variable first. Then differentiate the objective, A of x, and only that. Example one. Start with a square sheet of cardboard, twelve inches on a side. Cut an x by x square from each corner, fold up the sides, and you get an open box.
3:45What x gives the largest volume, and what is that volume? The plan: write the volume as a function of x, find its domain, then set V prime to zero and compare the candidates. Fold up the flaps into a box. Its height is the cut: x. The base started twelve wide, minus x off the left, minus x off the right: twelve minus two x. Volume is base area times height: V of x equals x times twelve minus two x, squared.
4:20The cut can't be negative, and the base side can't be either. So x runs from zero to six. Your move next: set V prime equal to zero, then compare. Multiply it out first, so we don't need the product rule: V equals four x cubed, minus forty-eight x squared, plus one forty-four x. V prime is twelve x squared, minus ninety-six x, plus one forty-four. Pull out twelve and factor: twelve times x minus two, times x minus six.
4:55It's zero at two and at six. Six is already an end of the domain. It's on the list either way. V of zero is zero. V of two is two times eight squared: one twenty-eight. V of six is zero. Here's V on the whole domain. Comparing all three is the reason two wins. Cut two-inch squares, and the largest volume is one hundred twenty-eight cubic inches. In your workbook, you'll get a ten by sixteen sheet. Same steps.
5:29Example two. Find the point on the curve y equals root x that's closest to the point three, zero. The plan: write the distance squared in terms of x, and set its derivative to zero. Watch why we square it. Take any point on the curve. If its x-coordinate is x, its height is root x. The distance d to three, zero: by the distance formula, d squared is x minus three, squared, plus root x minus zero, squared.
6:04Don't take the big square root. Distance is never negative, so the smallest d comes at the same x as the smallest d squared. Call the squared distance D of x. No big square root, no messy chain rule. Your move: simplify D, then take D prime. Clean up D. x minus three, squared, plus root x squared, which is just x. So D of x is x squared minus five x plus nine.
6:36For the domain, root x needs x to be at least zero. D prime is two x minus five. Zero at x equals five halves. How do we know it's the smallest? D is a parabola that opens up, so its vertex is the lowest point anywhere. The left end, x equals zero, gives D of zero equals nine. Bigger. D of five halves: twenty-five fourths, minus twenty-five halves, plus nine.
7:10That's eleven fourths. Remember, D was distance squared. So the closest distance is root eleven over two. And the closest point on the curve is five halves, root five halves. There's no right end here, and the parabola settled it. When there's no shape to lean on, that's next lesson. In your workbook, find the closest point to two, zero. Example three. A rectangle sits on the x-axis, with its two top corners on y equals twelve minus x squared.
7:46What is its largest possible area? The plan: area as a function of x, on a closed domain. Then compare the candidates. Put the top-right corner on the curve at x. Its height is twelve minus x squared. From the y-axis, it's x to the right, and another x to the left. So it's two x, not x. The height is the curve's height: twelve minus x squared.
8:17Width times height: A of x is two x times twelve minus x squared, or twenty-four x minus two x cubed. At x equals zero, there's no width. Slide right until twelve minus x squared is zero, at root twelve: no height. So x runs from zero to root twelve, ends included. Your move: set A prime equal to zero, then compare. A prime is twenty-four minus six x squared.
8:49Set it to zero. Then x squared is four, so x is plus or minus two. Negative two is outside the domain. Throw it out. A of zero is zero. A of two is width four times height eight, thirty-two. A of root twelve is zero. Compare: zero, thirty-two, zero. The largest area is thirty-two, with the rectangle four wide and eight tall.
9:20In your workbook, you'll get a rectangle under a semicircle. Same steps. Back to the farmer. Was the square the best field? No. Every story became one function on one domain. Name the objective, use the constraint to get down to one variable, let the picture set the domain, and compare. And check the domain every time: negative two was outside, so it never got a vote. Next time, in five point eleven, we ask: what if the domain has no endpoints at all?
9:56How do you prove the winner then? See you there.