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

Rewrite the expression $\\frac{cx+d}{kx^2+mx+n}$ as partial fractions in the form $\\frac{A}{kx+a}+\\frac{B}{x+b}$, where the quadratic $kx^2+mx+n=(kx+a)(x+b)$.

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

Rewrite the following expression as partial fractions:

\n

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

", "advice": "

To express\\[\\simplify{({c}x+{d})/({k}x^2+{a+k*b}x+{a*b})} \\] as partial fractions, we must first factorise the denominator into linear factors:

\n

\\[\\simplify{({c}x+{d})/({k}x^2+{a+k*b}x+{a*b})}=\\simplify{({c}x+{d})/(({k}x+{a})(x+{b}))}.\\]

\n

Now the denominator is factorised, we want to set this equal to the sum of 2 fractions with denominators $\\simplify{{k}x+{a}}$ and $\\simplify{x+{b}}$. Since these are both distinct linear factors, this tells us that the numerators will be constants, which we will call $A$ and $B$:

\n

\\[ \\simplify{({c}x+{d})/(({k}x+{a})(x+{b}))} = \\simplify{A/({k}x+{a}) + B/(x+{b})}.\\]

\n

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

\n

\\[ \\simplify{{c}x+{d}=A(x+{b})+B({k}x+{a})}.\\]

\n

There are 2 methods of finding $A$ and $B$. The first is to choose suitable values for $x$ which will eliminate one of the terms, and the other is to compare the coefficients of each side of the equation. We will cover both methods here.

\n

Method 1:

\n

To find $A$, we can eliminate $B$ by setting $\\simplify[fractionNumbers]{x={-a/k}}$:

\n

\\[ \\simplify[fractionNumbers]{{d-c*a/k}=A{b-a/k}} \\implies \\simplify[fractionNumbers]{A={(d-c*a/k)/(b-a/k)}}.\\]

\n

Similarly, to find B, we can eliminate $A$ by setting $\\simplify{x={-b}}$:

\n

\\[ \\simplify{{d-c*b}=B{a-k*b}} \\implies \\simplify[fractionNumbers]{B={(d-c*b)/(a-k*b)}}.\\]

\n

Therefore, 

\n

{check}

\n

Method 2:

\n

By comparing the coefficients of the $x$-terms and the constant terms we can form a pair of simultaneous equations to find $A$ and $B$.

\n

\\[ \\begin{split} \\simplify{{c}x+{d}} &\\,= \\simplify{A(x+{b})+B({k}x+{a})} \\\\ &\\,= \\simplify{A*x+{b}A+{k}*B*x +{a}B} \\\\ &\\,=\\simplify{(A+{k}B)x +{b}A+{a}B} . \\end{split} \\]

\n

\\[ \\begin{split}&(x):\\quad \\var{c} &\\,= \\simplify{A+{k}B} \\\\ &(c):\\quad \\var{d} &\\,= \\simplify{{b}A+{a}B} .\\end{split} \\]

\n

Hence,

\n

\\[A=\\simplify[fractionNumbers]{{Asol}},\\,B=\\simplify[fractionNumbers]{{Bsol}}, \\]

\n

and

\n

{check}

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"Asol": {"name": "Asol", "group": "Ungrouped variables", "definition": "(d-c*a/k)/(b-a/k)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(-9..9)", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(-9..9 except b*k)", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(1..5)", "description": "", "templateType": "anything", "can_override": false}, "Bsol": {"name": "Bsol", "group": "Ungrouped variables", "definition": "(d-c*b)/(a-k*b)", "description": "", "templateType": "anything", "can_override": false}, "check": {"name": "check", "group": "Ungrouped variables", "definition": "if(Asol=round(Asol),'{Sol1}','{Sol2}')", "description": "", "templateType": "anything", "can_override": false}, "Sol1": {"name": "Sol1", "group": "Ungrouped variables", "definition": "\"

\\\\[ \\\\simplify{({c}x+{d})/({k}x^2+{a+k*b}x+{a*b})} = \\\\simplify[all,fractionNumbers]{{Asol}/({k}x+{a})+{Bsol}/(x+{b})}.\\\\]

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

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

\"", "description": "", "templateType": "long string", "can_override": false}, "d": {"name": "d", "group": "Ungrouped variables", "definition": "random(-9..9 except[c*a,c*b])", "description": "", "templateType": "anything", "can_override": false}, "k": {"name": "k", "group": "Ungrouped variables", "definition": "random(2..5)", "description": "", "templateType": "anything", "can_override": false}, "Asol2": {"name": "Asol2", "group": "Ungrouped variables", "definition": "(k*d-c*a)/(b*k-a)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "gcd(c,d)=1", "maxRuns": 100}, "ungrouped_variables": ["a", "b", "c", "d", "k", "Bsol", "Asol", "check", "Sol1", "Sol2", "Asol2"], "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": "{(k*d-c*a)}/(({k*b-a})({k}x+{a}))+{d-c*b}/(({a-k*b})(x+{b}))", "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`?/($n`?*($n`?x+`+-$n`?))+`+-$n`?/($n`?*($n`?x+`+-$n`?)) `| `+-$n/`+-$n*(`+-$n`?/($n`?*($n`?x+`+-$n`?))+`+-$n`?/($n`?*($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/"}]}]}], "contributors": [{"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}]}