// Numbas version: finer_feedback_settings {"name": "Jo-Ann's Indefinite integrals", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"preamble": {"js": "", "css": ""}, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "
Find $\\displaystyle \\int \\frac{a}{(bx+c)^n}\\;dx$
"}, "functions": {}, "tags": [], "variables": {"b": {"definition": "random(2..5)", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "b"}, "a": {"definition": "random(2..9)", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "a"}, "n": {"definition": "random(3..5)", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "n"}, "d": {"definition": "random(1..9)", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "d"}}, "variable_groups": [], "name": "Jo-Ann's Indefinite integrals", "variablesTest": {"maxRuns": 100, "condition": ""}, "statement": "\n\t \n\t \n\tFind the following indefinite integral.
\n\t \n\t \n\t \n\tInput the constant of integration as $C$.
\n\t \n\t \n\t \n\t", "advice": "Let $u = \\simplify[std]{{a}*x+{d}}$. Then,
\\[\\simplify[std]{{b}/(({a}*x+{d})^{n})} = \\simplify[std]{{b}/(u^{n})}.\\]
Now,
\\[\\int \\simplify[std]{{b}/({a}*x+{d})^{n}} dx = \\int \\simplify[std]{{b}/(u^{n})} \\frac{dx}{du} du.\\]
Rearrange $u = \\simplify[std]{{a}x+{d}}$ to get $\\displaystyle x = \\simplify[std]{(u-{b})/{a}}$, and hence $\\displaystyle\\frac{dx}{du} = \\frac{1}{\\var{a}}$.
\n$\\displaystyle \\int \\frac{1}{u^n} du = -\\frac{1}{(n-1)u^{n-1}} + C$ is a standard integral, so we can now calculate the desired integral:
\n\\[\\int \\simplify[std]{{b}/(u^{n})} \\frac{dx}{du} du = \\simplify[std]{{b}/({n-1}*u^{n-1})} \\cdot \\frac{1}{\\var{a}} + C = \\simplify[std]{(-{b})/({a*(n-1)}*({a}*x+{d})^{n-1}) + C}.\\]
", "extensions": [], "ungrouped_variables": ["b", "n", "a", "d"], "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"], "surdf": [{"result": "(sqrt(b)*a)/b", "pattern": "a/sqrt(b)"}]}, "parts": [{"showCorrectAnswer": true, "marks": 0, "type": "gapfill", "gaps": [{"checkVariableNames": false, "showCorrectAnswer": true, "vsetRangePoints": 5, "checkingAccuracy": 0.0001, "type": "jme", "marks": 3, "notallowed": {"message": "Input all numbers as integers or fractions and not decimals.
", "strings": ["."], "partialCredit": 0, "showStrings": false}, "answer": "(-{b})/({a*(n-1)}*({a}*x+{d})^{n-1}) + C", "scripts": {}, "showPreview": true, "variableReplacements": [], "checkingType": "reldiff", "failureRate": 1, "expectedVariableNames": [], "answerSimplification": "std", "customMarkingAlgorithm": "", "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "vsetRange": [0, 1], "extendBaseMarkingAlgorithm": true, "unitTests": []}], "scripts": {}, "variableReplacements": [], "sortAnswers": false, "customMarkingAlgorithm": "", "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "$\\displaystyle \\int \\simplify[std]{{b}/(({a}*x+{d})^{n})} dx= \\phantom{{}}$[[0]]
\nInput all numbers as integers or fractions and not decimals. Remember to include the constant of integration $C$.
\n"}], "type": "question", "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}, {"name": "Jo-Ann Lyons", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2630/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}]}], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}, {"name": "Jo-Ann Lyons", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2630/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}