// Numbas version: exam_results_page_options {"name": "Algebra VIII: solving Linear equations (rearrange & substitute)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["a", "b", "ans1", "ans2", "ans3", "yCoef", "n1", "n2", "n3", "n4", "n5"], "name": "Algebra VIII: solving Linear equations (rearrange & substitute)", "tags": [], "advice": "

We are going to solve for $x$ first. To do this, we need to eliminate $y$ from the equations.

\n

We start by rearranging equation (1) like so:

\n

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

\n

$\\simplify{{n3}*x + {n4}/{n2}({ans1}-{n1}*x) = {ans2}}$

\n

$\\simplify{({n3}-{n1}*{n4}/{n2})*x + {n4}*{ans1}/{n2} = {ans2}}$

\n

$\\simplify{x=({n4}*{ans1}-{n2}*{ans2})/({n1}*{n4}-{n3}*{n2})}$

\n

Substitute the value of x back into equation (1) to find

\n

$\\simplify{y=({ans1}*{n3}-{n1}*{ans2})/({n2}*{n3}-{n1}*{n4})}$

\n

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

We are going to solve for $x$ first. To do this, we need to eliminate $y$ from the equations.

\n

We start by rearranging equation (1) like so:

\n

$y = $[[0]]       (3)

\n

\n

\n

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "type": "jme", "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "answersimplification": "all", "scripts": {}, "answer": "1/{n2}*({ans1}-{n1}*x)", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "

Substitute equation (3) into equation (2) to give:

\n

[[0]]$\\simplify[all,fractionnumbers]{x  = {n5}}$

\n

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

Solve this linear equation to give  

\n

$x = $[[0]]

\n

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

Substitute the value of x back into equation (1) to find

\n

$y = $[[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "type": "jme", "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "answersimplification": "all", "scripts": {}, "answer": "({ans1}*{n3}-{n1}*{ans2})/({n2}*{n3}-{n1}*{n4})", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": [], "statement": "

Solve the pair of simulatenous equations by working through parts a) to d)

\n

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

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"a": {"definition": "random(-10..10 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "b": {"definition": "random(-10..10 except 0 except a)", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "ans1": {"definition": "{n1}*{a} + {n2}*{b}", "templateType": "anything", "group": "Ungrouped variables", "name": "ans1", "description": ""}, "ans2": {"definition": "{n3}*{a}+{n4}*{b}", "templateType": "anything", "group": "Ungrouped variables", "name": "ans2", "description": ""}, "ans3": {"definition": "{ans1}*{n3} - {ans2}*{n1}", "templateType": "anything", "group": "Ungrouped variables", "name": "ans3", "description": ""}, "yCoef": {"definition": "{n3}*{n2} - {n1}*{n4}", "templateType": "anything", "group": "Ungrouped variables", "name": "yCoef", "description": ""}, "n1": {"definition": "random(-10..10 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "n1", "description": ""}, "n2": {"definition": "random(-10..10 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "n2", "description": ""}, "n3": {"definition": "random(-10..10 except 0 except n1)", "templateType": "anything", "group": "Ungrouped variables", "name": "n3", "description": ""}, "n4": {"definition": "random(-10..10 except 0 except n2)", "templateType": "anything", "group": "Ungrouped variables", "name": "n4", "description": ""}, "n5": {"definition": "{ans2}- {n4}*{ans1}/{n2}", "templateType": "anything", "group": "Ungrouped variables", "name": "n5", "description": ""}}, "metadata": {"description": "

Straightforward solving linear equations question.

\n

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Nasir Firoz Khan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/909/"}]}]}], "contributors": [{"name": "Nasir Firoz Khan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/909/"}]}