// Numbas version: finer_feedback_settings {"name": "Integration: Indefinite integral with 1/ (ax+b)^n", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"preamble": {"js": "", "css": ""}, "metadata": {"notes": "\n\t\t

2/08/2012:

\n\t\t

Added tags.

\n\t\t

Added description.

\n\t\t

Added decimal point to forbidden strings along with message to user re input of numbers.

\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

Changed accuracy setting to relative difference of 0.00001 as we have negative powers.

\n\t\t

Checked calculation. OK.

\n\t\t

Added message in prompt  about including the constant of integration.

\n\t\t

Noted issue with steps-answer order and the messages/marks generated.

\n\t\t

Changed numerator to the range 2..5.

\n\t\t

Improved display in Advice.

\n\t\t

 

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

Find $\\displaystyle \\int \\frac{a}{(bx+c)^n}\\;dx$

"}, "name": "Integration: Indefinite integral with 1/ (ax+b)^n", "showQuestionGroupNames": false, "parts": [{"stepsPenalty": 1, "scripts": {}, "marks": 0, "showCorrectAnswer": true, "prompt": "\n\t\t\t

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

\n\t\t\t

Input all numbers as integers or fractions and not decimals. Remember to include the constant of integration $C$.

\n\t\t\t

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

\n\t\t\t", "gaps": [{"checkingtype": "reldiff", "notallowed": {"message": "

Input all numbers as integers or fractions and not decimals.

", "strings": ["."], "partialCredit": 0, "showStrings": false}, "vsetrangepoints": 5, "checkvariablenames": false, "answer": "(-{b})/({a*(n-1)}*({a}*x+{d})^{n-1}) + C", "showCorrectAnswer": true, "expectedvariablenames": [], "type": "jme", "scripts": {}, "marks": 3, "checkingaccuracy": 0.0001, "showpreview": true, "answersimplification": "std", "vsetrange": [0, 1]}], "steps": [{"showCorrectAnswer": true, "prompt": "

 \\[\\int (ax+b)^n \\;dx = \\frac{1}{a(n+1)}(ax+b)^{n+1}+C\\]

", "marks": 0, "scripts": {}, "type": "information"}], "type": "gapfill"}], "functions": {}, "advice": "\n\t

Let $y = \\simplify[std]{{a}*x+{d}}$. Then,
\\[\\simplify[std]{{b}/(({a}*x+{d})^{n})} = \\simplify[std]{{b}/(y^{n})}.\\]

\n\t

Now,
\\[\\int \\simplify[std]{{b}/({a}*x+{d})^{n}} dx = \\int \\simplify[std]{{b}/(y^{n})} \\frac{dx}{dy} dy.\\]

\n\t

Rearrange $y = \\simplify[std]{{a}x+{d}}$ to get $\\displaystyle x = \\simplify[std]{(y-{b})/{a}}$, and hence $\\displaystyle\\frac{dx}{dy} = \\frac{1}{\\var{a}}$.

\n\t

$\\displaystyle \\int \\frac{1}{y^n} dx = -\\frac{1}{(n-1)y^{n-1}} + C$ is a standard integral, so we can now calculate the desired integral:

\n\t

\\[\\int \\simplify[std]{{b}/(y^{n})} \\frac{dx}{dy} dy = \\simplify[std]{{b}/({n-1}*y^{n-1})} \\cdot \\frac{1}{\\var{a}} + C = \\simplify[std]{(-{b})/({a*(n-1)}*({a}*x+{d})^{n-1}) + C}.\\]

\n\t", "type": "question", "variables": {"d": {"templateType": "anything", "definition": "random(1..9)", "name": "d", "group": "Ungrouped variables", "description": ""}, "n": {"templateType": "anything", "definition": "random(3..5)", "name": "n", "group": "Ungrouped variables", "description": ""}, "a": {"templateType": "anything", "definition": "random(2..9)", "name": "a", "group": "Ungrouped variables", "description": ""}, "b": {"templateType": "anything", "definition": "random(2..5)", "name": "b", "group": "Ungrouped variables", "description": ""}}, "variable_groups": [], "ungrouped_variables": ["a", "b", "d", "n"], "tags": ["calculus", "Calculus", "checked2015", "constant of integration", "indefinite integration", "integration", "integration by substitution", "MAS1601", "mas1601", "standard integrals", "Steps", "steps", "substitution"], "variablesTest": {"condition": "", "maxRuns": 100}, "statement": "\n\t \n\t \n\t

Find the following indefinite integral.

\n\t \n\t \n\t \n\t

Input the constant of integration as $C$.

\n\t \n\t \n\t", "question_groups": [{"pickQuestions": 0, "name": "", "questions": [], "pickingStrategy": "all-ordered"}], "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"], "surdf": [{"result": "(sqrt(b)*a)/b", "pattern": "a/sqrt(b)"}]}, "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Johnny Yi", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2810/"}, {"name": "Luis Hernandez", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2870/"}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Johnny Yi", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2810/"}, {"name": "Luis Hernandez", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2870/"}]}