// Numbas version: finer_feedback_settings {"name": "Expansion of two brackets: Linear 2", "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: Linear 2", "tags": ["algebra", "algebraic manipulation", "expansion of brackets", "expansion of the product of two linear terms"], "advice": "\n

Using the method given by Show steps we have:

\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 ", "rulesets": {"std": ["all", "!noLeadingMinus", "!collectNumbers"]}, "parts": [{"stepspenalty": 1.0, "prompt": "\n

$\\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.

\n ", "gaps": [{"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.0}, "checkingaccuracy": 0.001, "vsetrange": [0.0, 1.0], "vsetrangepoints": 5.0, "checkingtype": "absdiff", "answersimplification": "std", "maxlength": {"length": 17.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.0}, "answer": "{a*c}x^2+{b*c+a*d}x+{b*d}", "marks": 2.0, "type": "jme", "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.0}}], "steps": [{"prompt": "\n

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*}\\]

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

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

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

15/08/2012:

\n \t\t

Added tags.

\n \t\t

Added description.

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

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

", "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/"}]}