// Numbas version: exam_results_page_options {"name": "Systems of linear equations in 2 variables", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"statement": "
Consider the following system of equations:
\n\\begin{align}
\\simplify{{a}x+{b}y}&=\\var{c}\\text{,}\\\\
\\simplify{{a1}x+{b1}y}&=\\var{c1}\\text{.}
\\end{align}
Solve to find the values of $x$ and $y$.
\n$x=$ [[0]]
\n$y=$ [[1]]
\n", "gaps": [{"correctAnswerStyle": "plain", "mustBeReduced": false, "variableReplacements": [], "allowFractions": true, "maxValue": "{b1*c-b*c1}/{a*b1-a1*b}+0.01", "notationStyles": ["plain", "en", "si-en"], "minValue": "{b1*c-b*c1}/{a*b1-a1*b}-0.01", "marks": 1, "scripts": {}, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "type": "numberentry", "mustBeReducedPC": 0, "showFeedbackIcon": true, "correctAnswerFraction": true}, {"correctAnswerStyle": "plain", "mustBeReduced": false, "variableReplacements": [], "allowFractions": true, "maxValue": "{-c*a1+c1*a}/{a*b1-a1*b}+0.01", "notationStyles": ["plain", "en", "si-en"], "minValue": "{-c*a1+c1*a}/{a*b1-a1*b}-0.01", "marks": 1, "scripts": {}, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "type": "numberentry", "mustBeReducedPC": 0, "showFeedbackIcon": true, "correctAnswerFraction": true}], "type": "gapfill", "showFeedbackIcon": true}], "name": "Systems of linear equations in 2 variables", "variables": {"a": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1..9)", "description": "", "name": "a"}, "b": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(-9..9 except [0,a])", "description": "", "name": "b"}, "c": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1..9)", "description": "", "name": "c"}, "b1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1..9 except round(a1*b/a))", "description": "", "name": "b1"}, "a1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1..9)", "description": "", "name": "a1"}, "c1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1..5)", "description": "", "name": "c1"}}, "functions": {}, "tags": [], "variable_groups": [], "rulesets": {"std": ["All", "fractionnumbers"]}, "advice": "Multiply the first equation by $\\var{b1}$ and the second equation by $\\var{b}$ so they both have the same $y$ coefficient:
\n\\begin{align}
\\simplify{{a*b1}x+{b*b1}y} &= \\var{c*b1} \\\\
\\simplify{{a1*b}x+{b1*b}y} &= \\var{c1*b}
\\end{align}
Next, subtract the second equation from the first to get
\n\\[ \\simplify[std]{{a*b1-a1*b}x} = \\var{c*b1-c1*b} \\]
\nSo $x = \\displaystyle \\simplify[std]{{(c*b1-c1*b)/(a*b1-a1*b)}}$.
\nSubstitute this value of $x$ into the first equation and rearrange to obtain $y$:
\n\\begin{align}
\\simplify[std]{{a}*{(c*b1-c1*b)/(a*b1-a1*b)} + {b}y} &= \\var{c} \\\\
\\simplify[std]{{b}y} &= \\simplify[std]{{c}-{a*(c*b1-c1*b)/(a*b1-a1*b)}} \\\\
y &= \\simplify[std]{{(c-a*(c*b1-c1*b)/(a*b1-a1*b))/b}}
\\end{align}