// Numbas version: exam_results_page_options {"name": "Factorise rational polynomials", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "variables": {"r": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(-9..9)", "description": "", "name": "r"}, "b": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(-9..9 except [0,1,-1])", "description": "", "name": "b"}, "c": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(-9..9 except 0)", "description": "", "name": "c"}, "d": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(-9..9)", "description": "", "name": "d"}, "a1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..9)", "description": "", "name": "a1"}, "a": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(-9..9 except 0)", "description": "", "name": "a"}}, "ungrouped_variables": ["a", "c", "b", "d", "a1", "r"], "question_groups": [{"pickingStrategy": "all-ordered", "questions": [], "name": "", "pickQuestions": 0}], "name": "Factorise rational polynomials", "functions": {}, "showQuestionGroupNames": false, "parts": [{"scripts": {}, "gaps": [{"answer": "X+{a}", "vsetrange": [0, 1], "checkingaccuracy": 0.001, "checkvariablenames": false, "expectedvariablenames": [], "showpreview": true, "checkingtype": "absdiff", "scripts": {}, "type": "jme", "showCorrectAnswer": true, "marks": 1, "vsetrangepoints": 5}, {"answer": "{r}", "vsetrange": [0, 1], "checkingaccuracy": 0.001, "checkvariablenames": false, "expectedvariablenames": [], "showpreview": true, "checkingtype": "absdiff", "scripts": {}, "type": "jme", "showCorrectAnswer": true, "marks": 1, "vsetrangepoints": 5}], "type": "gapfill", "prompt": "

$\\simplify{f(X) = X ^ 5 + {1 + a} * X ^ 4 + {1 + a} * X ^ 3 + {1 + a} * X ^ 2 + {1 + a} * X + {a + r}}$

\n

$\\simplify{g(X) = X ^ 4 + X ^ 3 + X ^ 2 + X + 1}$

\n

$q(X)=$ [[0]]

\n

$r(X)=$ [[1]]

", "showCorrectAnswer": true, "marks": 0}, {"scripts": {}, "gaps": [{"answer": "X-{a}", "vsetrange": [0, 1], "checkingaccuracy": 0.001, "checkvariablenames": false, "expectedvariablenames": [], "showpreview": true, "checkingtype": "absdiff", "scripts": {}, "type": "jme", "showCorrectAnswer": true, "marks": 1, "vsetrangepoints": 5}, {"answer": "{-r}", "vsetrange": [0, 1], "checkingaccuracy": 0.001, "checkvariablenames": false, "expectedvariablenames": [], "showpreview": true, "checkingtype": "absdiff", "scripts": {}, "type": "jme", "showCorrectAnswer": true, "marks": 1, "vsetrangepoints": 5}], "type": "gapfill", "prompt": "

$\\simplify{f(X) = X ^ 5 + { -1 -a} * X ^ 4 + {1 + a} * X ^ 3 + { -1 -a} * X ^ 2 + {1 + a} * X + { -a -r}}$

\n

$\\simplify{g(X) = X ^ 4 - X ^ 3 + X ^ 2 - X + 1}$

\n

$q(X)=$ [[0]]

\n

$r(X)=$ [[1]]

", "showCorrectAnswer": true, "marks": 0}, {"scripts": {}, "gaps": [{"answer": "X^3/{a1}+{d}/{a1}*X-{b}/{a1^2}", "vsetrange": [0, 1], "checkingaccuracy": 0.001, "showCorrectAnswer": true, "expectedvariablenames": [], "notallowed": {"message": "

Enter numbers as fractions or integers and not as decimals.

", "showStrings": false, "partialCredit": 0, "strings": ["."]}, "showpreview": true, "checkingtype": "absdiff", "scripts": {}, "checkvariablenames": false, "type": "jme", "answersimplification": "std", "marks": 1, "vsetrangepoints": 5}, {"answer": "-{b*d}/{a1}*X+{b^2+a1^2*c}/{a1^2}", "vsetrange": [0, 1], "checkingaccuracy": 0.001, "showCorrectAnswer": true, "expectedvariablenames": [], "notallowed": {"message": "

Enter numbers as fractions or integers and not as decimals.

", "showStrings": false, "partialCredit": 0, "strings": ["."]}, "showpreview": true, "checkingtype": "absdiff", "scripts": {}, "checkvariablenames": false, "type": "jme", "answersimplification": "std", "marks": 1, "vsetrangepoints": 5}], "type": "gapfill", "prompt": "

$\\simplify{f(X) = X ^ 6 + {d} * X ^ 4 + {c}}$

\n

$\\simplify{g(X) = {a1} * X ^ 3 + {b}}$

\n

Remember to enter all numbers as rationals i.e. as fractions or integers and not as decimals.

\n

$q(X)=$ [[0]]

\n

$r(X)=$ [[1]]

\n

", "showCorrectAnswer": true, "marks": 0}], "statement": "

Let $\\mathbb{Q}$ be the rational numbers. This exercise considers polynomials over $\\mathbb{Q}$.

\n

In each of the following examples, find polynomials $q(X)$ and $r(X)$ over $\\mathbb{Q}$ such that $f(X)=q(X)g(X)+r(X)$ and   $\\operatorname{deg}r(X) \\lt \\operatorname{deg}g(X)$.

\n

Enter all numbers as rationals, i.e. as fractions or integers and not as decimals.

\n

", "tags": ["checked2015", "MAS2213"], "rulesets": {"std": ["all", "!noleadingminus", "fractionnumbers"]}, "preamble": {"css": "", "js": ""}, "type": "question", "metadata": {"notes": "", "licence": "Creative Commons Attribution 4.0 International", "description": "

Given polynomial $f(X)$, $g(X)$ over $\\mathbb{Q}$, find polynomials $q(X)$ and $r(X)$ over $\\mathbb{Q}$ such that $f(X)=q(X)g(X)+r(X)$ and $\\operatorname{deg}r(X) \\lt \\operatorname{deg}g(X)$.

"}, "variablesTest": {"condition": "", "maxRuns": 100}, "advice": "

a)

\n

We have:

\n

\\[ \\simplify{f(X) = X ^ 5 + {1 + a} * X ^ 4 + {1 + a} * X ^ 3 + {1 + a} * X ^ 2 + {1 + a} * X + {a + r} = (X + {a}) * (X ^ 4 + X ^ 3 + X ^ 2 + X + 1) + {r}} \\]

\n

Hence $\\simplify{g(X)=X+{a}}$, $r=\\var{r}$.

\n

b)

\n

Similarly:

\n

\\[ \\simplify{f(X) = X ^ 5 + { -1 -a} * X ^ 4 + {1 + a} * X ^ 3 + { -1 -a} * X ^ 2 + {1 + a} * X + { -a -r} = (X + { -a}) * (X ^ 4 -(X ^ 3) + X ^ 2 -X + 1) + { -r}} \\]

\n

Hence $\\simplify{g(X)=X-{a}}$, $r=\\var{-r}$.

\n

c)

\n

\\begin{align}
f(X) &= \\simplify{X ^ 6 + {d} * X ^ 4 + {c}} \\\\
&= \\simplify[std]{({a1} * X ^ 3 + {b}) * (X ^ 3 / {a1} +  ({d} / {a1}) * X  -({b} / {a1 ^ 2})) + {b^2 + c * a1 ^ 2} / {a1 ^ 2} -  ({b * d} / {a1}) * X}
\\end{align}

\n

Hence

\n

\\begin{align} \\displaystyle g(X) &= \\simplify[std]{X ^ 3 / {a1} +  ({d} / {a1}) * X  -({b} / {a1 ^ 2})}, & r(X) &= \\simplify[std]{{b^2 + c * a1 ^ 2} / {a1 ^ 2} -  ({b * d} / {a1}) * X} \\end{align}

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