// Numbas version: exam_results_page_options {"name": "Zero Product Rule", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"preamble": {"css": "", "js": ""}, "variables": {"plist": {"templateType": "anything", "definition": "shuffle([2,3,5,7,11,13,19,23,29])[0..4]", "name": "plist", "group": "Ungrouped variables", "description": ""}, "q": {"templateType": "anything", "definition": "plist[3]", "name": "q", "group": "Ungrouped variables", "description": ""}, "k": {"templateType": "anything", "definition": "abs(j)+1", "name": "k", "group": "Ungrouped variables", "description": ""}, "m": {"templateType": "anything", "definition": "(-1)^(random(0,1))*plist[0]", "name": "m", "group": "Ungrouped variables", "description": ""}, "tworoots": {"templateType": "anything", "definition": "set(-a,-c/b)", "name": "tworoots", "group": "Ungrouped variables", "description": ""}, "j": {"templateType": "anything", "definition": "blist[4]", "name": "j", "group": "Ungrouped variables", "description": ""}, "p": {"templateType": "anything", "definition": "(-1)^(random(0,1))*plist[2]", "name": "p", "group": "Ungrouped variables", "description": ""}, "f": {"templateType": "anything", "definition": "blist[1]", "name": "f", "group": "Ungrouped variables", "description": ""}, "h": {"templateType": "anything", "definition": "blist[3]", "name": "h", "group": "Ungrouped variables", "description": ""}, "n": {"templateType": "anything", "definition": "plist[1]", "name": "n", "group": "Ungrouped variables", "description": ""}, "c": {"templateType": "anything", "definition": "random(-12..12 except [0,a*b])", "name": "c", "group": "Ungrouped variables", "description": ""}, "blist": {"templateType": "anything", "definition": "shuffle(-12..12 except 0)[0..6]", "name": "blist", "group": "Ungrouped variables", "description": ""}, "g": {"templateType": "anything", "definition": "blist[2]", "name": "g", "group": "Ungrouped variables", "description": ""}, "fiveroots": {"templateType": "anything", "definition": "set(0,-d,-g/f,-j/(k*h),(-p*n)/(q*m))", "name": "fiveroots", "group": "Ungrouped variables", "description": ""}, "a": {"templateType": "anything", "definition": "random(-12..12 except 0)", "name": "a", "group": "Ungrouped variables", "description": ""}, "d": {"templateType": "anything", "definition": "blist[0]", "name": "d", "group": "Ungrouped variables", "description": ""}, "b": {"templateType": "anything", "definition": "random(2..12)", "name": "b", "group": "Ungrouped variables", "description": ""}, "l": {"templateType": "anything", "definition": "blist[5]", "name": "l", "group": "Ungrouped variables", "description": ""}}, "advice": "", "tags": [], "rulesets": {}, "parts": [{"extendBaseMarkingAlgorithm": true, "prompt": "

Given that $\\displaystyle{(\\simplify{x+{a}})(\\simplify{{b}x+{c}})=0}$. Determine the set of possible values of $x$.

\n

$x=$ [[0]]

\n

Note: if your answer is $1$ and $2$ input set(1,2)

\n

", "showFeedbackIcon": true, "sortAnswers": false, "variableReplacementStrategy": "originalfirst", "stepsPenalty": "", "type": "gapfill", "variableReplacements": [], "scripts": {}, "marks": 0, "showCorrectAnswer": true, "gaps": [{"vsetRange": [0, 1], "checkingType": "absdiff", "checkVariableNames": false, "extendBaseMarkingAlgorithm": true, "expectedVariableNames": [], "failureRate": 1, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "vsetRangePoints": 5, "type": "jme", "checkingAccuracy": 0.001, "variableReplacements": [], "scripts": {}, "showPreview": true, "marks": 1, "answer": "{tworoots}", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "answerSimplification": "fractionNumbers", "unitTests": []}], "customMarkingAlgorithm": "", "steps": [{"marks": 0, "variableReplacements": [], "scripts": {}, "extendBaseMarkingAlgorithm": true, "type": "information", "showFeedbackIcon": true, "showCorrectAnswer": true, "prompt": "

Notice, this is a quadratic that has already been factorised. You don't need to expand it since we have the null factor law:

\n

\\[\\text{If } ab=0, \\text{ then } a=0 \\text{ or } b=0.\\]

\n

\n

Since

\n

\\[(\\simplify{x+{a}})(\\simplify{{b}x+{c}})=0,\\]

\n

this means $\\simplify{x+{a}}=0$ or $\\simplify{{b}x+{c}}=0$. Solving each of these equations gives $x=\\var{-a}$ or $x=\\simplify{-{c}/{b}}$.

\n

For this question, we input our answer as set$\\left(\\var{-a},\\simplify{-{c}/{b}}\\right)$.

", "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "unitTests": []}], "unitTests": []}, {"extendBaseMarkingAlgorithm": true, "prompt": "

Solve $\\displaystyle{\\simplify{{l}a}(\\simplify{a+{d}})(\\simplify{{f}a+{g}})\\left(\\simplify{{h}a+{j}/{k}}\\right)\\left(\\simplify{{m}a/{n}+{p}/{q}}\\right)=0}$ for $a$.

\n

$a=$ [[0]]

\n

Note: if your answer is $1$, $2$ and $3$ input set(1,2,3)

\n

", "showFeedbackIcon": true, "sortAnswers": false, "variableReplacementStrategy": "originalfirst", "stepsPenalty": 0, "type": "gapfill", "variableReplacements": [], "scripts": {}, "marks": 0, "showCorrectAnswer": true, "gaps": [{"vsetRange": [0, 1], "checkingType": "absdiff", "checkVariableNames": false, "extendBaseMarkingAlgorithm": true, "expectedVariableNames": [], "failureRate": 1, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "vsetRangePoints": 5, "type": "jme", "checkingAccuracy": 0.001, "variableReplacements": [], "scripts": {}, "showPreview": true, "marks": 1, "answer": "{fiveroots}", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "answerSimplification": "fractionNumbers", "unitTests": []}], "customMarkingAlgorithm": "", "steps": [{"marks": 0, "variableReplacements": [], "scripts": {}, "extendBaseMarkingAlgorithm": true, "type": "information", "showFeedbackIcon": true, "showCorrectAnswer": true, "prompt": "

Notice, this expression that has already been factorised. You don't need to expand it since we have the null factor law: 

\n

\\[\\text{If } ab=0, \\text{ then } a=0 \\text{ or } b=0.\\]

\n

Since

\n

\\[\\simplify{{l}a}(\\simplify{a+{d}})(\\simplify{{f}a+{g}})\\left(\\simplify{{h}a+{j}/{k}}\\right)\\left(\\simplify{{m}a/{n}+{p}/{q}}\\right)=0,\\]

\n

this means $\\simplify{{l}a}=0$, $\\simplify{a+{d}}=0$, $\\simplify{{f}a+{g}}=0$, $\\simplify{{h}a+{j}/{k}}=0$, or $\\simplify{{m}a/{n}+{p}/{q}}=0$. Solving each of these equations gives $x=0$, $x=\\var{-d}$, $x=\\var[fractionnumbers]{-g/f}$, $x=\\var[fractionnumbers]{-j/(k*h)}$, or $x=\\var[fractionnumbers]{(-p*n)/(q*m)}$.

\n

For this question, we input our answer as set$\\left(0,\\var{-d},\\var[fractionnumbers]{-g/f},\\var[fractionnumbers]{-j/(k*h)},\\var[fractionnumbers]{(-p*n)/(q*m)}\\right)$.

", "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "unitTests": []}], "unitTests": []}], "variable_groups": [], "statement": "", "variablesTest": {"condition": "", "maxRuns": 100}, "name": "Zero Product Rule", "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "extensions": [], "functions": {}, "ungrouped_variables": ["a", "b", "c", "tworoots", "blist", "d", "f", "g", "h", "j", "k", "l", "plist", "m", "n", "p", "q", "fiveroots"], "type": "question", "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "heike hoffmann", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2960/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "heike hoffmann", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2960/"}]}