// Numbas version: exam_results_page_options {"name": "Factorise the quadratic expression (with non-trivial x^2)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Testing factorisation of quadratics.

"}, "preamble": {"css": "", "js": ""}, "advice": "

The first step is to find two numbers that add together to give $\\var{a*d+c*b}$ and multiply to give $\\var{a*c} \\times \\var{b*d} = \\var{a*b*c*d}$.

\n

\n

These are $\\var{a*d}$ and $\\var{c*b}$.

\n

\n

We split the $x$-term using $\\simplify{{a + b}x = {a} x + {b} x}$ and work as follows:

\n

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

", "rulesets": {}, "extensions": [], "name": "Factorise the quadratic expression (with non-trivial x^2)", "ungrouped_variables": ["a", "b", "c", "d"], "functions": {}, "tags": [], "variablesTest": {"condition": "(b/a <> d/c)\nand \n(a <> 0)\nand\n(b <> 0)\nand\n(c <> 0)\nand\n(d <> 0)\nand\n(gcd(a,b) = 1)\nand\n(gcd(c,d) = 1)", "maxRuns": 100}, "variable_groups": [], "variables": {"b": {"name": "b", "group": "Ungrouped variables", "definition": "random(-5 .. 5#1)", "description": "

constant in first factor

", "templateType": "randrange"}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(-5 .. 5#1)", "description": "

x-coefficient in first factor

", "templateType": "randrange"}, "d": {"name": "d", "group": "Ungrouped variables", "definition": "random(-5 .. 5#1)", "description": "

constant in second factor

", "templateType": "randrange"}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(-5 .. 5#1)", "description": "

x-coefficient in second factor

", "templateType": "randrange"}}, "statement": "

Factorise the following quadratic.

", "parts": [{"customName": "", "type": "jme", "vsetRangePoints": 5, "answer": "({a}x+{b})({c}x+{d})", "showFeedbackIcon": true, "valuegenerators": [{"name": "x", "value": ""}], "failureRate": 1, "checkingType": "absdiff", "checkVariableNames": false, "notallowed": {"showStrings": false, "message": "", "partialCredit": 0, "strings": ["^"]}, "showCorrectAnswer": true, "musthave": {"showStrings": false, "message": "", "partialCredit": 0, "strings": ["(", ")"]}, "useCustomName": false, "customMarkingAlgorithm": "", "checkingAccuracy": 0.001, "marks": "2", "prompt": "

$\\simplify{{a*c}x^2 + {a*d + c*b}x + {b*d}}$

", "variableReplacementStrategy": "originalfirst", "scripts": {}, "extendBaseMarkingAlgorithm": true, "showPreview": true, "unitTests": [], "variableReplacements": [], "vsetRange": [0, 1]}], "contributors": [{"name": "Andrew Stacey", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1605/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}]}], "contributors": [{"name": "Andrew Stacey", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1605/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}