// Numbas version: exam_results_page_options {"name": "Optimal dimensions of a box", "extensions": ["jsxgraph", "polynomials"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "preventleave": false, "showfrontpage": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"question_groups": [{"pickingStrategy": "all-ordered", "pickQuestions": 0, "name": "", "questions": []}], "functions": {}, "name": "Optimal dimensions of a box", "variablesTest": {"maxRuns": 100, "condition": ""}, "showQuestionGroupNames": false, "rulesets": {}, "type": "question", "ungrouped_variables": ["volume", "xsol", "hsol"], "parts": [{"prompt": "

The equation for box volume can be used to express box height in terms of the side length of the base of the box. If the side length is denoted $x$, enter the function here

", "scripts": {}, "vsetrangepoints": 5, "marks": "1", "answer": "{volume}/x^2", "checkingtype": "absdiff", "showCorrectAnswer": true, "expectedvariablenames": [], "checkingaccuracy": 0.001, "checkvariablenames": false, "type": "jme", "vsetrange": [0, 1], "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showpreview": true}, {"prompt": "

Use your result from part (a) to write a function for the surface area of cardboard used in the construction of the box. Your function should be entirely in terms of the side length of the base of the box, $x$.

", "scripts": {}, "vsetrangepoints": 5, "marks": 1, "answer": "2x^2+4x*({volume}/x^2)", "checkingtype": "absdiff", "showCorrectAnswer": true, "expectedvariablenames": [], "checkingaccuracy": 0.001, "checkvariablenames": false, "type": "jme", "vsetrange": [0, 1], "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showpreview": true}, {"prompt": "

To minimise the surface area of cardboard, we need the derivative of the surface area function with respect to $x$. This derivative is $\\displaystyle \\frac{dS}{dx}=$

", "scripts": {}, "vsetrangepoints": 5, "marks": 1, "answer": "4x-4*{volume}/x^2", "checkingtype": "absdiff", "showCorrectAnswer": true, "expectedvariablenames": [], "checkingaccuracy": 0.001, "checkvariablenames": false, "type": "jme", "vsetrange": [0, 1], "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showpreview": true}, {"prompt": "

The minimum surface area will occur when the length of the sides of the box base is $x=$

", "scripts": {}, "vsetrangepoints": 5, "marks": 1, "answer": "({volume})^(1/3)", "checkingtype": "absdiff", "showCorrectAnswer": true, "expectedvariablenames": [], "checkingaccuracy": 0.001, "checkvariablenames": false, "type": "jme", "vsetrange": [0, 1], "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showpreview": true}, {"prompt": "

Finally, the height of the box must then be $h=$

", "scripts": {}, "vsetrangepoints": 5, "marks": 1, "answer": "{volume}/({volume})^(2/3)", "checkingtype": "absdiff", "showCorrectAnswer": true, "expectedvariablenames": [], "checkingaccuracy": 0.001, "checkvariablenames": false, "type": "jme", "vsetrange": [0, 1], "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showpreview": true}], "statement": "

A square based box is to be constructed such that its volume is exactly {volume}m$^3$. The following questions guide you through the process of determining the base side length and box height such that the minimum amount of cardboard is used to construct the box.

", "variable_groups": [], "contributors": [{"profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/800/", "name": "Dann Mallet"}], "metadata": {"description": "

This question guides students through the process of determining the dimensions of a box to minimise its surface area whilst meeting a specified volume.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "extensions": ["jsxgraph", "polynomials"], "preamble": {"css": "", "js": ""}, "tags": [], "variables": {"volume": {"description": "

The box volume is fixed for each student. Here it lies between 0.3 and 3$m^3$.

", "name": "volume", "templateType": "anything", "definition": "0.3*random(1..10)", "group": "Ungrouped variables"}, "xsol": {"description": "", "name": "xsol", "templateType": "anything", "definition": "volume^(1/3)", "group": "Ungrouped variables"}, "hsol": {"description": "", "name": "hsol", "templateType": "anything", "definition": "volume^(1/3)", "group": "Ungrouped variables"}}, "advice": "

The square-based box will have volume

\n

\$V=x^2h,\$

\n

where $x$ is the base side length and $h$ is the box height. Further, the surface area $S$, of the box is

\n

\$S=2x^2+4xh.\$

\n

For this particular problem, $V={volume}$, so we have

\n

\$\\var{volume}=x^2h \\Rightarrow h=\\frac{\\var{volume}}{x^2},\$

\n

providing a function for $h$ in terms of $x$. Substituting this into the surface area function we then have

\n

\$S(x)=2x^2+4x\\left(\\frac{\\var{volume}}{x^2}\\right)=2x^2+4\\frac{\\var{volume}}{x}.\$

\n

Minima and maxima of $S(x)$ occur when $dS/dx=0$. We have

\n

\$\\frac{dS}{dx}=4x-4\\frac{\\var{volume}}{x^2},\$

\n

and so we must solve

\n

\$0=4x-4\\frac{\\var{volume}}{x^2}.\$

\n

Rearranging, we find that

\n

\$4x=4\\frac{\\var{volume}}{x^2}\$

\n

\$\\Rightarrow x^3=\\var{volume}\$

\n

\$\\Rightarrow x=\\var{volume}^{1/3}=\\var{xsol}.\$

\n

Finally, substituting this value back into the $h$ equation, we see that

\n

\$h=\\frac{\\var{volume}}{\\var{volume}^{2/3}}=\\var{hsol}.\$

\n

We should confirm that this set of dimensions does in fact produce a minimum surface area (rather than a maximum). This can be carried out by noting that the 2nd derivative of $S$ with respect to $x$ is

\n

\$\\frac{d^2S}{dx^2}=4+8\\frac{\\var{volume}}{x^3},\$

\n

which is positive for all positive $x$, and hence our proposed side length will produce a minimised box surface area.

"}]}], "contributors": [{"profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/800/", "name": "Dann Mallet"}]}