// Numbas version: exam_results_page_options {"name": " Expand product of brackets", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["a", "c", "b", "d", "s", "u", "t", "v"], "name": " Expand product of brackets", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "

Using the method given by Show steps

\n

For part a)

\n

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

\n

\n

For part b)

\n

\\[\\begin{eqnarray*}\\simplify[std]{ ({s}x+{t})({u}x+{v})}&=&\\simplify[std]{{s}x*({u}x+{v})+{t}({u}x+{d})}\\\\&=&\\simplify[std]{{s*u}x^2+{s*v}x+{t*u}x+{t*v}}\\\\&=&\\simplify[std]{{s*u}x^2+{(s*v+t*u)}x+{t*v}}\\end{eqnarray*}\\]

\n

 

", "rulesets": {"std": ["all", "!noLeadingMinus", "!collectNumbers"]}, "parts": [{"stepsPenalty": "0", "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

You can click on \"Show steps\" for more information, but you will lose one mark if you do so.

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "steps": [{"prompt": "

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

\n

One way:

\n

\\[\\begin{eqnarray*} (ax+b)(cx+d)&=&ax(cx+d)+b(cx+d)\\\\&=&acx^2+adx+bcx+bd\\\\&=&acx^2+(ad+bc)x+bd\\end{eqnarray*}\\]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}, {"prompt": "

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "gaps": [{"musthave": {"message": "

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

", "showStrings": false, "strings": ["x^2"], "partialCredit": 0}, "vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "answersimplification": "std", "scripts": {}, "answer": "{a*c}x^2+{b*c+a*d}x+{b*d}", "marks": 2, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme", "notallowed": {"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$.

", "showStrings": false, "strings": ["("], "partialCredit": 0}, "maxlength": {"length": "0", "message": "

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

", "partialCredit": 0}}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"stepsPenalty": 0, "prompt": "

$\\simplify[std]{({s}x-{t})({u}x-{v})}=\\;$[[0]]

\n

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

\n

You can click on \"Show steps\" for more information, but you will lose one mark if you do so

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "steps": [{"prompt": "

There are many ways to expand an expression such as $(sx-t)(ux-v)$.

\n

One way:

\n

\\[\\begin{eqnarray*} (sx-t)(ux-v)&=&sx(ux+v)+t(ux+v)\\\\&=&sux^2-svx-tux+tv\\\\&=&sux^2-(sv+tu)x+tv\\end{eqnarray*}\\]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}, {"prompt": "

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "gaps": [{"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "answersimplification": "std", "scripts": {}, "answer": "{s*u}x^2-{t*u+s*v}x+{t*v}", "marks": "2", "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme", "musthave": {"message": "", "showStrings": false, "strings": ["x^2"], "partialCredit": 0}}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": [], "statement": "

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

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"a": {"definition": "random(-5..5 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "c": {"definition": "random(-5..5 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "c", "description": ""}, "b": {"definition": "random(-9..9 except [0,a])", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "d": {"definition": "random(-9..9 except [0,c])", "templateType": "anything", "group": "Ungrouped variables", "name": "d", "description": ""}, "s": {"definition": "random(-10..10 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "s", "description": ""}, "u": {"definition": "random(-10..10 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "u", "description": ""}, "t": {"definition": "random(11..20 except [0,s])", "templateType": "anything", "group": "Ungrouped variables", "name": "t", "description": ""}, "v": {"definition": "random(11..20 except [0,u])", "templateType": "anything", "group": "Ungrouped variables", "name": "v", "description": ""}}, "metadata": {"description": "

These questions will help you expand double set of brackets-  $(ax+b)(cx+d)$.

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Nasir Firoz Khan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/909/"}]}]}], "contributors": [{"name": "Nasir Firoz Khan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/909/"}]}