// Numbas version: finer_feedback_settings {"name": "Dividing polynomials 3", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "name": "Dividing polynomials 3", "tags": ["algebra", "compare coefficients", "comparing coefficients", "degree of a polynomial", "division of polynomials", "long division of polynomials", "polynomial division", "polynomials", "quotient polynomial", "remainder polynomial"], "advice": "\n \n \n

You can use the method of long division. Here we show an alternative method.

\n \n \n \n

The question tells us we can write:
\\[\\frac{f(x)}{g(x)}=\\simplify[std]{(x ^ 4 + {a1} * x ^ 3 + {b1} * x^2 + {c1}x+{d1})/(x^2+{e1})=q(x)+r(x)/(x^2+{e1})}\\;\\;\\;\\dots(1)\\]
Since the degree of $f(x)$ is $4$ and the degree of $g(x)$ is $2$, the degree of $q(x)$ is $2$ and we can write $q(x)=Ax^2+Bx+C$ for constants $A,\\;B,\\;C$.

\n \n \n \n

The degree of $r(x)$ is less than $2$ hence $r(x)=Dx+E$ for constants $D,\\;E$.

\n \n \n \n

Multiplying both sides of (1) by $\\simplify[std]{x^2+{e1}}$ gives:
\\[\\simplify[std]{x ^ 4 + {a1} * x ^ 3 + {b1} * x^2 + {c1}x+{d1}=(Ax^2+Bx+C)(x^2+{e1})+Dx}+E\\]
We can then compare coefficients to determine the constants $A,\\;B,\\;C,\\;D,\\;E$.

\n \n \n \n

Terms in $x^4$

\n \n \n \n

$A=1$

\n \n \n \n

Terms in $x^3$

\n \n \n \n

$B=\\var{a1}$

\n \n \n \n

Terms in $x^2$

\n \n \n \n

$\\simplify[std]{{e1}A+C = {b1}} \\Rightarrow C = \\var{b1-e1}$

\n \n \n \n

Terms in $x$

\n \n \n \n

$\\simplify[std]{{e1}B+D = {c1}} \\Rightarrow D = \\var{c1-a1*e1}$

\n \n \n \n

Constant terms

\n \n \n \n

$\\simplify[std]{{e1}C}+E= \\var{d1} \\Rightarrow E = \\var{d1-(b1-e1)*e1}$

\n \n \n \n

Therefore:
\\[\\frac{f(x)}{g(x)}=\\simplify[std]{x ^ 2 + {a1} *x + {b1 -e1}+({c1-a1*e1}*x+{d1-e1*(b1-e1)})/(x^2+{e1})}\\]

\n \n \n ", "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers", "!noLeadingMinus"]}, "parts": [{"prompt": "\n

$q(x)=\\;\\;$[[0]]

\n

$r(x)=\\;\\;$[[1]]

\n

Input all numbers as integers and not as decimals in both questions.

\n ", "gaps": [{"checkingaccuracy": 0.001, "vsetrange": [0.0, 1.0], "vsetrangepoints": 5.0, "checkingtype": "absdiff", "answersimplification": "std", "marks": 1.0, "answer": "x ^ 2 + {a1} *x + {b1 -e1}", "type": "jme"}, {"notallowed": {"message": "

Input all numbers as integers and not as decimals.

", "showstrings": false, "strings": ["."], "partialcredit": 0.0}, "checkingaccuracy": 0.001, "vsetrange": [0.0, 1.0], "vsetrangepoints": 5.0, "checkingtype": "absdiff", "answersimplification": "std", "marks": 1.0, "answer": "{c1-a1*e1}*x+{d1-e1*(b1-e1)}", "type": "jme"}], "type": "gapfill", "marks": 0.0}], "extensions": [], "statement": "\n

Divide $\\displaystyle{f(x)=\\simplify[std]{ x ^ 4 + {a1} * x ^ 3 + {b1} * x^2 + {c1}x+{d1}}}$ by $g(x)=\\simplify[std]{x^2+{e1}}$ so that:
\\[\\frac{f(x)}{g(x)}=q(x)+\\frac{r(x)}{g(x)}\\]

\n

where $q(x)$ is the quotient polynomial and $r(x)$ and the degree of $r(x)$ is less than the degree of $g(x)$.

\n

The coefficients of $q(x)$ are integers, do not input as decimals.

\n ", "variable_groups": [], "progress": "ready", "type": "question", "variables": {"a1": {"definition": "random(-5..5)", "name": "a1"}, "s": {"definition": "random(1,-1)", "name": "s"}, "b1": {"definition": "random(-5..5)", "name": "b1"}, "c1": {"definition": "random(-5..5)", "name": "c1"}, "e1": {"definition": "s*random(1..4)", "name": "e1"}, "d1": {"definition": "random(-5..5)", "name": "d1"}}, "metadata": {"notes": "\n \t\t

29/06/2012:

\n \t\t


Added and edited tags.

\n \t\t

Added forbidden string, the decimal point, as it has been missed out.

\n \t\t

19/07/2012:

\n \t\t

Added description.

\n \t\t

Note that the solution given in Advice uses the comparison of coefficients method. Could also include two other methods - but no, too unwieldy!

\n \t\t

Checked calculations.

\n \t\t

23/07/2012:

\n \t\t

Added tags.

\n \t\t

Headings in the Advice section look too big. Consider writing in bold font instead of bigger font?

\n \t\t

Question appears to be working correctly.

\n \t\t

 

\n \t\t", "description": "

Divide $ f(x)=x ^ 4 + ax ^ 3 + bx^2 + cx+d$ by $g(x)=x^2+p $ so that:
$\\displaystyle \\frac{f(x)}{g(x)}=q(x)+\\frac{r(x)}{g(x)}$

", "licence": "Creative Commons Attribution 4.0 International"}, "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}]}]}], "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}]}