// Numbas version: exam_results_page_options {"name": "Integration 1 - Substitution", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variables": {"b": {"templateType": "anything", "name": "b", "description": "", "definition": "repeat(random(-9..9 except 0),5)", "group": "Ungrouped variables"}, "m": {"templateType": "anything", "name": "m", "description": "", "definition": "repeat(random(4..9),5)", "group": "Ungrouped variables"}, "a": {"templateType": "anything", "name": "a", "description": "", "definition": "repeat(random(1..5),5)", "group": "Ungrouped variables"}}, "statement": "
Integrate the following by substitution.
\nDon't forget the constant of integration ($C$).
", "name": "Integration 1 - Substitution", "parts": [{"marks": 0, "customMarkingAlgorithm": "", "scripts": {}, "extendBaseMarkingAlgorithm": true, "customName": "", "sortAnswers": false, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "showFeedbackIcon": true, "type": "gapfill", "prompt": "$I=\\simplify[std]{Int( x*({a[0]}x^2+{b[0]})^{m[0]},x)}$
\n\nUse $u=\\simplify[std]{{a[0]}x^2+{b[0]}}$ as your substitution.
\n$\\frac{du}{dx}=$ [[1]]
\n$dx=$ [[2]]
\nSubstituting back into the original equation for $dx$ and pulling out constants gives
\n$I=$[[3]]$\\simplify[std]{Int(u^{m[0]},u)}$
\nThe next step is to integrate.
\n$\\simplify{Int(u^{m[0]},u)}=$ [[4]]
\nPutting all of these results together, we get the final answer of:
\n[[0]]
", "gaps": [{"vsetRangePoints": 5, "customMarkingAlgorithm": "", "showPreview": true, "extendBaseMarkingAlgorithm": true, "customName": "", "variableReplacementStrategy": "originalfirst", "checkingType": "absdiff", "notallowed": {"showStrings": false, "message": "Input all numbers as integers or fractions and not as decimals.
", "strings": ["."], "partialCredit": 0}, "checkingAccuracy": 0.001, "valuegenerators": [{"name": "c", "value": ""}, {"name": "x", "value": ""}], "showFeedbackIcon": true, "marks": "2", "checkVariableNames": false, "answerSimplification": "all", "vsetRange": [0, 1], "failureRate": 1, "answer": "(({a[0]}*(x^2)+{b[0]})^({m[0]}+1))/(2*{a[0]}*({m[0]}+1))+C", "showCorrectAnswer": true, "scripts": {}, "type": "jme", "unitTests": [], "useCustomName": false, "variableReplacements": []}, {"vsetRangePoints": 5, "customMarkingAlgorithm": "", "showPreview": true, "extendBaseMarkingAlgorithm": true, "customName": "", "variableReplacementStrategy": "originalfirst", "checkingType": "absdiff", "checkingAccuracy": 0.001, "valuegenerators": [{"name": "x", "value": ""}], "showFeedbackIcon": true, "marks": 1, "checkVariableNames": false, "answerSimplification": "all", "vsetRange": [0, 1], "failureRate": 1, "answer": "2{a[0]}x", "showCorrectAnswer": true, "scripts": {}, "type": "jme", "unitTests": [], "useCustomName": false, "variableReplacements": []}, {"vsetRangePoints": 5, "customMarkingAlgorithm": "", "showPreview": true, "extendBaseMarkingAlgorithm": true, "customName": "", "variableReplacementStrategy": "originalfirst", "checkingType": "absdiff", "checkingAccuracy": 0.001, "valuegenerators": [{"name": "du", "value": ""}, {"name": "x", "value": ""}], "showFeedbackIcon": true, "marks": "1", "checkVariableNames": false, "answerSimplification": "all", "vsetRange": [0, 1], "failureRate": 1, "answer": "du/(2{a[0]}x)", "showCorrectAnswer": true, "scripts": {}, "type": "jme", "unitTests": [], "useCustomName": false, "variableReplacements": []}, {"correctAnswerStyle": "plain", "marks": 1, "mustBeReduced": false, "customMarkingAlgorithm": "", "scripts": {}, "extendBaseMarkingAlgorithm": true, "customName": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "minValue": "1/(2{a[0]})", "mustBeReducedPC": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "type": "numberentry", "maxValue": "1/(2{a[0]})", "allowFractions": true, "unitTests": [], "useCustomName": false, "correctAnswerFraction": true, "variableReplacements": []}, {"vsetRangePoints": 5, "customMarkingAlgorithm": "", "showPreview": true, "extendBaseMarkingAlgorithm": true, "customName": "", "variableReplacementStrategy": "originalfirst", "checkingType": "absdiff", "checkingAccuracy": 0.001, "valuegenerators": [{"name": "u", "value": ""}], "showFeedbackIcon": true, "marks": "1", "checkVariableNames": false, "answerSimplification": "all", "vsetRange": [0, 1], "failureRate": 1, "answer": "u^({m[0]}+1)/({m[0]}+1)", "showCorrectAnswer": true, "scripts": {}, "type": "jme", "unitTests": [], "useCustomName": false, "variableReplacements": []}], "unitTests": [], "useCustomName": false, "variableReplacements": []}], "functions": {}, "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "variable_groups": [], "preamble": {"css": "", "js": ""}, "tags": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "extensions": [], "ungrouped_variables": ["a", "b", "m"], "advice": "This problem is best solved by using substitution.
Note that if we let $u=\\simplify[std]{{a[0]} * (x ^ 2) + {b[0]}}$ then $du=\\simplify[std]{(2*{a[0]} * x)*dx }$
Hence we can replace $xdx$ by $\\frac{1}{2*\\var{a[0]}}du$.
Hence the integral becomes:
\n\\[\\begin{eqnarray*} I&=&\\simplify[std]{Int((1/(2{a[0]}))u^{m[0]},u)}\\\\ &=&\\simplify[all]{(1/(2{a[0]}))u^{m[0]+1}/{m[0]+1}+C}\\\\ &=& \\simplify[all]{({a[0]} * (x ^ 2) + {b[0]})^{m[0]+1}/(2{a[0]}*({m[0]}+1))+C} \\end{eqnarray*}\\]
\nA Useful Result
This example can be generalised.
Suppose \\[I = \\int\\; f'(x)g(f(x))\\;dx\\]
The using the substitution $u=f(x)$ we find that $du=f'(x)\\;dx$ and so using the same method as above:
\\[I = \\int g(u)\\;du \\]
And if we can find this simpler integral in terms of $u$ we can replace $u$ by $f(x)$ and get the result in terms of $x$.
Step by step solving for integration by substitution
"}, "contributors": [{"name": "Katie Lester", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/586/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}]}], "contributors": [{"name": "Katie Lester", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/586/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}