// Numbas version: finer_feedback_settings {"name": "Simplify Algebraic Expressions", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "name": "Simplify Algebraic Expressions", "tags": ["algebra", "algebraic manipulation", "expanding brackets", "simplification", "simplifying an expression"], "advice": "\n

Expanding the brackets we have:

\n

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

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

Simplify:

\n

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

\n

Do not include brackets in your answer.

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

Do not include brackets in your answer.

", "showstrings": false, "strings": ["("], "partialcredit": 0.0}, "checkingaccuracy": 0.001, "vsetrange": [0.0, 1.0], "vsetrangepoints": 5.0, "checkingtype": "absdiff", "answersimplification": "std", "marks": 2.0, "answer": "{(a-c)*(d-b)}*x", "type": "jme", "maxlength": {"length": 6.0, "message": "

You can simplify the expression further.

", "partialcredit": 0.0}}], "type": "gapfill", "marks": 0.0}], "extensions": [], "statement": "

Simplify the following expression.

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

18/08/2012:

\n \t\t

Added tags.

\n \t\t

Added description.

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

Simplify $(ax+b)(cx+d)-(ax+d)(cx+b)$. Answer is a multiple of $x$.

", "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/"}], "resources": []}]}], "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}]}