// Numbas version: finer_feedback_settings {"name": "Simplify Algebraic Expressions: 2 unknowns", "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: 2 unknowns", "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}y)({c}x+{d}y)-({a}x+{d}y)({c}x+{b}y)}&=&(\\simplify[std]{{a*c}x^2+{b*c+a*d}x*y+{b*d}y^2})-(\\simplify[std]{{a*c}x^2+{b*a+c*d}x*y+{b*d}y^2})\\\\&=&\\simplify[std]{{b*c+a*d}x*y-{b*a+c*d}x*y}\\\\&=&\\var{(a-c)*(d-b)}xy\\end{eqnarray*}\\]
\n ", "rulesets": {"std": ["all", "!collectNumbers", "!noLeadingMinus"]}, "parts": [{"prompt": "\nSimplify:
\n$\\simplify[std]{({a}x+{b}y)({c}x+{d}y)-({a}x+{d}y)({c}x+{b}y)}=\\;$[[0]]
\nDo not include brackets in your answer.
\nInput $xy$ as $x*y$.
\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*y", "type": "jme", "maxlength": {"length": 7.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,b])", "name": "d"}}, "metadata": {"notes": "\n \t\t \t\t18/08/2012:
\n \t\t \t\tAdded tags.
\n \t\t \t\tAdded description.
\n \t\t \n \t\t", "description": "Simplify $(ax+by)(cx+dy)-(ax+dy)(cx+by)$. Answer is a multiple of $xy$.
", "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/"}]}