// Numbas version: exam_results_page_options {"name": "Integration 1 - Substitution (with limits)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["a", "b", "m"], "name": "Integration 1 - Substitution (with limits)", "tags": ["Calculus", "calculus", "indefinite integration", "integrals", "integration", "integration by substitution", "steps", "Steps", "substitution"], "preamble": {"css": "", "js": ""}, "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$.

\n

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{({a[0]} * (x ^ 2) + {b[0]})^{m[0]+1}/(2{a[0]}*({m[0]}+1))+C} \\end{eqnarray*}\\]

\n

If there are limits, we substitute in the upper limit for $x$ and then subtract the result of substituting in the lower limit for $x$.

\n

This cancels the constant of integration and leaves us with a definite number.

\n

A 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$.

", "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "parts": [{"prompt": "

$I=\\int_{1}^{2}\\simplify[std]{x*({a[0]}x^2+{b[0]})^{m[0]} dx}$

\n

\n

Use $u=\\simplify[std]{{a[0]}x^2+{b[0]}}$ as your substitution.

\n

\n

First we integrate without the limits.

\n

$\\frac{du}{dx}=$ [[1]]

\n

$dx=$ [[2]]

\n

Substituting back into the original equation for $dx$ and pulling out constants gives

\n

$I=$[[3]]$\\int{\\simplify[std]{u^{m[0]} du}}$

\n

The next step is to integrate.

\n

$\\int{\\simplify{u^{m[0]} du}}=$ [[4]]

\n

Putting all of these together, we get the result in terms of $x$ (remembering the constant of integration):

\n

[[0]]

\n

Now put the limits into the calculation for $x$. You may neglect $C$ in these boxes, as it will be cancelled in the subtraction.

\n

$[$[[5]]$]-[$[[6]]$]$

\n

$=$ [[7]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"notallowed": {"message": "

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

", "showStrings": false, "strings": ["."], "partialCredit": 0}, "vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "answersimplification": "all", "scripts": {}, "answer": "(({a[0]}*(x^2)+{b[0]})^({m[0]}+1))/(2*{a[0]}*({m[0]}+1))+C", "marks": "2", "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}, {"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "answersimplification": "all", "scripts": {}, "answer": "2{a[0]}x", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}, {"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "answersimplification": "all", "scripts": {}, "answer": "du/(2{a[0]}x)", "marks": "1", "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}, {"allowFractions": true, "variableReplacements": [], "maxValue": "1/(2{a[0]})", "minValue": "1/(2{a[0]})", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": true, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "answersimplification": "all", "scripts": {}, "answer": "u^({m[0]}+1)/({m[0]}+1)", "marks": "1", "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}, {"notallowed": {"message": "

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

", "showStrings": false, "strings": ["."], "partialCredit": 0}, "vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "answersimplification": "all", "scripts": {}, "answer": "(({a[0]}*(2^2)+{b[0]})^({m[0]}+1))/(2*{a[0]}*({m[0]}+1))", "marks": "1", "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}, {"notallowed": {"message": "

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

", "showStrings": false, "strings": ["."], "partialCredit": 0}, "vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "answersimplification": "all", "scripts": {}, "answer": "(({a[0]}*(1^2)+{b[0]})^({m[0]}+1))/(2*{a[0]}*({m[0]}+1))", "marks": "1", "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}, {"notallowed": {"message": "

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

", "showStrings": false, "strings": ["."], "partialCredit": 0}, "vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "answersimplification": "all", "scripts": {}, "answer": "(((4{a[0]}+{b[0]})^({m[0]}+1))-(({a[0]}+{b[0]})^({m[0]}+1)))/(2*{a[0]}*({m[0]}+1))", "marks": "2", "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "statement": "

Integrate the following by substitution.

\n

Don't forget the constant of integration ($C$).

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"a": {"definition": "repeat(random(1..5),5)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "b": {"definition": "repeat(random(-9..9 except 0),5)", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "m": {"definition": "repeat(random(4..9),5)", "templateType": "anything", "group": "Ungrouped variables", "name": "m", "description": ""}}, "metadata": {"notes": "", "description": "

Step by step solving for integration by substitution

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Katie Lester", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/586/"}]}]}], "contributors": [{"name": "Katie Lester", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/586/"}]}