// 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": [{"rulesets": {}, "metadata": {"description": "
Solve a system of three simultaneous linear equations
", "licence": "Creative Commons Attribution 4.0 International"}, "variable_groups": [], "extensions": [], "name": "Solve a system of three simultaneous linear equations", "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}\\)
", "preamble": {"css": "", "js": ""}, "ungrouped_variables": ["a1", "b1", "c1", "r1", "r2", "r3"], "variablesTest": {"condition": "", "maxRuns": 100}, "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", "tags": [], "variables": {"b1": {"templateType": "randrange", "description": "", "definition": "random(2..10#1)", "group": "Ungrouped variables", "name": "b1"}, "r1": {"templateType": "randrange", "description": "", "definition": "random(20..42#1)", "group": "Ungrouped variables", "name": "r1"}, "a1": {"templateType": "randrange", "description": "", "definition": "random(2..8#1)", "group": "Ungrouped variables", "name": "a1"}, "c1": {"templateType": "randrange", "description": "", "definition": "random(3..12#1)", "group": "Ungrouped variables", "name": "c1"}, "r3": {"templateType": "randrange", "description": "", "definition": "random(30..60#1)", "group": "Ungrouped variables", "name": "r3"}, "r2": {"templateType": "randrange", "description": "", "definition": "random(18..50#1)", "group": "Ungrouped variables", "name": "r2"}}, "type": "question", "parts": [{"marks": 0, "variableReplacementStrategy": "originalfirst", "scripts": {}, "variableReplacements": [], "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]]
", "gaps": [{"marks": 1, "precisionPartialCredit": 0, "correctAnswerFraction": false, "scripts": {}, "mustBeReduced": false, "precisionType": "dp", "minValue": "((18-{b1}*{c1})*(3*{r1}-{r3})+({c1}-12)*(6*{r2}-{b1}*{r3}))/((3*{a1}-5)*(18-{b1}*{c1})-(12-5*{b1})*(12-{c1}))", "showPrecisionHint": true, "showCorrectAnswer": true, "strictPrecision": false, "variableReplacementStrategy": "originalfirst", "precision": "3", "mustBeReducedPC": 0, "allowFractions": false, "variableReplacements": [], "precisionMessage": "You have not given your answer to the correct precision.", "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "showFeedbackIcon": true, "type": "numberentry", "maxValue": "((18-{b1}*{c1})*(3*{r1}-{r3})+({c1}-12)*(6*{r2}-{b1}*{r3}))/((3*{a1}-5)*(18-{b1}*{c1})-(12-5*{b1})*(12-{c1}))"}, {"marks": 1, "precisionPartialCredit": 0, "correctAnswerFraction": false, "scripts": {}, "mustBeReduced": false, "precisionType": "dp", "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}))", "showPrecisionHint": true, "showCorrectAnswer": true, "strictPrecision": false, "variableReplacementStrategy": "originalfirst", "precision": "3", "mustBeReducedPC": 0, "allowFractions": false, "variableReplacements": [], "precisionMessage": "You have not given your answer to the correct precision.", "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "showFeedbackIcon": true, "type": "numberentry", "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}))"}, {"marks": 1, "precisionPartialCredit": 0, "correctAnswerFraction": false, "scripts": {}, "mustBeReduced": false, "precisionType": "dp", "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}))", "showPrecisionHint": true, "showCorrectAnswer": true, "strictPrecision": false, "variableReplacementStrategy": "originalfirst", "precision": "3", "mustBeReducedPC": 0, "allowFractions": false, "variableReplacements": [], "precisionMessage": "You have not given your answer to the correct precision.", "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "showFeedbackIcon": true, "type": "numberentry", "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}))"}], "showFeedbackIcon": true, "type": "gapfill", "showCorrectAnswer": true}], "contributors": [{"name": "Frank Doheny", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/789/"}, {"name": "Thomas Waters", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3649/"}]}]}], "contributors": [{"name": "Frank Doheny", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/789/"}, {"name": "Thomas Waters", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3649/"}]}