// Numbas version: finer_feedback_settings {"name": "Anna's Expansion of two brackets: Linear 2 positive coefficients - test", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"parts": [{"variableReplacementStrategy": "originalfirst", "stepsPenalty": "0", "customMarkingAlgorithm": "", "marks": 0, "type": "gapfill", "sortAnswers": false, "useCustomName": false, "gaps": [{"showPreview": true, "customMarkingAlgorithm": "", "maxlength": {"partialCredit": 0, "message": "

Input your answer as a quadratic in $x$, in the form $ax^2+bx+c$ for appropriate integers $a,\\;b,\\;c$.

", "length": 17}, "useCustomName": false, "notallowed": {"partialCredit": 0, "strings": ["(", ")"], "showStrings": false, "message": "

Do not include brackets in your answer. Input your answer as a quadratic in $x$, in the form $ax^2+bx+c$ for appropriate integers $a,\\;b,\\;c$.

"}, "scripts": {}, "showCorrectAnswer": true, "customName": "", "vsetRange": [0, 1], "valuegenerators": [{"value": "", "name": "x"}], "musthave": {"partialCredit": 0, "strings": ["x^2"], "showStrings": false, "message": "

Input your answer as a quadratic in $x$, in the form $ax^2+bx+c$ for appropriate integers $a,\\;b,\\;c$.

"}, "showFeedbackIcon": true, "vsetRangePoints": 5, "variableReplacementStrategy": "originalfirst", "checkingAccuracy": 0.001, "marks": 2, "type": "jme", "answerSimplification": "std", "variableReplacements": [], "checkingType": "absdiff", "failureRate": 1, "unitTests": [], "answer": "{a*c}x^2+{b*c+a*d}x+{b*d}", "checkVariableNames": false, "extendBaseMarkingAlgorithm": true}], "variableReplacements": [], "scripts": {}, "showCorrectAnswer": true, "customName": "", "steps": [{"variableReplacementStrategy": "originalfirst", "customMarkingAlgorithm": "", "marks": 0, "type": "information", "useCustomName": false, "variableReplacements": [], "scripts": {}, "showCorrectAnswer": true, "customName": "", "unitTests": [], "prompt": "

There are many ways to expand an expression such as $(ax+b)(cx+d)$.

\n

One method is sometimes referred to as FOIL, a mnemonic to help us remember which terms to multiply with one another:

\n

First    $ax \\times cx$

\n

Outside    $ax \\times d$

\n

Inside    $b \\times cx$

\n

Last    $b \\times d$

\n

We then add these together and simplify by collecting like terms.

", "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true}], "unitTests": [], "prompt": "

$\\simplify[std]{({a}x+{b})({c}x+{d})}=\\;$[[0]].

\n

Your answer should be a quadratic in $x$ and should not include any brackets.

\n

", "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true}], "variable_groups": [], "functions": {}, "tags": [], "rulesets": {"std": ["all", "!noLeadingMinus", "!collectNumbers"]}, "advice": "

There are many ways to expand an expression such as $(ax+b)(cx+d)$.

\n

One method is sometimes referred to as FOIL, a mnemonic to help us remember which terms to multiply with one another:

\n

First    $ax \\times cx$

\n

Outside    $ax \\times d$

\n

Inside    $b \\times cx$

\n

Last    $b \\times d$

\n

We then add these together and simplify by collecting like terms.

\n

\n

\n

\\[\\begin{eqnarray*}\\simplify[std]{ ({a}x+{b})({c}x+{d})}&=&(\\var{a}x\\times\\var{c}x)+(\\var{a}x\\times\\var{d})+(\\var{b}\\times\\var{c}x)+(\\var{b}\\times\\var{d})\\\\&=&(\\var{a*c}x^2)+(\\var{a*d}x)+(\\var{b*c}x)+(\\var{b*d})\\\\&=&\\simplify[std]{{a*c}x^2+{(a*d+b*c)}x+{b*d}}\\end{eqnarray*}\\]

\n

 

", "statement": "

Expand the following to give a quadratic in $x$.

", "preamble": {"js": "", "css": ""}, "name": "Anna's Expansion of two brackets: Linear 2 positive coefficients - test", "variables": {"c": {"group": "Ungrouped variables", "templateType": "anything", "name": "c", "description": "", "definition": "random(2..5 except 0 except a)"}, "a": {"group": "Ungrouped variables", "templateType": "anything", "name": "a", "description": "", "definition": "random(2..5)"}, "d": {"group": "Ungrouped variables", "templateType": "anything", "name": "d", "description": "", "definition": "random(2..9 except [0,c])"}, "b": {"group": "Ungrouped variables", "templateType": "anything", "name": "b", "description": "", "definition": "random(1..9 except a)"}}, "extensions": [], "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "c", "b", "d"], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Expand $(ax+b)(cx+d)$.

\n

rebelmaths

"}, "type": "question", "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}, {"name": "Anna Strzelecka", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2945/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}]}], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}, {"name": "Anna Strzelecka", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2945/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}