// Numbas version: exam_results_page_options {"name": "Terry's copy of Solving a perfect square by factorising", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"statement": "", "showQuestionGroupNames": false, "variable_groups": [], "functions": {}, "rulesets": {}, "parts": [{"stepsPenalty": 0, "steps": [{"marks": 0, "prompt": "

Recall that $(a+b)^2=(a+b)(a+b)=a^2+2ab+b^2$ is called a perfect square.

\n

In fact, $\\simplify{{aa}x^2+{mid}x+{bb}}$ is also a perfect square, since $\\var{aa}x^2=(\\var{a}x)^2$, $\\var{bb}=\\simplify{({b})^2}$, and $\\var{mid}x=2(\\var{a}x)(\\var{b})$.

\n

That is, $\\simplify{{aa}x^2+{mid}x+{bb}}=\\simplify{({a}x+{b})^2}$.

\n
\n

Now, since $\\simplify{({a}x+{b})^2}=0$ we can take the (plus or minus) square root of both sides to get $\\simplify{({a}x+{b})}=0$. We can then solve this for $x$ to find $x=\\simplify{-{b}/{a}}$.

\n

\n
\n
\n

Each bracket has a common factor of $\\var{g}$, so we can move both of them to the front, to write

\n

$\\simplify{{aa}x^2+{mid}x+{bb}}=\\simplify{{gg}({a/g}x+{b/g})^2}$.

\n

Now, using the null factor law, since $\\simplify{{gg}({a/g}x+{b/g})^2}=0$ we must have $\\simplify{{a/g}x+{b/g}}=0$. We can then solve this for $x$ to find $x=\\simplify{{-b}/{a}}$.

\n
\n

", "scripts": {}, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "type": "information", "showCorrectAnswer": true}], "prompt": "

Solve the following quadratic by factorisation:

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
$\\simplify{{aa}x^2+{mid}x+{bb}}$$=$0
$\\Longrightarrow$ [[0]]$=$0
$\\Longrightarrow$$x$$=$[[1]]
\n

\n

Note: In the first gap, enter the quadratic in factored form.

\n

Note: In the second gap, there should only be one solution.

", "scripts": {}, "variableReplacementStrategy": "originalfirst", "marks": 0, "variableReplacements": [], "gaps": [{"answersimplification": "all", "vsetrangepoints": 5, "checkingtype": "absdiff", "variableReplacements": [], "vsetrange": [0, 1], "checkvariablenames": true, "showCorrectAnswer": true, "expectedvariablenames": ["x"], "marks": 1, "notallowed": {"message": "

Ensure you factorise the expression.

", "showStrings": false, "strings": ["xx", "x^2", "x**2", "x*x"], "partialCredit": 0}, "showpreview": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "answer": "({gg})({a/g}x+{b/g})^2", "type": "jme", "checkingaccuracy": 0.001, "musthave": {"message": "

Ensure you factorise the expression.

", "showStrings": false, "strings": ["(", ")"], "partialCredit": 0}}, {"correctAnswerFraction": true, "marks": 1, "scripts": {}, "minValue": "{-b}/{a}", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "type": "numberentry", "maxValue": "{-b}/{a}", "allowFractions": true, "showPrecisionHint": false, "showCorrectAnswer": true}], "type": "gapfill", "showCorrectAnswer": true}, {"stepsPenalty": 0, "steps": [{"marks": 0, "prompt": "

Recall that $(a+b)^2=(a+b)(a+b)=a^2+2ab+b^2$ is called a perfect square.

\n

In fact, $\\simplify{{c[0]^2}/{c[1]^2} x^2+{2c[0]*d}/{(c[1]*c[2])}x+{d^2}/{c[2]^2}}$ is also a perfect square, since

\n\n

That is, 

\n

$\\simplify{{c[0]^2}/{c[1]^2} x^2+{2c[0]*d}/{(c[1]*c[2])}x+{d^2}/{c[2]^2}}=\\simplify{({c[0]}/{c[1]}x+{d}/{c[2]})^2}$.

\n

\n

Now, since $\\simplify{({c[0]}/{c[1]}x+{d}/{c[2]})^2}=0$ we can take the (plus or minus) square root of both sides to get $\\simplify{{c[0]}/{c[1]}x+{d}/{c[2]}}=0$. We can then solve this for $x$ to find $x=\\simplify{{-d*c[1]}/{c[0]*c[2]}}$.

\n

", "scripts": {}, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "type": "information", "showCorrectAnswer": true}], "prompt": "

Solve the following quadratic by factorisation:

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
$\\simplify{{c[0]^2}/{c[1]^2} x^2+{2c[0]*d}/{(c[1]*c[2])}x+{d^2}/{c[2]^2}}$$=$0
$\\Longrightarrow$ [[0]]$=$0
$\\Longrightarrow$$x$$=$[[1]]
\n

\n

Note: In the first gap, enter the quadratic in factored form.

\n

Note: In the second gap, there should only be one solution.

\n

", "scripts": {}, "variableReplacementStrategy": "originalfirst", "marks": 0, "variableReplacements": [], "gaps": [{"answersimplification": "all", "vsetrangepoints": 5, "checkingtype": "absdiff", "variableReplacements": [], "vsetrange": [0, 1], "checkvariablenames": true, "showCorrectAnswer": true, "expectedvariablenames": ["x"], "marks": "2", "notallowed": {"message": "

Ensure you factorise the expression.

", "showStrings": false, "strings": ["**2", "xx", "x^2", "(x)^2"], "partialCredit": 0}, "showpreview": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "answer": "({c[0]}/{c[1]}x+{d}/{c[2]})^2", "type": "jme", "checkingaccuracy": 0.001, "musthave": {"message": "

Ensure you factorise the expression.

", "showStrings": false, "strings": ["(", ")^2"], "partialCredit": 0}}, {"correctAnswerFraction": true, "marks": 1, "scripts": {}, "minValue": "{-d*c[1]}/{c[0]*c[2]}", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "type": "numberentry", "maxValue": "{-d*c[1]}/{c[0]*c[2]}", "allowFractions": true, "showPrecisionHint": false, "showCorrectAnswer": true}], "type": "gapfill", "showCorrectAnswer": true}], "metadata": {"description": "", "notes": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "preamble": {"js": "", "css": ""}, "advice": "", "variablesTest": {"maxRuns": "127", "condition": ""}, "ungrouped_variables": ["a", "b", "aa", "bb", "mid", "g", "gg", "c", "d"], "variables": {"b": {"definition": "random(-12..12 except 0)", "description": "", "templateType": "anything", "group": "Ungrouped variables", "name": "b"}, "c": {"definition": "shuffle(2..12)[0..3]", "description": "", "templateType": "anything", "group": "Ungrouped variables", "name": "c"}, "gg": {"definition": "g^2", "description": "", "templateType": "anything", "group": "Ungrouped variables", "name": "gg"}, "aa": {"definition": "a^2", "description": "", "templateType": "anything", "group": "Ungrouped variables", "name": "aa"}, "mid": {"definition": "2*a*b", "description": "", "templateType": "anything", "group": "Ungrouped variables", "name": "mid"}, "g": {"definition": "gcd(a,b)", "description": "", "templateType": "anything", "group": "Ungrouped variables", "name": "g"}, "a": {"definition": "random(2..12)", "description": "", "templateType": "anything", "group": "Ungrouped variables", "name": "a"}, "bb": {"definition": "b^2", "description": "", "templateType": "anything", "group": "Ungrouped variables", "name": "bb"}, "d": {"definition": "random(-12..-2)", "description": "", "templateType": "anything", "group": "Ungrouped variables", "name": "d"}}, "tags": ["binomial", "factorisation", "Factorisation", "factorise", "perfect square", "quadratic", "quadratics", "solving", "square"], "name": "Terry's copy of Solving a perfect square by factorising", "type": "question", "question_groups": [{"questions": [], "pickingStrategy": "all-ordered", "pickQuestions": 0, "name": ""}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Terry Young", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3130/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Terry Young", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3130/"}]}