// Numbas version: finer_feedback_settings {"name": "Simultaneous Equations", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"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 = \\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}
\\[\\begin{eqnarray*} \\simplify{{a}x+{b}y}&=&\\var{c}\\\\\\\\\\simplify{{a1}x+{b1}y}&=&\\var{c1}\\end{eqnarray*}\\]
\n$x=$ [[0]]
\n$y=$ [[1]]
", "showFeedbackIcon": true, "gaps": [{"correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "allowFractions": true, "unitTests": [], "scripts": {}, "mustBeReducedPC": 0, "customMarkingAlgorithm": "", "type": "numberentry", "variableReplacements": [], "showCorrectAnswer": true, "marks": 1, "extendBaseMarkingAlgorithm": true, "maxValue": "{b1*c-b*c1}/{a*b1-a1*b}", "mustBeReduced": true, "showFeedbackIcon": true, "minValue": "{b1*c-b*c1}/{a*b1-a1*b}", "notationStyles": ["plain", "en", "si-en"], "correctAnswerFraction": true}, {"correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "allowFractions": true, "unitTests": [], "scripts": {}, "mustBeReducedPC": 0, "customMarkingAlgorithm": "", "type": "numberentry", "variableReplacements": [], "showCorrectAnswer": true, "marks": 1, "extendBaseMarkingAlgorithm": true, "maxValue": "{-c*a1+c1*a}/{a*b1-a1*b}", "mustBeReduced": true, "showFeedbackIcon": true, "minValue": "{-c*a1+c1*a}/{a*b1-a1*b}", "notationStyles": ["plain", "en", "si-en"], "correctAnswerFraction": true}]}, {"variableReplacementStrategy": "originalfirst", "unitTests": [], "scripts": {}, "customMarkingAlgorithm": "", "type": "gapfill", "sortAnswers": false, "variableReplacements": [], "showCorrectAnswer": true, "marks": 0, "extendBaseMarkingAlgorithm": true, "prompt": "\\[\\begin{eqnarray*} \\simplify{{a2}x+{b2}y}&=&\\var{c2}\\\\\\\\\\simplify{{a3}x+{b3}y}&=&\\var{c3}\\end{eqnarray*}\\]
\n$x=$ [[0]]
\n$y=$ [[1]]
", "showFeedbackIcon": true, "gaps": [{"correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "allowFractions": true, "unitTests": [], "scripts": {}, "mustBeReducedPC": 0, "customMarkingAlgorithm": "", "type": "numberentry", "variableReplacements": [], "showCorrectAnswer": true, "marks": 1, "extendBaseMarkingAlgorithm": true, "maxValue": "{b3*c2-b2*c3}/{a2*b3-a3*b2}", "mustBeReduced": true, "showFeedbackIcon": true, "minValue": "{b3*c2-b2*c3}/{a2*b3-a3*b2}", "notationStyles": ["plain", "en", "si-en"], "correctAnswerFraction": true}, {"correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "allowFractions": true, "unitTests": [], "scripts": {}, "mustBeReducedPC": 0, "customMarkingAlgorithm": "", "type": "numberentry", "variableReplacements": [], "showCorrectAnswer": true, "marks": 1, "extendBaseMarkingAlgorithm": true, "maxValue": "{-c2*a3+c3*a2}/{a2*b3-a3*b2}", "mustBeReduced": true, "showFeedbackIcon": true, "minValue": "{-c2*a3+c3*a2}/{a2*b3-a3*b2}", "notationStyles": ["plain", "en", "si-en"], "correctAnswerFraction": true}]}], "ungrouped_variables": ["a", "c", "b", "a1", "b1", "c1", "a3", "b3", "c3", "c2", "b2", "a2"], "extensions": [], "functions": {}, "tags": [], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "Shows how to define variables to stop degenerate examples.
"}, "variables": {"c1": {"templateType": "anything", "definition": "random(1..9)", "group": "Ungrouped variables", "name": "c1", "description": ""}, "a": {"templateType": "anything", "definition": "random(1..9)", "group": "Ungrouped variables", "name": "a", "description": ""}, "c": {"templateType": "anything", "definition": "random(1..9)", "group": "Ungrouped variables", "name": "c", "description": ""}, "a3": {"templateType": "anything", "definition": "random(1..9 except[a,a1])", "group": "Ungrouped variables", "name": "a3", "description": ""}, "c3": {"templateType": "anything", "definition": "random(1..9 except c1)", "group": "Ungrouped variables", "name": "c3", "description": ""}, "c4": {"templateType": "anything", "definition": "random(1..9 except [c,c1,c2,c3])", "group": "Question 3", "name": "c4", "description": ""}, "a4": {"templateType": "anything", "definition": "random(1..9 except[a,a1,a2,a3])", "group": "Question 3", "name": "a4", "description": ""}, "c2": {"templateType": "anything", "definition": "random(1..9 except [c,c1])", "group": "Ungrouped variables", "name": "c2", "description": ""}, "b1": {"templateType": "anything", "definition": "random(1..9 except round(a1*b/a))", "group": "Ungrouped variables", "name": "b1", "description": ""}, "a5": {"templateType": "anything", "definition": "random(1..9 except[a,a1,a2,a3,a4])", "group": "Question 3", "name": "a5", "description": ""}, "b5": {"templateType": "anything", "definition": "random(1..9 except round(a5*b4/a4))", "group": "Question 3", "name": "b5", "description": ""}, "b4": {"templateType": "anything", "definition": "random(-9..9 except [0,a4])", "group": "Question 3", "name": "b4", "description": ""}, "b": {"templateType": "anything", "definition": "random(-9..9 except [0,a])", "group": "Ungrouped variables", "name": "b", "description": ""}, "a1": {"templateType": "anything", "definition": "random(1..9)", "group": "Ungrouped variables", "name": "a1", "description": ""}, "b3": {"templateType": "anything", "definition": "random(1..9 except round(a3*b2/a2))", "group": "Ungrouped variables", "name": "b3", "description": ""}, "c5": {"templateType": "anything", "definition": "random(1..9 except [c1,c3])", "group": "Question 3", "name": "c5", "description": ""}, "a2": {"templateType": "anything", "definition": "random(1..9 except [a,a1])", "group": "Ungrouped variables", "name": "a2", "description": ""}, "b2": {"templateType": "anything", "definition": "random(-9..9 except [0,a2])", "group": "Ungrouped variables", "name": "b2", "description": ""}}, "rulesets": {"std": ["All", "fractionnumbers"]}, "preamble": {"css": "", "js": ""}, "statement": "Solve the following pair of simultaneous equations. You should write your answer as a simplified fraction in the form a/b, e.g. 3/4 or 12/5.
", "type": "question", "contributors": [{"name": "Gareth Woods", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/978/"}], "resources": []}]}], "contributors": [{"name": "Gareth Woods", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/978/"}]}