// 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": [], "parts": [{"unitTests": [], "steps": [{"showCorrectAnswer": true, "unitTests": [], "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "scripts": {}, "type": "information", "marks": 0, "showFeedbackIcon": true, "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "prompt": "\n

First of all factorise the denominator.

\n

You have to find $a$ and $b$ such that $\\simplify[std]{x^2+{a+b}*x+{a*b}=(x+a)*(x+b)}$.

\n

Then use partial fractions to write:
\\[\\simplify[std]{{c}/((x +a)*(x+b)) = A/(x+a)+B/(x+b)}\\]

\n

for suitable integers or fractions $A$ and $B$.

\n "}], "gaps": [{"unitTests": [], "checkingType": "absdiff", "answer": "({c}/{b-a})*(ln(x+{a})-ln(x+{b}))+C", "scripts": {}, "checkingAccuracy": 0.0001, "type": "jme", "showFeedbackIcon": true, "vsetRange": [11, 12], "showPreview": true, "expectedVariableNames": [], "showCorrectAnswer": true, "answerSimplification": "std", "customMarkingAlgorithm": "", "vsetRangePoints": 5, "extendBaseMarkingAlgorithm": true, "checkVariableNames": false, "marks": 3, "variableReplacements": [], "notallowed": {"strings": ["."], "message": "

Input all numbers as fractions or integers and not decimals.

", "partialCredit": 0, "showStrings": false}, "variableReplacementStrategy": "originalfirst", "failureRate": 1}], "scripts": {}, "type": "gapfill", "showFeedbackIcon": true, "showCorrectAnswer": true, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "sortAnswers": false, "stepsPenalty": 1, "marks": 0, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "prompt": "\n

$I=\\;$[[0]]

\n

Input all numbers as fractions or integers and not decimals.

\n

Input the constant of integration as $C$.

\n

Click on Show steps for help if you need it. You will lose 1 mark if you do so.

\n "}], "statement": "\n

Find the following integral.

\n

\\[I = \\simplify[std]{Int({c}/(x^2+{a+b}*x+{a*b}),x )}\\]

\n

Input all numbers as fractions or integers and not decimals.

\n

Input the constant of integration as $C$.

\n ", "advice": "

First we factorise $\\simplify[std]{x^2+{a+b}*x+{a*b}=(x+{a})*(x+{b})}$.

\n

You can do this by spotting the factors or by completing the square.

\n

Next 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]{((x +{a})*(x+{b}))}$ we obtain:

\n

$\\simplify[std]{A*(x+{b})+B*(x+{a}) = {c}}\\Rightarrow \\simplify[std]{(A+B)x+{b}A+{a}B={c}}$

\n

One method to find A and B is by comparing coefficients:

\n

Identifying coefficients:

\n

Constant term: $\\simplify[std]{{b}*A+{a}*B = {c}}$

\n

Coefficient of $x$: $ \\simplify[std]{A + B = 0}$ which gives $A = -B$.

\n

Solving these simultaneous equations, we obtain $\\displaystyle \\simplify[std]{A = {c}/{b-a}}$ and $\\displaystyle \\simplify[std]{B={-c}/{b-a}}$

\n

Which gives: \\[\\simplify[std]{{c}/((x +{a})*(x+{b})) = ({c}/{b-a})*(1/(x+{a}) -1/(x+{b}))}\\]

\n

So \\[\\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*}\\]

", "ungrouped_variables": ["s2", "c", "b1", "s3", "a", "s1", "b"], "preamble": {"css": "", "js": ""}, "metadata": {"description": "\n \t\t

Factorise $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", "licence": "Creative Commons Attribution 4.0 International"}, "name": "Simon's copy of Integration by partial fractions", "variablesTest": {"maxRuns": 100, "condition": ""}, "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "variables": {"a": {"templateType": "anything", "name": "a", "group": "Ungrouped variables", "description": "", "definition": "s1*random(1..9)"}, "b": {"templateType": "anything", "name": "b", "group": "Ungrouped variables", "description": "", "definition": "if(b1=a,b1+s3,b1)"}, "s2": {"templateType": "anything", "name": "s2", "group": "Ungrouped variables", "description": "", "definition": "random(1,-1)"}, "s3": {"templateType": "anything", "name": "s3", "group": "Ungrouped variables", "description": "", "definition": "random(1,-1)"}, "b1": {"templateType": "anything", "name": "b1", "group": "Ungrouped variables", "description": "", "definition": "s2*random(1..9)"}, "s1": {"templateType": "anything", "name": "s1", "group": "Ungrouped variables", "description": "", "definition": "random(1,-1)"}, "c": {"templateType": "anything", "name": "c", "group": "Ungrouped variables", "description": "", "definition": "random(2..9)"}}, "extensions": [], "variable_groups": [], "functions": {}, "type": "question", "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/"}]}