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

Solving a pair of simultaneous equations of the form $a_1x+b_1y=c_1$ and $a_2 x^2+b_2y^2=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^2+{b2}y^2} &\\,= \\var{c2^2} \\end{split} \\]

\n

Give your answers to 2 decimal places where necessary.

", "advice": "

To solve a pair of simultaneous equations of this type we want to rearrange the linear equation such that it is in terms of $x$ or $y$, which we can then substitute into the equation with the quadratic terms. This will result in a quadratic equation in terms of one variable only.

\n

For the equations 

\n

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

\n

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

\n

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

\n

Substituting this into equation (2):

\n

\\[ \\begin{split}\\simplify{{a2}x^2+{b2}({c1}-{a1}x)^2} &\\,=\\var{c2^2} \\\\ \\simplify{{a2}x^2+{b2}({c1}^2-2{c1}{a1}x+{a1}^2x^2)} &\\,=\\var{c2^2} \\\\ \\simplify[!cancelTerms,unitFactor]{{a2}x^2+{b2*c1^2}-{2*b2*c1*a1}x+{b2*a1^2}x^2} &\\,=\\var{c2^2}. \\end{split} \\]

\n

Collecting similar terms:

\n

\\[ \\simplify{({a2}+{b2*a1^2})x^2-{2*b2*c1*a1}x+({b2*c1^2}-{c2^2})} =0. \\qquad\\qquad (4) \\]

\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(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "c1": {"name": "c1", "group": "Ungrouped variables", "definition": "random(1..10)", "description": "", "templateType": "anything", "can_override": false}, "a2": {"name": "a2", "group": "Ungrouped variables", "definition": "random(1..4)", "description": "", "templateType": "anything", "can_override": false}, "b2": {"name": "b2", "group": "Ungrouped variables", "definition": "random(1..5)", "description": "", "templateType": "anything", "can_override": false}, "c2": {"name": "c2", "group": "Ungrouped variables", "definition": "random(1..8)", "description": "", "templateType": "anything", "can_override": false}, "solx1": {"name": "solx1", "group": "Ungrouped variables", "definition": "((b2*c1*a1)-sqrt((b2^2*c1^2*a1^2)-(a2+b2*a1^2)*(b2*c1^2-c2^2)))/(a2+b2*a1^2)", "description": "", "templateType": "anything", "can_override": false}, "solx2": {"name": "solx2", "group": "Ungrouped variables", "definition": "((b2*c1*a1)+sqrt((b2^2*c1^2*a1^2)-(a2+b2*a1^2)*(b2*c1^2-c2^2)))/(a2+b2*a1^2)", "description": "", "templateType": "anything", "can_override": false}, "soly1": {"name": "soly1", "group": "Ungrouped variables", "definition": "c1-a1*solx1", "description": "", "templateType": "anything", "can_override": false}, "soly2": {"name": "soly2", "group": "Ungrouped variables", "definition": "c1-a1*solx2", "description": "", "templateType": "anything", "can_override": false}, "x1dp": {"name": "x1dp", "group": "Ungrouped variables", "definition": "if(solx1=precround(solx1,2),solx1,precround(solx1,2))", "description": "", "templateType": "anything", "can_override": false}, "x2dp": {"name": "x2dp", "group": "Ungrouped variables", "definition": "if(solx2=precround(solx2,2),solx2,precround(solx2,2))", "description": "", "templateType": "anything", "can_override": false}, "y1dp": {"name": "y1dp", "group": "Ungrouped variables", "definition": "if(soly1=precround(soly1,2),soly1,precround(soly1,2))", "description": "", "templateType": "anything", "can_override": false}, "y2dp": {"name": "y2dp", "group": "Ungrouped variables", "definition": "if(soly2=precround(soly2,2),soly2,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>abs(c1/a1) and (b2^2*c1^2*a1^2)>(a2+b2*a1^2)*(b2*c1^2-c2^2)", "maxRuns": 100}, "ungrouped_variables": ["a1", "c1", "a2", "b2", "c2", "solx1", "solx2", "soly1", "soly2", "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.02", "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.02", "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.02", "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/"}]}