// Numbas version: finer_feedback_settings {"name": "CF Maths January test mock paper Partial Fractions 3 - double root", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["a", "c", "b", "nb", "s1", "a_", "c_", "b_", "nb_", "a1_", "a2_", "s1_", "new", "a1", "a2", "a3", "d", "d_", "b1", "b2", "b3", "p", "q", "c1", "c2", "c3", "p1", "q1"], "name": "CF Maths January test mock paper Partial Fractions 3 - double root", "tags": ["algebra", "algebraic fractions", "algebraic manipulation", "combining algebraic fractions", "common denominator"], "advice": "
a)
\nWe use partial fractions to find $A$, $B$ and $C$ such that:
$\\simplify{({a1+a3}x^2+{a1*a+a1*b+a2+2*a*a3} * x + {a1*a*b + a2*b + a3*a^2})/ ((x + {a})^2 * (x + {b}))} \\;\\;\\;=\\simplify{A/(x+{a})+B/(x+{a})^2+C/(x+{b})}$
Dividing both sides of the equation by $\\displaystyle \\simplify[std]{1/( (x+{a})^2(x+{b}) )}\\;\\;$ we obtain:
\n$ \\simplify{A(x+{a})(x+{b})+B(x+{b})+C(x+{a})^2 = {a1+a3}*x^2+{a1*a+a1*b+a2+2*a*a3}*x + {a1*a*b + a2*b + a3*a^2}}$
\n$\\Rightarrow \\simplify[std]{(A+C)x^2+({a+b}A+B+{2a}C)x+({a*b}A+{b}B+{a*a}C)={a1+a3}*x^2+{a1*a+a1*b+a2+2*a*a3}*x + {a1*a*b + a2*b + a3*a^2}}$
\nIdentifying coefficients:
\nCoefficient $x^2$: $\\simplify[std]{A+C={a1+a3} }$
\nCoefficent $x$: $ \\simplify[std]{ {a+b}A+B+{2a}C = {a1*a+a1*b+a2+2*a*a3} }$
\nConstant term: $\\simplify{{a*b}A+{b}B+{a*a}C ={a1*a*b + a2*b + a3*a^2}}$
\nOn solving these equations we obtain $A = \\var{a1}$, $B=\\var{a2}$ and $C=\\var{a3}$
\nWhich gives:$\\simplify{({a1+a3}x^2+{a1*a+a1*b+a2+2*a*a3} * x + {a1*a*b + a2*b + a3*a^2})/ ((x + {a})^2 * (x + {b}))} \\;\\;\\;=\\simplify{{a1}/(x+{a})+{a2}/(x+{a})^2+{a3}/(x+{b})}$
\n\nApply same method to solve b) and c)
", "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "parts": [{"prompt": "Split \\[\\simplify{(({b1+b3})x^2+{b1*p+b1*q+b2+2*p*b3} * x + {b1*p*q + b2*q + b3*p^2})/ ((x + {p})^2 * (x + {q}))}\\] into partial fractions.
\nInput the partial fractions here: [[0]].
\n\n
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"notallowed": {"message": "
Input as the sum of partial fractions.
", "showStrings": false, "strings": [")(", ")*("], "partialCredit": 0}, "variableReplacements": [], "expectedvariablenames": [], "checkingaccuracy": 1e-05, "type": "jme", "showpreview": true, "vsetrangepoints": 5, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "{b1} / (x + {p}) + {b2}/(x + {p})^2 + {b3} / (x + {q})", "marks": 2, "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [10, 11]}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "statement": "\n\n
\n ", "variable_groups": [], "variablesTest": {"maxRuns": "100000", "condition": "b1+b3=0\n"}, "preamble": {"css": "", "js": ""}, "variables": {"b1": {"definition": "random(-5..5 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "b1", "description": ""}, "b2": {"definition": "random(-5..5 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "b2", "description": ""}, "b3": {"definition": "random(-5..5 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "b3", "description": ""}, "q1": {"definition": "random(-5..5 except 0 except p1)", "templateType": "anything", "group": "Ungrouped variables", "name": "q1", "description": ""}, "nb_": {"definition": "if(c_<0,'taking away','adding')", "templateType": "anything", "group": "Ungrouped variables", "name": "nb_", "description": ""}, "d_": {"definition": "1", "templateType": "anything", "group": "Ungrouped variables", "name": "d_", "description": ""}, "nb": {"definition": "if(c<0,'taking away','adding')", "templateType": "anything", "group": "Ungrouped variables", "name": "nb", "description": ""}, "c_": {"definition": "random(-9..9 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "c_", "description": ""}, "new": {"definition": "1", "templateType": "anything", "group": "Ungrouped variables", "name": "new", "description": ""}, "a_": {"definition": "random(1..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "a_", "description": ""}, "s1": {"definition": "if(c<0,-1,1)", "templateType": "anything", "group": "Ungrouped variables", "name": "s1", "description": ""}, "a1": {"definition": "random(1..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "a1", "description": ""}, "a3": {"definition": "random(1..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "a3", "description": ""}, "p1": {"definition": "random(-5..5 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "p1", "description": ""}, "c3": {"definition": "random(-5..5 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "c3", "description": ""}, "c2": {"definition": "random(-5..5 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "c2", "description": ""}, "c1": {"definition": "random(-5..5 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "c1", "description": ""}, "a": {"definition": "random(1..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "c": {"definition": "random(-9..9 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "c", "description": ""}, "b": {"definition": "random(-9..9 except 0 except a)", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "d": {"definition": "1", "templateType": "anything", "group": "Ungrouped variables", "name": "d", "description": ""}, "a2_": {"definition": "1", "templateType": "anything", "group": "Ungrouped variables", "name": "a2_", "description": ""}, "q": {"definition": "random(-5..5 except 0 except p)", "templateType": "anything", "group": "Ungrouped variables", "name": "q", "description": ""}, "p": {"definition": "random(-5..5 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "p", "description": ""}, "a2": {"definition": "random(1..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "a2", "description": ""}, "s1_": {"definition": "if(c_<0,-1,1)", "templateType": "anything", "group": "Ungrouped variables", "name": "s1_", "description": ""}, "b_": {"definition": "random(-9..9 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "b_", "description": ""}, "a1_": {"definition": "1", "templateType": "anything", "group": "Ungrouped variables", "name": "a1_", "description": ""}}, "metadata": {"notes": "
5/08/2012:
\nAdded tags.
\nAdded description.
\nChanged to two questions, for the numerator and denomimator, rather than one as difficult to trap student input for this example. Still some ambiguity however.
\n12/08/2012:
\nBack to one input of a fraction and trapped input in Forbidden Strings.
\nUsed the except feature of ranges to get non-degenerate examples.
\nChecked calculation.OK.
\nImproved display in content areas.
", "description": "", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/514/"}]}]}], "contributors": [{"name": "", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/514/"}]}