// Numbas version: exam_results_page_options {"name": "Brackets", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"statement": "

Write your expression in the text box. Type a^2 to get $a^2$, and 2a^4-3b to get $2a^4-3b$ etc.

\n

Next to the text box, you will see an image of how your input will be read.

", "extensions": [], "variables": {"d4": {"group": "Ungrouped variables", "definition": "random(2..15)", "description": "", "templateType": "anything", "name": "d4"}, "a2": {"group": "Ungrouped variables", "definition": "random(2..10)", "description": "", "templateType": "anything", "name": "a2"}, "d1": {"group": "Ungrouped variables", "definition": "random(2..10)", "description": "", "templateType": "anything", "name": "d1"}, "b1": {"group": "Ungrouped variables", "definition": "random(-10..10 except [0, 1, -1])", "description": "", "templateType": "anything", "name": "b1"}, "c1": {"group": "Ungrouped variables", "definition": "random(-10..10 except[0, 1, -1])", "description": "", "templateType": "anything", "name": "c1"}, "e1": {"group": "Ungrouped variables", "definition": "random(2..5)", "description": "", "templateType": "anything", "name": "e1"}, "c4": {"group": "Ungrouped variables", "definition": "random(2..15)", "description": "", "templateType": "anything", "name": "c4"}, "c5": {"group": "Ungrouped variables", "definition": "random(5..10)", "description": "", "templateType": "anything", "name": "c5"}, "a1": {"group": "Ungrouped variables", "definition": "random(-10..10 except [0, 1, -1])", "description": "", "templateType": "anything", "name": "a1"}, "e3": {"group": "Ungrouped variables", "definition": "random(2..9 except e2)", "description": "", "templateType": "anything", "name": "e3"}, "c2": {"group": "Ungrouped variables", "definition": "random(2..10)", "description": "", "templateType": "anything", "name": "c2"}, "c3": {"group": "Ungrouped variables", "definition": "random(5..15)", "description": "", "templateType": "anything", "name": "c3"}, "b6": {"group": "Ungrouped variables", "definition": "random(2..15)", "description": "", "templateType": "anything", "name": "b6"}, "e2": {"group": "Ungrouped variables", "definition": "random(2..5 except e1)", "description": "", "templateType": "anything", "name": "e2"}, "b2": {"group": "Ungrouped variables", "definition": "random(2..15)", "description": "", "templateType": "anything", "name": "b2"}, "d2": {"group": "Ungrouped variables", "definition": "random(2..10)", "description": "", "templateType": "anything", "name": "d2"}, "a4": {"group": "Ungrouped variables", "definition": "random(3..15)", "description": "", "templateType": "anything", "name": "a4"}, "d3": {"group": "Ungrouped variables", "definition": "random(2..10)", "description": "", "templateType": "anything", "name": "d3"}, "b4": {"group": "Ungrouped variables", "definition": "random(2..15)", "description": "", "templateType": "anything", "name": "b4"}, "a3": {"group": "Ungrouped variables", "definition": "random(2..15)", "description": "", "templateType": "anything", "name": "a3"}, "b3": {"group": "Ungrouped variables", "definition": "random(2..10)", "description": "", "templateType": "anything", "name": "b3"}, "b5": {"group": "Ungrouped variables", "definition": "random(2..15)", "description": "", "templateType": "anything", "name": "b5"}}, "name": "Brackets", "parts": [{"showFeedbackIcon": true, "stepsPenalty": "1", "scripts": {}, "showCorrectAnswer": true, "gaps": [{"showFeedbackIcon": true, "type": "jme", "showpreview": true, "variableReplacements": [], "checkingaccuracy": 0.001, "variableReplacementStrategy": "originalfirst", "marks": "2", "checkvariablenames": false, "maxlength": {"message": "

Du har ikke trukket sammen alle mulige ledd

", "length": "10", "partialCredit": 0}, "scripts": {}, "showCorrectAnswer": true, "checkingtype": "absdiff", "vsetrange": [0, 1], "expectedvariablenames": [], "answersimplification": "std", "vsetrangepoints": 5, "answer": "{a1+a3}a+{a4-a2}b"}], "steps": [{"showFeedbackIcon": true, "scripts": {}, "showCorrectAnswer": true, "type": "information", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0, "prompt": "

Simplify the parts with the same variable, for example $7a-3a = 4a$, while $2b$ and $3a$ have different variables and can not simplify further.

"}], "type": "gapfill", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0, "prompt": "

Simplify:

\n

$\\var{a1}a-\\var{a2}b+\\var{a3}a+\\var{a4}b =$

\n

[[0]]

"}, {"showFeedbackIcon": true, "stepsPenalty": "1", "scripts": {}, "showCorrectAnswer": true, "gaps": [{"showFeedbackIcon": true, "type": "jme", "showpreview": true, "variableReplacements": [], "checkingaccuracy": 0.001, "variableReplacementStrategy": "originalfirst", "marks": "2", "checkvariablenames": false, "maxlength": {"message": "

Du har ikke trukket sammen alle mulige ledd

", "length": "21", "partialCredit": 0}, "scripts": {}, "showCorrectAnswer": true, "checkingtype": "absdiff", "vsetrange": [0, 1], "expectedvariablenames": [], "answersimplification": "std", "vsetrangepoints": 5, "answer": "{b1+b4}a^2+{b2-b5}a+{b3-b6}"}], "steps": [{"showFeedbackIcon": true, "scripts": {}, "showCorrectAnswer": true, "type": "information", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0, "prompt": "

Simplify the parts with the same variable, for example $2a^2+3a^2 = 5a^2$, while $2a^2$ and $3a$ have different variables and can not simplify further.

\n

"}], "type": "gapfill", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0, "prompt": "

Simplify:

\n

$\\var{b1}a^2+\\var{b2}a+\\var{b3}+\\var{b4}a^2-\\var{b5}a-\\var{b6}=$

\n

 [[0]]

"}, {"showFeedbackIcon": true, "stepsPenalty": "1", "scripts": {}, "showCorrectAnswer": true, "gaps": [{"showFeedbackIcon": true, "notallowed": {"showStrings": false, "message": "", "strings": ["("], "partialCredit": 0}, "type": "jme", "showpreview": true, "variableReplacements": [], "checkingaccuracy": 0.001, "variableReplacementStrategy": "originalfirst", "marks": "2", "checkvariablenames": false, "maxlength": {"message": "

Du har ikke trukket sammen alle mulige ledd

", "length": "15", "partialCredit": 0}, "scripts": {}, "showCorrectAnswer": true, "checkingtype": "absdiff", "vsetrange": [0, 1], "expectedvariablenames": [], "answersimplification": "std", "vsetrangepoints": 5, "answer": "{d1-d3}a+{d2+d4}b"}], "steps": [{"showFeedbackIcon": true, "scripts": {}, "showCorrectAnswer": true, "type": "information", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0, "prompt": "

Remember:If you have a parenthesis with a minus sign next to it, all of the signs inside the parenthesis have to be inverted.

\n

Example:

\n

$2a-(a-3b)=2a-a+3b=a+3b$

"}], "type": "gapfill", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0, "prompt": "

Simplify (removing the brackets):

\n

$(\\var{d1}a+\\var{d2}b)-(\\var{d3}a-\\var{d4}b) =$

\n

[[0]]

"}, {"showFeedbackIcon": true, "stepsPenalty": "1", "scripts": {}, "showCorrectAnswer": true, "gaps": [{"showFeedbackIcon": true, "type": "jme", "showpreview": true, "answer": "{e1}^2*x^2+2*{e1}*{d1}x+{d1}^2", "checkingaccuracy": 0.001, "variableReplacementStrategy": "originalfirst", "marks": "2", "checkvariablenames": false, "scripts": {}, "showCorrectAnswer": true, "checkingtype": "absdiff", "vsetrange": [0, 1], "expectedvariablenames": [], "variableReplacements": [], "vsetrangepoints": 5}], "steps": [{"showFeedbackIcon": true, "scripts": {}, "showCorrectAnswer": true, "type": "information", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0, "prompt": "

Here is a similar question...

\n

\n

     ({e2}$x$ + {e3})$^2$

\n

=   ({e2}$x$ + {e3})*({e2}$x$ + {e3})

\n

=   ({e2}$x$ * {e2}$x$) + ({e2}$x$*{e3})+ ({e3}*{e2}$x$) +({e3}*{e3})

\n

=   {e2}$^2x^2$+2*({e2}*{e3})$x$+{e3}$^2$

\n

=   {e2^2}$x$$^2$+{2*e2*e3}$x$+{e3^2}

"}], "type": "gapfill", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0, "prompt": "

Expand the brackets (rewrite without brackets)

\n

$(\\var{e1}x + \\var{d1})^2$

\n

[[0]]

"}, {"showFeedbackIcon": true, "stepsPenalty": "1", "scripts": {}, "showCorrectAnswer": true, "gaps": [{"showFeedbackIcon": true, "type": "jme", "showpreview": true, "answer": "{e2^3}x^3+3*{e2^2}*{e3}x^2+3*{e2}*{e3^2}x+{e3^3}", "checkingaccuracy": 0.001, "variableReplacementStrategy": "originalfirst", "marks": "4", "checkvariablenames": false, "scripts": {}, "showCorrectAnswer": true, "checkingtype": "absdiff", "vsetrange": [0, 1], "expectedvariablenames": [], "variableReplacements": [], "vsetrangepoints": 5}], "steps": [{"showFeedbackIcon": true, "scripts": {}, "showCorrectAnswer": true, "type": "information", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0, "prompt": "

Here's a similar question...

\n

     ({e2}$x$ + {e3})$^3$

\n

=   ({e2}$x$ + {e3})*({e2}$x$ + {e3})*({e2}$x$ + {e3})

\n

remember that

\n

    ({e2}$x$ + {e3})$^2$ =   {e2^2}$x$$^2$+{2*e2*e3}$x$+{e3^2}

\n

so,

\n

    ({e2}$x$ + {e3})$^3$  =  ({e2^2}$x$$^2$+{2*e2*e3}$x$+{e3^2})({e2}$x$ + {e3})

\n

=  {e2^3}$x^3$+{e2^2*e3}$x^2$+{2*e2*e3*e2}$x^2$+{2*e2*e3*e3}$x$+ {e3^2*e2}$x$ +{e3^3}

\n

 

"}], "type": "gapfill", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0, "prompt": "

Expand the brackets (rewrite without brackets)

\n

$(\\var{e1}x + \\var{e1+2})^3$

\n

[[0]]

"}], "functions": {}, "rulesets": {"std": ["all", "!collectNumbers "]}, "advice": "

Don't forget about BODMAS

\n

\n

\n

\n

Examples for multiplying out brackets:

\n

(a + b)(c + d) =ac+ad+bc+bd

\n

(a - b)(c + d) =ac+ad-bc-bd

\n

(a - b)(c - d) =ac-ad-bc+bd

\n

Example for squaring brackets:

\n

   ($-ax + b$)$^2$ = ($-ax + b$)*($-ax + b$)

\n

= ($-ax * -ax$) + ($-ax*b$)+ ($b*-ax)$ +($b*b)$

\n

=  $a^2x^2$-$2ab$+$b^2$

", "ungrouped_variables": ["a1", "a2", "a3", "a4", "b1", "b2", "b3", "b4", "b5", "b6", "c1", "c2", "c3", "c4", "c5", "d1", "d2", "d3", "d4", "e1", "e2", "e3"], "variable_groups": [], "metadata": {"description": "

Simplify algebra expressions

", "licence": "Creative Commons Attribution 4.0 International"}, "preamble": {"js": "", "css": ""}, "tags": [], "variablesTest": {"condition": "", "maxRuns": 100}, "type": "question", "contributors": [{"name": "Harry Flynn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/976/"}]}]}], "contributors": [{"name": "Harry Flynn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/976/"}]}