// Numbas version: exam_results_page_options {"name": "Finding the missing value of a constant in a polynomial, using the Factor Theorem ", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Finding the missing value of a constant in a polynomial, using the Factor Theorem ", "type": "question", "tags": ["Factor Theorem", "factor theorem", "polynomials", "Polynomials", "taxonomy"], "variablesTest": {"condition": "", "maxRuns": 100}, "variables": {"coef_x3": {"description": "

Number obtained by putting x=-d into the first term of the equation.

", "group": "Ungrouped variables", "templateType": "anything", "name": "coef_x3", "definition": "(w)*(-d)^3"}, "b": {"description": "

Random number between -2 and 3 except 0 for creating polynomial.

", "group": "Ungrouped variables", "templateType": "anything", "name": "b", "definition": "random(-2..3 except 0)"}, "coef_x": {"description": "

Number obtained by putting x=-d into the third term of the equation.

", "group": "Ungrouped variables", "templateType": "anything", "name": "coef_x", "definition": "(a*d+w*b*d+a*b)*(-d)"}, "d": {"description": "

Used in creation of the polynomial.

", "group": "Ungrouped variables", "templateType": "anything", "name": "d", "definition": "random(-2..2 except 0 except a except b)"}, "w": {"description": "

Random number between 2,3,4.

", "group": "Ungrouped variables", "templateType": "anything", "name": "w", "definition": "random(2,3,4)"}, "coef_x2": {"description": "

Number obtained by putting x=-d into the second term of the equation.

", "group": "Ungrouped variables", "templateType": "anything", "name": "coef_x2", "definition": "(w*d+a+w*b)*(-d)^2"}, "a": {"description": "

Random number between -2 and 3, not including 0 for creating polynomial.

", "group": "Ungrouped variables", "templateType": "anything", "name": "a", "definition": "random(-2..3 except 0)"}}, "extensions": [], "functions": {}, "statement": "

The factor theorem states that if $f(x)$ is a polynomial and $f(p) = 0$, then $(x-p)$ is a factor of $f(x)$. 

", "variable_groups": [], "parts": [{"scripts": {}, "variableReplacements": [], "marks": 0, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "gaps": [{"checkingtype": "absdiff", "scripts": {}, "type": "jme", "variableReplacementStrategy": "originalfirst", "vsetrange": [0, 1], "showCorrectAnswer": true, "showFeedbackIcon": true, "vsetrangepoints": 5, "checkingaccuracy": 0.001, "variableReplacements": [], "marks": "2", "expectedvariablenames": [], "answer": "{-({w}*({-d})^3+({w}*{d}+{a}+{w}*{b})*({-d})^2+({a}*{d}+{w}*{b}*{d}+{a}*{b})*{-d})}", "checkvariablenames": false, "showpreview": true}], "showFeedbackIcon": true, "prompt": "

Given that $(\\simplify{x+{d}})$ is a factor of $g(x) = \\simplify{{w}*x^3+({w}{d}+{a}+{w}{b})*x^2+({a}{d}+{w}{b}{d}+{a}{b})*x}+m$, find the value of $m$.

\n

$m =$ [[0]].

\n

", "type": "gapfill"}], "ungrouped_variables": ["w", "a", "b", "d", "coef_x3", "coef_x2", "coef_x"], "rulesets": {}, "preamble": {"css": "", "js": ""}, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Given a factor of a cubic polynomial, factorise it fully by first dividing by the given factor, then factorising the remaining quadratic.

"}, "advice": "

Using the factor theorem, we know that if $(x-a)$ is a factor of a polynomial $f(x)$, then $f(a)=0$.

\n

We are given that $(\\simplify{x+{d}})$ is a factor of $g(x) = \\simplify{{w}*x^3+({w}{d}+{a}+{w}{b})*x^2+({a}{d}+{w}{b}{d}+{a}{b})*x+m}$.

\n

By the factor theorem, this means that $g(\\simplify{-{d}}) = 0$.

\n

Substituting $x=\\simplify{-{d}}$ into $g(x)$ gives

\n

\\[
\\begin{align}
g(\\simplify{-{d}}) &= \\simplify[all,!collectNumbers]{{coef_x3}+{coef_x2}+{coef_x}+m}\\\\
&=\\simplify{{coef_x3}+{coef_x2}+{coef_x}+m}.
\\end{align}
\\]

\n

Therefore, as $g(\\simplify{-{d}}) = 0$, we have

\n

\\[
\\begin{align}
\\simplify{{coef_x3}+{coef_x2}+{coef_x}+m}&=0\\\\
m&=\\simplify{-({coef_x3}+{coef_x2}+{coef_x})}.
\\end{align}
\\]

", "contributors": [{"name": "Elliott Fletcher", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1591/"}]}]}], "contributors": [{"name": "Elliott Fletcher", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1591/"}]}