// Numbas version: exam_results_page_options {"name": "Max and Min 3", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variables": {"third1": {"name": "third1", "group": "Ungrouped variables", "definition": "16*(k-b)", "description": "", "templateType": "anything"}, "l": {"name": "l", "group": "Ungrouped variables", "definition": "k-random(1..3)", "description": "", "templateType": "anything"}, "k": {"name": "k", "group": "Ungrouped variables", "definition": "a+random(1..6)", "description": "", "templateType": "anything"}, "gma": {"name": "gma", "group": "Ungrouped variables", "definition": "(xma-a)*(xma-b)^3", "description": "", "templateType": "anything"}, "s1": {"name": "s1", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything"}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(3,6)", "description": "", "templateType": "anything"}, "third2": {"name": "third2", "group": "Ungrouped variables", "definition": "8*(b-k)", "description": "", "templateType": "anything"}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "4*k-3*a", "description": "", "templateType": "anything"}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "s1*random(1..9)", "description": "", "templateType": "anything"}, "valbegin": {"name": "valbegin", "group": "Ungrouped variables", "definition": "(l-a)*(l-b)^3", "description": "", "templateType": "anything"}, "m": {"name": "m", "group": "Ungrouped variables", "definition": "b+random(1..3)", "description": "", "templateType": "anything"}, "gmi": {"name": "gmi", "group": "Ungrouped variables", "definition": "(k-a)*(k-b)^3", "description": "", "templateType": "anything"}, "d": {"name": "d", "group": "Ungrouped variables", "definition": "if(c=3,random(-9..9),random(-9..9#2))", "description": "", "templateType": "anything"}, "xma": {"name": "xma", "group": "Ungrouped variables", "definition": "if(valend > valbegin,m,l)", "description": "", "templateType": "anything"}, "valend": {"name": "valend", "group": "Ungrouped variables", "definition": "(m-a)*(m-b)^3", "description": "", "templateType": "anything"}}, "advice": "\n
Differentiating we have:
\n\\[\\begin{eqnarray*} g'(x)&=&\\simplify{(x-{b})^3+3*(x-{a})*(x-{b})^2}\\\\ &=&\\simplify{(x-{b})^2(3*(x-{a})+x-{b})}\\\\ &=&\\simplify{4*(x-{k})*(x-{b})^2} \\end{eqnarray*} \\] and we have factorised the expression.
\nThese are given by solving $g'(x)=0 \\Rightarrow x=\\var{k},\\;\\;\\mbox{or }x=\\var{b}$
\nTherefore the least stationary point is $x=\\var{k}$ and the greatest is $x=\\var{b}$ and we see that both stationary points are in $I$.
\nThe second derivative is given by:
\\[\\begin{eqnarray*} g''(x)&=&\\simplify{4*(x-{b})^2+8*(x-{k})(x-{b})}\\\\ &=&\\simplify{4*(x-{b})(3*x-{2*k+b})} \\end{eqnarray*} \\]
At the stationary point $x=\\var{k}$ we have $g''(\\var{k})=\\var{4*(k-b)^2} \\gt 0$.
\nHence $x=\\var{k}$ is a local minimum.
\nThe value at $x=\\var{b}$ is $g(\\var{b})= 0$.
\nHence this test fails at this point and we proceed to use the third derivative to see in more information can be gained.
\nWe see that $g'''(x)=\\simplify{8*(3*x-{k+2*b})}$.
\nTesting the stationary point using the third derivative gives:
\n$g'''(\\var{b})=\\var{8*(b-k)} \\neq 0$.
\nTherefore there cannot be an extremum point at $x=\\var{b}$.
\nFirst we find the values at the endpoints of the interval $I=[\\var{l},\\var{m}]$ are:
\n$g(\\var{l})=\\var{valbegin}$.
\n$g(\\var{m})=\\var{valend}$.
\nTo find the global maximum note that we are only concerned with the values of $g$ on the interval $I$ and since $g$ does not have a local maximum on $I$ it must take its maximum value at one of the end points of $I$.
\nWe see from the values at the end points obtained above that the global maximum value on $I$ is at $x=\\var{xma}$.
\nWe have $g(\\var{xma})=\\var{gma}$.
\n$g$ has only one local minimum on $I$ at $x=\\var{k}$ and so this must be the global minimum on $I$.
\nWe have $g(\\var{k})=\\var{(k-a)*(k-b)^3}$.
\n ", "variablesTest": {"condition": "", "maxRuns": 100}, "extensions": [], "name": "Max and Min 3", "parts": [{"customMarkingAlgorithm": "", "useCustomName": false, "scripts": {}, "marks": 0, "variableReplacements": [], "gaps": [{"checkingType": "absdiff", "useCustomName": false, "answerSimplification": "std", "marks": 1, "checkingAccuracy": 0.001, "notallowed": {"message": "Factorise the expression
", "strings": ["x^2", "x^3"], "partialCredit": 0, "showStrings": false}, "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "checkVariableNames": false, "failureRate": 1, "vsetRangePoints": 5, "musthave": {"message": "Factorise the expression
", "strings": ["(", ")"], "partialCredit": 0, "showStrings": false}, "vsetRange": [0, 1], "type": "jme", "showFeedbackIcon": true, "customMarkingAlgorithm": "", "valuegenerators": [{"name": "x", "value": ""}], "showPreview": true, "scripts": {}, "variableReplacements": [], "customName": "", "unitTests": [], "answer": "4*(x + {-k}) * (x + {-b})^2", "variableReplacementStrategy": "originalfirst"}], "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "customName": "", "sortAnswers": false, "prompt": "\nInput the first derivative of $g$ here, factorised into a product of two factors in the form $g'(x)=c(x-a)(x-b)^2$for suitable integers $a$, $b$ and $c$:
\n \n$g'(x)=\\;\\;$[[0]]
\n \n ", "unitTests": [], "variableReplacementStrategy": "originalfirst", "type": "gapfill", "showFeedbackIcon": true}, {"customMarkingAlgorithm": "", "useCustomName": false, "scripts": {}, "marks": 0, "variableReplacements": [], "gaps": [{"checkingType": "absdiff", "useCustomName": false, "answerSimplification": "std", "marks": 1, "checkingAccuracy": 0.001, "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "checkVariableNames": false, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "type": "jme", "showFeedbackIcon": true, "customMarkingAlgorithm": "", "valuegenerators": [], "showPreview": true, "scripts": {}, "variableReplacements": [], "customName": "", "unitTests": [], "answer": "{k}", "variableReplacementStrategy": "originalfirst"}, {"checkingType": "absdiff", "useCustomName": false, "answerSimplification": "std", "marks": 1, "checkingAccuracy": 0.001, "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "checkVariableNames": false, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "type": "jme", "showFeedbackIcon": true, "customMarkingAlgorithm": "", "valuegenerators": [], "showPreview": true, "scripts": {}, "variableReplacements": [], "customName": "", "unitTests": [], "answer": "{b}", "variableReplacementStrategy": "originalfirst"}, {"displayColumns": 0, "customMarkingAlgorithm": "", "matrix": [1, 0], "choices": ["Yes
", "No
"], "useCustomName": false, "scripts": {}, "marks": 0, "variableReplacements": [], "maxMarks": 0, "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "customName": "", "showCellAnswerState": true, "unitTests": [], "shuffleChoices": true, "minMarks": 0, "distractors": ["", ""], "variableReplacementStrategy": "originalfirst", "type": "1_n_2", "showFeedbackIcon": true}], "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "customName": "", "sortAnswers": false, "prompt": "\nLeast stationary point: [[0]]
\n \nGreatest stationary point: [[1]]
\n \nDo both these stationary points lie in the interval $I$ ? [[2]]
\n \n ", "unitTests": [], "variableReplacementStrategy": "originalfirst", "type": "gapfill", "showFeedbackIcon": true}, {"customMarkingAlgorithm": "", "useCustomName": false, "scripts": {}, "marks": 0, "variableReplacements": [], "gaps": [{"checkingType": "absdiff", "useCustomName": false, "answerSimplification": "std", "marks": 1, "checkingAccuracy": 0.001, "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "checkVariableNames": false, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "type": "jme", "showFeedbackIcon": true, "customMarkingAlgorithm": "", "valuegenerators": [{"name": "x", "value": ""}], "showPreview": true, "scripts": {}, "variableReplacements": [], "customName": "", "unitTests": [], "answer": "4*(x-{b})*(3*x-{2*k+b})", "variableReplacementStrategy": "originalfirst"}, {"displayColumns": 0, "customMarkingAlgorithm": "", "matrix": [1, 0, 0], "choices": ["A local minimum.
", "A local maximum.
", "Uncertain as the second derivative test fails.
"], "useCustomName": false, "scripts": {}, "marks": 0, "variableReplacements": [], "maxMarks": 0, "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "customName": "", "showCellAnswerState": true, "unitTests": [], "shuffleChoices": true, "minMarks": 0, "distractors": ["", "", ""], "variableReplacementStrategy": "originalfirst", "type": "1_n_2", "showFeedbackIcon": true}, {"displayColumns": 0, "customMarkingAlgorithm": "", "matrix": [0, 0, 1], "choices": ["A local minimum.
", "A local maximum.
", "Uncertain as the second derivative test fails.
"], "useCustomName": false, "scripts": {}, "marks": 0, "variableReplacements": [], "maxMarks": 0, "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "customName": "", "showCellAnswerState": true, "unitTests": [], "shuffleChoices": true, "minMarks": 0, "distractors": ["", "", ""], "variableReplacementStrategy": "originalfirst", "type": "1_n_2", "showFeedbackIcon": true}], "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "customName": "", "sortAnswers": false, "prompt": "\nInput the second derivative of $g$:
\n \n$g''(x)=\\;\\;$ [[0]]
\n \nUsing $g''(x)$, determine more information about the stationary points:
\n \nLeast stationary point is: (Choose one of the following)
[[1]]
Greatest stationary point is: (Choose one of the following)
[[2]]
{k} is not a local minimum or a local maximum.
", "{b} is not a local minimum or a local maximum.
", "{b} is not a local minimum or a local maximum and neither is {k}.
", "{k} is a local maximum and {b} is a local minimum.
", "{k} is a local minimum and {b} is a local maximum.
"], "useCustomName": false, "scripts": {}, "marks": 0, "variableReplacements": [], "maxMarks": 0, "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "customName": "", "showCellAnswerState": true, "unitTests": [], "shuffleChoices": true, "minMarks": 0, "distractors": ["", "", "", "", ""], "variableReplacementStrategy": "originalfirst", "type": "1_n_2", "showFeedbackIcon": true}], "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "customName": "", "sortAnswers": false, "prompt": "\nUsing the third derivative answer the following questions:
$g'''(x) = \\;\\;$[[0]]
If $a$ is the least stationary point then $g'''(a) =\\;\\;$[[1]]
\n \nIf $b$ is the other stationary point then $g'''(b) =\\;\\;$[[2]]
\n \nThis information tells us that: (Choose one of the following).
[[3]]
What are the following values at the end points of the interval $I$ ?
\n \n$g(\\var{l})=\\;\\;$ [[0]]
\n \n$g(\\var{m})=\\;\\;$ [[1]]
\n \nInput both to 2 decimal places.
\n \n ", "unitTests": [], "variableReplacementStrategy": "originalfirst", "type": "gapfill", "showFeedbackIcon": true}, {"customMarkingAlgorithm": "", "useCustomName": false, "scripts": {}, "marks": 0, "variableReplacements": [], "gaps": [{"correctAnswerFraction": false, "correctAnswerStyle": "plain", "customMarkingAlgorithm": "", "mustBeReducedPC": 0, "notationStyles": ["plain", "en", "si-en"], "useCustomName": false, "scripts": {}, "marks": 1, "variableReplacements": [], "allowFractions": false, "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "customName": "", "mustBeReduced": false, "unitTests": [], "maxValue": "{xma}", "showFractionHint": true, "minValue": "{xma}", "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showFeedbackIcon": true}, {"correctAnswerFraction": false, "correctAnswerStyle": "plain", "customMarkingAlgorithm": "", "mustBeReducedPC": 0, "notationStyles": ["plain", "en", "si-en"], "useCustomName": false, "scripts": {}, "marks": 1, "variableReplacements": [], "allowFractions": false, "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "customName": "", "mustBeReduced": false, "unitTests": [], "maxValue": "{gma}", "showFractionHint": true, "minValue": "{gma}", "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showFeedbackIcon": true}, {"correctAnswerFraction": false, "correctAnswerStyle": "plain", "customMarkingAlgorithm": "", "mustBeReducedPC": 0, "notationStyles": ["plain", "en", "si-en"], "useCustomName": false, "scripts": {}, "marks": 1, "variableReplacements": [], "allowFractions": false, "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "customName": "", "mustBeReduced": false, "unitTests": [], "maxValue": "{k}", "showFractionHint": true, "minValue": "{k}", "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showFeedbackIcon": true}, {"correctAnswerFraction": false, "correctAnswerStyle": "plain", "customMarkingAlgorithm": "", "mustBeReducedPC": 0, "notationStyles": ["plain", "en", "si-en"], "useCustomName": false, "scripts": {}, "marks": 1, "variableReplacements": [], "allowFractions": false, "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "customName": "", "mustBeReduced": false, "unitTests": [], "maxValue": "{gmi}", "showFractionHint": true, "minValue": "{gmi}", "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showFeedbackIcon": true}], "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "customName": "", "sortAnswers": false, "prompt": "\nAt what value of $x \\in I$ does $g$ have a global maximum ?
\n \n$x=\\;\\;$ [[0]]
\n \nValue of $g$ at this global maximum = [[1]].
\n \nAt what value of $x \\in I$ does $g$ have a global minimum ?
\n \n$x=\\;\\;$ [[2]]
\n \nValue of $g$ at this global minimum = [[3]].
\n \n ", "unitTests": [], "variableReplacementStrategy": "originalfirst", "type": "gapfill", "showFeedbackIcon": true}], "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "variable_groups": [], "statement": "\nLet $I=[\\var{l},\\var{m}]$ be an interval and let $g: I \\rightarrow \\mathbb{R}$ be a function defined on this interval
given by :\\[g(x) = \\simplify{(x-{a})*(x-{b})^3}\\]
$I$ compact interval, $g:I\\rightarrow I$, $g(x)=(x-a)(x-b)^2$. Stationary points in interval. Find local and global maxima and minima of $g$ on $I$.
", "licence": "Creative Commons Attribution 4.0 International"}, "preamble": {"css": "", "js": ""}, "functions": {}, "tags": [], "ungrouped_variables": ["third1", "xma", "valbegin", "gmi", "d", "s1", "k", "gma", "b", "third2", "valend", "c", "m", "l", "a"], "contributors": [{"name": "Paul Howes", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/632/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}]}], "contributors": [{"name": "Paul Howes", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/632/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}