// Numbas version: exam_results_page_options {"name": "Expansion of two brackets: Quadratic and Linear ", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "name": "Expansion of two brackets: Quadratic and Linear ", "tags": ["algebra", "algebraic manipulation", "expansion of a quadratic and linear term", "expansion of brackets"], "advice": "\n

Using the method given by Show steps:

\n

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

\n

 

\n ", "rulesets": {"std": ["all", "!noLeadingMinus", "!collectNumbers"]}, "parts": [{"stepspenalty": 1.0, "prompt": "\n

$\\simplify[std]{({a}z^2+{b}z+{c})({p}z+{q})}=\\;$[[0]].

\n

Your answer should be a cubic in $z$ 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.

\n ", "gaps": [{"notallowed": {"message": "

Do not include brackets in your answer. Input your answer as a cubic in $z$, in the form $az^3+bz^2+cz+d$ for appropriate integers $a,\\;b,\\;c,\\;d$.

", "showstrings": false, "strings": ["(", "zz", "z*z"], "partialcredit": 0.0}, "checkingaccuracy": 0.001, "vsetrange": [0.0, 1.0], "vsetrangepoints": 5.0, "checkingtype": "absdiff", "answersimplification": "std", "marks": 2.0, "answer": "{a*p}z^3+{a*q+p*b}z^2+{q*b+c*p}z+{c*q}", "type": "jme"}], "steps": [{"prompt": "\n

One way to expand this is as follows:

\n

$(az^2+bz+c)(pz+q)=az^2(pz+q)+bz*(pz+q)+c(pz+q)$ etc..

\n ", "type": "information", "marks": 0.0}], "marks": 0.0, "type": "gapfill"}], "extensions": [], "statement": "

Expand the following to give a cubic in $z$.

", "variable_groups": [], "progress": "ready", "type": "question", "variables": {"a": {"definition": "random(1..5)", "name": "a"}, "c": {"definition": "random(2..5)", "name": "c"}, "b": {"definition": "random(-9..9 except [0,a])", "name": "b"}, "d": {"definition": "random(-9..9 except [0,c])", "name": "d"}, "q": {"definition": "random(-3..3 except [0,b,d])", "name": "q"}, "p": {"definition": "random(1..3 except [a,c])", "name": "p"}}, "metadata": {"notes": "\n \t\t \t\t

16/08/2012:

\n \t\t \t\t

Added tags.

\n \t\t \t\t

Added description.

\n \t\t \n \t\t", "description": "

Expand $(az^2+bz+c)(pz+q)$.

", "licence": "Creative Commons Attribution 4.0 International"}, "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}]}]}], "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}]}