// Numbas version: exam_results_page_options {"name": "Roots of a cubic real polynomial", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Roots of a cubic real polynomial", "tags": ["checked2015", "complex numbers", "complex roots of real polynomials", "conjugate roots", "roots of polynomial equations", "roots of polynomials", "roots of real polynomials"], "metadata": {"description": "

Using a given list of four complex numbers, find by inspection the one that is a root of a given cubic real polynomial and hence find the other roots.

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

From the list of complex numbers, choose the one which is a root of the given equation $f(z)=0$ , and hence find all roots.

", "advice": "

a) Finding a root.

\n

In order to find which one of the four choices is a root you have to evaluate $f(z)$ for each choice.If you find for a choice of $z$ that $f(z)=0$ then that choice of $z$ is a root of the equation.

\n

Note that\\[\\begin{eqnarray*} \\simplify{f({z1})} &=&\\simplify[std]{{z1}^3+{-2*a1 -c1}*{z1} ^ 2 + {2 * a1 * c1 + a1 ^ 2 + b1 ^ 2} * {z1} -{c1 * (a1 ^ 2 + b1 ^ 2)}}\\\\ &=&\\simplify[std]{{z1^3}+{-2*a1 -c1}{z1 ^ 2} + {2 * a1 * c1 + a1 ^ 2 + b1 ^ 2} * {z1} -{c1 * (a1 ^ 2 + b1 ^ 2)}}\\\\ &=&\\simplify[std]{{z1^3}+{(( -2) * a1 -c1)*z1^2}+ {(2 * a1 * c1 + a1 ^ 2 + b1 ^ 2)*z1}-{c1 * (a1 ^ 2 + b1 ^ 2)}}\\\\ &=&0 \\end{eqnarray*}. \\]So of the list of choices $z_1=\\var{z1}$ is a root.

\n

b) The other roots

\n

Now that you have found a complex root it is very simple to find another complex root.

\n

Since $f(z)$ is a polynomial with real coefficients then if $z=z_0$ is a root we have that the conjugate $z=\\overline{z_0}$ is also a root.

\n

Hence the complex number $z_2=\\overline{\\var{z1}}=\\var{conj(z1)}$ is a root.

\n

To find the real root $z_3=c$ we note that the constant term of\\[f(z) =(z-z_1)(z-z_2)(z-c)\\]is $-z_1z_2c = -(\\var{z1})(\\var{conj(z1)})c=\\var{-z1*conj(z1)}c$.

\n

But we know that the constant term of $f(z)$ is $\\simplify{-{c1 * (a1 ^ 2 + b1 ^ 2)}} $.

\n

Hence \\[\\begin{eqnarray*} \\var{-z1*conj(z1)}c &=&\\simplify{-{c1 * (a1 ^ 2 + b1 ^ 2)}}\\\\ \\Rightarrow c &=&  \\simplify[]{{c1 * (a1 ^ 2 + b1 ^ 2)}/{abs(z1^2)}}\\\\ &=&\\var{c1} \\end{eqnarray*} \\]

", "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "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}, "tx2a2": {"name": "tx2a2", "group": "Ungrouped variables", "definition": "s4*random(1..9)", "description": "", "templateType": "anything", "can_override": false}, "s5": {"name": "s5", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything", "can_override": false}, "f1": {"name": "f1", "group": "Ungrouped variables", "definition": "random(1..8)", "description": "", "templateType": "anything", "can_override": false}, "s4": {"name": "s4", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything", "can_override": false}, "x3b2": {"name": "x3b2", "group": "Ungrouped variables", "definition": "xs1*random(1..9)", "description": "", "templateType": "anything", "can_override": false}, "s2": {"name": "s2", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything", "can_override": false}, "a1": {"name": "a1", "group": "Ungrouped variables", "definition": "s1*random(1..9)", "description": "", "templateType": "anything", "can_override": false}, "c2": {"name": "c2", "group": "Ungrouped variables", "definition": "s6*random(1..9)", "description": "", "templateType": "anything", "can_override": false}, "x1a1": {"name": "x1a1", "group": "Ungrouped variables", "definition": "if(tx1a1=a1,a1+1,tx1a1)", "description": "", "templateType": "anything", "can_override": false}, "x2a1": {"name": "x2a1", "group": "Ungrouped variables", "definition": "if(tx2a1=a1,a1+1,tx2a1)", "description": "", "templateType": "anything", "can_override": false}, "tx1a1": {"name": "tx1a1", "group": "Ungrouped variables", "definition": "s1*random(1..9)", "description": "", "templateType": "anything", "can_override": false}, "z3": {"name": "z3", "group": "Ungrouped variables", "definition": "x2a1+x2b1*i", "description": "", "templateType": "anything", "can_override": false}, "x2b2": {"name": "x2b2", "group": "Ungrouped variables", "definition": "xs3*random(1..9)", "description": "", "templateType": "anything", "can_override": false}, "xs2": {"name": "xs2", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything", "can_override": false}, "a2": {"name": "a2", "group": "Ungrouped variables", "definition": "s4*random(1..9)", "description": "", "templateType": "anything", "can_override": false}, "x1a2": {"name": "x1a2", "group": "Ungrouped variables", "definition": "if(tx1a2=a2,a2+1,tx1a2)", "description": "", "templateType": "anything", "can_override": false}, "tx3a2": {"name": "tx3a2", "group": "Ungrouped variables", "definition": "s6*random(1..9)", "description": "", "templateType": "anything", "can_override": false}, "z1": {"name": "z1", "group": "Ungrouped variables", "definition": "a1+ b1*i", "description": "", "templateType": "anything", "can_override": false}, "tx1a2": {"name": "tx1a2", "group": "Ungrouped variables", "definition": "s3*random(1..9)", "description": "", "templateType": "anything", "can_override": false}, "tx2a1": {"name": "tx2a1", "group": "Ungrouped variables", "definition": "s3*random(1..9)", "description": "", "templateType": "anything", "can_override": false}, "b1": {"name": "b1", "group": "Ungrouped variables", "definition": "if(abs(a1)=f1,f1+1,f1)", "description": "", "templateType": "anything", "can_override": false}, "z4": {"name": "z4", "group": "Ungrouped variables", "definition": "x3a1+x3b1*i", "description": "", "templateType": "anything", "can_override": false}, "x1b2": {"name": "x1b2", "group": "Ungrouped variables", "definition": "xs2*random(1..9)", "description": "", "templateType": "anything", "can_override": false}, "z2": {"name": "z2", "group": "Ungrouped variables", "definition": "x1a1+x1b1*i", "description": "", "templateType": "anything", "can_override": false}, "b2": {"name": "b2", "group": "Ungrouped variables", "definition": "s5*random(1..9)", "description": "", "templateType": "anything", "can_override": false}, "x2b1": {"name": "x2b1", "group": "Ungrouped variables", "definition": "xs2*random(1..9)", "description": "", "templateType": "anything", "can_override": false}, "x2a2": {"name": "x2a2", "group": "Ungrouped variables", "definition": "if(tx2a2=a2,a2+1,tx2a2)", "description": "", "templateType": "anything", "can_override": false}, "x3a1": {"name": "x3a1", "group": "Ungrouped variables", "definition": "if(tx3a1=a1,a1+1,tx3a1)", "description": "", "templateType": "anything", "can_override": false}, "tx3a1": {"name": "tx3a1", "group": "Ungrouped variables", "definition": "s4*random(1..9)", "description": "", "templateType": "anything", "can_override": false}, "c1": {"name": "c1", "group": "Ungrouped variables", "definition": "s3*random(1..9)", "description": "", "templateType": "anything", "can_override": false}, "x3a2": {"name": "x3a2", "group": "Ungrouped variables", "definition": "if(tx3a2=a2,a2+1,tx3a2)", "description": "", "templateType": "anything", "can_override": false}, "s3": {"name": "s3", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything", "can_override": false}, "s6": {"name": "s6", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything", "can_override": false}, "xs1": {"name": "xs1", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything", "can_override": false}, "xs3": {"name": "xs3", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything", "can_override": false}, "x3b1": {"name": "x3b1", "group": "Ungrouped variables", "definition": "xs3*random(1..9)", "description": "", "templateType": "anything", "can_override": false}, "x1b1": {"name": "x1b1", "group": "Ungrouped variables", "definition": "xs1*random(1..9)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["tx3a1", "f1", "tx3a2", "b2", "tx2a2", "x1b2", "x1b1", "b1", "tx1a1", "tx2a1", "xs2", "xs3", "xs1", "x3a1", "x3a2", "s3", "s2", "s1", "s6", "s5", "s4", "x2a1", "x2a2", "x1a2", "x1a1", "a1", "a2", "z4", "c2", "c1", "z1", "z2", "z3", "x3b1", "x3b2", "x2b1", "x2b2", "tx1a2"], "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": "

Given  $\\displaystyle f(z) = \\simplify[std]{z ^ 3 + {( -2) * a1 -c1}*z ^ 2 + {2 * a1 * c1 + a1 ^ 2 + b1 ^ 2} * z -{c1 * (a1 ^ 2 + b1 ^ 2)}}$, one of the following complex numbers is a root $z_1$ of the equation $f(z)=0$.

\n

Choose the correct value for $z_1$:[[0]]

", "gaps": [{"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 4, "showCellAnswerState": true, "choices": ["

$\\simplify{{a1}+{b1}i}$

", "

$\\simplify{{x1a1}+{x1b1}i}$

", "

$\\simplify{{x2a1}+{x2b1}i}$

", "

$\\simplify{{x3a1}+{x3b1}i}$

"], "matrix": [1, 0, 0, 0], "distractors": ["\n \n \n

Correct!

\n \n \n \n

\\[\\begin{eqnarray*}\n \n \\simplify{f({z1})}\t&=&\\simplify[std]{{z1}^3+{-2*a1 -c1}*{z1} ^ 2 + {2 * a1 * c1 + a1 ^ 2 + b1 ^ 2} * {z1} -{c1 * (a1 ^ 2 + b1 ^ 2)}}\\\\\t\n \n &=&\\simplify[std]{{z1^3}+{-2*a1 -c1}{z1 ^ 2} + {2 * a1 * c1 + a1 ^ 2 + b1 ^ 2} * {z1} -{c1 * (a1 ^ 2 + b1 ^ 2)}}\\\\\t\n \n &=&\\simplify[std]{{z1^3}+{(( -2) * a1 -c1)*z1^2}+ {(2 * a1 * c1 + a1 ^ 2 + b1 ^ 2)*z1}-{c1 * (a1 ^ 2 + b1 ^ 2)}}\\\\\t\t\n \n &=&0\t\t\t\t\t\t\t\t\n \n \\end{eqnarray*}\n \n \\] Hence is a root.

\n \n ", "\n \n \n

Not the correct choice as :\\[\\begin{eqnarray*}\n \n \\simplify{f({z2})}\t&=&\\simplify[std]{{z2}^3+{-2*a1 -c1}*{z2} ^ 2 + {2 * a1 * c1 + a1 ^ 2 + b1 ^ 2} * {z2} -{c1 * (a1 ^ 2 + b1 ^ 2)}}\\\\\t\n \n &=&\\simplify[std]{{z2^3}+{-2*a1 -c1}{z2 ^ 2} + {2 * a1 * c1 + a1 ^ 2 + b1 ^ 2} * {z2} -{c1 * (a1 ^ 2 + b1 ^ 2)}}\\\\\t\n \n &=&\\simplify[std]{{z2^3}+{(( -2) * a1 -c1)*z2^2}+ {(2 * a1 * c1 + a1 ^ 2 + b1 ^ 2)*z2}-{c1 * (a1 ^ 2 + b1 ^ 2)}}\\\\\t\t\n \n &=&\\simplify[std]{{z2^3+(( -2) * a1 -c1)*z2^2+ (2 * a1 * c1 + a1 ^ 2 + b1 ^ 2)*z2-c1 * (a1 ^ 2 + b1 ^ 2)}}\\neq 0\t\t\t\t\t\t\t\t\n \n \\end{eqnarray*}\\]
Hence not a root

\n \n ", "\n \n \n

Not the correct choice as :\\[\\begin{eqnarray*}\n \n \\simplify{f({z3})}\t&=&\\simplify[std]{{z3}^3+{-2*a1 -c1}*{z3} ^ 2 + {2 * a1 * c1 + a1 ^ 2 + b1 ^ 2} * {z3} -{c1 * (a1 ^ 2 + b1 ^ 2)}}\\\\\t\n \n &=&\\simplify[std]{{z3^3}+{-2*a1 -c1}{z3 ^ 2} + {2 * a1 * c1 + a1 ^ 2 + b1 ^ 2} * {z3} -{c1 * (a1 ^ 2 + b1 ^ 2)}}\\\\\t\n \n &=&\\simplify[std]{{z3^3}+{(( -2) * a1 -c1)*z3^2}+ {(2 * a1 * c1 + a1 ^ 2 + b1 ^ 2)*z3}-{c1 * (a1 ^ 2 + b1 ^ 2)}}\\\\\t\t\n \n &=&\\simplify[std]{{z3^3+(( -2) * a1 -c1)*z3^2+ (2 * a1 * c1 + a1 ^ 2 + b1 ^ 2)*z3-c1 * (a1 ^ 2 + b1 ^ 2)}}\\neq 0\t\t\t\t\t\t\t\t\n \n \\end{eqnarray*}\\]
Hence not a root

\n \n ", "\n \n \n

Not the correct choice as :\\[\\begin{eqnarray*}\n \n \\simplify{f({z2})}\t&=&\\simplify[std]{{z4}^3+{-2*a1 -c1}*{z4} ^ 2 + {2 * a1 * c1 + a1 ^ 2 + b1 ^ 2} * {z4} -{c1 * (a1 ^ 2 + b1 ^ 2)}}\\\\\t\n \n &=&\\simplify[std]{{z4^3}+{-2*a1 -c1}{z4 ^ 2} + {2 * a1 * c1 + a1 ^ 2 + b1 ^ 2} * {z4} -{c1 * (a1 ^ 2 + b1 ^ 2)}}\\\\\t\n \n &=&\\simplify[std]{{z4^3}+{(( -2) * a1 -c1)*z4^2}+ {(2 * a1 * c1 + a1 ^ 2 + b1 ^ 2)*z4}-{c1 * (a1 ^ 2 + b1 ^ 2)}}\\\\\t\t\n \n &=&\\simplify[std]{{z4^3+(( -2) * a1 -c1)*z4^2+ (2 * a1 * c1 + a1 ^ 2 + b1 ^ 2)*z4-c1 * (a1 ^ 2 + b1 ^ 2)}}\\neq 0\t\t\t\t\t\t\t\t\n \n \\end{eqnarray*}\\]
Hence not a root

\n \n "]}], "sortAnswers": false}, {"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": "

The remaining roots of $f(z)$ are:

\n

$z_2=\\;\\;$[[0]] (enter the complex root here)

\n

$z_3=\\;\\;$[[1]] (enter the real root here)

", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{a1}-{b1}i", "answerSimplification": "std", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{c1}", "answerSimplification": "std", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}], "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": "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": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}