// Numbas version: exam_results_page_options {"name": "Simon's copy of Integration by partial fractions", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"tags": ["2 distinct linear factors", "Calculus", "Steps", "calculus", "completing the square", "constant of integration", "factorising a quadratic", "factorizing a quadratic", "indefinite integration", "integrals", "integration", "partial fractions", "steps", "two distinct linear factors"], "question_groups": [{"pickingStrategy": "all-ordered", "name": "", "pickQuestions": 0, "questions": []}], "showQuestionGroupNames": false, "parts": [{"steps": [{"type": "information", "marks": 0.0, "prompt": "\n
First of all factorise the denominator.
\nYou have to find $a$ and $b$ such that $\\simplify[std]{x^2+{a+b}*x+{a*b}=(x+a)*(x+b)}$.
\nThen use partial fractions to write:
\\[\\simplify[std]{{c}/((x +a)*(x+b)) = A/(x+a)+B/(x+b)}\\]
for suitable integers or fractions $A$ and $B$.
\n "}], "stepspenalty": 1.0, "gaps": [{"checkingtype": "absdiff", "checkingaccuracy": 0.0001, "type": "jme", "marks": 3.0, "answer": "({c}/{b-a})*(ln(x+{a})-ln(x+{b}))+C", "vsetrangepoints": 5.0, "answersimplification": "std", "vsetrange": [11.0, 12.0], "notallowed": {"showstrings": false, "strings": ["."], "message": "Input all numbers as fractions or integers and not decimals.
", "partialcredit": 0.0}}], "prompt": "\n$I=\\;$[[0]]
\nInput all numbers as fractions or integers and not decimals.
\nInput the constant of integration as $C$.
\nClick on Show steps for help if you need it. You will lose 1 mark if you do so.
\n ", "type": "gapfill", "marks": 0.0}], "type": "question", "progress": "ready", "statement": "\nFind the following integral.
\n\\[I = \\simplify[std]{Int({c}/(x^2+{a+b}*x+{a*b}),x )}\\]
\nInput all numbers as fractions or integers and not decimals.
\nInput the constant of integration as $C$.
\n ", "advice": "\nFirst we factorise $\\simplify[std]{x^2+{a+b}*x+{a*b}=(x+{a})*(x+{b})}$.
\nYou can do this by spotting the factors or by completing the square.
\nNext we use partial fractions to find $A$ and $B$ such that:
\\[\\simplify[std]{{c}/((x +{a})*(x+{b})) = A/(x+{a})+B/(x+{b})}\\]
Multiplying both sides of the equation by $\\displaystyle \\simplify[std]{1/((x +{a})*(x+{b}))}$ we obtain:
$\\simplify[std]{A*(x+{b})+B*(x+{a}) = {c}}\\Rightarrow \\simplify[std]{(A+B)x+{b}A+{a}B={c}}$
\nIdentifying coefficients:
\nConstant term: $\\simplify[std]{{b}*A+{a}*B = {c}}$
\nCoefficent $x$: $ \\simplify[std]{A + B = 0}$ which gives $A = -B$.
\nHence we obtain $\\displaystyle \\simplify[std]{A = {c}/{b-a}}$ and $\\displaystyle \\simplify[std]{B={-c}/{b-a}}$
\nWhich gives: \\[\\simplify[std]{{c}/((x +{a})*(x+{b})) = ({c}/{b-a})*(1/(x+{a}) -1/(x+{b}))}\\]
\nSo \\[\\begin{eqnarray*} I &=& \\simplify[std]{Int({c}/(x^2+{a+b}*x+{a*b}),x )}\\\\ &=& \\simplify[std]{Int({c}/((x +{a})*(x+{b})),x )}\\\\ &=& \\simplify[std]{({c}/{b-a})*(Int(1/(x+{a}),x) -Int(1/(x+{b}),x))}\\\\ &=& \\simplify[std]{({c}/{b-a})*(ln(x+{a})-ln(x+{b}))+C} \\end{eqnarray*}\\]
\n ", "metadata": {"description": "\n \t\tFactorise $x^2+bx+c$ into 2 distinct linear factors and then find $\\displaystyle \\int \\frac{a}{x^2+bx+c }\\;dx$ using partial fractions or otherwise.
\n \t\t\n \t\t", "notes": "\n \t\t
5/08/2012:
\n \t\tAdded tags.
\n \t\tAdded description.
\n \t\tAdded decimal point as forbidden string.
\n \t\tNote the checking range is chosen so that the arguments of the log terms are always positive - could have used abs - might be better?
\n \t\tImproved display of Advice.
\n \t\tAdded information about Show steps, also introduced penalty of 1 mark.
\n \t\tAdded !noLeadingMinus to ruleset std for display purposes.
\n \t\t", "licence": "Creative Commons Attribution 4.0 International"}, "name": "Simon's copy of Integration by partial fractions", "functions": {}, "variables": {"a": {"name": "a", "definition": "s1*random(1..9)"}, "c": {"name": "c", "definition": "random(2..9)"}, "s2": {"name": "s2", "definition": "random(1,-1)"}, "s3": {"name": "s3", "definition": "random(1,-1)"}, "b1": {"name": "b1", "definition": "s2*random(1..9)"}, "s1": {"name": "s1", "definition": "random(1,-1)"}, "b": {"name": "b", "definition": "if(b1=a,b1+s3,b1)"}}, "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "extensions": [], "variable_groups": [], "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}]}], "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}