// Numbas version: exam_results_page_options {"name": "Ann's copy of Solving two linear equations", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"statement": "

Solve the following system of simultaneous equations:

\n

\\(\\var{a}x+\\var{b}y=\\var{r1}\\)

\n

and

\n

\\(\\var{c}x+\\var{d}y=\\var{r2}\\)

", "variable_groups": [], "variablesTest": {"condition": "{a}*{d}>{b}*{c}\n", "maxRuns": 100}, "rulesets": {}, "tags": [], "parts": [{"gaps": [{"correctAnswerFraction": true, "type": "numberentry", "scripts": {}, "variableReplacements": [], "marks": 1, "showCorrectAnswer": true, "correctAnswerStyle": "plain", "allowFractions": true, "maxValue": "({d}*{r1}-{b}*{r2})/({a}*{d}-{b}*{c})", "mustBeReduced": false, "mustBeReducedPC": 0, "notationStyles": ["plain", "en", "si-en"], "minValue": "({d}*{r1}-{b}*{r2})/({a}*{d}-{b}*{c})", "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst"}, {"correctAnswerFraction": true, "type": "numberentry", "scripts": {}, "variableReplacements": [], "marks": 1, "showCorrectAnswer": true, "correctAnswerStyle": "plain", "allowFractions": true, "maxValue": "(-{c}*{r1}+{a}*{r2})/({a}*{d}-{b}*{c})", "mustBeReduced": false, "mustBeReducedPC": 0, "notationStyles": ["plain", "en", "si-en"], "minValue": "(-{c}*{r1}+{a}*{r2})/({a}*{d}-{b}*{c})", "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst"}], "type": "gapfill", "prompt": "

Input the value for \\(x\\) as an exact fraction.

\n

\\(x = \\) [[0]]

\n

Input the value for \\(y\\) as an exact fraction.

\n

\\(y = \\) [[1]]

", "variableReplacements": [], "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacementStrategy": "originalfirst"}], "metadata": {"description": "

Solving two simultaneous linear equations

", "licence": "Creative Commons Attribution 4.0 International"}, "name": "Ann's copy of Solving two linear equations", "ungrouped_variables": ["a", "b", "c", "d", "r1", "r2"], "preamble": {"css": "", "js": ""}, "functions": {}, "advice": "

equation (i)    \\(\\var{a}x+\\var{b}y=\\var{r1}\\)

\n

equation (ii)    \\(\\var{c}x+\\var{d}y=\\var{r2}\\)

\n

If we decide to eliminate the \\(x\\) variables we need to have the same number of \\(x\\) in both equations

\n

\\(\\var{c}\\)*equation (i)      \\(\\simplify{{c}*{a}}x+\\simplify{{c}*{b}}y=\\simplify{{c}*{r1}}\\)

\n

\\(\\var{a}\\)*equation (ii)     \\(\\simplify{{c}*{a}}x+\\simplify{{d}*{a}}y=\\simplify{{a}*{r2}}\\)

\n

Subtracting gives:

\n

                      \\(\\simplify{{c}*{b}-{d}*{a}}y=\\simplify{{c}*{r1}-{a}*{r2}}\\)

\n

                       \\(y=\\simplify{({c}*{r1}-{a}*{r2})/({c}*{b}-{d}*{a})}\\)

\n

Substituting this solution for \\(y\\) into equation (i) gives

\n

       \\(\\var{a}x+\\var{b}*(\\simplify{({c}*{r1}-{a}*{r2})/({c}*{b}-{d}*{a})})=\\var{r1}\\)

\n

        \\(\\var{a}x=\\var{r1}-\\var{b}*(\\simplify{({c}*{r1}-{a}*{r2})/({c}*{b}-{d}*{a})})\\)

\n

        \\(\\var{a}x=\\simplify{{r1}-{b}*({c}*{r1}-{a}*{r2})/({c}*{b}-{d}*{a})}\\)

\n

\n

        \\(x=\\simplify{({r1}-{b}*({c}*{r1}-{a}*{r2})/({c}*{b}-{d}*{a}))/{a}}\\)

\n

", "variables": {"a": {"description": "", "name": "a", "group": "Ungrouped variables", "templateType": "randrange", "definition": "random(1..10#1)"}, "r1": {"description": "", "name": "r1", "group": "Ungrouped variables", "templateType": "randrange", "definition": "random(10..40#1)"}, "b": {"description": "", "name": "b", "group": "Ungrouped variables", "templateType": "randrange", "definition": "random(2..12#1)"}, "d": {"description": "", "name": "d", "group": "Ungrouped variables", "templateType": "randrange", "definition": "random(2..12#1)"}, "c": {"description": "", "name": "c", "group": "Ungrouped variables", "templateType": "randrange", "definition": "random(2..11#1)"}, "r2": {"description": "", "name": "r2", "group": "Ungrouped variables", "templateType": "randrange", "definition": "random(16..50#1)"}}, "extensions": [], "type": "question", "contributors": [{"name": "Ann Smith", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1812/"}]}]}], "contributors": [{"name": "Ann Smith", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1812/"}]}