// Numbas version: finer_feedback_settings {"name": "Partial Fractions: Proper Fractions 3a", "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 3a", "tags": [], "metadata": {"description": "
Rewrite the expression $\\frac{cx+d}{(x+a)(x+b)}$ as partial fractions in the form $\\frac{A}{x+a}+\\frac{B}{x+b}$.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Rewrite the following expression as partial fractions:
\n\\[ \\simplify{({c}x+{d})/((x+{a})(x+{b}))} .\\]
", "advice": "To express \\[ \\simplify{({c}x+{d})/((x+{a})(x+{b}))} \\] as partial fractions, we want to set this equal to the sum of 2 fractions with denominators $\\simplify{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})/((x+{a})(x+{b}))} = \\simplify{A/(x+{a}) + B/(x+{b})}.\\]
\nTo 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(x+{a})}.\\]
\nThere 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.
\nMethod 1:
\nTo find $A$, we can eliminate $B$ by setting $\\simplify{x={-a}}$:
\n\\[ \\simplify{{d-c*a}=A{b-a}} \\implies \\simplify[fractionNumbers]{A={(d-c*a)/(b-a)}}.\\]
\nSimilarly, to find B, we can eliminate $A$ by setting $\\simplify{x={-b}}$:
\n\\[ \\simplify{{d-c*b}=B{a-b}} \\implies \\simplify[fractionNumbers]{B={(d-c*b)/(a-b)}}.\\]
\nTherefore,
\n{check}
\nMethod 2:
\nBy 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(x+{a})} \\\\ &\\,= \\simplify{A*x+{b}A+B*x +{a}B} \\\\ &\\,=\\simplify{(A+B)x +{b}A+{a}B} . \\end{split} \\]
\n\\[ \\begin{split}&(x):\\quad \\var{c} &\\,= \\simplify{A+B} \\\\ &(c):\\quad \\var{d} &\\,= \\simplify{{b}A+{a}B} .\\end{split} \\]
\nHence,
\n\\[A=\\simplify[fractionNumbers]{{Asol}},\\,B=\\simplify[fractionNumbers]{{Bsol}}, \\]
\nand
\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)/(b-a)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(-9..9 except a)", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(-9..9)", "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-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})/((x+{a})(x+{b}))} = \\\\simplify[all,fractionNumbers]{{Asol}/(x+{a})+{Bsol}/(x+{b})}.\\\\]
\"", "description": "", "templateType": "long string", "can_override": false}, "Sol2": {"name": "Sol2", "group": "Ungrouped variables", "definition": "\"\\\\[ \\\\simplify{({c}x+{d})/((x+{a})(x+{b}))} = \\\\simplify[all,fractionNumbers]{{d-c*a}/(({b-a})(x+{a}))+{d-c*b}/(({a-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}}, "variablesTest": {"condition": "gcd(c,d)=1", "maxRuns": 100}, "ungrouped_variables": ["b", "a", "c", "d", "Asol", "Bsol", "check", "Sol1", "Sol2"], "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": "{d-c*a}/(({b-a})(x+{a}))+{d-c*b}/(({a-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", "type": "question", "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/"}]}