// Numbas version: exam_results_page_options {"name": "Simon's copy of Factorising Quadratic Equations with $x^2$ Coefficients of 1", "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": "

Factorise three quadratic equations of the form $x^2+bx+c$.

\n

The first has two negative roots, the second has one negative and one positive, and the third is the difference of two squares.

"}, "variablesTest": {"condition": "", "maxRuns": 100}, "tags": [], "name": "Simon's copy of Factorising Quadratic Equations with $x^2$ Coefficients of 1", "advice": "

Quadratic expressions of the form \\[x^2+bx+c\\] can be factorised to create an equation of the form \\[(x+m)(x+n)\\text{.}\\]

\n

Note also that \\[(x+m)(x+n)=x^2+(m+n)x+(m \\times n)\\text{.}\\]

\n

Thus to factorise an expression of the form $x^2+bx+c$, we need to find two numbers which add together to make $b$, and multiply together to make $c$.

\n

\n

(a)

\n

\\[\\simplify{x^2+{v1+v2}x+{v1*v2}}\\]

\n

We need to find two values that add together to make $\\var{v1+v2}$ and multiply together to make $\\var{v1*v2}$.

\n

\\[\\begin{align}
\\var{v1} \\times \\var{v2}&=\\var{v1*v2}\\\\
\\var{v1}+\\var{v2}&=\\var{v1+v2}\\\\
\\end{align} \\]

\n

So the factorised form of the expression is

\n

\\[\\simplify{(x+{v1})(x+{v2})}\\text{.}\\]

\n

\n

(b)

\n

We need to find two numbers that multiply to give $\\var{v3*v4}$ and add together to give $\\var{v3+v4}$.

\n

\\[\\begin{align}
\\var{v3} \\times \\var{v4}&=\\var{v3*v4}\\\\
\\var{v3}+\\var{v4}&=\\var{v3+v4}\\\\
\\end{align} \\]

\n

So the factorised form of the expressionis

\n

\\[\\simplify{(x+{v3})(x+{v4})}\\text{.}\\]

\n

\n

Hence to solve $\\simplify{x^2+{v3+v4}x+{v3*v4}}=0$ we have:

\n

$\\simplify{(x+{v3})(x+{v4})}=0$

\n

So either $\\simplify{(x+{v3})}=0$   or   $\\simplify{(x+{v4})}=0$

\n

which gives solutions of $x=\\var{-v3}$ or $x=\\var{-v4}$

\n

(c)

\n

When factorising the quadratic expression

\n

\\[\\simplify{x^2+{v5*v6}}\\]

\n

we need to find two values that add together to make $0$ and multiply together to make $\\var{v5*v6}$.

\n

\\begin{align}
\\var{v5} \\times \\var{v6}& = \\var{v5*v6}\\\\
\\simplify[]{ {v5} + {v6}} &= 0 \\\\
\\end{align}

\n

So the factorised form of the expression is

\n

\\[\\simplify{(x+{v5})(x+{v6})}\\text{.}\\]

\n

\n

\n

Note this is a common form of quadratic called a \"Difference of Two Squares\". In general $x^2-a^2=(x-a)(x+a)$

", "variables": {"v3": {"templateType": "anything", "name": "v3", "description": "", "group": "Part A ", "definition": "random(-8..-1)"}, "v2": {"templateType": "anything", "name": "v2", "description": "", "group": "Part A ", "definition": "random(2..6 except v1)"}, "v6": {"templateType": "anything", "name": "v6", "description": "", "group": "Part A ", "definition": "-v5"}, "v1": {"templateType": "anything", "name": "v1", "description": "", "group": "Part A ", "definition": "random(1..10)"}, "v5": {"templateType": "anything", "name": "v5", "description": "", "group": "Part A ", "definition": "random(2..10)"}, "v4": {"templateType": "anything", "name": "v4", "description": "", "group": "Part A ", "definition": "random(1..10 except -v3)"}}, "preamble": {"css": "", "js": "question.is_factorised = function(part,penalty) {\n penalty = penalty || 0;\n if(part.credit>0) {\n // Parse the student's answer as a syntax tree\n var studentTree = Numbas.jme.compile(part.studentAnswer,Numbas.jme.builtinScope);\n\n // Create the pattern to match against \n // we just want two sets of brackets, each containing two terms\n // or one of the brackets might not have a constant term\n // or for repeated roots, you might write (x+a)^2\n var rule = Numbas.jme.compile('m_all(m_any(x,x+m_pm(m_number),x^m_number,(x+m_pm(m_number))^m_number))*m_nothing');\n\n // Check the student's answer matches the pattern. \n var m = Numbas.jme.display.matchTree(rule,studentTree,true);\n // If not, take away marks\n if(!m) {\n part.multCredit(penalty,'Your answer is not fully factorised.');\n }\n }\n}"}, "ungrouped_variables": [], "parts": [{"variableReplacements": [], "customMarkingAlgorithm": "", "unitTests": [], "gaps": [{"variableReplacements": [], "customMarkingAlgorithm": "", "unitTests": [], "vsetRangePoints": 5, "answer": "(x+{v1})(x+{v2})", "type": "jme", "failureRate": 1, "showPreview": true, "checkingAccuracy": 0.001, "scripts": {"mark": {"script": "question.is_factorised(this);", "order": "after"}}, "expectedVariableNames": [], "marks": 1, "extendBaseMarkingAlgorithm": true, "checkingType": "absdiff", "showFeedbackIcon": true, "checkVariableNames": false, "variableReplacementStrategy": "originalfirst", "vsetRange": [0, 1], "showCorrectAnswer": true}], "type": "gapfill", "prompt": "

$\\simplify{x^2+{v1+v2}x+{v1*v2}}$

\n

[[0]] 

\n

", "marks": 0, "extendBaseMarkingAlgorithm": true, "sortAnswers": false, "showFeedbackIcon": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true}, {"variableReplacements": [], "customMarkingAlgorithm": "", "unitTests": [], "gaps": [{"variableReplacements": [], "customMarkingAlgorithm": "", "unitTests": [], "vsetRangePoints": 5, "answer": "(x+{v3})(x+{v4})", "type": "jme", "failureRate": 1, "showPreview": true, "checkingAccuracy": 0.001, "scripts": {"mark": {"script": "question.is_factorised(this);", "order": "after"}}, "expectedVariableNames": [], "marks": 1, "extendBaseMarkingAlgorithm": true, "checkingType": "absdiff", "showFeedbackIcon": true, "checkVariableNames": false, "variableReplacementStrategy": "originalfirst", "vsetRange": [0, 1], "showCorrectAnswer": true}, {"variableReplacements": [], "customMarkingAlgorithm": "", "unitTests": [], "allowFractions": false, "correctAnswerStyle": "plain", "minValue": "-{v4}", "type": "numberentry", "scripts": {}, "maxValue": "-{v4}", "marks": 1, "extendBaseMarkingAlgorithm": true, "mustBeReduced": false, "correctAnswerFraction": false, "mustBeReducedPC": 0, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"]}, {"variableReplacements": [], "customMarkingAlgorithm": "", "unitTests": [], "allowFractions": false, "correctAnswerStyle": "plain", "minValue": "-{v3}", "type": "numberentry", "scripts": {}, "maxValue": "-{v3}", "marks": 1, "extendBaseMarkingAlgorithm": true, "mustBeReduced": false, "correctAnswerFraction": false, "mustBeReducedPC": 0, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"]}], "type": "gapfill", "prompt": "

$\\simplify{x^2+{v3+v4}x+{v3*v4}}$

\n

[[0]] 

\n

\n

Hence solve $\\simplify{x^2+{v3+v4}x+{v3*v4}}=0$       (Put your answers in ascending order!)

\n

$x=$[[1]]    or $x=$[[2]]

\n

", "marks": 0, "extendBaseMarkingAlgorithm": true, "sortAnswers": false, "showFeedbackIcon": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true}, {"variableReplacements": [], "customMarkingAlgorithm": "", "unitTests": [], "gaps": [{"variableReplacements": [], "customMarkingAlgorithm": "", "unitTests": [], "vsetRangePoints": 5, "answer": "(x+{v5})(x+{v6})", "type": "jme", "failureRate": 1, "showPreview": true, "checkingAccuracy": 0.001, "scripts": {"mark": {"script": "question.is_factorised(this);", "order": "after"}}, "expectedVariableNames": [], "marks": 1, "extendBaseMarkingAlgorithm": true, "checkingType": "absdiff", "showFeedbackIcon": true, "checkVariableNames": false, "variableReplacementStrategy": "originalfirst", "vsetRange": [0, 1], "showCorrectAnswer": true}], "type": "gapfill", "prompt": "

$\\simplify{x^2+{v5*v6}}$

\n

[[0]] 

\n

\n

", "marks": 0, "extendBaseMarkingAlgorithm": true, "sortAnswers": false, "showFeedbackIcon": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true}], "rulesets": {}, "statement": "

Factorise the following quadratic expressions.

\n

", "extensions": [], "variable_groups": [{"name": "Part A ", "variables": ["v1", "v2", "v3", "v4", "v5", "v6"]}], "functions": {}, "type": "question", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Chris Graham", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/369/"}, {"name": "Hannah Aldous", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1594/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Chris Graham", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/369/"}, {"name": "Hannah Aldous", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1594/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}