SOLUTION: Maximization Maximize p = 2x + 4y subject to x >= 0, y >= 0, 2x - y >= 2 and x + 2y <= 8 Help me. I don't know how to do it. The answer is: The function is maximum at (8,0

Algebra ->  Graphs -> SOLUTION: Maximization Maximize p = 2x + 4y subject to x >= 0, y >= 0, 2x - y >= 2 and x + 2y <= 8 Help me. I don't know how to do it. The answer is: The function is maximum at (8,0      Log On


   



Question 548265: Maximization
Maximize p = 2x + 4y subject to
x >= 0, y >= 0, 2x - y >= 2 and x + 2y <= 8
Help me. I don't know how to do it.
The answer is: The function is maximum at (8,0) et (12/5, 14/5) and is worth 16.
Thank you

Answer by KMST(5328) About Me  (Show Source):
You can put this solution on YOUR website!
This type of problem requires knowing about linear functions, linear equations, inequalities, and graphing. I'll give you some tips and tricks at the end.
Normally, a linear optimization problem like this one includes a lot of calculations and graphing, and you end up finding the maximum at a corner. In this case the maximum is all along the side of a triangle, but the problem is easy if you do not have to show your work. As a consequence, I can skip a few calculations. But I'll show you (at the end) how to work through any optimization problem, even when you have to show your work, including the calculations and graphing that I could avoid in this problem when no one was making me do them. (Feel free to skip that part if you already know all that, and were only puzzled by the maximum not being just at one point, or by the way the solution is expressed).
You are supposed to work within the boundaries
x=0, y=0, 2x-y=2, and x%2B2y=8, the axes and two slanted lines.
The function of x and y to be maximized p+=+2x+%2B+4y will take a given value, such as p=8 along a straight line. In the case of p=8, it would be the line 8=2x+%2B+4y. It's obvious that if you increase both x and y, you will increase p. So, as we get away from the origin we increase p, and to maximize p, we we have to get as far away from the origin as we can (within the boundaries set).
If we graphed the lines p+=+2x+%2B+4y for various p values, they would be all parallel. In fact, one of those lines 16=2x+%2B+4y is the boundary line x%2B2y=8.
They are equivalent equations. If you multiply both sides of x%2B2y=8 by 2, you get 2x%2B4y=16.
The maximum p will be 16 and will happen all along a portion of the boundary line x%2B2y=8, a segment of that line.
We just need to find the ends of that segment, which will happen when the line x%2B2y=8 intersects the x-axis, and when the line x%2B2y=8 intersects the line 2x-y=2.
The line y=0 (the x-axis), and the line x%2B2y=8 intersect at x=8%7D%7D+%28with+%7B%7B%7By=0, of course, which we find by substituting y=0 into x%2B2y=8. That gives us the point (8,0).
The intersection of lines x%2B2y=8 and 2x-y=2 requires solving the system of equations formed by those 2 equations.
Solving for y in 2x-y=2 --> y=2x-2
and substituting in x%2B2y=8 would work.
We get x%2B4x-4=8 --> 5x=12 and x=12%2F5,
which we substitute into y=2x-2 to get
y=2%2812%2F5%29-2=24%2F5-10%2F5=14%2F5.
That gives us the point (12/5,14/5) where the slanted lines intersect.
SOLUTION: The function is maximum at the segment between points (8,0) and (12/5, 14/5) and is worth 16.
THE GRAPH that I only needed to draw in my mind
Our boundaries include the x- and y-axis, and the inequalities
x+%3E=+0 and y+%3E=+0 tell you that you are working in the first quadrant.
The other two boundaries are linear equations, and I can tell (without calculating anything) that the x- and y-intercepts for those lines will be positive except for (0,-2), the y-intercept for 2x-y=2.
The origin, point (0,0), satisfies x+%2B+2y+%3C=+8, but not 2x+-+y+%3E=+2, so I know we are working on the side of x%2B2y=8 that contains the origin, and at the same time, on the side of 2x-y=2 that does not contain the origin.
It looks like this:
graph%28220%2C200%2C-1%2C10%2C-2%2C8%2C2x-2%2C-x%2F2%2B4%29 and we are working in the triangle between the x-axis and the slanted lines.
TIPS AND TRICKS
Graphing is easier when done on graph paper.
Expect your first attempt at doing a graph to be a rough draft that will need to be improved upon (change of scale, better choice of points to plot, calculation errors, etc).
To graph a line you only need to points. You want them to be easy to calculate, and easy to plot, spaced far enough to draw the line accurately, and located within your graph.
Often you can get one or two good line points to plot by substituting x=0 and y=0 in the equation of a line. For x%2B2y=8, you get (0,4) and (8,0) that way, and those are excellent points to graph that line. For 2x-y=2 you get (0,-2) and (2,0), which are also pretty good.
To graph inequalities like x%2B2y%3C8 or x%2B2y%3C=8, after graphing the line for x%2B2y=8, you need to decide which side of the line is the answer. Choosing an easy test point usually works well. You want a test point that is not on the boundary line, and makes calculations easy. If possible, use (0,0), the origin. Substitute its coordinates, and see if the point is a solution. Since 0%2B2%2A0=0%3C8, I know that the solution to x%2B2y%3C8 is the portion of the graph on the side of x%2B2y%3C8 that contains the origin. For 2x+-+y+%3E=+2 or 2x+-+y+%3E+2, test point (0,0) tells me that the solution is the side that does not contain the origin, because 2%2A0-0=0 does not satisfy those inequalities. In the case of x%3E=0 or y%3E=0, test point (1,1) would work well for both. Want to verify that the triangle be tween the two slanted lines and the x-axis is the feasibility region we must work in? Just check using test point (3,1). You'll see that it satisfies all the inequalities given as constraints.
If you have to show your work in a linear optimization problem, you'll need to graph your boundary lines, and calculate their intersection points. Then you'll have to calculate the value of the function at all the intersection points and figure out a winner. If two points are tied for optimum value, they should be points that are connected by a segment of boundary line, and the maximum happens for all the points in that whole segment. In the case of this problem, you would calculate the value of p at (2,0) as 2%2A2%2B4%2A0=4%2B0=4, the value at (8,0) as 2%2A8%2B4%2A0=16%2B0=16, and the value at (12/5,14/5) as 2%2A%2812%2F5%29%2B4%2A%2814%2F5%29=24%2F5%2B56%2F5=80%2F5=16 to find your solution.
You may be able to find the intersection points from the graph, without having to solve a system of equations. It works well when the coordinates of the intersection point seem to be integers. Make sure that the point the graph suggests as the intersection is really part of the two lines by substituting the coordinates in the equations for both lines. It would not have worked for this problem, because we could never have guessed from the graph that the intersection point was (12/5,14/5).