// 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": [{"tags": [], "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "variable_groups": [], "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"], "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*} \\]

", "extensions": [], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "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.

"}, "name": "Roots of a cubic real polynomial", "variablesTest": {"condition": "", "maxRuns": 100}, "functions": {}, "parts": [{"adaptiveMarkingPenalty": 0, "extendBaseMarkingAlgorithm": true, "type": "gapfill", "showFeedbackIcon": true, "useCustomName": false, "showCorrectAnswer": true, "gaps": [{"adaptiveMarkingPenalty": 0, "matrix": [1, 0, 0, 0], "useCustomName": false, "showCorrectAnswer": true, "maxMarks": 0, "customMarkingAlgorithm": "", "variableReplacements": [], "minMarks": 0, "unitTests": [], "variableReplacementStrategy": "originalfirst", "shuffleChoices": true, "extendBaseMarkingAlgorithm": true, "type": "1_n_2", "showFeedbackIcon": true, "displayColumns": 4, "choices": ["

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

", "

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

", "

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

", "

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

"], "displayType": "radiogroup", "marks": 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 "], "scripts": {}, "customName": "", "showCellAnswerState": true}], "sortAnswers": false, "customMarkingAlgorithm": "", "variableReplacements": [], "marks": 0, "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]]

", "scripts": {}, "unitTests": [], "customName": "", "variableReplacementStrategy": "originalfirst"}, {"adaptiveMarkingPenalty": 0, "extendBaseMarkingAlgorithm": true, "type": "gapfill", "showFeedbackIcon": true, "useCustomName": false, "showCorrectAnswer": true, "gaps": [{"adaptiveMarkingPenalty": 0, "showPreview": true, "useCustomName": false, "showCorrectAnswer": true, "vsetRange": [0, 1], "customMarkingAlgorithm": "", "variableReplacements": [], "unitTests": [], "variableReplacementStrategy": "originalfirst", "vsetRangePoints": 5, "extendBaseMarkingAlgorithm": true, "type": "jme", "failureRate": 1, "showFeedbackIcon": true, "checkingAccuracy": 0.001, "answer": "{a1}-{b1}i", "valuegenerators": [], "answerSimplification": "std", "marks": 1, "checkingType": "absdiff", "checkVariableNames": false, "scripts": {}, "customName": ""}, {"adaptiveMarkingPenalty": 0, "showPreview": true, "useCustomName": false, "showCorrectAnswer": true, "vsetRange": [0, 1], "customMarkingAlgorithm": "", "variableReplacements": [], "unitTests": [], "variableReplacementStrategy": "originalfirst", "vsetRangePoints": 5, "extendBaseMarkingAlgorithm": true, "type": "jme", "failureRate": 1, "showFeedbackIcon": true, "checkingAccuracy": 0.001, "answer": "{c1}", "valuegenerators": [], "answerSimplification": "std", "marks": 1, "checkingType": "absdiff", "checkVariableNames": false, "scripts": {}, "customName": ""}], "sortAnswers": false, "customMarkingAlgorithm": "", "variableReplacements": [], "marks": 0, "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)

", "scripts": {}, "unitTests": [], "customName": "", "variableReplacementStrategy": "originalfirst"}], "variables": {"z1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "a1+ b1*i", "description": "", "name": "z1"}, "s6": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "name": "s6"}, "tx1a1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s1*random(1..9)", "description": "", "name": "tx1a1"}, "a1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s1*random(1..9)", "description": "", "name": "a1"}, "x3b2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "xs1*random(1..9)", "description": "", "name": "x3b2"}, "x3b1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "xs3*random(1..9)", "description": "", "name": "x3b1"}, "tx2a1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s3*random(1..9)", "description": "", "name": "tx2a1"}, "s5": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "name": "s5"}, "tx3a1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s4*random(1..9)", "description": "", "name": "tx3a1"}, "s2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "name": "s2"}, "xs2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "name": "xs2"}, "x3a1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "if(tx3a1=a1,a1+1,tx3a1)", "description": "", "name": "x3a1"}, "s3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "name": "s3"}, "z2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "x1a1+x1b1*i", "description": "", "name": "z2"}, "tx1a2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s3*random(1..9)", "description": "", "name": "tx1a2"}, "f1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1..8)", "description": "", "name": "f1"}, "b2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s5*random(1..9)", "description": "", "name": "b2"}, "z4": {"templateType": "anything", "group": "Ungrouped variables", "definition": "x3a1+x3b1*i", "description": "", "name": "z4"}, "x1a2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "if(tx1a2=a2,a2+1,tx1a2)", "description": "", "name": "x1a2"}, "tx2a2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s4*random(1..9)", "description": "", "name": "tx2a2"}, "x2a1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "if(tx2a1=a1,a1+1,tx2a1)", "description": "", "name": "x2a1"}, "x2b2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "xs3*random(1..9)", "description": "", "name": "x2b2"}, "xs1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "name": "xs1"}, "s4": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "name": "s4"}, "xs3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "name": "xs3"}, "x1b1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "xs1*random(1..9)", "description": "", "name": "x1b1"}, "tx3a2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s6*random(1..9)", "description": "", "name": "tx3a2"}, "c2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s6*random(1..9)", "description": "", "name": "c2"}, "b1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "if(abs(a1)=f1,f1+1,f1)", "description": "", "name": "b1"}, "x2a2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "if(tx2a2=a2,a2+1,tx2a2)", "description": "", "name": "x2a2"}, "x3a2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "if(tx3a2=a2,a2+1,tx3a2)", "description": "", "name": "x3a2"}, "a2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s4*random(1..9)", "description": "", "name": "a2"}, "s1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "name": "s1"}, "x1a1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "if(tx1a1=a1,a1+1,tx1a1)", "description": "", "name": "x1a1"}, "c1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s3*random(1..9)", "description": "", "name": "c1"}, "z3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "x2a1+x2b1*i", "description": "", "name": "z3"}, "x2b1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "xs2*random(1..9)", "description": "", "name": "x2b1"}, "x1b2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "xs2*random(1..9)", "description": "", "name": "x1b2"}}, "preamble": {"js": "", "css": ""}, "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.

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