// Numbas version: exam_results_page_options {"name": "Maria's copy of Expand brackets and collect like terms", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [{"name": "B group", "variables": ["a1", "b1", "c1"]}, {"name": "Part a", "variables": ["a", "b", "c", "d", "f", "g", "h", "j"]}], "name": "Maria's copy of Expand brackets and collect like terms", "statement": "

For each expression below, collect like terms and expand brackets.

\n

The * symbol is required between algebraic symbols, e.g. $5ab^2$ should be written 5*a*b^2.

", "preamble": {"css": "", "js": ""}, "functions": {}, "ungrouped_variables": [], "variables": {"a1": {"definition": "random(5..10)", "templateType": "anything", "name": "a1", "description": "", "group": "B group"}, "c": {"definition": "repeat(random(2..10),5)", "templateType": "anything", "name": "c", "description": "", "group": "Part a"}, "h": {"definition": "repeat(random(2..20),7)", "templateType": "anything", "name": "h", "description": "", "group": "Part a"}, "b": {"definition": "repeat(random(2..10),5)", "templateType": "anything", "name": "b", "description": "", "group": "Part a"}, "j": {"definition": "repeat(random(2..20),9)", "templateType": "anything", "name": "j", "description": "", "group": "Part a"}, "g": {"definition": "repeat(random(2..15),7)", "templateType": "anything", "name": "g", "description": "", "group": "Part a"}, "a": {"definition": "repeat(random(5..15),5)", "templateType": "anything", "name": "a", "description": "

random variables for part 1

", "group": "Part a"}, "c1": {"definition": "random(2..5)*2", "templateType": "anything", "name": "c1", "description": "", "group": "B group"}, "b1": {"definition": "random(2..10 except a1)", "templateType": "anything", "name": "b1", "description": "", "group": "B group"}, "d": {"definition": "repeat(random(2..33),6)", "templateType": "anything", "name": "d", "description": "", "group": "Part a"}, "f": {"definition": "repeat(random(2..20),7)", "templateType": "anything", "name": "f", "description": "", "group": "Part a"}}, "metadata": {"description": "

Eight expressions, of increasing complexity. The student must simplify them by expanding brackets and collecting like terms.

", "licence": "Creative Commons Attribution 4.0 International"}, "variablesTest": {"condition": "", "maxRuns": 100}, "parts": [{"marks": 0, "prompt": "


$\\var{a[1]}x^2+\\var{a[2]}x^2+\\var{a[3]}x+\\var{a[4]}x +\\var{a[0]}=$ [[0]]

", "showCorrectAnswer": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "unitTests": [], "showFeedbackIcon": true, "useCustomName": false, "customName": "", "sortAnswers": false, "customMarkingAlgorithm": "", "scripts": {}, "type": "gapfill", "extendBaseMarkingAlgorithm": true, "gaps": [{"failureRate": 1, "showCorrectAnswer": true, "checkingAccuracy": 0.001, "unitTests": [], "customName": "", "scripts": {}, "answer": "({a[1]}+{a[2]})x^2+({a[3]}+{a[4]})x+{a[0]}", "type": "jme", "showPreview": true, "checkVariableNames": false, "checkingType": "absdiff", "marks": 1, "answerSimplification": "all", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "useCustomName": false, "mustmatchpattern": {"partialCredit": 0, "pattern": "$n*x^2 + $n*x + $n", "message": "You haven't simplified: you still have two or more like terms that should be collected together.", "nameToCompare": ""}, "vsetRange": [0, 1], "customMarkingAlgorithm": "", "vsetRangePoints": 5, "extendBaseMarkingAlgorithm": true, "valuegenerators": [{"value": "", "name": "x"}]}]}, {"marks": 0, "prompt": "

$\\var{g[0]}(\\var{g[1]}x+\\var{g[2]}y)+\\var{g[4]}x+\\var{g[5]}y=$ [[0]]

\n

", "showCorrectAnswer": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "unitTests": [], "showFeedbackIcon": true, "useCustomName": false, "customName": "", "sortAnswers": false, "customMarkingAlgorithm": "", "scripts": {}, "type": "gapfill", "extendBaseMarkingAlgorithm": true, "gaps": [{"failureRate": 1, "showCorrectAnswer": true, "checkingAccuracy": 0.001, "unitTests": [], "customName": "", "scripts": {}, "answer": "({g[0]}{g[1]}+{g[4]})x+({g[0]}{g[2]}+{g[5]})y", "type": "jme", "showPreview": true, "checkVariableNames": false, "checkingType": "absdiff", "maxlength": {"partialCredit": 0, "length": "0", "message": "

You must condense your answer to fully simplify. *'s are not needed to indicate multiplication here.

"}, "marks": 1, "answerSimplification": "all", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "useCustomName": false, "mustmatchpattern": {"partialCredit": 0, "pattern": "$n*x+$n*y", "message": "You haven't simplified: you still have two or more like terms that should be collected together.", "nameToCompare": ""}, "vsetRange": [0, 1], "customMarkingAlgorithm": "", "vsetRangePoints": 5, "extendBaseMarkingAlgorithm": true, "valuegenerators": [{"value": "", "name": "x"}, {"value": "", "name": "y"}]}]}], "extensions": ["stats"], "advice": "

When simplifying expressions, only terms of the same type or like terms can be added together.

\n

Algebraic symbols or letters can be added together provided that they are raised to the same power. For example, we can add $x^2+x^2=2x^2$, but we cannot collect both $x^2$ and $x$ into one term.

\n

\n

a)

\n

\\[ 
\\begin{align}
\\var{a[1]}x^2+\\var{a[2]}x^2+\\var{a[3]}x+\\var{a[4]}x +\\var{a[0]}&=(\\var{a[1]}+\\var{a[2]})x^2+(\\var{a[3]}+\\var{a[4]})x +\\var{a[0]}\\\\
&=\\simplify{({a[1]}+{a[2]})}x^2+\\simplify{({a[3]}+{a[4]})}x+\\var{a[0]}
\\end{align}
\\]

\n

\n

b)

\n

\\[
\\begin{align}
\\var{g[0]}(\\var{g[1]}x+\\var{g[2]}y)+\\var{g[4]}x+\\var{g[5]}y
&=(\\var{g[0]}\\times \\var{g[1]}+\\var{g[4]})x+(\\var{g[0]} \\times\\var{g[2]}+\\var{g[5]})y\\\\
&=(\\simplify{{g[0]}*{g[1]}}+\\var{g[4]})x+(\\simplify{{g[0]}*{g[2]}}+\\var{g[5]})y\\\\
&=\\simplify{{g[0]}*{g[1]}+{g[4]}}x+\\simplify{{g[0]}*{g[2]}+{g[5]}}y
\\end{align}
\\]

\n

", "rulesets": {}, "tags": [], "type": "question", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Bradley Bush", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1521/"}, {"name": "Aiden McCall", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1592/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Bradley Bush", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1521/"}, {"name": "Aiden McCall", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1592/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}