// Numbas version: exam_results_page_options {"name": "Solving equations", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "variables": {"s1": {"group": "Ungrouped variables", "templateType": "anything", "definition": "random(1,-1)", "name": "s1", "description": ""}, "d": {"group": "Ungrouped variables", "templateType": "anything", "definition": "if(d1=-b*c/a, max(d1+1,random(1..3))*s3,d1*s3)", "name": "d", "description": ""}, "a": {"group": "Ungrouped variables", "templateType": "anything", "definition": "random(1..2)", "name": "a", "description": ""}, "rep": {"group": "Ungrouped variables", "templateType": "anything", "definition": "switch(disc=0,'repeated', ' ')", "name": "rep", "description": ""}, "f": {"group": "Ungrouped variables", "templateType": "anything", "definition": "a*b", "name": "f", "description": ""}, "n1": {"group": "Ungrouped variables", "templateType": "anything", "definition": "b*c+a*d", "name": "n1", "description": ""}, "d1": {"group": "Ungrouped variables", "templateType": "anything", "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))", "name": "d1", "description": ""}, "c1": {"group": "Ungrouped variables", "templateType": "anything", "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))", "name": "c1", "description": ""}, "n2": {"group": "Ungrouped variables", "templateType": "anything", "definition": "b*c-a*d", "name": "n2", "description": ""}, "disc": {"group": "Ungrouped variables", "templateType": "anything", "definition": "(b*c+a*d)^2-4*a*b*c*d", "name": "disc", "description": ""}, "n3": {"group": "Ungrouped variables", "templateType": "anything", "definition": "2*a*b", "name": "n3", "description": ""}, "rdis": {"group": "Ungrouped variables", "templateType": "anything", "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. ')", "name": "rdis", "description": ""}, "n4": {"group": "Ungrouped variables", "templateType": "anything", "definition": "abs(n2)", "name": "n4", "description": ""}, "s2": {"group": "Ungrouped variables", "templateType": "anything", "definition": "random(1,-1)", "name": "s2", "description": ""}, "s3": {"group": "Ungrouped variables", "templateType": "anything", "definition": "random(1,-1)", "name": "s3", "description": ""}, "b": {"group": "Ungrouped variables", "templateType": "anything", "definition": "if(a=1,random(2..3),random(1..2))", "name": "b", "description": ""}, "n5": {"group": "Ungrouped variables", "templateType": "anything", "definition": "a*b", "name": "n5", "description": ""}, "c": {"group": "Ungrouped variables", "templateType": "anything", "definition": "c1*s3", "name": "c", "description": ""}}, "ungrouped_variables": ["a", "c", "b", "d", "f", "s3", "s2", "s1", "n4", "n2", "disc", "rdis", "n1", "rep", "n3", "c1", "n5", "d1"], "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "name": "Solving equations", "showQuestionGroupNames": false, "functions": {}, "parts": [{"marks": 0, "scripts": {}, "gaps": [{"answer": "{n1-n4}/{2*a*b}", "vsetrange": [0, 1], "checkingaccuracy": 0.0001, "checkvariablenames": false, "expectedvariablenames": [], "notallowed": {"showStrings": false, "message": "

Input numbers as fractions or integers not as a decimals.

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

Input numbers as fractions or integers not as a decimals.

", "strings": ["."], "partialCredit": 0}, "showpreview": true, "checkingtype": "absdiff", "scripts": {}, "answersimplification": "std", "type": "jme", "showCorrectAnswer": true, "marks": 1, "vsetrangepoints": 5}], "type": "gapfill", "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.

", "steps": [{"type": "information", "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$ immendiately.

\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

 

", "showCorrectAnswer": true, "scripts": {}, "marks": 0}], "showCorrectAnswer": true, "stepsPenalty": 1}], "variablesTest": {"condition": "", "maxRuns": 100}, "statement": "

Find the roots of the following quadratic equation.

", "tags": ["algebra", "checked2015", "factorisation", "find roots of a quadratic equation", "mas1601", "MAS1601", "quadratic formula", "quadratics", "roots of a quadratic equation", "solving a quadratic equation", "solving a quadratic equation ", "solving equations", "Solving equations", "Steps", "steps"], "question_groups": [{"pickingStrategy": "all-ordered", "questions": [], "name": "", "pickQuestions": 0}], "preamble": {"css": "", "js": ""}, "type": "question", "metadata": {"notes": "

5/08/2012:

\n

Added tags.

\n

Added description.

\n

Improved display in various content areas.

", "licence": "Creative Commons Attribution 4.0 International", "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} * x ^ 2 + ( {-b*c-a * d}) * x + {c * d} = ({a} * x + { -c}) * ({b} * x + { -d})}\\]

\n

Hence we find the roots:
\\[\\begin{eqnarray} x&=& \\simplify{{n1-n4}/{2*a*b}}\\\\ x&=& \\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}\\]

", "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}