// Numbas version: exam_results_page_options {"name": "CD3 Integration - Substitution", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "CD3 Integration - Substitution", "tags": [], "metadata": {"description": "

Calculating the integral of a function of the form $\\frac{nx^{n-1}}{x^n+a}$ using integration by substitution.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Calculate \\[ \\simplify[all]{int(({n}x^{n-1})/(x^{n}+{a}),x)}\\]

\n

by using the substitution \\[ \\simplify[all]{u=x^{n}+{a}}.\\]

", "advice": "

Since this integral is of the form \\[ \\int g'(x)f(g(x))\\,dx,\\] we can use the method of substitution to calculate the solution. 

\n

Firstly, we must make a change of variables from $x$ to $u$, where $u$ is equal to the 'inner' function $g(x)$.

\n

So, for \\[\\simplify[fractionNumbers]{int(({n}x^{n-1})/((x^{n}+{a})),x)}\\]

\n

let $\\color{red}{u=\\simplify[fractionNumbers]{x^{n}+{a}}}.$

\n

Now, we need to calculate the differential, $du$, where \\[ du = \\left(\\frac{du}{dx}\\right)dx. \\]

\n

Differentiating $u$ with respect to $x$:

\n

\\[ \\frac{du}{dx}= \\simplify[fractionNumbers]{{n}x^{n-1}}.\\]

\n

Therefore, \\[ \\color{blue}{du = \\simplify[fractionNumbers]{{n}x^{n-1}}\\, dx}.\\]

\n

We can now rewrite the original integral in terms of $u$:

\n

\\[ \\int \\frac{\\color{blue}{\\simplify{{n}x^{n-1}}}}{\\color{red}{\\simplify{x^{n}+{a}}}}\\color{blue}{\\text{d}x} = \\int \\frac{1}{\\color{red}{u}}\\color{blue}{\\text{d}u}.\\]

\n

(Note: It is important to see that both the function we are integrating, and the variable we are integrating with respect to, has changed.)

\n

\\[ \\simplify[fractionNumbers]{int(1/u,u) = ln(abs(u)) + c}.\\]

\n

Finally, we must rewrite our solution back in terms of the original variable $x$:

\n

\\[ \\simplify[fractionNumbers]{ln(abs(u)) + c = ln(abs(x^{n}+{a})) + c}.\\]

\n

Use this link to find some resources which will help you revise this topic.

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "random(2..6)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": "100"}, "ungrouped_variables": ["a", "n"], "variable_groups": [{"name": "Unnamed group", "variables": []}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

[[0]]

", "gaps": [{"type": "jme", "useCustomName": true, "customName": "Correct answer", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "alternatives": [{"type": "jme", "useCustomName": true, "customName": "Alternative using brackets", "marks": "1", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "alternativeFeedbackMessage": "

Technically we should use the absolute value symbols for the logs. This can be done in NUMBAS by using \"abs(*function*)\".

", "useAlternativeFeedback": false, "answer": "ln(x^{n}+{a})+c", "answerSimplification": "all,!collectLikeFractions,fractionNumbers", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": "0.01", "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "c", "value": ""}, {"name": "x", "value": ""}]}, {"type": "jme", "useCustomName": true, "customName": "Alternative using \"+k\"", "marks": "1", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "alternativeFeedbackMessage": "", "useAlternativeFeedback": false, "answer": "ln(abs(x^{n}+{a})) + k", "answerSimplification": "all,!collectLikeFractions,fractionNumbers", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": "0.01", "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "k", "value": ""}, {"name": "x", "value": ""}]}, {"type": "jme", "useCustomName": true, "customName": "Alternative using brackets and \"+k\"", "marks": "1", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "alternativeFeedbackMessage": "

Technically we should use the absolute value symbols for the logs. This can be done in NUMBAS by using \"abs(*function*)\".

", "useAlternativeFeedback": false, "answer": "ln(x^{n}+{a})+k", "answerSimplification": "all,!collectLikeFractions,fractionNumbers", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": "0.01", "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "k", "value": ""}, {"name": "x", "value": ""}]}, {"type": "jme", "useCustomName": true, "customName": "Forgotten constant", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "alternativeFeedbackMessage": "

It looks like you forgot to include the integration constant. You should always remember the \"+C\" when doing an indefinite integral.

", "useAlternativeFeedback": false, "answer": "ln(abs(x^{n}+{a}))", "answerSimplification": "all,!collectLikeFractions,fractionNumbers", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": "0.01", "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "x", "value": ""}]}], "answer": "ln(abs(x^{n}+{a}))+c", "answerSimplification": "all,!collectLikeFractions,fractionNumbers", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": "0.01", "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "c", "value": ""}, {"name": "x", "value": ""}]}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}]}]}], "contributors": [{"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}]}