// Numbas version: exam_results_page_options {"name": "Maria's copy of cormac's copy of Maximum/minimum", "extensions": [], "custom_part_types": [], "resources": [["question-resources/Untitled.jpg", "/srv/numbas/media/question-resources/Untitled.jpg"], ["question-resources/Untitled_qCawkyB.jpg", "/srv/numbas/media/question-resources/Untitled_qCawkyB.jpg"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"advice": "

The length of the box is \\(\\var{l}-2x\\), the width is \\(\\var{w}-2x\\) and the height is \\(x\\).

\n

The volume is then given by

\n

\\(V=(\\var{l}-2x).(\\var{w}-2x).x\\)

\n

\\(V=\\simplify{4x^3-2*({w}+{l})x^2+{l}*{w}x}\\)

\n

\\(\\frac{dV}{dx}=\\simplify{12x^2-4*({w}+{l})x+{l}*{w}}\\)

\n

This is a quadratic equation.

\n

\\(x=\\frac{\\simplify{4*({w}+{l})}\\pm\\sqrt(\\simplify{16*({w}+{l})^2-48*{w}*{l}})}{24}\\)

\n

\\(x=\\frac{\\simplify{{w}+{l}}\\pm\\sqrt(\\simplify{{w}^2-{w}*{l}+{l}^2})}{6}\\)

\n

\\(\\frac{d^2V}{dx^2}=\\simplify{24x-4*({w}+{l})}\\)

\n

when  \\(x=\\simplify{({w}+{l}-sqrt({w}^2-{w}*{l}+{l}^2))/6}\\)           \\(\\frac{d^2V}{dx^2}<0\\)      and therefore is the value that gives a maximum.

", "tags": [], "extensions": [], "name": "Maria's copy of cormac's copy of Maximum/minimum", "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["l", "w"], "parts": [{"variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "gaps": [{"precisionType": "dp", "correctAnswerFraction": false, "type": "numberentry", "precision": "1", "minValue": "({w}+{l}-sqrt({w}^2+{l}^2-{w}*{l}))/6", "allowFractions": false, "maxValue": "({w}+{l}-sqrt({w}^2+{l}^2-{w}*{l}))/6", "strictPrecision": false, "scripts": {}, "precisionPartialCredit": 0, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "variableReplacements": [], "marks": 1, "precisionMessage": "You have not given your answer to the correct precision.", "showPrecisionHint": false}], "marks": 0, "variableReplacements": [], "scripts": {}, "type": "gapfill", "prompt": "

Input the value for \\(x\\) correct to one decimal place.

\n

\\(x = \\) [[0]]

"}], "variables": {"w": {"templateType": "randrange", "definition": "random(10..28#2)", "name": "w", "group": "Ungrouped variables", "description": ""}, "l": {"templateType": "randrange", "definition": "random(30..100#5)", "name": "l", "group": "Ungrouped variables", "description": ""}}, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Maximising the volume of a rectangular box

"}, "functions": {}, "variable_groups": [], "preamble": {"css": "", "js": ""}, "rulesets": {}, "statement": "

A rectangular sheet of metal of length = \\(\\var{l}cm\\) and width  = \\(\\var{w}cm\\) has a square of side \\(x\\,cm\\) cut from each corner. The ends and sides will be folded upwards to form an open box.

\n

Determine the value of \\(x\\) that will maximise the volume of this box.

\n

", "type": "question", "contributors": [{"name": "cormac breen", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/306/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}]}], "contributors": [{"name": "cormac breen", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/306/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}