// Numbas version: exam_results_page_options {"name": "Algebra VIII: solving simultaneous equations (by elimination)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"preamble": {"css": "", "js": ""}, "variables": {"yCoef": {"templateType": "anything", "definition": "{n3}*{n2} - {n1}*{n4}", "name": "yCoef", "group": "Ungrouped variables", "description": ""}, "ans1": {"templateType": "anything", "definition": "{n1}*{a} + {n2}*{b}", "name": "ans1", "group": "Ungrouped variables", "description": ""}, "ans2": {"templateType": "anything", "definition": "{n3}*{a}+{n4}*{b}", "name": "ans2", "group": "Ungrouped variables", "description": ""}, "n1": {"templateType": "anything", "definition": "random(-10..10 except 0)", "name": "n1", "group": "Ungrouped variables", "description": ""}, "n3": {"templateType": "anything", "definition": "random(-10..10 except 0 except n1)", "name": "n3", "group": "Ungrouped variables", "description": ""}, "n4": {"templateType": "anything", "definition": "random(-10..10 except 0 except n2)", "name": "n4", "group": "Ungrouped variables", "description": ""}, "a": {"templateType": "anything", "definition": "random(-10..10 except 0)", "name": "a", "group": "Ungrouped variables", "description": ""}, "ans3": {"templateType": "anything", "definition": "{ans1}*{n3} - {ans2}*{n1}", "name": "ans3", "group": "Ungrouped variables", "description": ""}, "b": {"templateType": "anything", "definition": "random(-10..10 except 0 except a)", "name": "b", "group": "Ungrouped variables", "description": ""}, "n2": {"templateType": "anything", "definition": "random(-10..10 except 0)", "name": "n2", "group": "Ungrouped variables", "description": ""}}, "advice": "

Solve the pair of equations

\n

\\[\\begin{eqnarray} \\simplify{{n1}*x + {n2}*y -{ans1}} = 0 &&&&&&&(1)\\\\ \\simplify{{n3}*x + {n4}*y -{ans2}} = 0 &&&&&&&(2)\\end{eqnarray}\\]

\n

\n

We are going to solve for $y$ first. To do this, we need to eliminate $x$ from the equations. The quickest way to do this is to multiply the first equation by the co-efficient of $x$ in the second equation (here $\\var{n3}$), and multiply the second equation by the co-efficient of $x$ in the first equation (here $\\var{n1}$). We then get the equations:

\n

\n

$\\simplify{{n3}*{n1}*x + {n3}*{n2}*y +{ans1}*(-1)*{n3}} = 0$

\n

 $\\simplify{{n1}*{n3}*x + {n1}*{n4}*y +{ans2}*(-1)*{n1}} = 0$

\n

\n

We then subtract one new equation from the other to get:

\n

$\\simplify{{yCoef}y - {ans3} = 0}$

\n

Now we can work out $y$

\n

$y = \\var{b}$ 

\n

and substitute this value back in to any of the previous equations to get the value for $x$. 

\n

$\\simplify{{n1}*x + {n2}*{b} + (-1)*{ans1}}$ = 0

\n

which then solves to give $x = \\var{a}$.

\n

", "variable_groups": [], "rulesets": {}, "parts": [{"prompt": "

We are going to solve for $y$ first. To do this, we need to eliminate $x$ from the equations. The quickest way to do this is to multiply the first equation by the co-efficient of $x$ in the second equation (here $\\var{n3}$), and multiply the second equation by the co-efficient of $x$ in the first equation (here $\\var{n1}$). We then get the equations:

\n

\n

[[0]]$x$ + [[1]]$\\simplify{y +{ans1}*(-1)*{n3}} = 0$

\n

 [[2]]$x$ + [[3]]$\\simplify{y +{ans2}*(-1)*{n1}} = 0$

\n

", "marks": 0, "scripts": {}, "type": "gapfill", "variableReplacements": [], "showCorrectAnswer": true, "gaps": [{"expectedvariablenames": [], "checkingaccuracy": 0.001, "checkvariablenames": false, "variableReplacementStrategy": "originalfirst", "marks": 1, "variableReplacements": [], "scripts": {}, "vsetrange": [0, 1], "answer": "{n3}*{n1}", "type": "jme", "vsetrangepoints": 5, "showCorrectAnswer": true, "showpreview": true, "checkingtype": "absdiff"}, {"expectedvariablenames": [], "checkingaccuracy": 0.001, "checkvariablenames": false, "variableReplacementStrategy": "originalfirst", "marks": 1, "variableReplacements": [], "scripts": {}, "vsetrange": [0, 1], "answer": "{n3}*{n2}", "type": "jme", "vsetrangepoints": 5, "showCorrectAnswer": true, "showpreview": true, "checkingtype": "absdiff"}, {"expectedvariablenames": [], "checkingaccuracy": 0.001, "checkvariablenames": false, "variableReplacementStrategy": "originalfirst", "marks": 1, "variableReplacements": [], "scripts": {}, "vsetrange": [0, 1], "answer": "{n1}*{n3}", "type": "jme", "vsetrangepoints": 5, "showCorrectAnswer": false, "showpreview": true, "checkingtype": "absdiff"}, {"expectedvariablenames": [], "checkingaccuracy": 0.001, "checkvariablenames": false, "variableReplacementStrategy": "originalfirst", "marks": 1, "variableReplacements": [], "scripts": {}, "vsetrange": [0, 1], "answer": "{n1}*{n4}", "type": "jme", "vsetrangepoints": 5, "showCorrectAnswer": true, "showpreview": true, "checkingtype": "absdiff"}], "variableReplacementStrategy": "originalfirst"}, {"prompt": "

We then subtract one new equation from the other to get:

\n

[[0]]$\\simplify{y - {ans3} = 0}$

\n

", "marks": 0, "scripts": {}, "type": "gapfill", "variableReplacements": [], "showCorrectAnswer": true, "gaps": [{"expectedvariablenames": [], "checkingaccuracy": 0.001, "checkvariablenames": false, "variableReplacementStrategy": "originalfirst", "marks": 1, "variableReplacements": [], "scripts": {}, "vsetrange": [0, 1], "answer": "{yCoef}", "type": "jme", "vsetrangepoints": 5, "showCorrectAnswer": true, "showpreview": true, "checkingtype": "absdiff"}], "variableReplacementStrategy": "originalfirst"}, {"prompt": "

Now we can work out $y$

\n

$y =$[[0]]

\n

", "marks": 0, "scripts": {}, "type": "gapfill", "variableReplacements": [], "showCorrectAnswer": true, "gaps": [{"expectedvariablenames": [], "checkingaccuracy": 0.001, "checkvariablenames": false, "variableReplacementStrategy": "originalfirst", "marks": 1, "variableReplacements": [], "scripts": {}, "vsetrange": [0, 1], "answer": "{b}", "type": "jme", "vsetrangepoints": 5, "showCorrectAnswer": true, "showpreview": true, "checkingtype": "absdiff"}], "variableReplacementStrategy": "originalfirst"}, {"prompt": "

and substitute this value back in to any of the previous equations to get the value for $x$. 

\n

$\\simplify{{n1}*x}$ + [[0]] $+\\simplify{(-1)*{ans1}}$ = 0

\n

", "marks": 0, "scripts": {}, "type": "gapfill", "variableReplacements": [], "showCorrectAnswer": true, "gaps": [{"expectedvariablenames": [], "checkingaccuracy": 0.001, "checkvariablenames": false, "variableReplacementStrategy": "originalfirst", "marks": 1, "variableReplacements": [], "scripts": {}, "vsetrange": [0, 1], "answer": "{n2}*{b}", "type": "jme", "vsetrangepoints": 5, "showCorrectAnswer": true, "showpreview": true, "checkingtype": "absdiff"}], "variableReplacementStrategy": "originalfirst"}, {"prompt": "

which then solves to give $x = $[[0]].

", "marks": 0, "scripts": {}, "type": "gapfill", "variableReplacements": [], "showCorrectAnswer": true, "gaps": [{"expectedvariablenames": [], "checkingaccuracy": 0.001, "checkvariablenames": false, "variableReplacementStrategy": "originalfirst", "marks": 1, "variableReplacements": [], "scripts": {}, "vsetrange": [0, 1], "answer": "{a}", "type": "jme", "vsetrangepoints": 5, "showCorrectAnswer": true, "showpreview": true, "checkingtype": "absdiff"}], "variableReplacementStrategy": "originalfirst"}], "tags": [], "statement": "

Solve the pair of simultaneous equations by working through parts a) to e)

\n

\\[\\begin{eqnarray} \\simplify{{n1}*x + {n2}*y -{ans1}} = 0 &&&&&&&(1)\\\\ \\simplify{{n3}*x + {n4}*y -{ans2}} = 0 &&&&&&&(2)\\end{eqnarray}\\]

", "variablesTest": {"condition": "", "maxRuns": 100}, "question_groups": [{"pickQuestions": 0, "name": "", "questions": [], "pickingStrategy": "all-ordered"}], "showQuestionGroupNames": false, "type": "question", "extensions": [], "ungrouped_variables": ["a", "b", "ans1", "ans2", "ans3", "yCoef", "n1", "n2", "n3", "n4"], "name": "Algebra VIII: solving simultaneous equations (by elimination)", "functions": {}, "metadata": {"description": "

Straightforward solving linear equations question.

\n

Adapted from 'Simultaneous equations by elimination 1 with parts' by Joshua Boddy.

", "licence": "Creative Commons Attribution 4.0 International"}, "contributors": [{"name": "Luke Park", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/826/"}, {"name": "heike hoffmann", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2960/"}]}]}], "contributors": [{"name": "Luke Park", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/826/"}, {"name": "heike hoffmann", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2960/"}]}