// Numbas version: exam_results_page_options {"name": "George's copy of Evaluate double integrals with numerical limits", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"metadata": {"description": "

Two double integrals with numerical limits

", "licence": "Creative Commons Attribution 4.0 International"}, "variables": {"d": {"group": "Ungrouped variables", "name": "d", "description": "", "definition": "random(1..3)", "templateType": "anything"}, "f": {"group": "Ungrouped variables", "name": "f", "description": "", "definition": "random(1..4)", "templateType": "anything"}, "c": {"group": "Ungrouped variables", "name": "c", "description": "", "definition": "random(1..9)", "templateType": "anything"}, "b": {"group": "Ungrouped variables", "name": "b", "description": "", "definition": "random(1..4)", "templateType": "anything"}, "g": {"group": "Ungrouped variables", "name": "g", "description": "", "definition": "random(1..2)", "templateType": "anything"}, "a": {"group": "Ungrouped variables", "name": "a", "description": "", "definition": "random(2..4)", "templateType": "anything"}, "h": {"group": "Ungrouped variables", "name": "h", "description": "", "definition": "random(1..4)", "templateType": "anything"}}, "variable_groups": [], "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers", "!noLeadingMinus"]}, "functions": {}, "advice": "

(a)

\n

We proceed to evaluate the double-integral:

\n

\\begin{align}
I &= \\int^\\var{a}_1 \\int^\\var{b}_0 \\left(\\var{c}+\\simplify[std]{{4*d}*x*y} \\right) \\; \\mathrm{d}x \\, \\mathrm{d}y \\\\
&= \\int^\\var{a}_1 \\left[\\simplify[std]{{c}x+{2*d}*y*x^2} \\right]_{x=0}^\\var{b} \\; \\mathrm{d}y \\\\
&= \\int^\\var{a}_1 \\left(\\simplify[std]{{c*b}+{2*d*b^2}*y} \\right) \\; \\mathrm{d}y \\\\
&= \\left[\\simplify[std]{{c*b}y+{d*b^2}*y^2} \\right]^\\var{a}_1 \\; \\mathrm{d}y \\\\
&= \\simplify[std]{{c*b*a}+{d*b^2*a^2}-{c*b}-{d*b^2}} \\\\
&= \\simplify[std]{{(c*b*a)+(d*b^2*a^2)-(c*b)-(d*b^2)}}
\\end{align}

\n

(b)

\n

\\begin{align}
I &= \\int^\\pi_0 \\int^\\var{h}_0 \\simplify[std]{y^{f}sin({g}x)} \\; \\mathrm{d}y \\, \\mathrm{d}x \\\\
&= \\int^\\pi_0 \\left[\\simplify[std]{(1/{f+1})*y^{f+1}*sin({g}x)}\\right]_{y=0}^\\var{h} \\; \\mathrm{d}x \\\\[0.5em]
&= \\int^\\pi_0 \\simplify[std]{({h}^{f+1}/{f+1})*sin({g}x)} \\; \\mathrm{d}x  \\\\[0.5em]
&= \\simplify[std]{({h}^{f+1}/{f+1})}\\left[\\simplify[std]{-1/{g}*cos({g}x)}\\right]^\\pi_0  \\\\[0.5em]
&= -\\simplify[std]{({h}^{f+1}/{g*(f+1)})} \\left(\\simplify[std]{{(-1)^g}}-1 \\right) \\\\[0.5em]
&= \\simplify[fractionnumbers]{{-{h}^({f+1})*((-1)^{g}-1)/({g*(f+1)})}}
\\end{align}

", "preamble": {"js": "", "css": ""}, "ungrouped_variables": ["a", "c", "b", "d", "g", "f", "h"], "extensions": [], "statement": "

Evaluate the following double integrals.

\n

Input your answer as an integer or a fraction, not as a decimal.

", "variablesTest": {"maxRuns": 100, "condition": ""}, "tags": [], "name": "George's copy of Evaluate double integrals with numerical limits", "parts": [{"type": "gapfill", "showFeedbackIcon": true, "marks": 0, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "prompt": "

\\[I = \\int^\\var{a}_{y=1} \\int^\\var{b}_{x=0} \\left(\\var{c}+\\simplify[std]{{4*d}*x*y} \\right) \\; \\mathrm{d}x \\, \\mathrm{d}y \\]

\n

$I =$ [[0]]

", "variableReplacements": [], "scripts": {}, "gaps": [{"type": "jme", "showFeedbackIcon": true, "marks": 4, "vsetrangepoints": 5, "vsetrange": [0, 1], "answersimplification": "std", "expectedvariablenames": [], "answer": "{c*b*(a-1)+(4*d*b*b/4)*(a*a-1)}", "variableReplacements": [], "checkvariablenames": false, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "checkingaccuracy": 0.001, "showpreview": true, "checkingtype": "absdiff", "scripts": {}, "notallowed": {"message": "

Input all numbers in your answer as integers or fractions, not as decimals.

", "partialCredit": 0, "strings": ["."], "showStrings": false}}]}, {"type": "gapfill", "showFeedbackIcon": true, "marks": 0, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "prompt": "

\\[ I = \\int^\\pi_{x=0} \\int^\\var{h}_{y=0} \\simplify[std]{y^{f}sin({g}x)} \\; \\mathrm{d}y \\, \\mathrm{d}x \\]

\n

$I=$ [[0]]

", "variableReplacements": [], "scripts": {}, "gaps": [{"type": "jme", "showFeedbackIcon": true, "marks": 4, "vsetrangepoints": 5, "vsetrange": [0, 1], "answersimplification": "fractionnumbers", "expectedvariablenames": [], "answer": "{-h^(f+1)*((-1)^g-1)/(g*(f+1))}", "variableReplacements": [], "checkvariablenames": false, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "checkingaccuracy": 0.001, "showpreview": true, "scripts": {}, "checkingtype": "absdiff"}]}], "type": "question", "contributors": [{"name": "George Loughlin", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1619/"}]}]}], "contributors": [{"name": "George Loughlin", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1619/"}]}