// Numbas version: exam_results_page_options {"name": "Gaussian Elimination", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"advice": "

Look at the revealed answers for this question. All the information needed is there.

", "variable_groups": [], "ungrouped_variables": ["a", "b", "c", "c1", "c2", "c3", "y", "x", "z"], "functions": {}, "extensions": [], "variablesTest": {"condition": "", "maxRuns": 100}, "type": "question", "statement": "

Solve the system of equations using Gaussian Elimination
\\[\\begin{eqnarray} &x&+\\;&\\var{b}y&+\\;\\var{b*a-b}z&=&\\var{c3}\\\\ &\\var{a}x&+\\;&\\var{a*b-1}y&+\\;\\var{a^2*b-a-a*b}z&=&\\var{c2}\\\\&\\var{a*c}x&+\\;&\\var{c*b}y&+\\;z&=&\\var{c1} \\end{eqnarray} \\]
Part a) Introduce zeros in the first column using the first row.
Part b) Introduce zeros in the second coumn below the second entry in the second row using the second row, then solve for $z$ using the last row of the reduced matrix.
Part c) Solve for $y$ and $x$ using the second and first rows of the reduced matrix. 

", "preamble": {"js": "", "css": ""}, "tags": [], "parts": [{"showFeedbackIcon": true, "variableReplacements": [], "marks": 0, "scripts": {}, "prompt": "

Write the augmented matrix corresponding to this system of equations

\n

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\\[\\left( \\begin{matrix} \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\end{matrix} \\right.\\][[0]][[1]][[2]]\\[\\left| \\begin{matrix} \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\end{matrix} \\right.\\][[3]]\\[\\left) \\begin{matrix} \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\end{matrix} \\right.\\]
[[4]][[5]][[6]][[7]]
[[8]][[9]][[10]][[11]]
", "gaps": [{"correctAnswerStyle": "plain", "scripts": {}, "maxValue": "1", "mustBeReducedPC": 0, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showFeedbackIcon": true, "notationStyles": ["plain", "en", "si-en"], "marks": "0.25", "minValue": "1", "allowFractions": false, "correctAnswerFraction": false, "variableReplacements": [], "mustBeReduced": false}, {"correctAnswerStyle": "plain", "scripts": {}, "maxValue": "{b}", "mustBeReducedPC": 0, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showFeedbackIcon": true, "notationStyles": ["plain", "en", "si-en"], "marks": "0.25", "minValue": "{b}", "allowFractions": false, "correctAnswerFraction": false, "variableReplacements": [], "mustBeReduced": false}, {"correctAnswerStyle": "plain", "scripts": {}, "maxValue": "{b*a-b}", "mustBeReducedPC": 0, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showFeedbackIcon": true, "notationStyles": ["plain", "en", "si-en"], "marks": "0.25", "minValue": "{b*a-b}", "allowFractions": false, "correctAnswerFraction": false, "variableReplacements": [], "mustBeReduced": false}, {"correctAnswerStyle": "plain", "scripts": {}, "maxValue": "{c3}", "mustBeReducedPC": 0, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showFeedbackIcon": true, "notationStyles": ["plain", "en", "si-en"], "marks": "0.25", "minValue": "{c3}", "allowFractions": false, "correctAnswerFraction": false, "variableReplacements": [], "mustBeReduced": false}, {"correctAnswerStyle": "plain", "scripts": {}, "maxValue": "{a}", "mustBeReducedPC": 0, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showFeedbackIcon": true, "notationStyles": ["plain", "en", "si-en"], "marks": "0.25", "minValue": "{a}", "allowFractions": false, "correctAnswerFraction": false, "variableReplacements": [], "mustBeReduced": false}, {"correctAnswerStyle": "plain", "scripts": {}, "maxValue": "{a*b-1}", "mustBeReducedPC": 0, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showFeedbackIcon": true, "notationStyles": ["plain", "en", "si-en"], "marks": "0.25", "minValue": "{a*b-1}", "allowFractions": false, "correctAnswerFraction": false, "variableReplacements": [], "mustBeReduced": false}, {"correctAnswerStyle": "plain", "scripts": {}, "maxValue": "{a^2*b-a-a*b}", "mustBeReducedPC": 0, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showFeedbackIcon": true, "notationStyles": ["plain", "en", "si-en"], "marks": "0.25", "minValue": "{a^2*b-a-a*b}", "allowFractions": false, "correctAnswerFraction": false, "variableReplacements": [], "mustBeReduced": false}, {"correctAnswerStyle": "plain", "scripts": {}, "maxValue": "{c2}", "mustBeReducedPC": 0, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showFeedbackIcon": true, "notationStyles": ["plain", "en", "si-en"], "marks": "0.25", "minValue": "{c2}", "allowFractions": false, "correctAnswerFraction": false, "variableReplacements": [], "mustBeReduced": false}, {"correctAnswerStyle": "plain", "scripts": {}, "maxValue": "{a*c}", "mustBeReducedPC": 0, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showFeedbackIcon": true, "notationStyles": ["plain", "en", "si-en"], "marks": "0.25", "minValue": "{a*c}", "allowFractions": false, "correctAnswerFraction": false, "variableReplacements": [], "mustBeReduced": false}, {"correctAnswerStyle": "plain", "scripts": {}, "maxValue": "{c*b}", "mustBeReducedPC": 0, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showFeedbackIcon": true, "notationStyles": ["plain", "en", "si-en"], "marks": "0.25", "minValue": "{c*b}", "allowFractions": false, "correctAnswerFraction": false, "variableReplacements": [], "mustBeReduced": false}, {"correctAnswerStyle": "plain", "scripts": {}, "maxValue": "1", "mustBeReducedPC": 0, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showFeedbackIcon": true, "notationStyles": ["plain", "en", "si-en"], "marks": "0.25", "minValue": "1", "allowFractions": false, "correctAnswerFraction": false, "variableReplacements": [], "mustBeReduced": false}, {"correctAnswerStyle": "plain", "scripts": {}, "maxValue": "{c1}", "mustBeReducedPC": 0, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showFeedbackIcon": true, "notationStyles": ["plain", "en", "si-en"], "marks": "0.25", "minValue": "{c1}", "allowFractions": false, "correctAnswerFraction": false, "variableReplacements": [], "mustBeReduced": false}], "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "gapfill"}, {"showFeedbackIcon": true, "variableReplacements": [], "marks": 0, "scripts": {}, "prompt": "

Now introduce zeros in the first column below the first entry by adding:
[[0]] times the first row to the second row and
[[1]] times the first row to the third row to get the matrix:

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\\[\\left( \\begin{matrix} \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\end{matrix} \\right.\\]$\\var{1}$$\\var{b}$$\\var{b*a-b}$\\[\\left| \\begin{matrix} \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\end{matrix} \\right.\\]$\\var{c3}$\\[\\left) \\begin{matrix} \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\end{matrix} \\right.\\]
$\\var{0}$[[2]][[3]][[4]]
$\\var{0}$[[5]][[6]][[7]]
\n

Next multiply the second row by [[8]] to get a 1 in the second entry in the second row.

", "gaps": [{"correctAnswerStyle": "plain", "scripts": {}, "maxValue": "{-a}", "mustBeReducedPC": 0, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showFeedbackIcon": true, "notationStyles": ["plain", "en", "si-en"], "marks": "0.5", "minValue": "{-a}", "allowFractions": false, "correctAnswerFraction": false, "variableReplacements": [], "mustBeReduced": false}, {"correctAnswerStyle": "plain", "scripts": {}, "maxValue": "{-a*c}", "mustBeReducedPC": 0, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showFeedbackIcon": true, "notationStyles": ["plain", "en", "si-en"], "marks": "0.5", "minValue": "{-a*c}", "allowFractions": false, "correctAnswerFraction": false, "variableReplacements": [], "mustBeReduced": false}, {"correctAnswerStyle": "plain", "scripts": {}, "maxValue": "{-1}", "mustBeReducedPC": 0, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showFeedbackIcon": true, "notationStyles": ["plain", "en", "si-en"], "marks": "0.5", "minValue": "{-1}", "allowFractions": false, "correctAnswerFraction": false, "variableReplacements": [], "mustBeReduced": false}, {"correctAnswerStyle": "plain", "scripts": {}, "maxValue": "{-a}", "mustBeReducedPC": 0, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showFeedbackIcon": true, "notationStyles": ["plain", "en", "si-en"], "marks": "0.5", "minValue": "{-a}", "allowFractions": false, "correctAnswerFraction": false, "variableReplacements": [], "mustBeReduced": false}, {"correctAnswerStyle": "plain", "scripts": {}, "maxValue": "{c2-a*c3}", "mustBeReducedPC": 0, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showFeedbackIcon": true, "notationStyles": ["plain", "en", "si-en"], "marks": "0.5", "minValue": "{c2-a*c3}", "allowFractions": false, "correctAnswerFraction": false, "variableReplacements": [], "mustBeReduced": false}, {"correctAnswerStyle": "plain", "scripts": {}, "maxValue": "{c*b-c*b*a}", "mustBeReducedPC": 0, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showFeedbackIcon": true, "notationStyles": ["plain", "en", "si-en"], "marks": "0.5", "minValue": "{c*b-c*b*a}", "allowFractions": false, "correctAnswerFraction": false, "variableReplacements": [], "mustBeReduced": false}, {"correctAnswerStyle": "plain", "scripts": {}, "maxValue": "{-a^2*b*c+1+a*b*c}", "mustBeReducedPC": 0, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showFeedbackIcon": true, "notationStyles": ["plain", "en", "si-en"], "marks": "0.5", "minValue": "{-a^2*b*c+1+a*b*c}", "allowFractions": false, "correctAnswerFraction": false, "variableReplacements": [], "mustBeReduced": false}, {"correctAnswerStyle": "plain", "scripts": {}, "maxValue": "{c1-a*c*c3}", "mustBeReducedPC": 0, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showFeedbackIcon": true, "notationStyles": ["plain", "en", "si-en"], "marks": "0.5", "minValue": "{c1-a*c*c3}", "allowFractions": false, "correctAnswerFraction": false, "variableReplacements": [], "mustBeReduced": false}, {"correctAnswerStyle": "plain", "scripts": {}, "maxValue": "{-1}", "mustBeReducedPC": 0, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showFeedbackIcon": true, "notationStyles": ["plain", "en", "si-en"], "marks": "0.5", "minValue": "{-1}", "allowFractions": false, "correctAnswerFraction": false, "variableReplacements": [], "mustBeReduced": false}], "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "gapfill"}, {"showFeedbackIcon": true, "variableReplacements": [], "marks": 0, "scripts": {}, "prompt": "

(Note that from the last part, you may have multiplied the second row by a suitable number to get a $1$ in the second entry in the second row.)

\n


In this part we introduce a $0$ in the second column below the second entry in the second column by adding:
[[0]] times the second row to the third row to get the matrix:

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\\[\\left( \\begin{matrix} \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\end{matrix} \\right.\\]$\\var{1}$$\\var{b}$$\\var{b*a-b}$\\[\\left| \\begin{matrix} \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\end{matrix} \\right.\\]$\\var{c3}$\\[\\left) \\begin{matrix} \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\end{matrix} \\right.\\]
$\\var{0}$$\\var{1}$[[1]][[2]]
$\\var{0}$$\\var{0}$[[3]][[4]]
\n

From this you should find:

\n

$z=\\;\\;$[[5]]

", "gaps": [{"correctAnswerStyle": "plain", "scripts": {}, "maxValue": "{-b*c+a*b*c}", "mustBeReducedPC": 0, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showFeedbackIcon": true, "notationStyles": ["plain", "en", "si-en"], "marks": "0.5", "minValue": "{-b*c+a*b*c}", "allowFractions": false, "correctAnswerFraction": false, "variableReplacements": [], "mustBeReduced": false}, {"correctAnswerStyle": "plain", "scripts": {}, "maxValue": "{a}", "mustBeReducedPC": 0, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showFeedbackIcon": true, "notationStyles": ["plain", "en", "si-en"], "marks": "0.5", "minValue": "{a}", "allowFractions": false, "correctAnswerFraction": false, "variableReplacements": [], "mustBeReduced": false}, {"correctAnswerStyle": "plain", "scripts": {}, "maxValue": "{a*c3-c2}", "mustBeReducedPC": 0, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showFeedbackIcon": true, "notationStyles": ["plain", "en", "si-en"], "marks": "0.5", "minValue": "{a*c3-c2}", "allowFractions": false, "correctAnswerFraction": false, "variableReplacements": [], "mustBeReduced": false}, {"correctAnswerStyle": "plain", "scripts": {}, "maxValue": "{1}", "mustBeReducedPC": 0, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showFeedbackIcon": true, "notationStyles": ["plain", "en", "si-en"], "marks": "0.5", "minValue": "{1}", "allowFractions": false, "correctAnswerFraction": false, "variableReplacements": [], "mustBeReduced": false}, {"correctAnswerStyle": "plain", "scripts": {}, "maxValue": "{b*c*(1-a)*(c2-a*c3)+c1-a*c*c3}", "mustBeReducedPC": 0, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showFeedbackIcon": true, "notationStyles": ["plain", "en", "si-en"], "marks": "0.5", "minValue": "{b*c*(1-a)*(c2-a*c3)+c1-a*c*c3}", "allowFractions": false, "correctAnswerFraction": false, "variableReplacements": [], "mustBeReduced": false}, {"correctAnswerStyle": "plain", "scripts": {}, "maxValue": "{z}", "mustBeReducedPC": 0, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showFeedbackIcon": true, "notationStyles": ["plain", "en", "si-en"], "marks": 1, "minValue": "{z}", "allowFractions": false, "correctAnswerFraction": false, "variableReplacements": [], "mustBeReduced": false}], "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "gapfill"}, {"showFeedbackIcon": true, "variableReplacements": [], "marks": 0, "scripts": {}, "prompt": "\n \n \n

From the second row of the reduced matrix you find an equation involving only $y$ and $z$ and using your value for $z$ we find:

\n \n \n \n

$y=\\;\\;$[[0]]

\n \n \n \n

Then using the first row we have the equation :
\\[\\simplify[all]{x+ {b}y+{b*a-b}z={c3}}\\]

\n \n \n \n

Using this you can now find $x$:

\n \n \n \n

$x=\\;\\;$[[1]]

\n \n \n \n \n ", "gaps": [{"correctAnswerStyle": "plain", "scripts": {}, "maxValue": "{y}", "mustBeReducedPC": 0, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showFeedbackIcon": true, "notationStyles": ["plain", "en", "si-en"], "marks": "1", "minValue": "{y}", "allowFractions": false, "correctAnswerFraction": false, "variableReplacements": [], "mustBeReduced": false}, {"correctAnswerStyle": "plain", "scripts": {}, "maxValue": "{x}", "mustBeReducedPC": 0, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showFeedbackIcon": true, "notationStyles": ["plain", "en", "si-en"], "marks": "1", "minValue": "{x}", "allowFractions": false, "correctAnswerFraction": false, "variableReplacements": [], "mustBeReduced": false}], "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "gapfill"}], "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "variables": {"c2": {"templateType": "anything", "definition": "random(1..3)", "description": "", "group": "Ungrouped variables", "name": "c2"}, "y": {"templateType": "anything", "definition": "a*c3-c2-a*z", "description": "", "group": "Ungrouped variables", "name": "y"}, "c3": {"templateType": "anything", "definition": "random(1..3)", "description": "", "group": "Ungrouped variables", "name": "c3"}, "a": {"templateType": "anything", "definition": "random(2..6)", "description": "", "group": "Ungrouped variables", "name": "a"}, "x": {"templateType": "anything", "definition": "c3-(b*a-b)*z-b*y", "description": "", "group": "Ungrouped variables", "name": "x"}, "b": {"templateType": "anything", "definition": "random(2..6)", "description": "", "group": "Ungrouped variables", "name": "b"}, "z": {"templateType": "anything", "definition": "c1+c2*c*(b-a*b)+c3*c*(a^2*b-a-a*b)", "description": "", "group": "Ungrouped variables", "name": "z"}, "c1": {"templateType": "anything", "definition": "random(1..5)", "description": "", "group": "Ungrouped variables", "name": "c1"}, "c": {"templateType": "anything", "definition": "random(1..3)", "description": "", "group": "Ungrouped variables", "name": "c"}}, "metadata": {"description": "

Solving a system of three linear equations in 3 unknowns using Gauss Elimination in 4 stages. Solutions are all integral.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "name": "Gaussian Elimination", "contributors": [{"name": "Stephen Flood", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1397/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}]}], "contributors": [{"name": "Stephen Flood", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1397/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}