// Numbas version: exam_results_page_options {"name": "ahmad's copy of Expansion of brackets", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variables": {"a": {"templateType": "anything", "name": "a", "definition": "repeat(random(-10..10 except [-1,0,1] ),50)", "description": "", "group": "Ungrouped variables"}}, "tags": [], "parts": [{"sortAnswers": false, "variableReplacements": [], "gaps": [{"variableReplacements": [], "showFeedbackIcon": true, "customMarkingAlgorithm": "", "unitTests": [], "checkingAccuracy": 0.001, "showPreview": true, "answer": "{a[1]*a[2]}x+{a[1]*a[3]}", "type": "jme", "marks": 1, "failureRate": 1, "mustmatchpattern": {"message": "

It doesn't look like you've expanded - make sure you don't use any brackets in your answer.

", "nameToCompare": "", "partialCredit": 0, "pattern": "x*(`+-$n) + `+-$n"}, "extendBaseMarkingAlgorithm": true, "checkingType": "absdiff", "customName": "", "showCorrectAnswer": true, "valuegenerators": [{"name": "x", "value": ""}], "scripts": {}, "vsetRangePoints": 5, "checkVariableNames": true, "variableReplacementStrategy": "originalfirst", "vsetRange": [0, 1], "useCustomName": false}], "extendBaseMarkingAlgorithm": true, "customName": "", "prompt": "

$\\simplify{{a[1]}({a[2]}x+{a[3]})}=$ [[0]]

", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "unitTests": [], "type": "gapfill", "marks": 0, "scripts": {}, "useCustomName": false}, {"sortAnswers": false, "variableReplacements": [], "gaps": [{"variableReplacements": [], "showFeedbackIcon": true, "customMarkingAlgorithm": "", "unitTests": [], "checkingAccuracy": 0.001, "showPreview": true, "answer": "{a[4]*a[5]}x+{a[4]*a[6]}", "type": "jme", "marks": 1, "failureRate": 1, "mustmatchpattern": {"message": "

It doesn't look like you've expanded - make sure you don't use any brackets in your answer.

", "nameToCompare": "", "partialCredit": 0, "pattern": "`+-$n*x + `+-$n"}, "extendBaseMarkingAlgorithm": true, "checkingType": "absdiff", "customName": "", "showCorrectAnswer": true, "valuegenerators": [{"name": "x", "value": ""}], "scripts": {}, "vsetRangePoints": 5, "checkVariableNames": true, "variableReplacementStrategy": "originalfirst", "vsetRange": [0, 1], "useCustomName": false}], "extendBaseMarkingAlgorithm": true, "customName": "", "prompt": "

$\\simplify{{a[4]}({a[5]}x+{a[6]})}=$ [[0]]

", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "unitTests": [], "type": "gapfill", "marks": 0, "scripts": {}, "useCustomName": false}, {"sortAnswers": false, "variableReplacements": [], "gaps": [{"variableReplacements": [], "showFeedbackIcon": true, "customMarkingAlgorithm": "", "unitTests": [], "checkingAccuracy": 0.001, "showPreview": true, "answer": "{a[7]*a[8]}x^2+{a[7]*a[9]}y", "type": "jme", "marks": 1, "failureRate": 1, "mustmatchpattern": {"message": "

It doesn't look like you've expanded - make sure you don't use any brackets in your answer.

", "nameToCompare": "", "partialCredit": 0, "pattern": "`+-$n*x^2 + `+-$n*y"}, "extendBaseMarkingAlgorithm": true, "checkingType": "absdiff", "customName": "", "showCorrectAnswer": true, "valuegenerators": [{"name": "x", "value": ""}, {"name": "y", "value": ""}], "scripts": {}, "vsetRangePoints": 5, "checkVariableNames": true, "variableReplacementStrategy": "originalfirst", "vsetRange": [0, 1], "useCustomName": false}], "extendBaseMarkingAlgorithm": true, "customName": "", "prompt": "

$\\simplify{{a[7]}({a[8]}x^2+{a[9]}y)}=$ [[0]]

", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "unitTests": [], "type": "gapfill", "marks": 0, "scripts": {}, "useCustomName": false}, {"sortAnswers": false, "variableReplacements": [], "gaps": [{"variableReplacements": [], "showFeedbackIcon": true, "customMarkingAlgorithm": "", "unitTests": [], "checkingAccuracy": 0.001, "showPreview": true, "answer": "{a[10]*a[11]}x^2+{a[10]*a[12]}y", "type": "jme", "marks": 1, "failureRate": 1, "mustmatchpattern": {"message": "

It doesn't look like you've expanded - make sure you don't use any brackets in your answer.

", "nameToCompare": "", "partialCredit": 0, "pattern": "`+-$n*x^2 + `+-$n*y"}, "extendBaseMarkingAlgorithm": true, "checkingType": "absdiff", "customName": "", "showCorrectAnswer": true, "valuegenerators": [{"name": "x", "value": ""}, {"name": "y", "value": ""}], "scripts": {}, "vsetRangePoints": 5, "checkVariableNames": true, "variableReplacementStrategy": "originalfirst", "vsetRange": [0, 1], "useCustomName": false}], "extendBaseMarkingAlgorithm": true, "customName": "", "prompt": "

$\\simplify{{a[10]}({a[11]}x^2+{a[12]}y)}=$ [[0]]

", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "unitTests": [], "type": "gapfill", "marks": 0, "scripts": {}, "useCustomName": false}, {"sortAnswers": false, "variableReplacements": [], "gaps": [{"variableReplacements": [], "showFeedbackIcon": true, "customMarkingAlgorithm": "", "unitTests": [], "checkingAccuracy": 0.001, "showPreview": true, "answer": "{a[13]*a[14]}x^3+{a[13]*a[15]}x^2+{a[13]*a[16]}x", "type": "jme", "marks": 1, "failureRate": 1, "mustmatchpattern": {"message": "

It doesn't look like you've expanded - make sure you don't use any brackets in your answer.

", "nameToCompare": "", "partialCredit": 0, "pattern": "`+-$n*x^3 + `+-$n*x^2 + `+-$n*x"}, "extendBaseMarkingAlgorithm": true, "checkingType": "absdiff", "customName": "", "showCorrectAnswer": true, "valuegenerators": [{"name": "x", "value": ""}], "scripts": {}, "vsetRangePoints": 5, "checkVariableNames": true, "variableReplacementStrategy": "originalfirst", "vsetRange": [0, 1], "useCustomName": false}], "extendBaseMarkingAlgorithm": true, "customName": "", "prompt": "

$\\simplify{{a[13]}x({a[14]}x^2+{a[15]}x+{a[16]})}=$ [[0]]

", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "unitTests": [], "type": "gapfill", "marks": 0, "scripts": {}, "useCustomName": false}, {"sortAnswers": false, "variableReplacements": [], "gaps": [{"variableReplacements": [], "showFeedbackIcon": true, "customMarkingAlgorithm": "", "unitTests": [], "checkingAccuracy": 0.001, "showPreview": true, "answer": "{a[17]*a[18]}x^3+{a[17]*a[19]}x^2+{a[17]*a[20]}x", "type": "jme", "marks": 1, "failureRate": 1, "mustmatchpattern": {"message": "

It doesn't look like you've expanded - make sure you don't use any brackets in your answer.

", "nameToCompare": "", "partialCredit": 0, "pattern": "`+-$n`?*x^3 + `+-$n`?*x^2 + `+-$n`?*x"}, "extendBaseMarkingAlgorithm": true, "checkingType": "absdiff", "customName": "", "showCorrectAnswer": true, "valuegenerators": [{"name": "x", "value": ""}], "scripts": {}, "vsetRangePoints": 5, "checkVariableNames": true, "variableReplacementStrategy": "originalfirst", "vsetRange": [0, 1], "useCustomName": false}], "extendBaseMarkingAlgorithm": true, "customName": "", "prompt": "

$\\simplify{{a[17]}x({a[18]}x^2+{a[19]}x+{a[20]})}=$ [[0]]

", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "unitTests": [], "type": "gapfill", "marks": 0, "scripts": {}, "useCustomName": false}, {"sortAnswers": false, "variableReplacements": [], "gaps": [{"variableReplacements": [], "showFeedbackIcon": true, "customMarkingAlgorithm": "", "unitTests": [], "checkingAccuracy": 0.001, "showPreview": true, "answer": "x^2*{a[21]*a[23]+a[24]}+x^3*{a[21]*a[22]+a[25]}", "type": "jme", "marks": 1, "failureRate": 1, "mustmatchpattern": {"message": "It doesn't look like you've expanded - make sure you don't use any brackets in your answer.", "nameToCompare": "", "partialCredit": 0, "pattern": "x^2*`+-$n`? + x^3*`+-$n`?"}, "extendBaseMarkingAlgorithm": true, "checkingType": "absdiff", "customName": "", "showCorrectAnswer": true, "valuegenerators": [{"name": "x", "value": ""}], "scripts": {}, "vsetRangePoints": 5, "checkVariableNames": true, "variableReplacementStrategy": "originalfirst", "vsetRange": [0, 1], "useCustomName": false}], "extendBaseMarkingAlgorithm": true, "customName": "", "prompt": "

$\\simplify{{a[21]}x({a[22]}x^2+{a[23]}x)+{a[24]}x^2+{a[25]}x^3}=$ [[0]]

", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "unitTests": [], "type": "gapfill", "marks": 0, "scripts": {}, "useCustomName": false}, {"sortAnswers": false, "variableReplacements": [], "gaps": [{"variableReplacements": [], "showFeedbackIcon": true, "customMarkingAlgorithm": "", "unitTests": [], "checkingAccuracy": 0.001, "showPreview": true, "answer": "x^2*{a[26]+a[28]*a[30]} + x^3*{a[28]*a[29]+a[27]}", "type": "jme", "marks": 1, "failureRate": 1, "mustmatchpattern": {"message": "It doesn't look like you've expanded - make sure you don't use any brackets in your answer.", "nameToCompare": "", "partialCredit": 0, "pattern": "x^2*`+-$n`? + x^3*`+-$n`?"}, "extendBaseMarkingAlgorithm": true, "checkingType": "absdiff", "customName": "", "showCorrectAnswer": true, "valuegenerators": [{"name": "x", "value": ""}], "scripts": {}, "vsetRangePoints": 5, "checkVariableNames": true, "variableReplacementStrategy": "originalfirst", "vsetRange": [0, 1], "useCustomName": false}], "extendBaseMarkingAlgorithm": true, "customName": "", "prompt": "

$\\simplify{({a[26]}x^2+{a[27]}x^3)+{a[28]}x({a[29]}x^2+{a[30]}x)}=$ [[0]]

", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "unitTests": [], "type": "gapfill", "marks": 0, "scripts": {}, "useCustomName": false}, {"sortAnswers": false, "variableReplacements": [], "gaps": [{"variableReplacements": [], "showFeedbackIcon": true, "customMarkingAlgorithm": "", "unitTests": [], "checkingAccuracy": 0.001, "showPreview": true, "answer": "{a[31]*a[32]+a[34]*a[42]}x+{a[31]*a[33]}y+{a[34]*a[35]}x*y", "type": "jme", "marks": 1, "failureRate": 1, "mustmatchpattern": {"message": "", "nameToCompare": "", "partialCredit": 0, "pattern": "x*(`+-$n) + y*(`+-$n) + x*y*(`+-$n)"}, "extendBaseMarkingAlgorithm": true, "checkingType": "absdiff", "customName": "", "showCorrectAnswer": true, "valuegenerators": [{"name": "x", "value": ""}, {"name": "y", "value": ""}], "scripts": {}, "vsetRangePoints": 5, "checkVariableNames": true, "variableReplacementStrategy": "originalfirst", "vsetRange": [0, 1], "useCustomName": false}], "extendBaseMarkingAlgorithm": true, "customName": "", "prompt": "

$\\simplify{{a[31]}({a[32]}x+{a[33]}y)+{a[34]}x({a[42]}+{a[35]}y)}=$ [[0]]

", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "unitTests": [], "type": "gapfill", "marks": 0, "scripts": {}, "useCustomName": false}, {"sortAnswers": false, "variableReplacements": [], "gaps": [{"variableReplacements": [], "showFeedbackIcon": true, "customMarkingAlgorithm": "", "unitTests": [], "checkingAccuracy": 0.001, "showPreview": true, "answer": "{a[37]*a[36]}a^2+{a[38]*a[36]}a^2b+{a[40]*a[39]}a*b^2+{a[39]*a[41]}b^3", "type": "jme", "marks": 1, "failureRate": 1, "answerSimplification": "basic", "mustmatchpattern": {"message": "

It doesn't look like you've expanded - make sure you don't use any brackets in your answer.

", "nameToCompare": "", "partialCredit": 0, "pattern": "`+-$n`?*a^2 + `+-$n`?*a^2*b + `+-$n`?*a*b^2 + `+-$n`?*b^3"}, "extendBaseMarkingAlgorithm": true, "checkingType": "absdiff", "customName": "", "showCorrectAnswer": true, "valuegenerators": [{"name": "a", "value": ""}, {"name": "b", "value": ""}], "scripts": {}, "vsetRangePoints": 5, "checkVariableNames": true, "variableReplacementStrategy": "originalfirst", "vsetRange": [0, 1], "useCustomName": false}], "extendBaseMarkingAlgorithm": true, "customName": "", "prompt": "

$\\simplify{{a[36]}a^2({a[37]}+{a[38]}b)+{a[39]}b^2({a[40]}a+{a[41]}b)}=$ [[0]]

", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "unitTests": [], "type": "gapfill", "marks": 0, "scripts": {}, "useCustomName": false}], "ungrouped_variables": ["a"], "extensions": [], "advice": "

Expand brackets using the general formula $\\displaystyle a(x+c)=ax+ac$. This means we multiply each term inside the brackets by the term outside the brackets.

\n

It is easy to forget that the sign outside the brackets also needs to be involved in the multiplication so remember that when two of the same sign are multiplied, the resultant term is positive and when opposite signs are multiplied, the result is negative.

\n

a)

\n

\\[
\\begin{align}
\\simplify[terms]{{a[1]}({a[2]}x+{a[3]})}&=
\\simplify[!collectNumbers]{({a[1]}{a[2]})x+({a[1]}{a[3]})}\\\\&
=\\simplify{{a[1]}*{a[2]}x+{a[1]}{a[3]}}\\text{.}
\\end{align}
\\]

\n

b)

\n

\\[
\\begin{align}
\\simplify[terms]{{a[4]}({a[5]}x+{a[6]})}&=
\\simplify[!collectNumbers]{{a[4]}{a[5]}x+{a[4]}{a[6]}}\\\\&=
\\simplify{{a[4]}*{a[5]}x+{a[4]}{a[6]}}\\text{.}
\\end{align}
\\]

\n

c)

\n

\\[
\\begin{align}
\\simplify[terms]{{a[7]}({a[8]}x^2+{a[9]}y)}&=
\\simplify[!collectNumbers]{{a[7]}{a[8]}x^2+{a[7]}{a[9]}y}\\\\&=
\\simplify{{a[7]}*{a[8]}x^2+{a[7]}*{a[9]}y}\\text{.}
\\end{align}
\\]

\n

d)

\n

\\[
\\begin{align}
\\simplify[terms]{{a[10]}({a[11]}x^2+{a[12]}y)}&=
\\simplify[!collectNumbers]{{a[10]}{a[11]}x^2+{a[10]}{a[12]}y}\\\\&=
\\simplify{{a[10]}*{a[11]}x^2+{a[10]}*{a[12]}y}\\text{.}
\\end{align}
\\]

\n

e)

\n

\\[
\\begin{align}
\\simplify[terms]{{a[13]}x({a[14]}x^2+{a[15]}x+{a[16]})}&=
\\simplify[!collectNumbers]{{a[13]}x{a[14]}x^2+{a[13]}x{a[15]}x+{a[13]}x{a[16]}}\\\\&=
\\simplify{{a[13]}{a[14]}x^3+{a[13]}{a[15]}x^2+{a[13]}{a[16]}x}\\text{.}
\\end{align}
\\]

\n

f)

\n

\\[
\\begin{align}
\\simplify[terms]{{a[17]}x({a[18]}x^2+{a[19]}x+{a[20]})}&=
\\simplify[!collectNumbers]{{a[17]}x{a[18]}x^2+{a[17]}x{a[19]}x+{a[17]}x{a[20]}}\\\\&=
\\simplify{{a[17]}{a[18]}x^3+{a[17]}{a[19]}x^2+{a[17]}{a[20]}x}\\text{.}
\\end{align}
\\]

\n


g)

\n

\\[
\\begin{align}
\\simplify[terms]{{a[21]}x({a[22]}x^2+{a[23]}x)+{a[24]}x^2+{a[25]}x^3}&=
\\simplify[!collectNumbers]{x^2({a[21]}{a[23]})+x^2{a[24]}+x^3({a[21]}{a[22]})+x^3{a[25]}}\\\\&=
\\simplify[!collectNumbers]{x^2({a[21]}{a[23]}+{a[24]})+x^3({a[21]}{a[22]}+{a[25]})}\\\\&=
\\simplify{x^2({a[21]}{a[23]}+{a[24]})+x^3({a[21]}{a[22]}+{a[25]})}\\text{.}
\\end{align}
\\]

\n

h)

\n

\\[
\\begin{align}
\\simplify[terms]{({a[26]}x^2+{a[27]}x^3)+{a[28]}x({a[29]}x^2+{a[30]}x)}&=
\\simplify[!collectNumbers]{x^2({a[26]})+x^2({a[28]}{a[30]})+x^3({a[28]}{a[29]})+x^3({a[27]})}\\\\&=
\\simplify[!collectNumbers]{x^2({a[26]}+{a[28]}{a[30]})+x^3({a[28]}{a[29]}+{a[27]})}\\\\&=
\\simplify{x^2({a[26]}+{a[28]}{a[30]})+x^3({a[28]}{a[29]}+{a[27]})}\\text{.}
\\end{align}
\\]

\n

i)

\n

\\[
\\begin{align}
\\simplify[terms]{{a[31]}({a[32]}x+{a[33]}y)+{a[34]}x({a[42]}+{a[35]}y)}&=
\\simplify[!collectNumbers]{({a[31]}{a[32]})x+({a[34]}{a[42]})x+{a[31]}{a[33]}y+{a[34]}{a[35]}x*y}\\\\&=
\\simplify[!collectNumbers]{({a[31]}{a[32]}+{a[34]}{a[42]})x+{a[31]}{a[33]}y+{a[34]}{a[35]}x*y}\\\\&=
\\simplify{({a[31]}{a[32]}+{a[34]}{a[42]})x+{a[31]}{a[33]}y+{a[34]}{a[35]}x*y}\\text{.}
\\end{align}
\\]

\n

j)

\n

\\[
\\begin{align}
\\simplify[terms]{{a[36]}a^2({a[37]}+{a[38]}b)+{a[39]}b^2({a[40]}a+{a[41]}b)}&=
\\simplify[!collectNumbers]{{a[37]}{a[36]}a^2+{a[38]}{a[36]}a^2b+{a[40]}{a[39]}a*b^2+{a[39]}{a[41]}b^3}\\\\&=
\\simplify{{a[37]}{a[36]}a^2+{a[38]}{a[36]}a^2b+{a[40]}{a[39]}a*b^2+{a[39]}{a[41]}b^3}\\text{.}
\\end{align}
\\]

", "statement": "

Expand the expressions below by multiplying each of the terms inside the brackets by the term outside. Give each answer in its simplest form.

", "variablesTest": {"condition": "", "maxRuns": 100}, "name": "ahmad's copy of Expansion of brackets", "variable_groups": [], "functions": {}, "preamble": {"css": "", "js": ""}, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

This question is made up of 10 exercises to practice the multiplication of brackets by a single term.

"}, "rulesets": {"terms": ["all", "!collectNumbers", "!unitFactor", "!noLeadingMinus"]}, "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": "ahmad yahya", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3426/"}]}]}], "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": "ahmad yahya", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3426/"}]}