// Numbas version: exam_results_page_options {"showstudentname": true, "question_groups": [{"pickingStrategy": "all-ordered", "pickQuestions": 1, "name": "Group", "questions": [{"name": "Quadratics 1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "emma rand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/115/"}], "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "questions": [], "pickQuestions": 0}], "showQuestionGroupNames": false, "variablesTest": {"maxRuns": 100, "condition": ""}, "parts": [{"variableReplacementStrategy": "originalfirst", "gaps": [{"checkvariablenames": false, "variableReplacements": [], "showCorrectAnswer": true, "checkingtype": "absdiff", "answer": "min(-{r1},-{r2})", "scripts": {}, "variableReplacementStrategy": "originalfirst", "checkingaccuracy": 0.001, "vsetrangepoints": 5, "vsetrange": [0, 1], "showpreview": true, "expectedvariablenames": [], "type": "jme", "marks": 1}, {"checkvariablenames": false, "variableReplacements": [], "showCorrectAnswer": true, "checkingtype": "absdiff", "answer": "max(-{r1},-{r2})", "scripts": {}, "variableReplacementStrategy": "originalfirst", "checkingaccuracy": 0.001, "vsetrangepoints": 5, "vsetrange": [0, 1], "showpreview": true, "expectedvariablenames": [], "type": "jme", "marks": 1}], "marks": 0, "prompt": "

The smallest root is $x=$[[0]] and the greatest root is $x=$[[1]]

", "variableReplacements": [], "showCorrectAnswer": true, "type": "gapfill", "scripts": {}}], "metadata": {"description": "

solve ax^2+bx+c=0 when a = 1 roots are integers

", "licence": "None specified", "notes": ""}, "tags": [], "functions": {}, "advice": "", "variable_groups": [], "ungrouped_variables": ["r1", "r2", "a", "b", "c"], "type": "question", "statement": "

$\\simplify{ x ^ 2 +  {b} * x + {c }}=0$

", "variables": {"r2": {"description": "", "definition": "random(-8..8 except[0,r1])", "templateType": "anything", "group": "Ungrouped variables", "name": "r2"}, "r1": {"description": "", "definition": "random(-8..8 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "r1"}, "c": {"description": "", "definition": "r1*r2", "templateType": "anything", "group": "Ungrouped variables", "name": "c"}, "b": {"description": "", "definition": "r1+r2", "templateType": "anything", "group": "Ungrouped variables", "name": "b"}, "a": {"description": "", "definition": "1", "templateType": "anything", "group": "Ungrouped variables", "name": "a"}}, "rulesets": {}, "preamble": {"css": "", "js": ""}}, {"name": "Quadratics 1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "emma rand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/115/"}], "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "questions": [], "pickQuestions": 0}], "showQuestionGroupNames": false, "variablesTest": {"maxRuns": 100, "condition": ""}, "parts": [{"variableReplacementStrategy": "originalfirst", "gaps": [{"checkvariablenames": false, "variableReplacements": [], "showCorrectAnswer": true, "checkingtype": "absdiff", "answer": "min(-{r1},-{r2})", "scripts": {}, "variableReplacementStrategy": "originalfirst", "checkingaccuracy": 0.001, "vsetrangepoints": 5, "vsetrange": [0, 1], "showpreview": true, "expectedvariablenames": [], "type": "jme", "marks": 1}, {"checkvariablenames": false, "variableReplacements": [], "showCorrectAnswer": true, "checkingtype": "absdiff", "answer": "max(-{r1},-{r2})", "scripts": {}, "variableReplacementStrategy": "originalfirst", "checkingaccuracy": 0.001, "vsetrangepoints": 5, "vsetrange": [0, 1], "showpreview": true, "expectedvariablenames": [], "type": "jme", "marks": 1}], "marks": 0, "prompt": "

The smallest root is $x=$[[0]] and the greatest root is $x=$[[1]]

", "variableReplacements": [], "showCorrectAnswer": true, "type": "gapfill", "scripts": {}}], "metadata": {"description": "

solve ax^2+bx+c=0 when a = 1 roots are integers

", "licence": "None specified", "notes": ""}, "tags": [], "functions": {}, "advice": "", "variable_groups": [], "ungrouped_variables": ["r1", "r2", "a", "b", "c"], "type": "question", "statement": "

$\\simplify{ x ^ 2 +  {b} * x + {c }}=0$

", "variables": {"r2": {"description": "", "definition": "random(-8..8 except[0,r1])", "templateType": "anything", "group": "Ungrouped variables", "name": "r2"}, "r1": {"description": "", "definition": "random(-8..8 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "r1"}, "c": {"description": "", "definition": "r1*r2", "templateType": "anything", "group": "Ungrouped variables", "name": "c"}, "b": {"description": "", "definition": "r1+r2", "templateType": "anything", "group": "Ungrouped variables", "name": "b"}, "a": {"description": "", "definition": "1", "templateType": "anything", "group": "Ungrouped variables", "name": "a"}}, "rulesets": {}, "preamble": {"css": "", "js": ""}}, {"name": "Quadratics 1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "emma rand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/115/"}], "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "questions": [], "pickQuestions": 0}], "showQuestionGroupNames": false, "variablesTest": {"maxRuns": 100, "condition": ""}, "parts": [{"variableReplacementStrategy": "originalfirst", "gaps": [{"checkvariablenames": false, "variableReplacements": [], "showCorrectAnswer": true, "checkingtype": "absdiff", "answer": "min(-{r1},-{r2})", "scripts": {}, "variableReplacementStrategy": "originalfirst", "checkingaccuracy": 0.001, "vsetrangepoints": 5, "vsetrange": [0, 1], "showpreview": true, "expectedvariablenames": [], "type": "jme", "marks": 1}, {"checkvariablenames": false, "variableReplacements": [], "showCorrectAnswer": true, "checkingtype": "absdiff", "answer": "max(-{r1},-{r2})", "scripts": {}, "variableReplacementStrategy": "originalfirst", "checkingaccuracy": 0.001, "vsetrangepoints": 5, "vsetrange": [0, 1], "showpreview": true, "expectedvariablenames": [], "type": "jme", "marks": 1}], "marks": 0, "prompt": "

The smallest root is $x=$[[0]] and the greatest root is $x=$[[1]]

", "variableReplacements": [], "showCorrectAnswer": true, "type": "gapfill", "scripts": {}}], "metadata": {"description": "

solve ax^2+bx+c=0 when a = 1 roots are integers

", "licence": "None specified", "notes": ""}, "tags": [], "functions": {}, "advice": "", "variable_groups": [], "ungrouped_variables": ["r1", "r2", "a", "b", "c"], "type": "question", "statement": "

$\\simplify{ x ^ 2 +  {b} * x + {c }}=0$

", "variables": {"r2": {"description": "", "definition": "random(-8..8 except[0,r1])", "templateType": "anything", "group": "Ungrouped variables", "name": "r2"}, "r1": {"description": "", "definition": "random(-8..8 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "r1"}, "c": {"description": "", "definition": "r1*r2", "templateType": "anything", "group": "Ungrouped variables", "name": "c"}, "b": {"description": "", "definition": "r1+r2", "templateType": "anything", "group": "Ungrouped variables", "name": "b"}, "a": {"description": "", "definition": "1", "templateType": "anything", "group": "Ungrouped variables", "name": "a"}}, "rulesets": {}, "preamble": {"css": "", "js": ""}}, {"name": "Quadratics 1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "emma rand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/115/"}], "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "questions": [], "pickQuestions": 0}], "showQuestionGroupNames": false, "variablesTest": {"maxRuns": 100, "condition": ""}, "parts": [{"variableReplacementStrategy": "originalfirst", "gaps": [{"checkvariablenames": false, "variableReplacements": [], "showCorrectAnswer": true, "checkingtype": "absdiff", "answer": "min(-{r1},-{r2})", "scripts": {}, "variableReplacementStrategy": "originalfirst", "checkingaccuracy": 0.001, "vsetrangepoints": 5, "vsetrange": [0, 1], "showpreview": true, "expectedvariablenames": [], "type": "jme", "marks": 1}, {"checkvariablenames": false, "variableReplacements": [], "showCorrectAnswer": true, "checkingtype": "absdiff", "answer": "max(-{r1},-{r2})", "scripts": {}, "variableReplacementStrategy": "originalfirst", "checkingaccuracy": 0.001, "vsetrangepoints": 5, "vsetrange": [0, 1], "showpreview": true, "expectedvariablenames": [], "type": "jme", "marks": 1}], "marks": 0, "prompt": "

The smallest root is $x=$[[0]] and the greatest root is $x=$[[1]]

", "variableReplacements": [], "showCorrectAnswer": true, "type": "gapfill", "scripts": {}}], "metadata": {"description": "

solve ax^2+bx+c=0 when a = 1 roots are integers

", "licence": "None specified", "notes": ""}, "tags": [], "functions": {}, "advice": "", "variable_groups": [], "ungrouped_variables": ["r1", "r2", "a", "b", "c"], "type": "question", "statement": "

$\\simplify{ x ^ 2 +  {b} * x + {c }}=0$

", "variables": {"r2": {"description": "", "definition": "random(-8..8 except[0,r1])", "templateType": "anything", "group": "Ungrouped variables", "name": "r2"}, "r1": {"description": "", "definition": "random(-8..8 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "r1"}, "c": {"description": "", "definition": "r1*r2", "templateType": "anything", "group": "Ungrouped variables", "name": "c"}, "b": {"description": "", "definition": "r1+r2", "templateType": "anything", "group": "Ungrouped variables", "name": "b"}, "a": {"description": "", "definition": "1", "templateType": "anything", "group": "Ungrouped variables", "name": "a"}}, "rulesets": {}, "preamble": {"css": "", "js": ""}}, {"name": "Quadratics 1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "emma rand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/115/"}], "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "questions": [], "pickQuestions": 0}], "showQuestionGroupNames": false, "variablesTest": {"maxRuns": 100, "condition": ""}, "parts": [{"variableReplacementStrategy": "originalfirst", "gaps": [{"checkvariablenames": false, "variableReplacements": [], "showCorrectAnswer": true, "checkingtype": "absdiff", "answer": "min(-{r1},-{r2})", "scripts": {}, "variableReplacementStrategy": "originalfirst", "checkingaccuracy": 0.001, "vsetrangepoints": 5, "vsetrange": [0, 1], "showpreview": true, "expectedvariablenames": [], "type": "jme", "marks": 1}, {"checkvariablenames": false, "variableReplacements": [], "showCorrectAnswer": true, "checkingtype": "absdiff", "answer": "max(-{r1},-{r2})", "scripts": {}, "variableReplacementStrategy": "originalfirst", "checkingaccuracy": 0.001, "vsetrangepoints": 5, "vsetrange": [0, 1], "showpreview": true, "expectedvariablenames": [], "type": "jme", "marks": 1}], "marks": 0, "prompt": "

The smallest root is $x=$[[0]] and the greatest root is $x=$[[1]]

", "variableReplacements": [], "showCorrectAnswer": true, "type": "gapfill", "scripts": {}}], "metadata": {"description": "

solve ax^2+bx+c=0 when a = 1 roots are integers

", "licence": "None specified", "notes": ""}, "tags": [], "functions": {}, "advice": "", "variable_groups": [], "ungrouped_variables": ["r1", "r2", "a", "b", "c"], "type": "question", "statement": "

$\\simplify{ x ^ 2 +  {b} * x + {c }}=0$

", "variables": {"r2": {"description": "", "definition": "random(-8..8 except[0,r1])", "templateType": "anything", "group": "Ungrouped variables", "name": "r2"}, "r1": {"description": "", "definition": "random(-8..8 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "r1"}, "c": {"description": "", "definition": "r1*r2", "templateType": "anything", "group": "Ungrouped variables", "name": "c"}, "b": {"description": "", "definition": "r1+r2", "templateType": "anything", "group": "Ungrouped variables", "name": "b"}, "a": {"description": "", "definition": "1", "templateType": "anything", "group": "Ungrouped variables", "name": "a"}}, "rulesets": {}, "preamble": {"css": "", "js": ""}}, {"name": "Quadratics equations 2", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "emma rand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/115/"}], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "parts": [{"prompt": "

$2x^2 + 13x+20=0$

", "minAnswers": 1, "matrix": ["0.5", "0", 0, 0, 0, 0.5], "scripts": {}, "showCorrectAnswer": true, "choices": ["

-4

", "

4

", "

-5

", "

-2

", "

0.4

", "

-2.5

"], "displayColumns": 0, "showFeedbackIcon": true, "warningType": "none", "variableReplacementStrategy": "originalfirst", "maxAnswers": 2, "maxMarks": 1, "minMarks": 0, "distractors": ["", "", "", "", "", ""], "displayType": "checkbox", "type": "m_n_2", "marks": 0, "variableReplacements": [], "shuffleChoices": true}, {"prompt": "

$x^2-4x+4=0$

", "minAnswers": 1, "matrix": [0, 0, 1, 0, 0, 0], "scripts": {}, "showCorrectAnswer": true, "choices": ["

1

", "

-1

", "

2

", "

-2

", "

4

", "

-4

"], "displayColumns": 0, "showFeedbackIcon": true, "warningType": "none", "variableReplacementStrategy": "originalfirst", "maxAnswers": 2, "maxMarks": 1, "minMarks": 0, "distractors": ["", "", "", "", "", ""], "displayType": "checkbox", "type": "m_n_2", "marks": 0, "variableReplacements": [], "shuffleChoices": true}, {"prompt": "

$4x^2+x-14=0$

", "minAnswers": 1, "matrix": [0.5, 0, 0, 0, 0.5, 0], "scripts": {}, "showCorrectAnswer": true, "choices": ["

-2

", "

-1

", "

4

", "

7

", "

7/4

", "

4/7

"], "displayColumns": 0, "showFeedbackIcon": true, "warningType": "none", "variableReplacementStrategy": "originalfirst", "maxAnswers": 2, "maxMarks": 1, "minMarks": "", "distractors": ["", "", "", "", "", ""], "displayType": "checkbox", "type": "m_n_2", "marks": 0, "variableReplacements": [], "shuffleChoices": true}, {"prompt": "

$4x^2+12x+9=0$

", "minAnswers": 1, "matrix": [0, 1, 0, 0, 0, 0], "scripts": {}, "showCorrectAnswer": true, "choices": ["

1.5

", "

-1.5

", "

-1

", "

1

", "

-2

", "

-2/3

"], "displayColumns": 0, "showFeedbackIcon": true, "warningType": "none", "variableReplacementStrategy": "originalfirst", "maxAnswers": 2, "maxMarks": 1, "minMarks": 0, "distractors": ["", "", "", "", "", ""], "displayType": "checkbox", "type": "m_n_2", "marks": 0, "variableReplacements": [], "shuffleChoices": true}, {"prompt": "

$12x^2-2x-10=0$

", "minAnswers": 1, "matrix": [0, 0.5, 0, 0, 0.5, 0], "scripts": {}, "showCorrectAnswer": true, "choices": ["

-1

", "

1

", "

2

", "

-2

", "

-5/6

", "

-6/5

"], "displayColumns": 0, "showFeedbackIcon": true, "warningType": "none", "variableReplacementStrategy": "originalfirst", "maxAnswers": 2, "maxMarks": 1, "minMarks": 0, "distractors": ["", "", "", "", "", ""], "displayType": "checkbox", "type": "m_n_2", "marks": 0, "variableReplacements": [], "shuffleChoices": true}], "statement": "

Find the solutions of the following quadratics. If a root is repeated then only provide one answer.

", "tags": ["functions", "maps"], "advice": "

Nothing of interest in advice section

", "ungrouped_variables": [], "rulesets": {}, "variable_groups": [], "functions": {"f'": {"language": "jme", "type": "number", "definition": "cos(a)", "parameters": [["a", "number"]]}, "g'": {"language": "jme", "type": "number", "definition": "a^2", "parameters": [["a", "number"]]}, "f": {"language": "jme", "type": "number", "definition": "sin(a)", "parameters": [["a", "number"]]}, "g": {"language": "jme", "type": "number", "definition": "a", "parameters": [["a", "number"]]}}, "metadata": {"licence": "None specified", "description": "

Exercises in solving quadratics - guess the solutions

"}, "preamble": {"js": "", "css": ""}, "type": "question"}, {"name": "Quadratic equations 3", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "emma rand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/115/"}], "functions": {}, "type": "question", "preamble": {"css": "", "js": ""}, "variablesTest": {"condition": "", "maxRuns": 100}, "tags": ["algebra", "Factorisation", "factorisation", "find roots of a quadratic equation", "quadratic formula", "quadratics", "roots of a quadratic equation", "solving a quadratic equation", "solving equations", "Solving equations", "steps", "Steps"], "variables": {"n4": {"description": "", "definition": "abs(n2)", "group": "Ungrouped variables", "templateType": "anything", "name": "n4"}, "c1": {"description": "", "definition": "switch(f=1, random(1..6),f=2,random(1,3,5,7,9),f=3,random(1,2,5,7,8),f=4,random(1,3,5,7,9),f=6, random(1,5,7,8),f=9,random(1,2,4,7,8),f=8,random(1,3,5,7,9),f=12,random(1,5,7),random(1,3,5,7))", "group": "Ungrouped variables", "templateType": "anything", "name": "c1"}, "rdis": {"description": "", "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. ')", "group": "Ungrouped variables", "templateType": "anything", "name": "rdis"}, "rep": {"description": "", "definition": "switch(disc=0,'repeated', ' ')", "group": "Ungrouped variables", "templateType": "anything", "name": "rep"}, "f": {"description": "", "definition": "a*b", "group": "Ungrouped variables", "templateType": "anything", "name": "f"}, "b": {"description": "", "definition": "random(1..4)", "group": "Ungrouped variables", "templateType": "anything", "name": "b"}, "n3": {"description": "", "definition": "2*a*b", "group": "Ungrouped variables", "templateType": "anything", "name": "n3"}, "d": {"description": "", "definition": "if((a*d1)^2=(b*c)^2, max(d1+1,random(1..5))*s3,d1*s3)", "group": "Ungrouped variables", "templateType": "anything", "name": "d"}, "disc": {"description": "", "definition": "(b*c+a*d)^2-4*a*b*c*d", "group": "Ungrouped variables", "templateType": "anything", "name": "disc"}, "n1": {"description": "", "definition": "b*c+a*d", "group": "Ungrouped variables", "templateType": "anything", "name": "n1"}, "c": {"description": "", "definition": "c1*s3", "group": "Ungrouped variables", "templateType": "anything", "name": "c"}, "n2": {"description": "", "definition": "b*c-a*d", "group": "Ungrouped variables", "templateType": "anything", "name": "n2"}, "d1": {"description": "", "definition": "switch(f=1, random(1..6),f=2,random(1,3,5,7,9),f=3,random(1,2,5,7,8),f=4,random(1,3,5,7,9),f=6, random(1,5,7,8),f=9,random(1,2,4,7,8),f=8,random(1,3,5,7,9),f=12,random(1,5,7),random(1,3,5,7))", "group": "Ungrouped variables", "templateType": "anything", "name": "d1"}, "s3": {"description": "", "definition": "random(1,-1)", "group": "Ungrouped variables", "templateType": "anything", "name": "s3"}, "a": {"description": "", "definition": "random(2..5)", "group": "Ungrouped variables", "templateType": "anything", "name": "a"}, "s2": {"description": "", "definition": "random(1,-1)", "group": "Ungrouped variables", "templateType": "anything", "name": "s2"}, "s1": {"description": "", "definition": "random(1,-1)", "group": "Ungrouped variables", "templateType": "anything", "name": "s1"}, "n5": {"description": "", "definition": "a*b", "group": "Ungrouped variables", "templateType": "anything", "name": "n5"}}, "showQuestionGroupNames": false, "variable_groups": [], "statement": "

Find the roots of the following quadratic equation.

", "metadata": {"licence": "None specified", "notes": "", "description": "

Solve for $x$: $\\displaystyle ax ^ 2 + bx + c=0$.

"}, "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} * y ^ 2 + ( {-b*c-a * d}) * y + {c * d} = ({a} * y + { -c}) * ({b} * y + { -d})}\\]

\n

Hence we find the roots:
\\[\\begin{eqnarray} y&=& \\simplify{{n1-n4}/{2*a*b}}\\\\ y&=& \\simplify{{n1+n4}/{2*a*b}} \\end{eqnarray} \\]

\n

Other Methods.

\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 $\\displaystyle -\\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[std]{{-n1}^2-4*{a*b*c*d}}=\\var{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}\\]

\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}\\]

", "question_groups": [{"pickingStrategy": "all-ordered", "questions": [], "pickQuestions": 0, "name": ""}], "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "ungrouped_variables": ["a", "c", "b", "d", "f", "s3", "s2", "s1", "n4", "n2", "disc", "rdis", "n1", "c1", "n3", "rep", "n5", "d1"], "parts": [{"marks": 0, "type": "gapfill", "gaps": [{"answersimplification": "std", "answer": "{n1-n4}/{2*a*b}", "checkingtype": "absdiff", "expectedvariablenames": [], "showpreview": true, "checkingaccuracy": 0.0001, "type": "jme", "vsetrangepoints": 5, "checkvariablenames": false, "marks": 1, "notallowed": {"message": "

Input numbers as fractions or integers not as a decimals.

", "showStrings": false, "partialCredit": 0, "strings": ["."]}, "showCorrectAnswer": true, "vsetrange": [0, 1], "variableReplacementStrategy": "originalfirst", "scripts": {}, "variableReplacements": []}, {"answersimplification": "std", "answer": "{n1+n4}/{2*a*b}", "checkingtype": "absdiff", "expectedvariablenames": [], "showpreview": true, "checkingaccuracy": 0.0001, "type": "jme", "vsetrangepoints": 5, "checkvariablenames": false, "marks": 1, "notallowed": {"message": "

Input numbers as fractions or integers not as a decimals.

", "showStrings": false, "partialCredit": 0, "strings": ["."]}, "showCorrectAnswer": true, "vsetrange": [0, 1], "variableReplacementStrategy": "originalfirst", "scripts": {}, "variableReplacements": []}], "variableReplacements": [], "showCorrectAnswer": true, "scripts": {}, "prompt": "

Solve for $x$:  \\[\\simplify[std]{{a*b} * x ^ 2 + ( {-b*c-a * d}) * x + {c * d}}=0\\]
The least root is $x=\\;$ [[0]]. The greatest root is $x=\\;$ [[1]]

\n

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

\n

Enter the least root first. If the roots are equal, enter the root in both input boxes.

\n

Enter the roots as fractions or integers, not as decimals.

", "variableReplacementStrategy": "originalfirst", "steps": [{"marks": 0, "type": "information", "variableReplacements": [], "showCorrectAnswer": true, "prompt": "

Finding the roots by factorisation.

\n

Finding a factorisation of a quadratic $q(x)=a(x-r)(x-s)$ where $a$ is the coefficient of $x^2$ gives the roots $x=r$, $x=s$ immediately.

\n

If you cannot find a factorisation then there are several other methods you can use.

\n

Using the formula for the roots.

\n

You can find the roots by using the 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 $\\displaystyle \\frac{-b}{2a}$

\n

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

\n

 

", "variableReplacementStrategy": "originalfirst", "scripts": {}}], "stepsPenalty": 1}]}, {"name": "Quadratic equations 3", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "emma rand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/115/"}], "functions": {}, "type": "question", "preamble": {"css": "", "js": ""}, "variablesTest": {"condition": "", "maxRuns": 100}, "tags": ["algebra", "Factorisation", "factorisation", "find roots of a quadratic equation", "quadratic formula", "quadratics", "roots of a quadratic equation", "solving a quadratic equation", "solving equations", "Solving equations", "steps", "Steps"], "variables": {"n4": {"description": "", "definition": "abs(n2)", "group": "Ungrouped variables", "templateType": "anything", "name": "n4"}, "c1": {"description": "", "definition": "switch(f=1, random(1..6),f=2,random(1,3,5,7,9),f=3,random(1,2,5,7,8),f=4,random(1,3,5,7,9),f=6, random(1,5,7,8),f=9,random(1,2,4,7,8),f=8,random(1,3,5,7,9),f=12,random(1,5,7),random(1,3,5,7))", "group": "Ungrouped variables", "templateType": "anything", "name": "c1"}, "rdis": {"description": "", "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. ')", "group": "Ungrouped variables", "templateType": "anything", "name": "rdis"}, "rep": {"description": "", "definition": "switch(disc=0,'repeated', ' ')", "group": "Ungrouped variables", "templateType": "anything", "name": "rep"}, "f": {"description": "", "definition": "a*b", "group": "Ungrouped variables", "templateType": "anything", "name": "f"}, "b": {"description": "", "definition": "random(1..4)", "group": "Ungrouped variables", "templateType": "anything", "name": "b"}, "n3": {"description": "", "definition": "2*a*b", "group": "Ungrouped variables", "templateType": "anything", "name": "n3"}, "d": {"description": "", "definition": "if((a*d1)^2=(b*c)^2, max(d1+1,random(1..5))*s3,d1*s3)", "group": "Ungrouped variables", "templateType": "anything", "name": "d"}, "disc": {"description": "", "definition": "(b*c+a*d)^2-4*a*b*c*d", "group": "Ungrouped variables", "templateType": "anything", "name": "disc"}, "n1": {"description": "", "definition": "b*c+a*d", "group": "Ungrouped variables", "templateType": "anything", "name": "n1"}, "c": {"description": "", "definition": "c1*s3", "group": "Ungrouped variables", "templateType": "anything", "name": "c"}, "n2": {"description": "", "definition": "b*c-a*d", "group": "Ungrouped variables", "templateType": "anything", "name": "n2"}, "d1": {"description": "", "definition": "switch(f=1, random(1..6),f=2,random(1,3,5,7,9),f=3,random(1,2,5,7,8),f=4,random(1,3,5,7,9),f=6, random(1,5,7,8),f=9,random(1,2,4,7,8),f=8,random(1,3,5,7,9),f=12,random(1,5,7),random(1,3,5,7))", "group": "Ungrouped variables", "templateType": "anything", "name": "d1"}, "s3": {"description": "", "definition": "random(1,-1)", "group": "Ungrouped variables", "templateType": "anything", "name": "s3"}, "a": {"description": "", "definition": "random(2..5)", "group": "Ungrouped variables", "templateType": "anything", "name": "a"}, "s2": {"description": "", "definition": "random(1,-1)", "group": "Ungrouped variables", "templateType": "anything", "name": "s2"}, "s1": {"description": "", "definition": "random(1,-1)", "group": "Ungrouped variables", "templateType": "anything", "name": "s1"}, "n5": {"description": "", "definition": "a*b", "group": "Ungrouped variables", "templateType": "anything", "name": "n5"}}, "showQuestionGroupNames": false, "variable_groups": [], "statement": "

Find the roots of the following quadratic equation.

", "metadata": {"licence": "None specified", "notes": "", "description": "

Solve for $x$: $\\displaystyle ax ^ 2 + bx + c=0$.

"}, "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} * y ^ 2 + ( {-b*c-a * d}) * y + {c * d} = ({a} * y + { -c}) * ({b} * y + { -d})}\\]

\n

Hence we find the roots:
\\[\\begin{eqnarray} y&=& \\simplify{{n1-n4}/{2*a*b}}\\\\ y&=& \\simplify{{n1+n4}/{2*a*b}} \\end{eqnarray} \\]

\n

Other Methods.

\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 $\\displaystyle -\\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[std]{{-n1}^2-4*{a*b*c*d}}=\\var{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}\\]

\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}\\]

", "question_groups": [{"pickingStrategy": "all-ordered", "questions": [], "pickQuestions": 0, "name": ""}], "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "ungrouped_variables": ["a", "c", "b", "d", "f", "s3", "s2", "s1", "n4", "n2", "disc", "rdis", "n1", "c1", "n3", "rep", "n5", "d1"], "parts": [{"marks": 0, "type": "gapfill", "gaps": [{"answersimplification": "std", "answer": "{n1-n4}/{2*a*b}", "checkingtype": "absdiff", "expectedvariablenames": [], "showpreview": true, "checkingaccuracy": 0.0001, "type": "jme", "vsetrangepoints": 5, "checkvariablenames": false, "marks": 1, "notallowed": {"message": "

Input numbers as fractions or integers not as a decimals.

", "showStrings": false, "partialCredit": 0, "strings": ["."]}, "showCorrectAnswer": true, "vsetrange": [0, 1], "variableReplacementStrategy": "originalfirst", "scripts": {}, "variableReplacements": []}, {"answersimplification": "std", "answer": "{n1+n4}/{2*a*b}", "checkingtype": "absdiff", "expectedvariablenames": [], "showpreview": true, "checkingaccuracy": 0.0001, "type": "jme", "vsetrangepoints": 5, "checkvariablenames": false, "marks": 1, "notallowed": {"message": "

Input numbers as fractions or integers not as a decimals.

", "showStrings": false, "partialCredit": 0, "strings": ["."]}, "showCorrectAnswer": true, "vsetrange": [0, 1], "variableReplacementStrategy": "originalfirst", "scripts": {}, "variableReplacements": []}], "variableReplacements": [], "showCorrectAnswer": true, "scripts": {}, "prompt": "

Solve for $x$:  \\[\\simplify[std]{{a*b} * x ^ 2 + ( {-b*c-a * d}) * x + {c * d}}=0\\]
The least root is $x=\\;$ [[0]]. The greatest root is $x=\\;$ [[1]]

\n

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

\n

Enter the least root first. If the roots are equal, enter the root in both input boxes.

\n

Enter the roots as fractions or integers, not as decimals.

", "variableReplacementStrategy": "originalfirst", "steps": [{"marks": 0, "type": "information", "variableReplacements": [], "showCorrectAnswer": true, "prompt": "

Finding the roots by factorisation.

\n

Finding a factorisation of a quadratic $q(x)=a(x-r)(x-s)$ where $a$ is the coefficient of $x^2$ gives the roots $x=r$, $x=s$ immediately.

\n

If you cannot find a factorisation then there are several other methods you can use.

\n

Using the formula for the roots.

\n

You can find the roots by using the 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 $\\displaystyle \\frac{-b}{2a}$

\n

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

\n

 

", "variableReplacementStrategy": "originalfirst", "scripts": {}}], "stepsPenalty": 1}]}, {"name": "Quadratic equations 3", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "emma rand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/115/"}], "functions": {}, "type": "question", "preamble": {"css": "", "js": ""}, "variablesTest": {"condition": "", "maxRuns": 100}, "tags": ["algebra", "Factorisation", "factorisation", "find roots of a quadratic equation", "quadratic formula", "quadratics", "roots of a quadratic equation", "solving a quadratic equation", "solving equations", "Solving equations", "steps", "Steps"], "variables": {"n4": {"description": "", "definition": "abs(n2)", "group": "Ungrouped variables", "templateType": "anything", "name": "n4"}, "c1": {"description": "", "definition": "switch(f=1, random(1..6),f=2,random(1,3,5,7,9),f=3,random(1,2,5,7,8),f=4,random(1,3,5,7,9),f=6, random(1,5,7,8),f=9,random(1,2,4,7,8),f=8,random(1,3,5,7,9),f=12,random(1,5,7),random(1,3,5,7))", "group": "Ungrouped variables", "templateType": "anything", "name": "c1"}, "rdis": {"description": "", "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. ')", "group": "Ungrouped variables", "templateType": "anything", "name": "rdis"}, "rep": {"description": "", "definition": "switch(disc=0,'repeated', ' ')", "group": "Ungrouped variables", "templateType": "anything", "name": "rep"}, "f": {"description": "", "definition": "a*b", "group": "Ungrouped variables", "templateType": "anything", "name": "f"}, "b": {"description": "", "definition": "random(1..4)", "group": "Ungrouped variables", "templateType": "anything", "name": "b"}, "n3": {"description": "", "definition": "2*a*b", "group": "Ungrouped variables", "templateType": "anything", "name": "n3"}, "d": {"description": "", "definition": "if((a*d1)^2=(b*c)^2, max(d1+1,random(1..5))*s3,d1*s3)", "group": "Ungrouped variables", "templateType": "anything", "name": "d"}, "disc": {"description": "", "definition": "(b*c+a*d)^2-4*a*b*c*d", "group": "Ungrouped variables", "templateType": "anything", "name": "disc"}, "n1": {"description": "", "definition": "b*c+a*d", "group": "Ungrouped variables", "templateType": "anything", "name": "n1"}, "c": {"description": "", "definition": "c1*s3", "group": "Ungrouped variables", "templateType": "anything", "name": "c"}, "n2": {"description": "", "definition": "b*c-a*d", "group": "Ungrouped variables", "templateType": "anything", "name": "n2"}, "d1": {"description": "", "definition": "switch(f=1, random(1..6),f=2,random(1,3,5,7,9),f=3,random(1,2,5,7,8),f=4,random(1,3,5,7,9),f=6, random(1,5,7,8),f=9,random(1,2,4,7,8),f=8,random(1,3,5,7,9),f=12,random(1,5,7),random(1,3,5,7))", "group": "Ungrouped variables", "templateType": "anything", "name": "d1"}, "s3": {"description": "", "definition": "random(1,-1)", "group": "Ungrouped variables", "templateType": "anything", "name": "s3"}, "a": {"description": "", "definition": "random(2..5)", "group": "Ungrouped variables", "templateType": "anything", "name": "a"}, "s2": {"description": "", "definition": "random(1,-1)", "group": "Ungrouped variables", "templateType": "anything", "name": "s2"}, "s1": {"description": "", "definition": "random(1,-1)", "group": "Ungrouped variables", "templateType": "anything", "name": "s1"}, "n5": {"description": "", "definition": "a*b", "group": "Ungrouped variables", "templateType": "anything", "name": "n5"}}, "showQuestionGroupNames": false, "variable_groups": [], "statement": "

Find the roots of the following quadratic equation.

", "metadata": {"licence": "None specified", "notes": "", "description": "

Solve for $x$: $\\displaystyle ax ^ 2 + bx + c=0$.

"}, "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} * y ^ 2 + ( {-b*c-a * d}) * y + {c * d} = ({a} * y + { -c}) * ({b} * y + { -d})}\\]

\n

Hence we find the roots:
\\[\\begin{eqnarray} y&=& \\simplify{{n1-n4}/{2*a*b}}\\\\ y&=& \\simplify{{n1+n4}/{2*a*b}} \\end{eqnarray} \\]

\n

Other Methods.

\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 $\\displaystyle -\\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[std]{{-n1}^2-4*{a*b*c*d}}=\\var{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}\\]

\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}\\]

", "question_groups": [{"pickingStrategy": "all-ordered", "questions": [], "pickQuestions": 0, "name": ""}], "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "ungrouped_variables": ["a", "c", "b", "d", "f", "s3", "s2", "s1", "n4", "n2", "disc", "rdis", "n1", "c1", "n3", "rep", "n5", "d1"], "parts": [{"marks": 0, "type": "gapfill", "gaps": [{"answersimplification": "std", "answer": "{n1-n4}/{2*a*b}", "checkingtype": "absdiff", "expectedvariablenames": [], "showpreview": true, "checkingaccuracy": 0.0001, "type": "jme", "vsetrangepoints": 5, "checkvariablenames": false, "marks": 1, "notallowed": {"message": "

Input numbers as fractions or integers not as a decimals.

", "showStrings": false, "partialCredit": 0, "strings": ["."]}, "showCorrectAnswer": true, "vsetrange": [0, 1], "variableReplacementStrategy": "originalfirst", "scripts": {}, "variableReplacements": []}, {"answersimplification": "std", "answer": "{n1+n4}/{2*a*b}", "checkingtype": "absdiff", "expectedvariablenames": [], "showpreview": true, "checkingaccuracy": 0.0001, "type": "jme", "vsetrangepoints": 5, "checkvariablenames": false, "marks": 1, "notallowed": {"message": "

Input numbers as fractions or integers not as a decimals.

", "showStrings": false, "partialCredit": 0, "strings": ["."]}, "showCorrectAnswer": true, "vsetrange": [0, 1], "variableReplacementStrategy": "originalfirst", "scripts": {}, "variableReplacements": []}], "variableReplacements": [], "showCorrectAnswer": true, "scripts": {}, "prompt": "

Solve for $x$:  \\[\\simplify[std]{{a*b} * x ^ 2 + ( {-b*c-a * d}) * x + {c * d}}=0\\]
The least root is $x=\\;$ [[0]]. The greatest root is $x=\\;$ [[1]]

\n

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

\n

Enter the least root first. If the roots are equal, enter the root in both input boxes.

\n

Enter the roots as fractions or integers, not as decimals.

", "variableReplacementStrategy": "originalfirst", "steps": [{"marks": 0, "type": "information", "variableReplacements": [], "showCorrectAnswer": true, "prompt": "

Finding the roots by factorisation.

\n

Finding a factorisation of a quadratic $q(x)=a(x-r)(x-s)$ where $a$ is the coefficient of $x^2$ gives the roots $x=r$, $x=s$ immediately.

\n

If you cannot find a factorisation then there are several other methods you can use.

\n

Using the formula for the roots.

\n

You can find the roots by using the 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 $\\displaystyle \\frac{-b}{2a}$

\n

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

\n

 

", "variableReplacementStrategy": "originalfirst", "scripts": {}}], "stepsPenalty": 1}]}, {"name": "Quadratic equations 3", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "emma rand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/115/"}], "functions": {}, "type": "question", "preamble": {"css": "", "js": ""}, "variablesTest": {"condition": "", "maxRuns": 100}, "tags": ["algebra", "Factorisation", "factorisation", "find roots of a quadratic equation", "quadratic formula", "quadratics", "roots of a quadratic equation", "solving a quadratic equation", "solving equations", "Solving equations", "steps", "Steps"], "variables": {"n4": {"description": "", "definition": "abs(n2)", "group": "Ungrouped variables", "templateType": "anything", "name": "n4"}, "c1": {"description": "", "definition": "switch(f=1, random(1..6),f=2,random(1,3,5,7,9),f=3,random(1,2,5,7,8),f=4,random(1,3,5,7,9),f=6, random(1,5,7,8),f=9,random(1,2,4,7,8),f=8,random(1,3,5,7,9),f=12,random(1,5,7),random(1,3,5,7))", "group": "Ungrouped variables", "templateType": "anything", "name": "c1"}, "rdis": {"description": "", "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. ')", "group": "Ungrouped variables", "templateType": "anything", "name": "rdis"}, "rep": {"description": "", "definition": "switch(disc=0,'repeated', ' ')", "group": "Ungrouped variables", "templateType": "anything", "name": "rep"}, "f": {"description": "", "definition": "a*b", "group": "Ungrouped variables", "templateType": "anything", "name": "f"}, "b": {"description": "", "definition": "random(1..4)", "group": "Ungrouped variables", "templateType": "anything", "name": "b"}, "n3": {"description": "", "definition": "2*a*b", "group": "Ungrouped variables", "templateType": "anything", "name": "n3"}, "d": {"description": "", "definition": "if((a*d1)^2=(b*c)^2, max(d1+1,random(1..5))*s3,d1*s3)", "group": "Ungrouped variables", "templateType": "anything", "name": "d"}, "disc": {"description": "", "definition": "(b*c+a*d)^2-4*a*b*c*d", "group": "Ungrouped variables", "templateType": "anything", "name": "disc"}, "n1": {"description": "", "definition": "b*c+a*d", "group": "Ungrouped variables", "templateType": "anything", "name": "n1"}, "c": {"description": "", "definition": "c1*s3", "group": "Ungrouped variables", "templateType": "anything", "name": "c"}, "n2": {"description": "", "definition": "b*c-a*d", "group": "Ungrouped variables", "templateType": "anything", "name": "n2"}, "d1": {"description": "", "definition": "switch(f=1, random(1..6),f=2,random(1,3,5,7,9),f=3,random(1,2,5,7,8),f=4,random(1,3,5,7,9),f=6, random(1,5,7,8),f=9,random(1,2,4,7,8),f=8,random(1,3,5,7,9),f=12,random(1,5,7),random(1,3,5,7))", "group": "Ungrouped variables", "templateType": "anything", "name": "d1"}, "s3": {"description": "", "definition": "random(1,-1)", "group": "Ungrouped variables", "templateType": "anything", "name": "s3"}, "a": {"description": "", "definition": "random(2..5)", "group": "Ungrouped variables", "templateType": "anything", "name": "a"}, "s2": {"description": "", "definition": "random(1,-1)", "group": "Ungrouped variables", "templateType": "anything", "name": "s2"}, "s1": {"description": "", "definition": "random(1,-1)", "group": "Ungrouped variables", "templateType": "anything", "name": "s1"}, "n5": {"description": "", "definition": "a*b", "group": "Ungrouped variables", "templateType": "anything", "name": "n5"}}, "showQuestionGroupNames": false, "variable_groups": [], "statement": "

Find the roots of the following quadratic equation.

", "metadata": {"licence": "None specified", "notes": "", "description": "

Solve for $x$: $\\displaystyle ax ^ 2 + bx + c=0$.

"}, "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} * y ^ 2 + ( {-b*c-a * d}) * y + {c * d} = ({a} * y + { -c}) * ({b} * y + { -d})}\\]

\n

Hence we find the roots:
\\[\\begin{eqnarray} y&=& \\simplify{{n1-n4}/{2*a*b}}\\\\ y&=& \\simplify{{n1+n4}/{2*a*b}} \\end{eqnarray} \\]

\n

Other Methods.

\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 $\\displaystyle -\\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[std]{{-n1}^2-4*{a*b*c*d}}=\\var{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}\\]

\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}\\]

", "question_groups": [{"pickingStrategy": "all-ordered", "questions": [], "pickQuestions": 0, "name": ""}], "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "ungrouped_variables": ["a", "c", "b", "d", "f", "s3", "s2", "s1", "n4", "n2", "disc", "rdis", "n1", "c1", "n3", "rep", "n5", "d1"], "parts": [{"marks": 0, "type": "gapfill", "gaps": [{"answersimplification": "std", "answer": "{n1-n4}/{2*a*b}", "checkingtype": "absdiff", "expectedvariablenames": [], "showpreview": true, "checkingaccuracy": 0.0001, "type": "jme", "vsetrangepoints": 5, "checkvariablenames": false, "marks": 1, "notallowed": {"message": "

Input numbers as fractions or integers not as a decimals.

", "showStrings": false, "partialCredit": 0, "strings": ["."]}, "showCorrectAnswer": true, "vsetrange": [0, 1], "variableReplacementStrategy": "originalfirst", "scripts": {}, "variableReplacements": []}, {"answersimplification": "std", "answer": "{n1+n4}/{2*a*b}", "checkingtype": "absdiff", "expectedvariablenames": [], "showpreview": true, "checkingaccuracy": 0.0001, "type": "jme", "vsetrangepoints": 5, "checkvariablenames": false, "marks": 1, "notallowed": {"message": "

Input numbers as fractions or integers not as a decimals.

", "showStrings": false, "partialCredit": 0, "strings": ["."]}, "showCorrectAnswer": true, "vsetrange": [0, 1], "variableReplacementStrategy": "originalfirst", "scripts": {}, "variableReplacements": []}], "variableReplacements": [], "showCorrectAnswer": true, "scripts": {}, "prompt": "

Solve for $x$:  \\[\\simplify[std]{{a*b} * x ^ 2 + ( {-b*c-a * d}) * x + {c * d}}=0\\]
The least root is $x=\\;$ [[0]]. The greatest root is $x=\\;$ [[1]]

\n

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

\n

Enter the least root first. If the roots are equal, enter the root in both input boxes.

\n

Enter the roots as fractions or integers, not as decimals.

", "variableReplacementStrategy": "originalfirst", "steps": [{"marks": 0, "type": "information", "variableReplacements": [], "showCorrectAnswer": true, "prompt": "

Finding the roots by factorisation.

\n

Finding a factorisation of a quadratic $q(x)=a(x-r)(x-s)$ where $a$ is the coefficient of $x^2$ gives the roots $x=r$, $x=s$ immediately.

\n

If you cannot find a factorisation then there are several other methods you can use.

\n

Using the formula for the roots.

\n

You can find the roots by using the 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 $\\displaystyle \\frac{-b}{2a}$

\n

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

\n

 

", "variableReplacementStrategy": "originalfirst", "scripts": {}}], "stepsPenalty": 1}]}, {"name": "Quadratic equations 3", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "emma rand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/115/"}], "functions": {}, "type": "question", "preamble": {"css": "", "js": ""}, "variablesTest": {"condition": "", "maxRuns": 100}, "tags": ["algebra", "Factorisation", "factorisation", "find roots of a quadratic equation", "quadratic formula", "quadratics", "roots of a quadratic equation", "solving a quadratic equation", "solving equations", "Solving equations", "steps", "Steps"], "variables": {"n4": {"description": "", "definition": "abs(n2)", "group": "Ungrouped variables", "templateType": "anything", "name": "n4"}, "c1": {"description": "", "definition": "switch(f=1, random(1..6),f=2,random(1,3,5,7,9),f=3,random(1,2,5,7,8),f=4,random(1,3,5,7,9),f=6, random(1,5,7,8),f=9,random(1,2,4,7,8),f=8,random(1,3,5,7,9),f=12,random(1,5,7),random(1,3,5,7))", "group": "Ungrouped variables", "templateType": "anything", "name": "c1"}, "rdis": {"description": "", "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. ')", "group": "Ungrouped variables", "templateType": "anything", "name": "rdis"}, "rep": {"description": "", "definition": "switch(disc=0,'repeated', ' ')", "group": "Ungrouped variables", "templateType": "anything", "name": "rep"}, "f": {"description": "", "definition": "a*b", "group": "Ungrouped variables", "templateType": "anything", "name": "f"}, "b": {"description": "", "definition": "random(1..4)", "group": "Ungrouped variables", "templateType": "anything", "name": "b"}, "n3": {"description": "", "definition": "2*a*b", "group": "Ungrouped variables", "templateType": "anything", "name": "n3"}, "d": {"description": "", "definition": "if((a*d1)^2=(b*c)^2, max(d1+1,random(1..5))*s3,d1*s3)", "group": "Ungrouped variables", "templateType": "anything", "name": "d"}, "disc": {"description": "", "definition": "(b*c+a*d)^2-4*a*b*c*d", "group": "Ungrouped variables", "templateType": "anything", "name": "disc"}, "n1": {"description": "", "definition": "b*c+a*d", "group": "Ungrouped variables", "templateType": "anything", "name": "n1"}, "c": {"description": "", "definition": "c1*s3", "group": "Ungrouped variables", "templateType": "anything", "name": "c"}, "n2": {"description": "", "definition": "b*c-a*d", "group": "Ungrouped variables", "templateType": "anything", "name": "n2"}, "d1": {"description": "", "definition": "switch(f=1, random(1..6),f=2,random(1,3,5,7,9),f=3,random(1,2,5,7,8),f=4,random(1,3,5,7,9),f=6, random(1,5,7,8),f=9,random(1,2,4,7,8),f=8,random(1,3,5,7,9),f=12,random(1,5,7),random(1,3,5,7))", "group": "Ungrouped variables", "templateType": "anything", "name": "d1"}, "s3": {"description": "", "definition": "random(1,-1)", "group": "Ungrouped variables", "templateType": "anything", "name": "s3"}, "a": {"description": "", "definition": "random(2..5)", "group": "Ungrouped variables", "templateType": "anything", "name": "a"}, "s2": {"description": "", "definition": "random(1,-1)", "group": "Ungrouped variables", "templateType": "anything", "name": "s2"}, "s1": {"description": "", "definition": "random(1,-1)", "group": "Ungrouped variables", "templateType": "anything", "name": "s1"}, "n5": {"description": "", "definition": "a*b", "group": "Ungrouped variables", "templateType": "anything", "name": "n5"}}, "showQuestionGroupNames": false, "variable_groups": [], "statement": "

Find the roots of the following quadratic equation.

", "metadata": {"licence": "None specified", "notes": "", "description": "

Solve for $x$: $\\displaystyle ax ^ 2 + bx + c=0$.

"}, "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} * y ^ 2 + ( {-b*c-a * d}) * y + {c * d} = ({a} * y + { -c}) * ({b} * y + { -d})}\\]

\n

Hence we find the roots:
\\[\\begin{eqnarray} y&=& \\simplify{{n1-n4}/{2*a*b}}\\\\ y&=& \\simplify{{n1+n4}/{2*a*b}} \\end{eqnarray} \\]

\n

Other Methods.

\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 $\\displaystyle -\\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[std]{{-n1}^2-4*{a*b*c*d}}=\\var{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}\\]

\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}\\]

", "question_groups": [{"pickingStrategy": "all-ordered", "questions": [], "pickQuestions": 0, "name": ""}], "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "ungrouped_variables": ["a", "c", "b", "d", "f", "s3", "s2", "s1", "n4", "n2", "disc", "rdis", "n1", "c1", "n3", "rep", "n5", "d1"], "parts": [{"marks": 0, "type": "gapfill", "gaps": [{"answersimplification": "std", "answer": "{n1-n4}/{2*a*b}", "checkingtype": "absdiff", "expectedvariablenames": [], "showpreview": true, "checkingaccuracy": 0.0001, "type": "jme", "vsetrangepoints": 5, "checkvariablenames": false, "marks": 1, "notallowed": {"message": "

Input numbers as fractions or integers not as a decimals.

", "showStrings": false, "partialCredit": 0, "strings": ["."]}, "showCorrectAnswer": true, "vsetrange": [0, 1], "variableReplacementStrategy": "originalfirst", "scripts": {}, "variableReplacements": []}, {"answersimplification": "std", "answer": "{n1+n4}/{2*a*b}", "checkingtype": "absdiff", "expectedvariablenames": [], "showpreview": true, "checkingaccuracy": 0.0001, "type": "jme", "vsetrangepoints": 5, "checkvariablenames": false, "marks": 1, "notallowed": {"message": "

Input numbers as fractions or integers not as a decimals.

", "showStrings": false, "partialCredit": 0, "strings": ["."]}, "showCorrectAnswer": true, "vsetrange": [0, 1], "variableReplacementStrategy": "originalfirst", "scripts": {}, "variableReplacements": []}], "variableReplacements": [], "showCorrectAnswer": true, "scripts": {}, "prompt": "

Solve for $x$:  \\[\\simplify[std]{{a*b} * x ^ 2 + ( {-b*c-a * d}) * x + {c * d}}=0\\]
The least root is $x=\\;$ [[0]]. The greatest root is $x=\\;$ [[1]]

\n

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

\n

Enter the least root first. If the roots are equal, enter the root in both input boxes.

\n

Enter the roots as fractions or integers, not as decimals.

", "variableReplacementStrategy": "originalfirst", "steps": [{"marks": 0, "type": "information", "variableReplacements": [], "showCorrectAnswer": true, "prompt": "

Finding the roots by factorisation.

\n

Finding a factorisation of a quadratic $q(x)=a(x-r)(x-s)$ where $a$ is the coefficient of $x^2$ gives the roots $x=r$, $x=s$ immediately.

\n

If you cannot find a factorisation then there are several other methods you can use.

\n

Using the formula for the roots.

\n

You can find the roots by using the 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 $\\displaystyle \\frac{-b}{2a}$

\n

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

\n

 

", "variableReplacementStrategy": "originalfirst", "scripts": {}}], "stepsPenalty": 1}]}]}], "duration": 0, "showQuestionGroupNames": false, "name": "06C maths Session 1: Quadratics", "metadata": {"description": "

25 questions on solving quadratic equations

", "licence": "Creative Commons Attribution 4.0 International"}, "percentPass": "70", "feedback": {"showtotalmark": true, "intro": "", "feedbackmessages": [], "showanswerstate": true, "allowrevealanswer": true, "showactualmark": true, "advicethreshold": 0}, "timing": {"timedwarning": {"action": "none", "message": ""}, "timeout": {"action": "none", "message": ""}, "allowPause": false}, "navigation": {"browse": true, "showfrontpage": true, "reverse": true, "preventleave": true, "onleave": {"action": "none", "message": ""}, "allowregen": true, "showresultspage": "oncompletion"}, "type": "exam", "contributors": [{"name": "emma rand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/115/"}], "extensions": [], "custom_part_types": [], "resources": []}