// Numbas version: exam_results_page_options {"name": "Centroid of a triangle by integration", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Centroid of a triangle by integration", "tags": ["centroid", "definite integral", "integrtion"], "metadata": {"description": "

Student calculates $\\bar{y}$ for a triangle.  Must use similar triangles get element $dA$.

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

{applet}

", "advice": "

Use similar triangles to express the width of the strip as a function of $y$:

\n

$\\dfrac{w}{h-y} = \\dfrac{b}{h}$

\n

$w = b\\dfrac{(h-y)}{h}$

\n

Therefore,

\n

$dA = w\\; dy = b\\dfrac{(h-y)}{h} dy$

\n

With this you can evaluate $Q_x$

\n

$\\begin{align} Q_x &= \\int y\\; dA\\\\ &=\\int_0^h y\\;b\\frac{(h-y)}{h}\\; dy\\\\&= \\frac{b}{h}\\int_0^h (hy - y^2)\\; dy\\\\& = \\frac{b}{h}\\left. \\left(\\frac{h y^2}{2} - \\frac{y^3}{3}\\right)\\right |_0^h \\\\ &= bh^2\\left( \\frac{1}{2} - \\frac{1}{3}\\right)\\\\ &= \\frac{bh^2}{6}\\end{align}$

\n

Finaly, find $\\bar{y}$ knowing the area of the triangle is $\\dfrac{bh}{2}$

\n

$\\begin{align} \\bar{y} &= \\frac{Q_x}{A}\\\\ &= \\frac{{bh^2}/{6}}{{bh}/{2}}\\\\ &= \\frac{h}{3}\\end{align}$

", "rulesets": {}, "extensions": ["geogebra"], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [{"name": "dA", "value": "diff:A", "tex": "\\mathrm{d}A"}, {"name": "dx", "value": "diff:x", "tex": "\\mathrm{d}x"}, {"name": "dy", "value": "diff:y", "tex": "\\mathrm{d}y"}], "variables": {"applet": {"name": "applet", "group": "Ungrouped variables", "definition": "geogebra_applet(\"jyqxv2uf\",[B: vector(random(-1,1,2,4,5),3.5)])", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["applet"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": true, "customName": "Questions ", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Use horizontal strips to prove by integration that for a triangle with base $b$ and height $h$,  $\\bar{y} = h/3$.

\n

1. Derive expressions for $\\bar{y}_{el}$ and $dA$ in terms of $y$.

\n

$\\bar{y}_{el} =$ [[1]] $\\qquad dA=$ [[0]]

\n

2. Determine the limits of the integration.

\n

Lower limit [[2]]  Upper limit [[3]]

\n

3. Evaluate $Q_x $ between your limits.

\n

$Q_x  = \\int \\bar{y}_{el} dA = $ [[4]] 

\n

4.  Evaluate $\\bar{y}$ for the triangle.

\n

$\\bar{y} = \\dfrac{Q_x}{A} = $ [[5]]

", "gaps": [{"type": "jme", "useCustomName": true, "customName": "dA", "marks": "10", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "b*(h-y)/h dy", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": true, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "b", "value": ""}, {"name": "h", "value": ""}, {"name": "y", "value": ""}]}, {"type": "patternmatch", "useCustomName": true, "customName": "$\\bar{y}_{el}", "marks": "5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "y", "displayAnswer": "", "matchMode": "exact"}, {"type": "numberentry", "useCustomName": true, "customName": "lower", "marks": "5", "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": "patternmatch", "useCustomName": true, "customName": "upper", "marks": "5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "h", "displayAnswer": "", "caseSensitive": true, "partialCredit": 0, "matchMode": "exact"}, {"type": "jme", "useCustomName": true, "customName": "Qx", "marks": "10", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "b h^2 /6", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": true, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "b", "value": ""}, {"name": "h", "value": ""}]}, {"type": "jme", "useCustomName": true, "customName": "ybar", "marks": "10", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "h/3", "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": "h", "value": ""}]}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "William Haynes", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2530/"}]}]}], "contributors": [{"name": "William Haynes", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2530/"}]}