// Numbas version: exam_results_page_options {"name": "Factor Theorem and polynomials", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "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)$. 

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

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

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

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

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

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

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

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

Random number between 2,3,4.

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

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

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

Used in creation of the polynomial.

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

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

"}}, "rulesets": {}, "tags": [], "preamble": {"js": "", "css": ""}, "extensions": [], "name": "Factor Theorem and polynomials", "functions": {}, "variablesTest": {"maxRuns": 100, "condition": ""}, "ungrouped_variables": ["w", "a", "b", "d", "coef_x3", "coef_x2", "coef_x"], "metadata": {"description": "", "licence": "Creative Commons Attribution 4.0 International"}, "parts": [{"variableReplacementStrategy": "originalfirst", "type": "gapfill", "showFeedbackIcon": true, "marks": 0, "showCorrectAnswer": true, "gaps": [{"checkingaccuracy": 0.001, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "checkvariablenames": false, "checkingtype": "absdiff", "answer": "{-({w}*({-d})^3+({w}*{d}+{a}+{w}*{b})*({-d})^2+({a}*{d}+{w}*{b}*{d}+{a}*{b})*{-d})}", "variableReplacements": [], "expectedvariablenames": [], "type": "jme", "showFeedbackIcon": true, "marks": "2", "vsetrangepoints": 5, "scripts": {}, "showpreview": true, "vsetrange": [0, 1]}], "variableReplacements": [], "scripts": {}, "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": "question", "contributors": [{"name": "Adrian Jannetta", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/164/"}]}]}], "contributors": [{"name": "Adrian Jannetta", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/164/"}]}