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

Students are given 2 equations of the form y=mx+b and asked to solve them using either the substitution or the elimination method. The lines are randomised but the solution coordinates are always integers.

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

Use the {method} method to find the point of intersection of the following two lines.

\n

$y = \\var{m1}x \\var{b1sign} \\var{b1}$

\n

$y= \\var{m2}x \\var{b2sign} \\var{b2}$

", "advice": "

To use the substitution method, we set the two expressions that are equal to $y$ equal to each other.

\n

That is,

\n

$\\var{m1}x \\var{b1sign} \\var{b1} = \\var{m2}x \\var{b2sign} \\var{b2}$

\n

Then we subtract $\\var{m2}x$ from both sides:

\n

$\\var{m1}x - \\var{m2}x \\var{b1sign} \\var{b1} =   \\var{b2}$

\n

In your working it is fine to replace '$--$' with '$+$' and '$+-$' with '$-$' if they ever appear.

\n

The we subtract $\\var{b1}$ from both sides. 

\n

$\\var{m1}x -\\var{m2}x =  \\var{b2} - \\var{b1} $

\n

Now all the terms with $x$ are on one side, and all the terms without $x$ are on the other side.

\n

Factorise out the $x$ on the left hand side:

\n

$(\\var{m1} -\\var{m2})x =  \\var{b2} - \\var{b1} $

\n

Calculate $(\\var{m1} -\\var{m2})$ and $(\\var{b2} - \\var{b1})$

\n

$(\\var{m1-m2})x =  \\var{b2-b1} $

\n

Finally, divide both sides by $\\var{m1-m2}$ to get

\n

$x=\\var{(b2-b1)/(m1-m2)}$

\n

To use the elimination method, let's start by giving the equations names so we can refer to them:

\n

 $ y = \\var{m1}x + \\var{b1} \\qquad \\qquad$ (1)

\n

 $ y = \\var{m2}x + \\var{b2} \\qquad \\qquad$ (2)

\n

Let's calculate equation (1) - equation (2). This will eliminate the $y$ variable.

\n

First just write out the subtraction. Make sure to put brackets around the two parts on the right hand side.

\n

In your working it is fine to replace '$--$' with '$+$' and '$+-$' with '$-$' if they ever appear.

\n

$ y - y = (\\var{m1}x + \\var{b1}) - (\\var{m2}x + \\var{b2})$

\n

Then rearrange the right hand side:

\n

$ 0 = \\var{m1}x + \\var{b1} - \\var{m2}x - \\var{b2}$

\n

$ 0 = \\var{m1}x - \\var{m2}x + \\var{b1} - \\var{b2}$

\n

Now calculate $\\var{b1} - \\var{b2}$

\n

$ 0 = \\var{m1}x - \\var{m2}x + \\var{b1-b2}$

\n

Add $\\var{b2-b1}$ to both sides of the equation:

\n

$\\var{b2-b1} = \\var{m1}x - \\var{m2}x$

\n

Factorise the $x$ out on the right hand side.

\n

$\\var{b2-b1} = (\\var{m1} - \\var{m2})x$

\n

Calculate $  (\\var{m1} - \\var{m2})$

\n

$\\var{b2-b1} = (\\var{m1-m2})x$

\n

Divide both sides by $(\\var{m1-m2})$

\n

$\\var{(b2-b1)/(m1-m2)} = x$

\n

So $x=\\var{px}$

\n

Now substitute this value for $x$ back into one of the original equations:

\n

$y = \\var{m1} \\times \\var{px} \\var{b1sign} \\var{b1}$

\n

$y = \\var{m1*px+b1}$

\n

The point of intersection is $(\\var{px},\\var{py})$.

\n

We can check that this point is correct by substituting it back into both of the original equations and seeing that they are both correct.

\n

", "rulesets": {}, "extensions": [], "variables": {"m1": {"name": "m1", "group": "Unnamed group", "definition": "random(-1,1)*random(1..6)", "description": "", "templateType": "anything"}, "m2temp": {"name": "m2temp", "group": "Unnamed group", "definition": "random(-1,1)*random(1..6)", "description": "", "templateType": "anything"}, "m2": {"name": "m2", "group": "Unnamed group", "definition": "if(m1=m2temp,m2temp*(-1),m2temp)", "description": "", "templateType": "anything"}, "b1": {"name": "b1", "group": "Unnamed group", "definition": "random(-10..10)", "description": "", "templateType": "anything"}, "b2": {"name": "b2", "group": "Unnamed group", "definition": "(m1-m2)*px+b1", "description": "", "templateType": "anything"}, "px": {"name": "px", "group": "Unnamed group", "definition": "random(-10..10)", "description": "

Point of intersection, x-coordinate

", "templateType": "anything"}, "py": {"name": "py", "group": "Unnamed group", "definition": "m1*px+b1", "description": "

Point of intersection, y-coordinate

", "templateType": "anything"}, "method": {"name": "method", "group": "Ungrouped variables", "definition": "random('elimination','substitution')", "description": "", "templateType": "anything"}, "b1sign": {"name": "b1sign", "group": "display variables", "definition": "if(b1<0,\"\",\"$+$\")", "description": "", "templateType": "anything"}, "b2sign": {"name": "b2sign", "group": "display variables", "definition": "if(b2<0,\"\",\"$+$\")", "description": "", "templateType": "anything"}, "b1signneg": {"name": "b1signneg", "group": "display variables", "definition": "if(b1>0,\"\",\"$+$\")", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["method"], "variable_groups": [{"name": "Unnamed group", "variables": ["m1", "m2temp", "m2", "b1", "b2", "px", "py"]}, {"name": "display variables", "variables": ["b1sign", "b2sign", "b1signneg"]}], "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": "

The point of intersection occurs at

\n

$ x=$ [[0]]

\n

$y= $ [[1]]

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "px", "maxValue": "px", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "py", "maxValue": "py", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}]}], "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}