|
Question 868889: Th dietitian at Benevolent Place must create a balanced diet for Alexander consisting of a daily total of 1600 calories. For his successful rehabilitation, exact quantities of complex carbohydrates, fat, and protein must provide these calories. In this diet, carbohydrates provide 160 more calories than fat and protein together, while fat provides 1.25 times more calories than protein alone. How many calories should each nutrient provide on a daily basis?
Show the three equations you made for the given data.
Show the matrices used to find the solution.
Answer by richwmiller(17219) (Show Source):
You can put this solution on YOUR website! c=p+f+160,
f=1.25p,
0c+1.25p-1f=0
c+p+f=1600
c-p-f=160
c = 880, f = 400, p = 320
0x, 1.25y, -1z, 0
1x, 1y, 1z, 1600
1x,-1y ,-1z, 160
0, 1.25, -1, 0
1, 1, 1, 1600
1,-1,-1,160
Solved by pluggable solver: Using Cramer's Rule to Solve Systems with 3 variables |

First let . This is the matrix formed by the coefficients of the given system of equations.
Take note that the right hand values of the system are , , and and they are highlighted here:

These values are important as they will be used to replace the columns of the matrix A.
Now let's calculate the the determinant of the matrix A to get . To save space, I'm not showing the calculations for the determinant. However, if you need help with calculating the determinant of the matrix A, check out this solver.
Notation note: denotes the determinant of the matrix A.
---------------------------------------------------------
Now replace the first column of A (that corresponds to the variable 'x') with the values that form the right hand side of the system of equations. We will denote this new matrix (since we're replacing the 'x' column so to speak).

Now compute the determinant of to get . Again, as a space saver, I didn't include the calculations of the determinant. Check out this solver to see how to find this determinant.
To find the first solution, simply divide the determinant of by the determinant of to get: 
So the first solution is 
---------------------------------------------------------
We'll follow the same basic idea to find the other two solutions. Let's reset by letting again (this is the coefficient matrix).
Now replace the second column of A (that corresponds to the variable 'y') with the values that form the right hand side of the system of equations. We will denote this new matrix (since we're replacing the 'y' column in a way).

Now compute the determinant of to get .
To find the second solution, divide the determinant of by the determinant of to get: 
So the second solution is 
---------------------------------------------------------
Let's reset again by letting which is the coefficient matrix.
Replace the third column of A (that corresponds to the variable 'z') with the values that form the right hand side of the system of equations. We will denote this new matrix

Now compute the determinant of to get .
To find the third solution, divide the determinant of by the determinant of to get: 
So the third solution is 
====================================================================================
Final Answer:
So the three solutions are , , and giving the ordered triple (880, 320, 400)
Note: there is a lot of work that is hidden in finding the determinants. Take a look at this 3x3 Determinant Solver to see how to get each determinant.
|
|
|
|
| |