// Numbas version: exam_results_page_options {"name": "Simultaneous Equations : Quadratics 3", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Simultaneous Equations : Quadratics 3", "tags": [], "metadata": {"description": "

Solving a pair of simultaneous equations of the form $a_1xy=c_1$ and $a_2x+b_2y=c_2$ by forming a quadratic equation.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Solve the following simultaneous equations:

\n

\\[ \\begin{split} \\simplify{{a1}x*y} &\\,= \\var{c1} \\\\ \\simplify{{a2}x+{b2}y} &\\,= \\var{c2} \\end{split} \\]

\n

Give your answers correct to 2 decimal places.

", "advice": "

To solve a pair of simultaneous equations of this type we want to rearrange the first equation such that $y$ is the subject, which we can then substitute into the second equation. This can then be rearranged, resulting in a quadratic equation in terms of $x$ only.

\n

For the equations 

\n

\\[ \\begin{split} \\simplify{{a1}x*y} &\\,= \\var{c1} \\qquad\\qquad &(1)\\\\ \\simplify{{a2}x+{b2}y} &\\,= \\var{c2} \\qquad\\qquad &(2) \\end{split} \\]

\n

we want to rearrange equation (1) to make $y$  the subject:

\n

\\[ y = \\simplify{{c1}/({a1}x)}. \\qquad\\qquad (3)\\]

\n

Substituting this into equation (2):

\n

\\[ \\simplify{{a2}x+{b2}({c1}/({a1}x))} = \\var{c2}. \\]

\n

Now multiplying this equation by $\\simplify{{mult1}x}$ and rearranging:

\n

\\[ \\begin{split} \\simplify{{a2*mult1}x^2+{b2*mult1}({c1}/({a1}))} &\\,= \\var{c2*mult1}x \\\\ \\Leftrightarrow \\qquad \\simplify{{a2*mult1}x^2 - {c2*mult1}x+ {b2*mult1}({c1}/({a1}))} &\\,= 0. \\end{split} \\]

\n

Using the quadratic formula, we find two solutions for $x$:

\n

\\[ x_1 = \\var{x1dp} \\, \\text{(2 d.p.)} \\quad \\text{and} \\quad x_2=\\var{x2dp} \\, \\text{(2 d.p.)} \\]

\n

To find the corresponding $y$-values, we can plug these solutions for $x$ back into equation (3), which gives:

\n

\\[ y_1 = \\var{y1dp} \\, \\text{(2 d.p.)} \\quad \\text{and} \\quad y_2=\\var{y2dp} \\, \\text{(2 d.p.)} \\]

\n

\n

Therefore, the 2 pairs of solutions for these simultaneous equations are

\n

\\[ (x_1,y_1) = (\\var{x1dp},\\var{y1dp}) \\] and \\[ (x_2,y_2) = (\\var{x2dp},\\var{y2dp}). \\]

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a1": {"name": "a1", "group": "Ungrouped variables", "definition": "random(1..5)", "description": "", "templateType": "anything", "can_override": false}, "c1": {"name": "c1", "group": "Ungrouped variables", "definition": "random(1..5)", "description": "", "templateType": "anything", "can_override": false}, "a2": {"name": "a2", "group": "Ungrouped variables", "definition": "random(1..3)", "description": "", "templateType": "anything", "can_override": false}, "b2": {"name": "b2", "group": "Ungrouped variables", "definition": "random(-5..5 except [0,a2])", "description": "", "templateType": "anything", "can_override": false}, "c2": {"name": "c2", "group": "Ungrouped variables", "definition": "random(1..10)", "description": "", "templateType": "anything", "can_override": false}, "solx1": {"name": "solx1", "group": "Ungrouped variables", "definition": "(c2*a1-sqrt((c2^2*a1^2)-(4*a2*a1*b2*c1)))/(2*a2*a1)", "description": "", "templateType": "anything", "can_override": false}, "solx2": {"name": "solx2", "group": "Ungrouped variables", "definition": "((c2*a1+sqrt(c2^2*a1^2-4*a2*a1*b2*c1))/(2*a2*a1))", "description": "", "templateType": "anything", "can_override": false}, "soly1": {"name": "soly1", "group": "Ungrouped variables", "definition": "c1/(a1*((c2*a1-sqrt((c2^2*a1^2)-(4*a2*a1*b2*c1)))/(2*a2*a1)))", "description": "", "templateType": "anything", "can_override": false}, "soly2": {"name": "soly2", "group": "Ungrouped variables", "definition": "c1/(a1*solx2)", "description": "", "templateType": "anything", "can_override": false}, "denom1": {"name": "denom1", "group": "Ungrouped variables", "definition": "abs(b2*c1/a1)", "description": "", "templateType": "anything", "can_override": false}, "denom2": {"name": "denom2", "group": "Ungrouped variables", "definition": "abs(2*b2*c1/a1)", "description": "", "templateType": "anything", "can_override": false}, "denom3": {"name": "denom3", "group": "Ungrouped variables", "definition": "abs(3*b2*c1/a1)", "description": "", "templateType": "anything", "can_override": false}, "denom4": {"name": "denom4", "group": "Ungrouped variables", "definition": "abs(4*b2*c1/a1)", "description": "", "templateType": "anything", "can_override": false}, "denom5": {"name": "denom5", "group": "Ungrouped variables", "definition": "abs(5*b2*c1/a1)", "description": "", "templateType": "anything", "can_override": false}, "mult1": {"name": "mult1", "group": "Ungrouped variables", "definition": "if(denom1=round(denom1),1,{mult2})", "description": "", "templateType": "anything", "can_override": false}, "mult2": {"name": "mult2", "group": "Ungrouped variables", "definition": "if(denom2=round(denom2),2,{mult3})", "description": "", "templateType": "anything", "can_override": false}, "mult3": {"name": "mult3", "group": "Ungrouped variables", "definition": "if(denom3=round(denom3),3,{mult4})", "description": "", "templateType": "anything", "can_override": false}, "mult4": {"name": "mult4", "group": "Ungrouped variables", "definition": "if(denom4=round(denom4),4,5)", "description": "", "templateType": "anything", "can_override": false}, "x1dp": {"name": "x1dp", "group": "Ungrouped variables", "definition": "precround(solx1,2)", "description": "", "templateType": "anything", "can_override": false}, "x2dp": {"name": "x2dp", "group": "Ungrouped variables", "definition": "precround(solx2,2)", "description": "", "templateType": "anything", "can_override": false}, "y1dp": {"name": "y1dp", "group": "Ungrouped variables", "definition": "precround(soly1,2)", "description": "", "templateType": "anything", "can_override": false}, "y2dp": {"name": "y2dp", "group": "Ungrouped variables", "definition": "precround(soly2,2)", "description": "", "templateType": "anything", "can_override": false}, "solutions1": {"name": "solutions1", "group": "Ungrouped variables", "definition": "matrix([x1dp,y1dp])", "description": "", "templateType": "anything", "can_override": false}, "solutions2": {"name": "solutions2", "group": "Ungrouped variables", "definition": "matrix([x2dp,y2dp])", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "c2^2*a1^2>4*a2*a1*b2*c1 ", "maxRuns": 100}, "ungrouped_variables": ["a1", "c1", "a2", "b2", "c2", "solx1", "solx2", "soly1", "soly2", "denom1", "denom2", "denom3", "denom4", "denom5", "mult1", "mult2", "mult3", "mult4", "x1dp", "x2dp", "y1dp", "y2dp", "solutions1", "solutions2"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

$(x_1,y_1)=$[[0]]

\n

$(x_2,y_2)=$[[1]]

", "gaps": [{"type": "matrix", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "alternatives": [{"type": "matrix", "useCustomName": false, "customName": "", "marks": "1", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "alternativeFeedbackMessage": "", "useAlternativeFeedback": false, "correctAnswer": "solutions2", "correctAnswerFractions": false, "numRows": 1, "numColumns": "2", "allowResize": false, "tolerance": 0, "markPerCell": true, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": ""}], "correctAnswer": "solutions1", "correctAnswerFractions": false, "numRows": 1, "numColumns": "2", "allowResize": false, "tolerance": 0, "markPerCell": true, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": ""}, {"type": "matrix", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "alternatives": [{"type": "matrix", "useCustomName": false, "customName": "", "marks": "1", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "alternativeFeedbackMessage": "", "useAlternativeFeedback": false, "correctAnswer": "solutions1", "correctAnswerFractions": false, "numRows": 1, "numColumns": "2", "allowResize": false, "tolerance": 0, "markPerCell": true, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": ""}], "correctAnswer": "solutions2", "correctAnswerFractions": false, "numRows": 1, "numColumns": "2", "allowResize": false, "tolerance": 0, "markPerCell": true, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": ""}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Ruth Hand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3228/"}, {"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}]}]}], "contributors": [{"name": "Ruth Hand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3228/"}, {"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}]}