// Numbas version: exam_results_page_options {"name": "Double integral in polar coordinates - concentric circles", "extensions": ["eukleides", "geogebra", "jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Double integral in polar coordinates - concentric circles", "tags": [], "metadata": {"description": "

Double integral in polar coordinates - concentric circles

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

Compute the integral 

\n

\\[\\iint_R \\frac{y^2}{\\sqrt{x^2 + y^2}}\\, dx\\, dy\\] 

\n

where $R$ is the region between the circles $x^2 + y^2 = \\var{r1}$ and $x^2 + y^2 = \\var{r2}$. 

", "advice": "

Recall that ew pass to polar coordinates using $x=r\\cos(\\theta)$ and $r\\sin(\\theta)$.

\n

a) Plug the values above into $ \\frac{y^2}{\\sqrt{x^2 + y^2}}$ we get 

\n

\\[ \\frac{r^2\\sin^2(\\theta)}{\\sqrt{r^2\\cos^2(\\theta) + r^2\\sin^2(\\theta)}} = \\frac{r^2\\sin^2(\\theta)}{r\\sqrt{\\cos^2(\\theta) + \\sin^2(\\theta)}} = r\\sin^2(\\theta).\\]

\n

\n

b) The area we are interested is the area between the concentric circles below (this shape is called and annulus)

\n

{diagram}

\n

This are can be described by the inequalities 

\n

\\[0<\\theta\\leq 2\\pi \\quad \\mbox{ and }\\quad \\var{r1}<r<\\var{r2}\\] 

\n

in polar coordinates.

\n

\n

c) Note that the order the integration does not matter as boundaries for both variables are constants. The integral thus can be written as 

\n

\\[\\int_{\\var{r1}}^{\\var{r2}}\\int_{0}^{2\\pi} r^2\\sin^2(\\theta)\\, d\\theta\\,dr.\\]

\n

\n

d) 

\n

\\[\\int_{\\var{r1}}^{\\var{r2}}\\int_{0}^{2\\pi} r^2\\sin^2(\\theta)\\, d\\theta\\,dr = \\int_{\\var{r1}}^{\\var{r2}}r^2 \\int_{0}^{2\\pi} \\sin^2(\\theta)\\, d\\theta\\,dr  = -\\int_{\\var{r1}}^{\\var{r2}}r^2 \\left[\\frac{\\sin(2\\theta) - 2\\theta}{4}\\right]_0^{2\\pi}\\,dr 
= \\\\[3mm ]\\int_{\\var{r1}}^{\\var{r2}}r^2 \\pi\\,dr = \\pi\\left[\\frac{r^3}{3}\\right]_{\\var{r1}}^{\\var{r2}}  = \\pi\\left(\\frac{\\var{r2}^2 - \\var{r1}^2}{3}\\right) = \\var{ans}.\\]

", "rulesets": {}, "extensions": ["eukleides", "geogebra", "jsxgraph"], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"r1": {"name": "r1", "group": "Ungrouped variables", "definition": "random(1 .. 3#1)", "description": "", "templateType": "randrange", "can_override": false}, "r2": {"name": "r2", "group": "Ungrouped variables", "definition": "random(r1..4 except r1)", "description": "", "templateType": "anything", "can_override": false}, "ans": {"name": "ans", "group": "Ungrouped variables", "definition": "(1/3)*pi*(r2^2 - r1^2)", "description": "", "templateType": "anything", "can_override": false}, "diagram": {"name": "diagram", "group": "Ungrouped variables", "definition": "jessiecode(400,400,\"\"\"\n\n A = point(0,0) <>;\n C = circle(O,{r1}) <>;\n D = circle(O,{r2}) <>;\n\n\"\"\")", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["r1", "r2", "ans", "diagram"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Rewrite the function $ \\frac{y^2}{\\sqrt{x^2 + y^2}}$ in polar coordinates 

\n

", "answer": "r*sin^2(theta)", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "r", "value": ""}, {"name": "sin", "value": ""}, {"name": "theta", "value": ""}]}, {"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": "

Parametrise the region $R$ in polar coordinate

\n

[[0]]$<\\theta<$ [[1]]  and [[2]] $<r<$[[3]]

", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "Gap0", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "0", "maxValue": "0", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "jme", "useCustomName": true, "customName": "Gap1", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "2*pi", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{r1}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{r2}", "maxValue": "{r2}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Write down the integral in polar coordinates

", "answer": "defint(defint(r^2sin^2theta,theta,0,2pi),r,{r1},{r2})", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "r", "value": ""}, {"name": "sin", "value": ""}, {"name": "theta", "value": ""}]}, {"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": "

Evaluate the integral you wrote in the previous part:

\n

[[0]]

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{ans}", "maxValue": "{ans}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "2", "precisionPartialCredit": "50", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": true, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Ugur Efem", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/18261/"}]}]}], "contributors": [{"name": "Ugur Efem", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/18261/"}]}