// Numbas version: exam_results_page_options {"name": "Integration of fraction with power in denominator", "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": "3", "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": "Integration of fraction with power in denominator", "functions": {}, "showQuestionGroupNames": false, "parts": [{"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": 1, "vsetrangepoints": 5}], "type": "gapfill", "prompt": "\n

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

\n

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

\n

You have to find $g(x)$.

\n

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

\n

Remember to input all numbers as integers or fractions.

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

Find the following indefinite integral.

\n

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

\n

 

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

3/7/2012:

\n \t\t

Added tags

\n \t\t

20/06/2012:

\n \t\t

Added tags.

\n \t\t

Improved spacing and display.

\n \t\t

Got rid of instruction about including constant of integration as not needed.

\n \t\t

Checked calculation.

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

$\\displaystyle \\int \\frac{bx+c}{(ax+d)^n} dx=g(x)(ax+d)^{1-n}+C$  for a polynomial $g(x)$. Find $g(x)$.

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

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

\n

Then $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

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

\n

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

\n

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

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

\n

We can now calculate the desired integral:

\n

\\[ \\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 ", "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/"}]}