// Numbas version: finer_feedback_settings {"name": "Solve a system of three simultaneous linear equations", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"extensions": [], "tags": [], "preamble": {"css": "", "js": ""}, "name": "Solve a system of three simultaneous linear equations", "ungrouped_variables": ["a1", "b1", "c1", "r1", "r2", "r3"], "variables": {"b1": {"group": "Ungrouped variables", "description": "", "templateType": "randrange", "definition": "random(2..10#1)", "name": "b1"}, "r1": {"group": "Ungrouped variables", "description": "", "templateType": "randrange", "definition": "random(20..42#1)", "name": "r1"}, "a1": {"group": "Ungrouped variables", "description": "", "templateType": "randrange", "definition": "random(2..8#1)", "name": "a1"}, "c1": {"group": "Ungrouped variables", "description": "", "templateType": "randrange", "definition": "random(3..12#1)", "name": "c1"}, "r3": {"group": "Ungrouped variables", "description": "", "templateType": "randrange", "definition": "random(30..60#1)", "name": "r3"}, "r2": {"group": "Ungrouped variables", "description": "", "templateType": "randrange", "definition": "random(18..50#1)", "name": "r2"}}, "variable_groups": [], "variablesTest": {"condition": "", "maxRuns": 100}, "rulesets": {}, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "
Solve a system of three simultaneous linear equations
"}, "parts": [{"type": "gapfill", "prompt": "Input the value of \\(x\\) that satisfies the three equations.
\n\\(x = \\) [[0]]
\nInput the value of \\(y\\) that satisfies the three equations.
\n\\(y = \\) [[1]]
\nInput the value of \\(z\\) that satisfies the three equations.
\n\\(z = \\) [[2]]
", "scripts": {}, "showFeedbackIcon": true, "showCorrectAnswer": true, "gaps": [{"type": "numberentry", "notationStyles": ["plain", "en", "si-en"], "scripts": {}, "minValue": "((18-{b1}*{c1})*(3*{r1}-{r3})+({c1}-12)*(6*{r2}-{b1}*{r3}))/((3*{a1}-5)*(18-{b1}*{c1})-(12-5*{b1})*(12-{c1}))", "precisionMessage": "You have not given your answer to the correct precision.", "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": 0, "precision": "3", "showCorrectAnswer": true, "mustBeReducedPC": 0, "allowFractions": false, "strictPrecision": false, "showFeedbackIcon": true, "correctAnswerFraction": false, "variableReplacements": [], "maxValue": "((18-{b1}*{c1})*(3*{r1}-{r3})+({c1}-12)*(6*{r2}-{b1}*{r3}))/((3*{a1}-5)*(18-{b1}*{c1})-(12-5*{b1})*(12-{c1}))", "mustBeReduced": false, "showPrecisionHint": true, "marks": 1, "precisionType": "dp", "correctAnswerStyle": "plain"}, {"type": "numberentry", "notationStyles": ["plain", "en", "si-en"], "scripts": {}, "minValue": "((15-2*{c1})*(2*{r1}-{a1}*{r2})+(3*{a1}-8)*(5*{r2}-2*{r3}))/((4-{a1}*{b1})*(15-2*{c1})-(5*{b1}-12)*(8-3*{a1}))", "precisionMessage": "You have not given your answer to the correct precision.", "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": 0, "precision": "3", "showCorrectAnswer": true, "mustBeReducedPC": 0, "allowFractions": false, "strictPrecision": false, "showFeedbackIcon": true, "correctAnswerFraction": false, "variableReplacements": [], "maxValue": "((15-2*{c1})*(2*{r1}-{a1}*{r2})+(3*{a1}-8)*(5*{r2}-2*{r3}))/((4-{a1}*{b1})*(15-2*{c1})-(5*{b1}-12)*(8-3*{a1}))", "mustBeReduced": false, "showPrecisionHint": true, "marks": 1, "precisionType": "dp", "correctAnswerStyle": "plain"}, {"type": "numberentry", "notationStyles": ["plain", "en", "si-en"], "scripts": {}, "minValue": "((12-5*{b1})*(2*{r1}-{a1}*{r2})+(4-{b1}*{a1})*(5*{r2}-2*{r3}))/((4-{a1}*{b1})*(15-2*{c1})-(5*{b1}-12)*(8-3*{a1}))", "precisionMessage": "You have not given your answer to the correct precision.", "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": 0, "precision": "3", "showCorrectAnswer": true, "mustBeReducedPC": 0, "allowFractions": false, "strictPrecision": false, "showFeedbackIcon": true, "correctAnswerFraction": false, "variableReplacements": [], "maxValue": "((12-5*{b1})*(2*{r1}-{a1}*{r2})+(4-{b1}*{a1})*(5*{r2}-2*{r3}))/((4-{a1}*{b1})*(15-2*{c1})-(5*{b1}-12)*(8-3*{a1}))", "mustBeReduced": false, "showPrecisionHint": true, "marks": 1, "precisionType": "dp", "correctAnswerStyle": "plain"}], "marks": 0, "variableReplacementStrategy": "originalfirst", "variableReplacements": []}], "functions": {}, "advice": "(i) \\(\\var{a1}x+2y+4z=\\var{r1}\\)
\n(ii) \\(2x+\\var{b1}y+3z=\\var{r2}\\)
\n(iii) \\(5x+6y+\\var{c1}z=\\var{r3}\\)
\nFirst reduce the three equations in three unknowns to a two equations in two unknowns problem by eliminating one of the variables.
\nWe can eliminate \\(x\\) using equations (i) and (ii)
\n2*(i) \\(\\simplify{2*{a1}}x+4y+8z=\\simplify{2*{r1}}\\)
\n\\(\\var{a1}\\)*(ii) \\(\\simplify{2*{a1}}x+\\simplify{{a1}*{b1}}y+\\simplify{3*{a1}}z=\\simplify{{a1}*{r2}}\\)
\nSubtracting gives us a new equation
\n(iv) \\(\\simplify{(4-{a1}{b1})y+(8-3*{a1})z}=\\simplify{2*{r1}-{a1}*{r2}}\\)
\nWe can also eliminate \\(x\\) using equations (ii) and (iii)
\n5*(ii) \\(10x +\\simplify{5*{b1}}y+15z=\\simplify{5*{r2}}\\)
\n2*(iii) \\(10x+12y+\\simplify{2*{c1}}z=\\simplify{2*{r3}}\\)
\nSubtracting gives us another new equation
\n(v) \\(\\simplify{(5*{b1}-12)y+(15-2*{c1})z}=\\simplify{5*{r2}-2*{r3}}\\)
\nWe could then eliminate the \\(y\\) from these two new equations
\n\\(\\simplify{5*{b1}-12}\\)*(iv) \\(\\simplify{(5*{b1}-12)*(4-{a1}{b1})y+(5*{b1}-12)*(8-3*{a1})z}=\\simplify{(5*{b1}-12)*(2*{r1}-{a1}*{r2})}\\)
\n\\(\\simplify{4-{a1}{b1}}\\)*(v) \\(\\simplify{(4-{a1}{b1})*(5*{b1}-12)y+(4-{a1}{b1})*(15-2*{c1})z}=\\simplify{(4-{a1}{b1})*(5*{r2}-2*{r3})}\\)
\nSubtracting gives us
\n\\(\\simplify{(5*{b1}-12)*(8-3*{a1})-(4-{a1}{b1})*(15-2*{c1})}z=\\simplify{(5*{b1}-12)*(2*{r1}-{a1}*{r2})-(4-{a1}{b1})*(5*{r2}-2*{r3})}\\)
\nThus
\n\\(z=\\frac{\\simplify{(5*{b1}-12)*(2*{r1}-{a1}*{r2})-(4-{a1}{b1})*(5*{r2}-2*{r3})}}{\\simplify{(5*{b1}-12)*(8-3*{a1})-(4-{a1}{b1})*(15-2*{c1})}}=\\simplify{decimal{((5*{b1}-12)*(2*{r1}-{a1}*{r2})-(4-{a1}*{b1})*(5*{r2}-2*{r3}))/( (5*{b1}-12)*(8-3*{a1})-(4-{a1}*{b1})*(15-2*{c1}))}}\\)
\nWe can now back substitute this value for \\(z\\) into equation (iv) to find the correct value for \\(y\\) and then back substitute both these values into equation (i) to calculate \\(x\\).
\n", "statement": "Solve the following system of three simultaneous linear equations:
\n\\(\\var{a1}x+2y+4z=\\var{r1}\\)
\nand
\n\\(2x+\\var{b1}y+3z=\\var{r2}\\)
\nand
\n\\(5x+6y+\\var{c1}z=\\var{r3}\\)
", "type": "question", "contributors": [{"name": "Frank Doheny", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/789/"}]}]}], "contributors": [{"name": "Frank Doheny", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/789/"}]}