// Numbas version: exam_results_page_options {"name": "AE6 Partial Fractions", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "AE6 Partial Fractions", "tags": [], "metadata": {"description": "

Rewrite the expression $\\frac{mx^2+nx+k}{(x+a)(x^2+bx+c)}$ as partial fractions in the form $\\frac{A}{x+a}+\\frac{Bx+C}{x^2+bx+c}$.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Rewrite the following expression as partial fractions:

\n

\\[ \\simplify{({m}x^2+{n}x+{k})/((x+{a})(x^2+{b}x+{c}))}. \\]

\n

", "advice": "

To express \\[ \\simplify{({m}x^2+{n}x+{k})/((x+{a})(x^2+{b}x+{c}))} \\] as partial fractions, we want to set this equal to the sum of two fractions with denominators $\\simplify{x+{a}}$ and $\\simplify{x^2+{b}x+{c}}$. Since we have a linear factor and a quadratic factor, this tells us that the form of the partial fractions will be

\n

\\[ \\simplify{({m}x^2+{n}x+{k})/((x+{a})(x^2+{b}x+{c}))} = \\simplify{A/(x+{a}) + (B*x+C)/(x^2+{b}x+{c})},\\]

\n

where $A$, $B$, and $C$ are constants.

\n

To find the values of $A$, $B$, and $C$, we want to first multiply this equation by the denominator of the left-hand side. This gives

\n

\\[ \\simplify{{m}x^2+{n}x+{k}=A(x^2+{b}x+{c})+B*x(x+{a}) + C(x+{a})}.\\]

\n

(Note: To find $A$, $B$, and $C$, we will use a combination of choosing suitable values of $x$ to eliminate terms, and equating coefficients. It can be solved by only equating coefficients, but this is a more efficient process.)

\n

\n

To find $A$, we can eliminate $B$ and $C$ by setting $x=\\var{-a}$:

\n

\\[ \\simplify{{m*a^2-n*a+k}=A{(a^2-b*a+c)}} \\implies A=\\simplify[fractionNumbers]{{Asol}}.\\]

\n

To find $C$, we can eliminate $B$ by setting $x=0$ and substituting in the result of $A$:

\n

\\[ \\simplify{{k}={c}A+{a}C} \\implies C=\\simplify[all,fractionNumbers]{({k}-{c}A)/{a}}.\\]

\n

Hence,

\n

\\[ C = \\simplify[fractionNumbers]{{Csol}}.\\]

\n

Finally, by equating coefficients of the $x^2$-terms we can find $B$:

\n

\\[ (x^2): \\quad \\var{m} = \\simplify{A+B} \\implies B=\\var{m}-A. \\]

\n

Therefore, \\[ B=\\simplify[fractionNumbers]{{Bsol}}, \\]

\n

and

\n

{check}

\n

Use this link to find some resources which will help you revise this topic.

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "random(-6..6 except 0)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "pairs[index][1]", "description": "", "templateType": "anything", "can_override": false}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "if(k=1,random(-1,1)*random([1,3,4,5]),if (k=2,random(-1,1)*random([1,2,4,5]),if(k=3,random(-1,1)*random([1,2,3,5]),if(k=5,random(-1,1)*random([1,2,3,4,5,7]),random(-1,1)*random([1,2,3,4,5,7])))))", "description": "", "templateType": "anything", "can_override": false}, "Asol": {"name": "Asol", "group": "Ungrouped variables", "definition": "(m*a^2-n*a+k)/(a^2-b*a+c)", "description": "", "templateType": "anything", "can_override": false}, "Bsol": {"name": "Bsol", "group": "Ungrouped variables", "definition": "(m*c-m*b*a+n*a-k)/(a^2-b*a+c)", "description": "", "templateType": "anything", "can_override": false}, "Csol": {"name": "Csol", "group": "Ungrouped variables", "definition": "(k*(a-b)-m*a*c+n*c)/(a^2-a*b+c)", "description": "", "templateType": "anything", "can_override": false}, "check": {"name": "check", "group": "Ungrouped variables", "definition": "if(Asol=round(Asol) and Bsol=round(Bsol),'{sol1}',if(simp2=1,'{sol2}','{sol3}'))", "description": "", "templateType": "anything", "can_override": false}, "sol1": {"name": "sol1", "group": "Ungrouped variables", "definition": "\"

\\\\[ \\\\simplify{({m}x^2+{n}x+{k})/((x+{a})(x^2+{b}x+{c}))} = \\\\simplify{{Asol}/(x+{a})+({Bsol}x+{Csol})/(x^2+{b}x+{c})}.\\\\]

\"", "description": "", "templateType": "long string", "can_override": false}, "sol2": {"name": "sol2", "group": "Ungrouped variables", "definition": "\"

\\\\[ \\\\simplify{({m}x^2+{n}x+{k})/((x+{a})(x^2+{b}x+{c}))} = \\\\simplify[all,fractionNumbers]{{m*a^2-n*a+k}/({a^2-a*b+c}(x+{a}))+({m*c-m*b*a+n*a-k}x+{k*(a-b)-m*a*c+n*c})/({a^2-a*b+c}(x^2+{b}x+{c}))}.\\\\]

\"", "description": "", "templateType": "long string", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "pairs[index][0]", "description": "", "templateType": "anything", "can_override": false}, "simp1": {"name": "simp1", "group": "Ungrouped variables", "definition": "gcd(k*(a-b)-m*a*c+n*c,m*c-m*b*a+n*a-k)", "description": "", "templateType": "anything", "can_override": false}, "simp2": {"name": "simp2", "group": "Ungrouped variables", "definition": "gcd(simp1,a^2-a*b+c)", "description": "", "templateType": "anything", "can_override": false}, "sol3": {"name": "sol3", "group": "Ungrouped variables", "definition": "\"

\\\\[ \\\\simplify{({m}x^2+{n}x+{k})/((x+{a})(x^2+{b}x+{c}))} = \\\\simplify[all,fractionNumbers]{{m*a^2-n*a+k}/({a^2-a*b+c}(x+{a}))+({(m*c-m*b*a+n*a-k)/simp2}x+{(k*(a-b)-m*a*c+n*c)/simp2})/({(a^2-a*b+c)/simp2}(x^2+{b}x+{c}))}.\\\\]

\"", "description": "", "templateType": "long string", "can_override": false}, "k": {"name": "k", "group": "Ungrouped variables", "definition": "random([1,2,3,5,7])", "description": "", "templateType": "anything", "can_override": false}, "m": {"name": "m", "group": "Ungrouped variables", "definition": "1", "description": "", "templateType": "anything", "can_override": false}, "pairs": {"name": "pairs", "group": "Ungrouped variables", "definition": "[[1,random(-1,1)*random([1,3,4,5])],[2,random(-1,1)*random([1,2,4,5])],[3,random(-1,1)*random([1,2,3,5])],[5,random(-1,1)*random([1,2,3,4,5,7])],[7,random(-1,1)*random([1,2,3,4,5,7])]]", "description": "", "templateType": "anything", "can_override": false}, "index": {"name": "index", "group": "Ungrouped variables", "definition": "random(0..4)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "a^2-a*b+c>0 or a^2-a*b+c<0", "maxRuns": 100}, "ungrouped_variables": ["a", "pairs", "index", "b", "c", "m", "k", "n", "Asol", "Bsol", "Csol", "check", "sol1", "sol2", "sol3", "simp1", "simp2"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "\n

[[0]]

", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{(m*a^2-n*a+k)}/({a^2-a*b+c}(x+{a}))+({(m*c-m*b*a+n*a-k)/simp2}x+{(k*(a-b)-m*a*c+n*c)/simp2})/({(a^2-a*b+c)/simp2}(x^2+{b}x+{c}))", "answerSimplification": "all", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "mustmatchpattern": {"pattern": "`! (((`+-$n`?*x^2+`+-$n`?*x+`+-$n)/((x+`+-$n)(x^2+`+-$n*x+`+-$n))))", "partialCredit": 0, "message": "", "nameToCompare": ""}, "valuegenerators": [{"name": "x", "value": ""}]}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}, {"name": "Oliver Spenceley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/23557/"}]}]}], "contributors": [{"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}, {"name": "Oliver Spenceley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/23557/"}]}