// Numbas version: exam_results_page_options {"name": "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": [{"name": "linear equations in 2 variables", "tags": [], "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}

\n

Next, subtract the second equation from the first to get

\n

\\[ \\simplify[std]{{a*b1-a1*b}x} = \\var{c*b1-c1*b} \\]

\n

So $x = \\displaystyle \\simplify[std]{{(c*b1-c1*b)/(a*b1-a1*b)}}$.

\n

Substitute 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}

", "metadata": {"description": "", "licence": "Creative Commons Attribution 4.0 International"}, "functions": {}, "ungrouped_variables": ["a", "c", "b", "a1", "b1", "c1"], "variable_groups": [], "extensions": [], "type": "question", "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}

", "variablesTest": {"condition": "", "maxRuns": 100}, "rulesets": {"std": ["All", "fractionnumbers"]}, "parts": [{"prompt": "

Solve to find the values of $x$ and $y$. 

\n

$x=$ [[0]]

\n

$y=$ [[1]]

\n

", "type": "gapfill", "marks": 0, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "gaps": [{"maxValue": "{b1*c-b*c1}/{a*b1-a1*b}+0.01", "marks": 1, "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": true, "variableReplacements": [], "mustBeReduced": false, "mustBeReducedPC": 0, "type": "numberentry", "correctAnswerStyle": "plain", "showCorrectAnswer": true, "allowFractions": true, "minValue": "{b1*c-b*c1}/{a*b1-a1*b}-0.01", "showFeedbackIcon": true, "scripts": {}, "notationStyles": ["plain", "en", "si-en"]}, {"maxValue": "{-c*a1+c1*a}/{a*b1-a1*b}+0.01", "marks": 1, "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": true, "variableReplacements": [], "mustBeReduced": false, "mustBeReducedPC": 0, "type": "numberentry", "correctAnswerStyle": "plain", "showCorrectAnswer": true, "allowFractions": true, "minValue": "{-c*a1+c1*a}/{a*b1-a1*b}-0.01", "showFeedbackIcon": true, "scripts": {}, "notationStyles": ["plain", "en", "si-en"]}], "showFeedbackIcon": true, "variableReplacements": [], "scripts": {}}], "variables": {"b1": {"definition": "random(1..9 except round(a1*b/a))", "description": "", "templateType": "anything", "name": "b1", "group": "Ungrouped variables"}, "c1": {"definition": "random(1..5)", "description": "", "templateType": "anything", "name": "c1", "group": "Ungrouped variables"}, "a1": {"definition": "random(1..9)", "description": "", "templateType": "anything", "name": "a1", "group": "Ungrouped variables"}, "a": {"definition": "random(1..9)", "description": "", "templateType": "anything", "name": "a", "group": "Ungrouped variables"}, "b": {"definition": "random(-9..9 except [0,a])", "description": "", "templateType": "anything", "name": "b", "group": "Ungrouped variables"}, "c": {"definition": "random(1..9)", "description": "", "templateType": "anything", "name": "c", "group": "Ungrouped variables"}}, "preamble": {"css": "", "js": ""}, "contributors": [{"name": "Vicky Hall", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/659/"}, {"name": "Thomas Waters", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3649/"}]}]}], "contributors": [{"name": "Vicky Hall", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/659/"}, {"name": "Thomas Waters", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3649/"}]}