// Numbas version: exam_results_page_options {"name": "Differentiation: Polynomial Functions - Max Growth", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Differentiation: Polynomial Functions - Max Growth", "tags": [], "metadata": {"description": "

Calculating the gradient of a quadratic equation at a specific point and finding the stationary point (maximum) in a contextualised problem. 

", "licence": "None specified"}, "statement": "

The discharge of water into a stream, $D$ dm$^3/$s, affects the growth of the fish in the stream.

\n

The average length of the fish, $x$ cm, is modelled by the curve:

\n

$ x=\\var{a}D^2+\\var{b}D+\\var{c} $

", "advice": "

a) We first need to find differentiate the formula of the curve in respect of D.

\n

\\[ \\frac{dx}{dD} = 2 \\times (\\var{a}) D+ \\var{b}+0 \\\\ \\implies \\frac{dx}{dD}= \\simplify{2*{a}}D+\\var{b} \\]

\n

Now to find the gradient at the point where $D=\\var{d_1}$ we need to substitute the value in the equation we found in the previous step.

\n

\\[ \\frac{dx}{dD}=\\simplify{2*{a}}\\times \\var{d_1} +\\var{b} \\\\ \\implies \\frac{dx}{dD}= \\simplify{2*{a}*{d_1}}+\\var{b} \\\\ \\implies \\frac{dx}{dD}= \\simplify{2*{a}*{d_1}+{b}} \\]

\n

\n

b) The discharge that results in the maximum average length of the fish can be calculated by solving the equation: 

\n

\\[ \\frac{dx}{dD}=0\\]

\n

Therefore:

\n

\\[ \\simplify{2*{a}}D+\\var{b}=0 \\\\ \\implies \\simplify{2*{a}}D= - \\var{b} \\\\ \\implies D = \\frac{-\\var{b}}{\\simplify{2*{a}}} \\\\ \\implies D= \\simplify{{-{b}}/{2*{a}}} \\]

\n

Or, if rounded, 

\n

\\[ D=\\var{ans_b_rounded}\\]

\n

c) Now that we know that $D=\\var{ans_b_rounded}$ is the discharge that results in the maximum average length we can substitute this value in the original equation of the curve and calculate the maximum length.

\n

So, 

\n

\\[ x_{max}= \\var{a} \\times \\var{ans_b_rounded}^2 + \\var{b} \\times \\var{ans_b_rounded} + \\var{c} \\\\ \\implies x_{max}=\\var{a} \\times \\var{ans_b_rounded^2}+ \\var{b} \\times \\var{ans_b_rounded}+\\var{c} \\\\ \\implies x_{max}=\\simplify{{a*ans_b_rounded^2}}+ \\simplify{{b*ans_b_rounded}}+\\var{c} \\\\ \\implies x_{max}=\\simplify{{a*ans_b_rounded^2+b*ans_b_rounded+c}}\\]

\n

So, $x_{max}=\\var{ans_c_rounded}$.

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "Problem posing", "definition": "-random ( 50 .. 200)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Problem posing", "definition": "random(50..200)", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Problem posing", "definition": "Random(10..80)", "description": "", "templateType": "anything", "can_override": false}, "d_1": {"name": "d_1", "group": "Problem posing", "definition": "random (0.2 .. 0.75 #0.05 )", "description": "", "templateType": "anything", "can_override": false}, "ans_a": {"name": "ans_a", "group": "Answers", "definition": "2*{a}*{d_1}+{b}", "description": "", "templateType": "anything", "can_override": false}, "ans_b": {"name": "ans_b", "group": "Answers", "definition": "-b/(2a)", "description": "", "templateType": "anything", "can_override": false}, "ans_c": {"name": "ans_c", "group": "Answers", "definition": "a*ans_b_rounded^2+b*ans_b_rounded+c", "description": "", "templateType": "anything", "can_override": true}, "ans_b_rounded": {"name": "ans_b_rounded", "group": "Answers", "definition": "precround(ans_b,2)", "description": "", "templateType": "anything", "can_override": false}, "ans_c_rounded": {"name": "ans_c_rounded", "group": "Answers", "definition": "precround({ans_c},2)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "(ans_c_rounded<100) and (ans_a>0)", "maxRuns": "100"}, "ungrouped_variables": [], "variable_groups": [{"name": "Problem posing", "variables": ["a", "b", "c", "d_1"]}, {"name": "Answers", "variables": ["ans_a", "ans_b", "ans_c", "ans_b_rounded", "ans_c_rounded"]}], "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": "

Calculate the gradient of this curve at the point where $D=\\var{d_1}$.

", "answer": "{ans_a}", "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, "prompt": "

Calculate the discharge which results in the largest average length of the fish.

\n

Give your answer rounded to 2 decimal places.

", "answer": "{ans_b_rounded}", "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, "prompt": "

Calculate the maximum average length of the fish.

\n

Give your answer rounded to 2 decimal places.

", "answer": "{ans_c_rounded}", "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": []}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}, {"name": "Evi Papadaki", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/18113/"}]}]}], "contributors": [{"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}, {"name": "Evi Papadaki", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/18113/"}]}