// Numbas version: finer_feedback_settings {"name": "Indefinite integral: polynomial fraction", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "variables": {"s1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "name": "s1"}, "r": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s2*random(1..5)", "description": "", "name": "r"}, "n": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(3..5)", "description": "", "name": "n"}, "b": {"templateType": "anything", "group": "Ungrouped variables", "definition": "m*a", "description": "", "name": "b"}, "c": {"templateType": "anything", "group": "Ungrouped variables", "definition": "m*d+r", "description": "", "name": "c"}, "d": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1..5)", "description": "", "name": "d"}, "s2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "name": "s2"}, "a": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..5)", "description": "", "name": "a"}, "m": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s1*random(1..4)", "description": "", "name": "m"}}, "ungrouped_variables": ["a", "c", "b", "d", "s2", "s1", "m", "n", "r"], "question_groups": [{"pickingStrategy": "all-ordered", "questions": [], "name": "", "pickQuestions": 0}], "name": "Indefinite integral: polynomial fraction", "functions": {}, "showQuestionGroupNames": false, "parts": [{"stepsPenalty": 1, "scripts": {}, "gaps": [{"answer": "({-m}/{n-2})*x-{m*d*(n-1)+r*(n-2)}/{(n-2)*(n-1)*a}", "vsetrange": [0, 1], "checkingaccuracy": 0.001, "showCorrectAnswer": true, "expectedvariablenames": [], "notallowed": {"message": "

Do not input numbers as decimals, only as integers without the decimal point, or fractions

", "showStrings": false, "partialCredit": 0, "strings": ["."]}, "showpreview": true, "checkingtype": "absdiff", "scripts": {}, "checkvariablenames": false, "type": "jme", "answersimplification": "std", "marks": 3, "vsetrangepoints": 5}], "type": "gapfill", "prompt": "\n\t\t\t

$I=\\displaystyle \\int \\simplify[std]{({b}*x+{c})/(({a}*x+{d})^{n})} dx$

\n\t\t\t

You are given that \\[I=\\simplify[std]{g(x)*({a}x+{d})^{1-n}}+C\\] for a polynomial $g(x)$. You have to find $g(x)$.

\n\t\t\t

$g(x)=\\;$[[0]]

\n\t\t\t

Remember to input all numbers as integers or fractions.

\n\t\t\t

Click on Show steps to get help if you need it. You will lose 1 mark by doing so.

\n\t\t\t", "steps": [{"type": "information", "prompt": "

One way to do this is by substitution, for example $y = \\simplify[std]{{a}*x+{d}}$.

", "showCorrectAnswer": true, "scripts": {}, "marks": 0}], "showCorrectAnswer": true, "marks": 0}], "statement": "\n\t

Find the following indefinite integral.

\n\t

Input all numbers as integers or fractions, not as decimals.

\n\t

Input the constant of integration as $C$.

\n\t", "tags": ["Calculus", "MAS1601", "Steps", "checked2015", "constant of integration", "indefinite integration", "integration", "integration by substitution", "substitution"], "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "preamble": {"css": "", "js": ""}, "type": "question", "metadata": {"notes": "\n\t\t

2/08/2012:

\n\t\t

Added tags.

\n\t\t

Added description.

\n\t\t

Added a Step and message about Show steps included - losing 1 mark if used as it gives the formula for finding the integral. Increased marks to 3 for the question, so that can cope with losing a mark for using Show steps.

\n\t\t

Checked calculation. OK.

\n\t\t

Improved display in Advice.

\n\t\t", "licence": "Creative Commons Attribution 4.0 International", "description": "

Find the polynomial $g(x)$ such that $\\displaystyle \\int \\frac{ax+b}{(cx+d)^{n}} dx=\\frac{g(x)}{(cx+d)^{n-1}}+C$.

"}, "variablesTest": {"condition": "", "maxRuns": 100}, "advice": "\n\t

Let $y = \\simplify[std]{{a}*x+{d}}$.

\n\t

Then $\\displaystyle x=\\frac{1}{\\var{a}}\\simplify[std]{(y-{d})}$ and so we have the numerator $\\simplify[std]{{b}*x+{c}}$ becomes in terms of $y$:

\n\t

$\\displaystyle \\simplify[std]{{b}*x+{c} = {b}*1/{a}*(y-{d})+{c}= {m}y+{r}}$ and so

\n\t

\\[\\displaystyle \\simplify[std]{({b}*x+{c})/(({a}*x+{d})^{n})} = \\simplify[std]{({m}*y+{r})/(y^{n})={m}/y^{n-1}+{r}/y^{n}}\\]

\n\t

Now,
\\[\\int \\simplify[std]{({b}x+{c})/({a}*x+{d})^{n}} dx = \\int \\left(\\simplify[std]{{m}/y^{n-1}+{r}/y^{n}} \\right)\\frac{dx}{dy} dy \\]

\n\t

Since $\\displaystyle x = \\simplify[std]{(y-{d})/{a}}$ then $\\displaystyle \\frac{dx}{dy} = \\frac{1}{\\var{a}}$.

\n\t

We can now calculate the desired integral:

\n\t

\\[ \\begin{eqnarray*} \\int \\left(\\simplify[std]{{m}/y^{n-1}+{r}/y^{n}}\\right) \\frac{dx}{dy} dy &=&\\frac{1}{\\var{a}}\\left(\\int \\simplify[std]{{m}/y^{n-1}}\\;dy+\\int \\simplify[std]{{r}/y^{n}}\\;dy \\right)\\\\ &=&\\frac{1}{\\var{a}}\\left(\\simplify[std]{{-m}/({n-2}*y^{n-2})+ {-r}/({n-1}*y^{n-1})}\\right) + C \\\\ &=& \\simplify[std]{(-{m})/({a*(n-2)}*({a}*x+{d})^{n-2})+(-{r})/({a*(n-1)}*({a}*x+{d})^{n-1}) + C}\\\\ &=&\\simplify[std]{1/({a}x+{d})^{n-1}*(({-m}/{a*(n-2)})*({a}x+{d})-{r}/({a*(n-1)}))}\\\\ &=&\\simplify[std]{1/({a}x+{d})^{n-1}*(({-m}/{(n-2)})*x+{-m*d*(n-1)-r*(n-2)}/{(n-2)*(n-1)*a})} \\end{eqnarray*} \\]
Hence \\[g(x)=\\simplify[std]{({-m}/{(n-2)})*x+{-m*d*(n-1)-r*(n-2)}/{(n-2)*(n-1)*a}}\\]

\n\t", "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}