eggs = 11 = 2 C + 2 S + 1 P
flour = 16 1/4 = 3 C + 2 1/2 S + 2 3/4 P
sugar = 11 1/2 = 1 1/2 C + 2 S + 2 1/2 P
Input to GeoGebra:
S = ReducedRowEchelonForm[{{2,2,1,11},{3,2.5,2.75,16.25},{1.5,2,2.5,11.5}}]
=>
2 batches of Chocolate Chip cookies,
3 batches of Snickernoodles, and
1 batch of Peanut Butter cookies.
==========
Form Augmented Matrix and perform Row Operations to get an Identity Matrix in the first 3 columns; then solution vector will be in 4th column.
R1 is row 1, etc.
R1 = {2,2,1,11}
R2 = {3,2.5,2.75,16.25}
R3 = {1.5,2,2.5,11.5}
R2 >> R2*4
R3 >> R3*2
R1 = {2,2,1,11}
R2 = {12,10,11,65}
R3 = {3,4,5,23}
R1 >> 6*R1
R2 >> -R2
R3 >> -4*R3
R1 = {12,12,6,66}
R2 = {-12,-10,-11,-65}
R3 = {-12,-16,-20,-92}
R2 >> R2+R1
R3 >> R3+R1
R1 = {12,12,6,66}
R2 = {0,2,-5,1}
R3 = {0,-4,-14,-26}
R1 >> R1/6
R2 >> 2*R2
R1 = {2,2,1,11}
R2 = {0,4,-10,2}
R3 = {0,-4,-14,-26}
R3 >> R3+R2
R1 = {2,2,1,11}
R2 = {0,4,-10,2}
R3 = {0,0,-24,-24}
R2 >> R2/2
R3 >> R3/(-24)
R1 = {2,2,1,11}
R2 = {0,2,-5,1}
R3 = {0,0,1,1}
R1 >> R1-R3
R2 >> R2+5*R3
R1 = {2,2,0,10}
R2 = {0,2,0,6}
R3 = {0,0,1,1}
R1 >> R1-R2
R1 = {2,0,0,4}
R2 = {0,2,0,6}
R3 = {0,0,1,1}
R1 >> R1/2
R2 >> R2/2
R1 = {1,0,0,2}
R2 = {0,1,0,3}
R3 = {0,0,1,1}
This is a Reduced Row Echelon Form matrix with the solution in the 4th column.
Solution is:
2 batches of Chocolate Chip cookies,
3 batches of Snickernoodles, and
1 batch of Peanut Butter cookies.
Arthur D.
02/15/14