// Numbas version: exam_results_page_options {"name": "Third Form 2018 Question 15 (Essay)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variablesTest": {"condition": "{a}<>{a1} and {b}<>{b1}", "maxRuns": 100}, "variables": {"a1": {"group": "Ungrouped variables", "definition": "random(1..9)", "name": "a1", "description": "", "templateType": "anything"}, "x": {"group": "Ungrouped variables", "definition": "random(-20..20)", "name": "x", "description": "", "templateType": "anything"}, "y": {"group": "Ungrouped variables", "definition": "random (-20..20 except x)", "name": "y", "description": "", "templateType": "anything"}, "b1": {"group": "Ungrouped variables", "definition": "random(1..9 except round(a1*b/a))", "name": "b1", "description": "", "templateType": "anything"}, "a": {"group": "Ungrouped variables", "definition": "random(1..9)", "name": "a", "description": "", "templateType": "anything"}, "c1": {"group": "Ungrouped variables", "definition": "a1*x+b1*y", "name": "c1", "description": "", "templateType": "anything"}, "c": {"group": "Ungrouped variables", "definition": "a*x+b*y", "name": "c", "description": "", "templateType": "anything"}, "b": {"group": "Ungrouped variables", "definition": "random(-9..9 except [0,a])", "name": "b", "description": "", "templateType": "anything"}}, "tags": [], "statement": "
\\[\\begin{eqnarray*} \\simplify{{a}x+{b}y}&=&\\var{c}\\\\\\\\\\simplify{{a1}x+{b1}y}&=&\\var{c1}\\end{eqnarray*}\\]
", "name": "Third Form 2018 Question 15 (Essay)", "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "Shows how to define variables to stop degenerate examples.
"}, "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}
Input your answer as a fraction and not a decimal.
"}}, {"answer": "{-c*a1+c1*a}/{a*b1-a1*b}", "type": "jme", "vsetRange": [0, 1], "scripts": {}, "unitTests": [], "answerSimplification": "Std", "showCorrectAnswer": true, "showPreview": true, "vsetRangePoints": 5, "showFeedbackIcon": true, "expectedVariableNames": [], "marks": 1, "variableReplacements": [], "checkVariableNames": false, "extendBaseMarkingAlgorithm": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "failureRate": 1, "notallowed": {"partialCredit": 0, "showStrings": false, "strings": ["."], "message": "Input your answer as a fraction and not as a decimal.
"}}], "scripts": {}, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "marks": 0, "variableReplacements": [], "sortAnswers": false, "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "prompt": "$x=$ [[0]]
\n$y=$ [[1]]
\nInput your answers as fractions and not as decimals.
"}], "variable_groups": [], "type": "question", "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}, {"name": "sean hunte", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3167/"}]}]}], "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}, {"name": "sean hunte", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3167/"}]}