document.write( "Question 977746: Can u please help me solve this ..... Using the following system of inequalities find the maximum value of f(x,y) =3x + 9y x>0 y>0. 3x + 2y=<18. 6x + 7y <42 \n" ); document.write( "
Algebra.Com's Answer #599318 by Edwin McCravy(20055)\"\" \"About 
You can put this solution on YOUR website!
Can u please help me solve this ..... Using the following system of inequalities find the maximum value of \r
\n" ); document.write( "\n" ); document.write( "f(x,y) =3x + 9y \r
\n" ); document.write( "\n" ); document.write( "x>0 y>0. \r
\n" ); document.write( "\n" ); document.write( "3x + 2y=<18. \r
\n" ); document.write( "\n" ); document.write( "6x + 7y <42
\n" ); document.write( "
\r\n" );
document.write( "We add non-negative slack variables to the left side to \"take \r\n" );
document.write( "up the slack\" between the left side and the right side and make \r\n" );
document.write( "the inequalities into equations:\r\n" );
document.write( "\r\n" );
document.write( "3x + 2y + s1 = 18.        \r\n" );
document.write( "\r\n" );
document.write( "6x + 7y + s2 = 42.\r\n" );
document.write( "\r\n" );
document.write( "We take the equation for what we want to maximize f(x,y) = 3x + 9y\r\n" );
document.write( "and get 0 on the right side:\r\n" );
document.write( "\r\n" );
document.write( "-3x - 9y + f(x,y) = 0\r\n" );
document.write( "\r\n" );
document.write( "We set the three equations up like this:\r\n" );
document.write( "\r\n" );
document.write( "  x    y   s1   s2   f(x,y)    k\r\n" );
document.write( "--------------------------------    \r\n" );
document.write( " 3x + 2y + s1               = 18\r\n" );
document.write( " 6x + 7y      + s2          = 42\r\n" );
document.write( "--------------------------------\r\n" );
document.write( "-3x - 9y           + f(x,y) =  0\r\n" );
document.write( "\r\n" );
document.write( "Then we make the tableau matrix by taking off the \r\n" );
document.write( "variables and leave only the coefficients, and putting\r\n" );
document.write( "in partitions like this:\r\n" );
document.write( "\r\n" );
document.write( "  x    y | s1   s2  |f(x,y)|   k\r\n" );
document.write( "--------------------------------    \r\n" );
document.write( "  3    2 |  1    0  |   0  |  18\r\n" );
document.write( "  6    7 |  0    1  |   0  |  42\r\n" );
document.write( "--------------------------------\r\n" );
document.write( " -3   -9 |  0    0  |   1  |   0\r\n" );
document.write( "\r\n" );
document.write( "The pivot column is the second one because -9 is the most negative \r\n" );
document.write( "number on the bottom row.\r\n" );
document.write( "\r\n" );
document.write( "[That really isn't necessary to take the most negative number on the bottom row\r\n" );
document.write( "to indicate the pivot column, because any negative number on the bottom row will\r\n" );
document.write( "work, but it usually shortens the process to take the lowest negative number]:\r\n" );
document.write( "                                 ___          ___\r\n" );
document.write( "To find the pivot row we divide 2)18 = 9 and 7)42 = 6\r\n" );
document.write( "Since 6 is smaller and it came from row 2, the pivot row is row 2.\r\n" );
document.write( "So 7 is the pivot element (common to both the pivot column and row) \r\n" );
document.write( "\r\n" );
document.write( "So we pivot on 7.  That is, we make the 7 into a 1 and use it to make\r\n" );
document.write( "to other numbers on the pivot column 0. \r\n" );
document.write( "\r\n" );
document.write( "First we get a 1 where the 7 is by dividing that pivot row through by 7\r\n" );
document.write( "\r\n" );
document.write( "  x    y | s1   s2  |f(x,y)|   k\r\n" );
document.write( "--------------------------------    \r\n" );
document.write( "  3    2 |  1    0  |   0  |  18\r\n" );
document.write( "6/7    1 |  0  1/7  |   0  |   6\r\n" );
document.write( "--------------------------------\r\n" );
document.write( " -3   -9 |  0    0  |   1  |   0\r\n" );
document.write( "\r\n" );
document.write( "We get a 0 where the 2 is by multiplying the pivot row by -2\r\n" );
document.write( "and adding it to the top row:\r\n" );
document.write( "\r\n" );
document.write( "     We take the pivot row  -> 6/7    1 |  0  1/7  |   0  |   6\r\n" );
document.write( "\r\n" );
document.write( "     multiply it by -2  -->  -12/7   -2 |  0 -2/7  |   0  | -12\r\n" );
document.write( "     add the top row     -->     3    2 |  1    0  |   0  |  18\r\n" );
document.write( "     ---------------------------------------------------------------\r\n" );
document.write( "     get -->                   9/7    0 |  1 -2/7  |   0  |   6\r\n" );
document.write( "\r\n" );
document.write( "     Replace the top row by that \r\n" );
document.write( "\r\n" );
document.write( "  x    y | s1   s2  |f(x,y)|   k\r\n" );
document.write( "--------------------------------    \r\n" );
document.write( "9/7    0 |  1 -2/7  |   0  |   6\r\n" );
document.write( "6/7    1 |  0  1/7  |   0  |   6\r\n" );
document.write( "--------------------------------\r\n" );
document.write( " -3   -9 |  0    0  |   1  |   0\r\n" );
document.write( "\r\n" );
document.write( "---\r\n" );
document.write( "We get a 0 where the -9 is by multiplying the pivot row by 9\r\n" );
document.write( "and adding it to the bottom row:\r\n" );
document.write( "\r\n" );
document.write( "     We take that pivot row -> 6/7    1 |  0  1/7  |   0  |   6\r\n" );
document.write( "\r\n" );
document.write( "     multiply it by  9  -->   54/7    9 |  0  9/7  |   0  |  54\r\n" );
document.write( "     add the bottom row -->     -3   -9 |  0    0  |   1  |   0\r\n" );
document.write( "     ----------------------------------------------------------\r\n" );
document.write( "     get -->                  33/7    0 |  0  9/7  |   1  |  54\r\n" );
document.write( "\r\n" );
document.write( "     Replace the bottom row by that: \r\n" );
document.write( "\r\n" );
document.write( "   x    y | s1   s2  |f(x,y)|   k\r\n" );
document.write( " --------------------------------    \r\n" );
document.write( " 9/7    0 |  1 -2/7  |   0  |   6\r\n" );
document.write( " 6/7    1 |  0  1/7  |   0  |   6\r\n" );
document.write( " --------------------------------\r\n" );
document.write( "33/7    0 |  0  9/7  |   1  |  54\r\n" );
document.write( "\r\n" );
document.write( "There are no negative numbers left on the bottom row, so we write the\r\n" );
document.write( "bottom row back as an equations with the variables:\r\n" );
document.write( "\r\n" );
document.write( "33/7x + 0y + 0s1 + 9/7s2 + 1f(x,y) = 54\r\n" );
document.write( "\r\n" );
document.write( "Simplify:\r\n" );
document.write( "\r\n" );
document.write( "33/7x + 9/7s2 + f(x,y) = 54\r\n" );
document.write( "                f(x,y) = 54 - 33/7x - 9/7s2\r\n" );
document.write( "\r\n" );
document.write( "So f(x,y) will be a maximum when we don't subtract anything from it,\r\n" );
document.write( "and that will only be when x and s2 are both 0, since they can't be \r\n" );
document.write( "negative.\r\n" );
document.write( "\r\n" );
document.write( "So the maximum possible value for f(x,y) is 54.\r\n" );
document.write( "\r\n" );
document.write( "Often a problem will ask for what values of x and y gives this maximum\r\n" );
document.write( "value.\r\n" );
document.write( "\r\n" );
document.write( "If you were asked that you would know that it was when x=0 and s2 = 0.\r\n" );
document.write( "However we want to know what y would have to be.\r\n" );
document.write( "\r\n" );
document.write( "So we substitute x=0 and s2=0 in\r\n" );
document.write( "\r\n" );
document.write( "   6x + 7y + s2 = 42\r\n" );
document.write( "6(0) + 7y + (0) = 42\r\n" );
document.write( "             7y = 42\r\n" );
document.write( "              y = 6\r\n" );
document.write( "\r\n" );
document.write( "So the maximum possible value for f(x,y) is 54 and that's when x=0 and y=6. \r\n" );
document.write( "\r\n" );
document.write( "Edwin

\n" ); document.write( "
\n" ); document.write( "
\n" );