iScience said:
here is the problem plus the solution. I understand all the steps leading to the green box, but within the green box, first of all i don't understand why they put the line in terms of x: (y-6,y) instead of putting it in terms of y: (x,6-x), or does it not matter? and everything else in the box i don't understand why they're doing what they're doing. can someone please explain?
thanks
In single-variable calculus, you learned that the global max/min of a differentiable function on a closed interval had to occur at the endpoints of the interval or at critical points of the interior of the interval. You had to do calculus to identify the critical points, the end points are given to you, and then the problem was just a matter of checking all of the points of interest.
In the multivariable version, you learn that the global max/min of a differentiable function on a closed set have to occur on the boundary of the set or at critical points of the interior of the set. Considering that the endpoints of an interval constitute the boundary of that interval in the single-variable situation, this is really nothing new conceptually.
Finding the critical points of the interior involves doing similar calculus as before, however dealing with the boundary in the multivariable case is not as easy. In your problem, there are obvious "pieces" of the boundary, the three sides of the triangle, and so it makes sense to work with each piece individually. On two of the sides, the function is constant. So identifying the max/min of the function on those pieces is easy.
Identifying the max/min on the third side turns into something the looks like an optimization problem from a first semester of calculus. If you were to go back and look through the section in your first calc class that dealt with optimization, the one that had silly problems about farmers building pens for their cows, you find that most of those problems look a lot like "optimize f(x,y) subject to E(x,y)" where E(x,y) is an equation, sometimes called the constraint equation. The constraint equation was used to reduce a problem in two variables to a problem in one variable. That is exactly what is going on the green box. In this case, the constraint equation is just the equation of the line.