// Numbas version: exam_results_page_options {"name": "Resolve a double integral", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "variables": {"ans": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(upper-lower,3)", "description": "", "name": "ans"}, "a": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1..9)", "description": "", "name": "a"}, "m": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..5)", "description": "", "name": "m"}, "fun": {"templateType": "anything", "group": "Ungrouped variables", "definition": "latex(\n switch(\n t=1,\n '\\\\sin',\n t=2,\n '\\\\cos',\n '\\\\exp'\n )\n +'(x^{'+m+'}+'+a+')'\n)", "description": "", "name": "fun"}, "t": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1..3)", "description": "", "name": "t"}, "upper": {"templateType": "anything", "group": "Ungrouped variables", "definition": "switch(t=1,-cos(1+a),t=2,sin(1+a),exp(1+a))", "description": "", "name": "upper"}, "lower": {"templateType": "anything", "group": "Ungrouped variables", "definition": "switch(t=1,-cos(a),t=2,sin(a),exp(a))", "description": "", "name": "lower"}}, "ungrouped_variables": ["a", "upper", "lower", "m", "t", "ans", "fun"], "name": "Resolve a double integral", "functions": {}, "parts": [{"prompt": "

$I=\\;$[[0]]

\n

Input your answer to 3 decimal places.

", "showFeedbackIcon": true, "scripts": {}, "gaps": [{"precisionPartialCredit": 0, "showCorrectAnswer": true, "allowFractions": false, "mustBeReduced": false, "correctAnswerFraction": false, "minValue": "ans", "maxValue": "ans", "precision": "3", "correctAnswerStyle": "plain", "precisionMessage": "You have not given your answer to the correct precision.", "precisionType": "dp", "showPrecisionHint": false, "mustBeReducedPC": 0, "strictPrecision": true, "scripts": {}, "type": "numberentry", "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 1, "showFeedbackIcon": true}], "type": "gapfill", "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0}], "statement": "

Evaluate the following repeated integral:

\n

\\[ I = \\int_0^1 \\; \\mathrm{d}x \\; \\int_0^{\\simplify[all]{x^{m-1}}}\\var{m} \\var{fun} \\; \\mathrm{d}y \\]

", "tags": [], "rulesets": {}, "preamble": {"css": "", "js": ""}, "type": "question", "extensions": [], "variablesTest": {"condition": "", "maxRuns": 100}, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Calculate a repeated integral of the form $\\displaystyle I=\\int_0^1\\;dx\\;\\int_0^{x^{m-1}}mf(x^m+a)dy$

\n

The $y$ integral is trivial, and the $x$ integral is of the form $g'(x)f'(g(x))$, so it straightforwardly integrates to $f(g(x))$.

"}, "advice": "

We want to find

\n

\\[ I=\\int_0^1 \\; dx \\; \\int_0^{\\simplify[all]{x^{m-1}}} \\var{m} \\var{fun} \\; \\mathrm{d}y \\]

\n

The innermost integral gives:

\n

\\[ \\int_0^{\\simplify[all]{x^{m-1}}}\\var{m} \\var{fun} \\; \\mathrm{d}y = \\left[\\var{m}y \\; \\var{fun} \\right]_0^{\\simplify[all]{x^{m-1}}}=\\simplify[all]{{m}x^{m-1}} \\var{fun} \\]

\n

So we have to find  $\\displaystyle I=\\int_0^1\\simplify[all]{{m}x^{m-1}} \\var{fun} \\; \\mathrm{d}x$.

\n

Note that if we use the substitution $u=\\simplify[all]{x^{m}+{a}}$ then it is easy to find this last definite integral and we find that:

\n

$I=\\var{ans}$ to 3 decimal places.

", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}