// Numbas version: exam_results_page_options {"name": "Andrew's copy of CF Maths In class test three question 8 Integration by partial fractions with limits", "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", "d", "s3", "s2", "s1", "b1", "d1"], "name": "Andrew's copy of CF Maths In class test three question 8 Integration by partial fractions with limits", "tags": ["calculus", "Calculus", "compare coefficients", "integrals", "integration", "logarithms", "partial fractions", "Steps", "steps"], "preamble": {"css": "", "js": ""}, "advice": "

Using partial fractions we have to find $A$ and $B$ such that:
\\[\\simplify[std]{({c}*x+{d})/((x +{a})*(x+{b}))}\\;= \\simplify[std]{A/(x+{a})+B/(x+{b})}\\]
Multiplying both sides of the equation by $\\displaystyle \\simplify[std]{1/((x +{a})*(x+{b}))}$   we obtain:

\n

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

\n

Identifying coefficients:

\n

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

\n

Coefficent $x$: $ \\simplify[std]{A+B={c}}$ which gives $A =\\var{c} -B$

\n

On solving these equations we obtain $\\displaystyle \\simplify[std]{A = {d-a*c}/{b-a}}$ and $\\displaystyle \\simplify[std]{B={d-b*c}/{a-b}}$

\n

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

\n

So \\[\\begin{eqnarray*} I &=& \\simplify[std]{Int(({c}*x+{d})/((x +{a})*(x+{b})),x )}\\\\ &=& \\simplify[std]{({d-a*c}/{b-a})*(Int(1/(x+{a}),x)) +({d-b*c}/{a-b})Int(1/(x+{b}),x)}\\\\ &=& \\simplify[std]{({d-a*c}/{b-a})*ln(x+{a})+({d-b*c}/{a-b})*ln(x+{b})} \\end{eqnarray*}\\]

\n

\n

For the last step substitute the upper limt and lower limit separately to the integral, and the value from upper limt take away from the lower one to give the final answer.

\n

\\[\\simplify[std]{({d-a*c}/{b-a})*ln(12+{a})+({d-b*c}/{a-b})*ln(12+{b})} \\] take away \\[\\simplify[std]{({d-a*c}/{b-a})*ln(10+{a})+({d-b*c}/{a-b})*ln(10+{b})} \\]

", "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "parts": [{"prompt": "

First, input the sum of partial fraction

\n

[[0]]

\n

\n

Second, input the integral without the limit

\n

$I=\\;$[[1]]

\n

Input all numbers as fractions or integers and not decimals.

\n

Do not need to input $C$, the constant of integration.

\n

\n

The last, substitute the limits to the integral and calculate it.

\n

[[2]], accurate to 2 decimal places.

\n

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

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "answersimplification": "all", "scripts": {}, "answer": "({d-a*c}/(({b-a})*(x+{a})))+({d-b*c}/(({a-b})*(x+{b})))", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}, {"notallowed": {"message": "

Input all numbers as fractions or integers and not decimals.

", "showStrings": false, "strings": ["."], "partialCredit": 0}, "vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.0001, "vsetrange": [11, 12], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "answersimplification": "std", "scripts": {}, "answer": "({d-a*c}/{b-a})*ln(x+{a})+({d-b*c}/{a-b})*ln(x+{b})", "marks": 3, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}, {"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "maxValue": "(({d-a*c}/{b-a})*ln(12+{a})+({d-b*c}/{a-b})*ln(12+{b}))-(({d-a*c}/{b-a})*ln(10+{a})+({d-b*c}/{a-b})*ln(10+{b}))", "strictPrecision": true, "minValue": "(({d-a*c}/{b-a})*ln(12+{a})+({d-b*c}/{a-b})*ln(12+{b}))-(({d-a*c}/{b-a})*ln(10+{a})+({d-b*c}/{a-b})*ln(10+{b}))", "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": 0, "correctAnswerFraction": false, "showCorrectAnswer": true, "precision": "2", "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": [], "statement": "

Find the following integral.

\n

\\[I = \\simplify[std]{defint(({c}*x+{d})/((x +{a})*(x+{b})),x,10,12 )}\\]

\n

Input all numbers as fractions or integers and not decimals.

\n

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"a": {"definition": "s1*random(1..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "c": {"definition": "random(2..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "c", "description": ""}, "b": {"definition": "if(b1=a,b1+s3,b1)", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "d": {"definition": "if(d1=a*c,if(d1+1=b*c,d1+2,d1+1),if(d1=b*c,if(d1+1=a*c,d1+2,d1+1),d1))", "templateType": "anything", "group": "Ungrouped variables", "name": "d", "description": ""}, "s3": {"definition": "random(1,-1)", "templateType": "anything", "group": "Ungrouped variables", "name": "s3", "description": ""}, "s2": {"definition": "random(1,-1)", "templateType": "anything", "group": "Ungrouped variables", "name": "s2", "description": ""}, "s1": {"definition": "random(1,-1)", "templateType": "anything", "group": "Ungrouped variables", "name": "s1", "description": ""}, "b1": {"definition": "s2*random(1..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "b1", "description": ""}, "d1": {"definition": "s3*random(1..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "d1", "description": ""}}, "metadata": {"description": "

Find $\\displaystyle\\int \\frac{ax+b}{(x+c)(x+d)}\\;dx,\\;a\\neq 0,\\;c \\neq d $.

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Andrew Dunbar", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/770/"}]}]}], "contributors": [{"name": "Andrew Dunbar", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/770/"}]}