// Numbas version: exam_results_page_options {"name": "Factorise a quadratic", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Factorise a quadratic", "tags": ["checked2015", "factorisation", "Factorisation", "factorise a quadratic", "factorization", "factorize a quadratic", "linear factors", "quadratics", "steps", "Steps"], "metadata": {"description": "

Factorise $\\displaystyle{ax ^ 2 + bx + c}$ into linear factors. 

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

Factorise the following quadratic expression $q(x)$ into linear factors i.e. input $q(x)$ in the form $(ax+b)(cx+d)$or of the form $a(x+b)(cx+d)$ for suitable integers $a$, $b$, $c$ and $d$ .

", "advice": "

Direct Factorisation.

\n

If you can spot a direct factorisation then this is the quickest way to do this question.

\n

For this example we have the factorisation

\n

\\[\\simplify{{a*b} * x ^ 2 + ( {-b*c-a * d}) * x + {c * d} = ({a} * x + { -c}) * ({b} * x + { -d})}\\]

\n

Factorisation by finding the roots.

\n

For if $x=r$ and $x=s$ and are the roots then $q(x)=a(x-r)(x-s)$ where $a$ is the coefficient of $x^2$.

\n

There are several methods of finding the roots – here are the main methods.

\n

Finding the roots of a quadratic using the standard formula.

\n

We can use the following formula for finding the roots of a general quadratic equation $ax^2+bx+c=0$

\n

The two roots are

\n

\\[ x = \\frac{-b +\\sqrt{b^2-4ac}}{2a}\\mbox{ and } x = \\frac{-b -\\sqrt{b^2-4ac}}{2a}\\]
there are three main types of solutions depending upon the value of the discriminant $\\Delta=b^2-4ac$

\n

1. $\\Delta \\gt 0$. The roots are real and distinct

\n

2. $\\Delta=0$. The roots are real and equal. Their common value is $-\\frac{b}{2a}$

\n

3. $\\Delta \\lt 0$. There are no real roots. The root are complex and form a complex conjugate pair.

\n

For this question the discriminant of $\\simplify{{a*b}x^2+{-b*c-a*d}x+{c*d}}$ is $\\Delta = \\simplify{{-(b*c+a*d)}^2-4*{a*b}*{c*d}={disc}}$

\n

{rdis}.

\n

So the {rep} roots are:

\n

\\[\\begin{eqnarray} x = \\frac{\\var{n1} + \\sqrt{\\var{disc}}}{\\var{n3}} &=& \\frac{\\var{n1} + \\var{n4} }{\\var{n3}} &=& \\simplify{{n1 + n4}/ {n3}}\\\\ x = \\frac{\\var{n1} - \\sqrt{\\var{disc}}}{\\var{n3}} &=& \\frac{(\\var{n1} - \\var{n4}) }{\\var{n3}} &=& \\simplify{{n1 - n4}/ {n3}} \\end{eqnarray}\\]
So we see that:
\\[q(x)=\\simplify{{a*b}}\\left(\\simplify{x-{n1 + n4}/ {n3}}\\right)\\left(\\simplify{x-{n1 - n4}/ {n3}}\\right)=\\simplify{({b} * x + { -d}) * ({a} * x + { -c})}\\]

\n

Completing the square.

\n

First we complete the square for the quadratic expression $\\simplify{{a*b}x^2+{-n1}x+{c*d}}$
\\[\\begin{eqnarray} \\simplify{{a*b}x^2+{-n1}x+{c*d}}&=&\\var{n5}\\left(\\simplify{x^2+({-n1}/{a*b})x+ {c*d}/{a*b}}\\right)\\\\ &=&\\var{n5}\\left(\\left(\\simplify{x+({-n1}/{2*a*b})}\\right)^2+ \\simplify{{c*d}/{a*b}-({-n1}/({2*a*b}))^2}\\right)\\\\ &=&\\var{n5}\\left(\\left(\\simplify{x+({-n1}/{2*a*b})}\\right)^2 -\\simplify{ {n2^2}/{4*(a*b)^2}}\\right) \\end{eqnarray} \\]
So to solve $\\simplify{{a*b}x^2+{-n1}x+{c*d}}=0$ we have to solve:
\\[\\begin{eqnarray} \\left(\\simplify{x+({-n1}/{2*a*b})}\\right)^2&\\phantom{{}}& -\\simplify{ {n2^2}/{4*(a*b)^2}}=0\\Rightarrow\\\\ \\left(\\simplify{x+({-n1}/{2*a*b})}\\right)^2&\\phantom{{}}&=\\simplify{ {n2^2}/{4*(a*b)^2}=({abs(n2)}/{2*a*b})^2} \\end{eqnarray}\\]
So we get the two {rep} solutions:
\\[\\begin{eqnarray} \\simplify{x+({-n1}/{2*a*b})}&=&\\simplify{{abs(n2)}/{2*a*b}} \\Rightarrow &x& = \\simplify{({abs(n2)+n1}/{2*a*b})}\\\\ \\simplify{x+({-n1}/{2*a*b})}&=&\\simplify{-({abs(n2)}/{2*a*b})} \\Rightarrow &x& = \\simplify{({n1-abs(n2)}/{2*a*b})} \\end{eqnarray}\\]
Finding these roots then gives the factorisation as before.

", "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers"]}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"s1": {"name": "s1", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything", "can_override": false}, "disc": {"name": "disc", "group": "Ungrouped variables", "definition": "(b*c+a*d)^2-4*a*b*c*d", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "if(a=1,random(2..3),random(1..2))", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "c1*s3", "description": "", "templateType": "anything", "can_override": false}, "f": {"name": "f", "group": "Ungrouped variables", "definition": "a*b", "description": "", "templateType": "anything", "can_override": false}, "d1": {"name": "d1", "group": "Ungrouped variables", "definition": "switch(f=1, random(1..3),f=2,random(1,3),f=3,random(1,2),f=4,random(1,3),f=6, random(1,5),f=9,random(1,2),f=8,random(1,3),f=12,random(1,5),random(1,3))", "description": "", "templateType": "anything", "can_override": false}, "s2": {"name": "s2", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(1..2)", "description": "", "templateType": "anything", "can_override": false}, "n3": {"name": "n3", "group": "Ungrouped variables", "definition": "2*a*b", "description": "", "templateType": "anything", "can_override": false}, "n2": {"name": "n2", "group": "Ungrouped variables", "definition": "b*c-a*d", "description": "", "templateType": "anything", "can_override": false}, "c1": {"name": "c1", "group": "Ungrouped variables", "definition": "switch(f=1, random(1..3),f=2,random(1,3),f=3,random(1,2),f=4,random(1,3),f=6, random(1,5),f=9,random(1,2,4),f=8,random(1,3),f=12,random(1,5),random(1,3))", "description": "", "templateType": "anything", "can_override": false}, "rdis": {"name": "rdis", "group": "Ungrouped variables", "definition": "switch(disc=0,'The discriminant is '+ 0+' and so we get two repeated roots in this case.',disc<0, 'There are no real roots.','The roots exist and are distinct. ')", "description": "", "templateType": "anything", "can_override": false}, "n4": {"name": "n4", "group": "Ungrouped variables", "definition": "abs(n2)", "description": "", "templateType": "anything", "can_override": false}, "s3": {"name": "s3", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything", "can_override": false}, "d": {"name": "d", "group": "Ungrouped variables", "definition": "if(d1=-b*c/a, max(d1+1,random(1..3))*s3,d1*s3)", "description": "", "templateType": "anything", "can_override": false}, "n1": {"name": "n1", "group": "Ungrouped variables", "definition": "b*c+a*d", "description": "", "templateType": "anything", "can_override": false}, "n5": {"name": "n5", "group": "Ungrouped variables", "definition": "a*b", "description": "", "templateType": "anything", "can_override": false}, "rep": {"name": "rep", "group": "Ungrouped variables", "definition": "switch(disc=0,'repeated', ' ')", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "c", "b", "d", "f", "s3", "s2", "s1", "n4", "n2", "disc", "rdis", "n1", "rep", "n3", "c1", "n5", "d1"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

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

\n


You can get more information on factorising a quadratic by clicking on Show steps. You will lose 1 mark if you do so.

\n

 

", "stepsPenalty": 1, "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Factorisation by finding the roots

\n

If you cannot spot a direct factorisation of a quadratic $q(x)$ then finding the roots of the equation $q(x)=0$ can help you.

\n

For if $x=r$ and $x=s$ and are the roots then $q(x)=a(x-r)(x-s)$ for some constant $a$.

\n

Finding the roots of a quadratic using the standard formula
We can use the following formula for finding the roots of a general quadratic equation $ax^2+bx+c=0$

\n

The two roots are

\n

\\[ x = \\frac{-b +\\sqrt{b^2-4ac}}{2a}\\mbox{ and } x = \\frac{-b -\\sqrt{b^2-4ac}}{2a}\\]
there are three main types of solutions depending upon the value of the discriminant $\\Delta=b^2-4ac$

\n

1. $\\Delta \\gt 0$. The roots are real and distinct

\n

2. $\\Delta=0$. The roots are real and equal. Their value is $\\frac{-b}{2a}$

\n

3. $\\Delta \\lt 0$. There are no real roots. The root are complex and form a complex conjugate pair.

"}], "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 2, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "((({a} * x) + {( - c)}) * (({b} * x) + {( - d)}))", "answerSimplification": "std", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.0001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "musthave": {"strings": ["(", ")"], "showStrings": false, "partialCredit": 0, "message": "

factorise the expression into two factors

"}, "notallowed": {"strings": ["^", "x*x", "x x", "x(", "x (", ")x", ") x"], "showStrings": false, "partialCredit": 0, "message": "

Factorise the expression into two factors.

"}, "valuegenerators": [{"name": "x", "value": ""}]}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "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": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}]}], "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": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}