// 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": [{"name": "Gaussian Elimination", "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "unitTests": [], "showFeedbackIcon": true, "prompt": "
Write the augmented matrix corresponding to this system of equations
\n\n\\[\\left( \\begin{matrix} \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\end{matrix} \\right.\\] | \n[[0]] | \n[[1]] | \n[[2]] | \n\\[\\left| \\begin{matrix} \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\end{matrix} \\right.\\] | \n[[3]] | \n\\[\\left) \\begin{matrix} \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\end{matrix} \\right.\\] | \n
[[4]] | \n[[5]] | \n[[6]] | \n[[7]] | \n|||
[[8]] | \n[[9]] | \n[[10]] | \n[[11]] | \n
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:
\\[\\left( \\begin{matrix} \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\end{matrix} \\right.\\] | \n$\\var{1}$ | \n$\\var{b}$ | \n$\\var{b*a-b}$ | \n\\[\\left| \\begin{matrix} \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\end{matrix} \\right.\\] | \n$\\var{c3}$ | \n\\[\\left) \\begin{matrix} \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\end{matrix} \\right.\\] | \n
$\\var{0}$ | \n[[2]] | \n[[3]] | \n[[4]] | \n|||
$\\var{0}$ | \n[[5]] | \n[[6]] | \n[[7]] | \n
Next multiply the second row by [[8]] to get a 1 in the second entry in the second row.
", "gaps": [{"type": "numberentry", "unitTests": [], "showFeedbackIcon": true, "maxValue": "{-a}", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "mustBeReduced": false, "correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "allowFractions": false, "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "marks": "0.5", "extendBaseMarkingAlgorithm": true, "mustBeReducedPC": 0, "scripts": {}, "minValue": "{-a}", "variableReplacements": []}, {"type": "numberentry", "unitTests": [], "showFeedbackIcon": true, "maxValue": "{-a*c}", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "mustBeReduced": false, "correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "allowFractions": false, "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "marks": "0.5", "extendBaseMarkingAlgorithm": true, "mustBeReducedPC": 0, "scripts": {}, "minValue": "{-a*c}", "variableReplacements": []}, {"type": "numberentry", "unitTests": [], "showFeedbackIcon": true, "maxValue": "{-1}", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "mustBeReduced": false, "correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "allowFractions": false, "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "marks": "0.5", "extendBaseMarkingAlgorithm": true, "mustBeReducedPC": 0, "scripts": {}, "minValue": "{-1}", "variableReplacements": []}, {"type": "numberentry", "unitTests": [], "showFeedbackIcon": true, "maxValue": "{-a}", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "mustBeReduced": false, "correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "allowFractions": false, "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "marks": "0.5", "extendBaseMarkingAlgorithm": true, "mustBeReducedPC": 0, "scripts": {}, "minValue": "{-a}", "variableReplacements": []}, {"type": "numberentry", "unitTests": [], "showFeedbackIcon": true, "maxValue": "{c2-a*c3}", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "mustBeReduced": false, "correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "allowFractions": false, "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "marks": "0.5", "extendBaseMarkingAlgorithm": true, "mustBeReducedPC": 0, "scripts": {}, "minValue": "{c2-a*c3}", "variableReplacements": []}, {"type": "numberentry", "unitTests": [], "showFeedbackIcon": true, "maxValue": "{c*b-c*b*a}", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "mustBeReduced": false, "correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "allowFractions": false, "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "marks": "0.5", "extendBaseMarkingAlgorithm": true, "mustBeReducedPC": 0, "scripts": {}, "minValue": "{c*b-c*b*a}", "variableReplacements": []}, {"type": "numberentry", "unitTests": [], "showFeedbackIcon": true, "maxValue": "{-a^2*b*c+1+a*b*c}", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "mustBeReduced": false, "correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "allowFractions": false, "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "marks": "0.5", "extendBaseMarkingAlgorithm": true, "mustBeReducedPC": 0, "scripts": {}, "minValue": "{-a^2*b*c+1+a*b*c}", "variableReplacements": []}, {"type": "numberentry", "unitTests": [], "showFeedbackIcon": true, "maxValue": "{c1-a*c*c3}", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "mustBeReduced": false, "correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "allowFractions": false, "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "marks": "0.5", "extendBaseMarkingAlgorithm": true, "mustBeReducedPC": 0, "scripts": {}, "minValue": "{c1-a*c*c3}", "variableReplacements": []}, {"type": "numberentry", "unitTests": [], "showFeedbackIcon": true, "maxValue": "{-1}", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "mustBeReduced": false, "correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "allowFractions": false, "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "marks": "0.5", "extendBaseMarkingAlgorithm": true, "mustBeReducedPC": 0, "scripts": {}, "minValue": "{-1}", "variableReplacements": []}], "showCorrectAnswer": true, "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "marks": 0, "extendBaseMarkingAlgorithm": true, "sortAnswers": false, "scripts": {}, "variableReplacements": []}, {"type": "gapfill", "unitTests": [], "showFeedbackIcon": true, "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:
\\[\\left( \\begin{matrix} \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\end{matrix} \\right.\\] | \n$\\var{1}$ | \n$\\var{b}$ | \n$\\var{b*a-b}$ | \n\\[\\left| \\begin{matrix} \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\end{matrix} \\right.\\] | \n$\\var{c3}$ | \n\\[\\left) \\begin{matrix} \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\end{matrix} \\right.\\] | \n
$\\var{0}$ | \n$\\var{1}$ | \n[[1]] | \n[[2]] | \n|||
$\\var{0}$ | \n$\\var{0}$ | \n[[3]] | \n[[4]] | \n
From this you should find:
\n$z=\\;\\;$[[5]]
", "gaps": [{"type": "numberentry", "unitTests": [], "showFeedbackIcon": true, "maxValue": "{-b*c+a*b*c}", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "mustBeReduced": false, "correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "allowFractions": false, "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "marks": "0.5", "extendBaseMarkingAlgorithm": true, "mustBeReducedPC": 0, "scripts": {}, "minValue": "{-b*c+a*b*c}", "variableReplacements": []}, {"type": "numberentry", "unitTests": [], "showFeedbackIcon": true, "maxValue": "{a}", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "mustBeReduced": false, "correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "allowFractions": false, "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "marks": "0.5", "extendBaseMarkingAlgorithm": true, "mustBeReducedPC": 0, "scripts": {}, "minValue": "{a}", "variableReplacements": []}, {"type": "numberentry", "unitTests": [], "showFeedbackIcon": true, "maxValue": "{a*c3-c2}", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "mustBeReduced": false, "correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "allowFractions": false, "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "marks": "0.5", "extendBaseMarkingAlgorithm": true, "mustBeReducedPC": 0, "scripts": {}, "minValue": "{a*c3-c2}", "variableReplacements": []}, {"type": "numberentry", "unitTests": [], "showFeedbackIcon": true, "maxValue": "{1}", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "mustBeReduced": false, "correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "allowFractions": false, "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "marks": "0.5", "extendBaseMarkingAlgorithm": true, "mustBeReducedPC": 0, "scripts": {}, "minValue": "{1}", "variableReplacements": []}, {"type": "numberentry", "unitTests": [], "showFeedbackIcon": true, "maxValue": "{b*c*(1-a)*(c2-a*c3)+c1-a*c*c3}", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "mustBeReduced": false, "correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "allowFractions": false, "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "marks": "0.5", "extendBaseMarkingAlgorithm": true, "mustBeReducedPC": 0, "scripts": {}, "minValue": "{b*c*(1-a)*(c2-a*c3)+c1-a*c*c3}", "variableReplacements": []}, {"type": "numberentry", "unitTests": [], "showFeedbackIcon": true, "maxValue": "{z}", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "mustBeReduced": false, "correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "allowFractions": false, "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "marks": 1, "extendBaseMarkingAlgorithm": true, "mustBeReducedPC": 0, "scripts": {}, "minValue": "{z}", "variableReplacements": []}], "showCorrectAnswer": true, "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "marks": 0, "extendBaseMarkingAlgorithm": true, "sortAnswers": false, "scripts": {}, "variableReplacements": []}, {"type": "gapfill", "unitTests": [], "showFeedbackIcon": true, "prompt": "\n \n \nFrom 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 \nThen using the first row we have the equation :
\\[\\simplify[all]{x+ {b}y+{b*a-b}z={c3}}\\]
Using this you can now find $x$:
\n \n \n \n$x=\\;\\;$[[1]]
\n \n \n \n \n ", "gaps": [{"type": "numberentry", "unitTests": [], "showFeedbackIcon": true, "maxValue": "{y}", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "mustBeReduced": false, "correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "allowFractions": false, "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "marks": "1", "extendBaseMarkingAlgorithm": true, "mustBeReducedPC": 0, "scripts": {}, "minValue": "{y}", "variableReplacements": []}, {"type": "numberentry", "unitTests": [], "showFeedbackIcon": true, "maxValue": "{x}", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "mustBeReduced": false, "correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "allowFractions": false, "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "marks": "1", "extendBaseMarkingAlgorithm": true, "mustBeReducedPC": 0, "scripts": {}, "minValue": "{x}", "variableReplacements": []}], "showCorrectAnswer": true, "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "marks": 0, "extendBaseMarkingAlgorithm": true, "sortAnswers": false, "scripts": {}, "variableReplacements": []}], "advice": "Look at the revealed answers for this question. All the information needed is there.
", "variable_groups": [], "variablesTest": {"condition": "", "maxRuns": 100}, "variables": {"b": {"name": "b", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(2..6)", "description": ""}, "c": {"name": "c", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(1..3)", "description": ""}, "c2": {"name": "c2", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(1..3)", "description": ""}, "x": {"name": "x", "group": "Ungrouped variables", "templateType": "anything", "definition": "c3-(b*a-b)*z-b*y", "description": ""}, "a": {"name": "a", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(2..6)", "description": ""}, "c3": {"name": "c3", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(1..3)", "description": ""}, "c1": {"name": "c1", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(1..5)", "description": ""}, "y": {"name": "y", "group": "Ungrouped variables", "templateType": "anything", "definition": "a*c3-c2-a*z", "description": ""}, "z": {"name": "z", "group": "Ungrouped variables", "templateType": "anything", "definition": "c1+c2*c*(b-a*b)+c3*c*(a^2*b-a-a*b)", "description": ""}}, "functions": {}, "ungrouped_variables": ["a", "b", "c", "c1", "c2", "c3", "y", "x", "z"], "tags": [], "extensions": [], "metadata": {"licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "description": "Solving a system of three linear equations in 3 unknowns using Gauss Elimination in 4 stages. Solutions are all integral.
"}, "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "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} \\]