// Numbas version: exam_results_page_options {"name": "Paul 's copy of Max and Min 4", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["a", "b", "valmin", "valmax", "lmi", "s", "tol", "lma"], "name": "Paul 's copy of Max and Min 4", "tags": ["Calculus", "calculus", "classifying stationary points", "functions", "global maxima and minima", "limit", "limits", "local maxima and minima", "maxima and minima", "optimisation", "optimising", "optimising functions", "rational polynomials", "stationary points", "taking limits"], "preamble": {"css": "", "js": ""}, "advice": "\n
The function $g(x)$ is continuous and differentiable at all points in $\\mathbb{R}$.
\nUsing the quotient rule for differentiation we see that
\\[\\begin{eqnarray*}g'(x)&=&\\simplify{({a}*(x^2+{b^2})-{2*a}*x^2)/(x^2+{b^2})^2}\\\\ &=&\\simplify{({-a}*(x-{b})(x+{b}))/(x^2+{b^2})^2} \\end{eqnarray*} \\]
The stationary points are given by solving $g'(x)=0$.
\n$g'(x)=0 \\Rightarrow \\simplify{{-a}*(x-{b})(x+{b})=0} \\Rightarrow x=\\var{b} \\mbox{ or } x=\\var{-b}$
\nThe second derivative can be found by applying the quotient rule to the derivative of $g(x)$ and we obtain:
\nUsing the quotient rule for differentiation we see that
\\[\\begin{eqnarray*}g''(x)&=&\\simplify[std]{({-2*a}*x*(x^2+{b^2})^2+{4*a}*x*(x^2-{b^2})(x^2+{b^2}))/(x^2+{b^2})^4}\\\\ &=&\\simplify[std]{({2*a}*x*(x^2-{3*b^2}))/(x^2+{b^2})^3} \\end{eqnarray*} \\]
The nature of the stationary points are determined by evaluating $g''(x)$ at the stationary points.
\nFor $x= \\var{lma}$ we have: \\[g''(\\var{lma})= \\simplify[std]{-{abs(a)}/{2*b^3}} \\lt 0\\]
\nHence is a local maximum.
\nEvaluating the function at $x=\\var{lma}$ gives $g(\\var{lma})=\\var{valmax}$ to 3 decimal places.
\nFor $x= \\var{lmi}$ we have: \\[g''(\\var{lmi})= \\simplify[std]{{abs(a)}/{2*b^3}} \\gt 0\\]
\nHence is a local minimum.
\nEvaluating the function at $x=\\var{lmi}$ gives $g(\\var{lmi})=\\var{valmin}$ to 3 decimal places.
\nIf we divide $g(x)$ top and bottom by $x^2$ (OK as $x \\neq 0$ at any time) we obtain: \\[g(x)=\\simplify[std]{({a}/x)/(1+{b^2}/x^2)}\\]
\nThen using the fact that $\\displaystyle \\frac{1}{x}$ and $\\displaystyle \\frac{1}{x^2}$ both tend to $0$ as $ x \\rightarrow \\pm\\infty$ we see that
\n$\\displaystyle \\lim_{x \\to \\infty}g(x)=\\frac{0}{1}=0$ and similarly
\n$\\lim_{x \\to -\\infty}g(x)=0$
\nSince $g$ has a finite limit of $0$ as $x \\rightarrow \\pm\\infty$ and we have that $0$ lies between the local minimum $\\var{valmin}$ and the local maximum $\\var{valmax}$
\nThen:
\nGlobal Maximum: The local maximum of $g$ we have found at $x=\\var{lma}$ must be a global maximum and similarly,
\nGlobal Minimum: The local minimum of $g$ we have found at $x=\\var{lmi}$ must be a global minimum.
\nSo we have shown \\[\\forall x \\in \\mathbb{R},\\;\\;\\var{valmin} \\le g(x) \\le \\var{valmax}\\]
\n ", "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "parts": [{"prompt": "\nIs $g(x)$ continuous at all points of $\\mathbb{R}$?
\n \nChoose Yes or No.
\n \n ", "matrix": [1, 0], "shuffleChoices": false, "scripts": {}, "choices": ["Yes
", "No
"], "marks": 0, "displayType": "radiogroup", "maxMarks": 0, "distractors": ["", ""], "displayColumns": 0, "showCorrectAnswer": true, "type": "1_n_2", "minMarks": 0}, {"prompt": "\nThe first derivative of $g$ can be written in the form $\\displaystyle \\frac{p(x)}{q(x)}$ where $p(x)$ and $q(x)=(x^2+\\var{b^2})^2$ are polynomials.
\nInput the numerator $p(x)$ of the first derivative of $g$ here, factorised into a product of two linear factors in the form
\\[p(x)=c(x-a)(x-b)\\]for suitable integers $a$, $b$ and $c$:
$p(x)\\;=\\;$[[0]]
\n ", "marks": 0, "gaps": [{"notallowed": {"message": "Factorise the expression
", "showStrings": false, "strings": ["^", "x*x", "xx", "x x"], "partialCredit": 0}, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "vsetrangepoints": 5, "showCorrectAnswer": true, "answersimplification": "std", "scripts": {}, "answer": "({( - a)} * (x + ( - {b})) * (x + {b}))", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme", "musthave": {"message": "Factorise the expression
", "showStrings": false, "strings": ["(", ")"], "partialCredit": 0}}], "showCorrectAnswer": true, "scripts": {}, "type": "gapfill"}, {"prompt": "\nIs $g(x)$ differentiable at all points of $\\mathbb{R}$?
\n \nChoose Yes or No.
\n \n ", "matrix": [1, 0], "shuffleChoices": true, "scripts": {}, "choices": ["Yes
", "No
"], "marks": 0, "displayType": "radiogroup", "maxMarks": 0, "distractors": ["", ""], "displayColumns": 0, "showCorrectAnswer": true, "type": "1_n_2", "minMarks": 0}, {"prompt": "\nLeast stationary point: [[0]]
\n \nGreatest stationary point: [[1]]
\n \n ", "marks": 0, "gaps": [{"expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "vsetrangepoints": 5, "showCorrectAnswer": true, "answersimplification": "std", "scripts": {}, "answer": "{-b}", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}, {"expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "vsetrangepoints": 5, "showCorrectAnswer": true, "answersimplification": "std", "scripts": {}, "answer": "{b}", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}], "showCorrectAnswer": true, "scripts": {}, "type": "gapfill"}, {"prompt": "\nThe second derivative of $g$ can be written in the form $\\displaystyle \\frac{r(x)}{s(x)}$ where $r(x)$ and $s(x)=(x^2+\\var{b^2})^3$ are polynomials.
\nInput the numerator $r(x)$ of the second derivative of $g$ here, factorised into a product of a linear factor and a quadratic factor in the form
\\[r(x)=a_1x(x^2-a_2)\\] for suitable integers $a_1$, $a_2$
$r(x)=\\;\\;$ [[0]]
\nHence find all local maxima and minima given by the stationary points
\nLocal maximum is at $x=\\;\\;$ [[1]] and the value of the function at the local maximum (to 3 decimal places)= [[2]]
\nLocal minimum is at $x=\\;\\;$ [[3]] and the value of the function at the local minimum (to 3 decimal places) = [[4]]
\n ", "marks": 0, "gaps": [{"notallowed": {"message": "Factorise the expression as asked in the question.
", "showStrings": false, "strings": ["x^3"], "partialCredit": 0}, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "vsetrangepoints": 5, "showCorrectAnswer": true, "answersimplification": "std", "scripts": {}, "answer": "{2*a}*x*(x^2-{3*b^2})", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme", "musthave": {"message": "Factorise the expression
", "showStrings": false, "strings": ["(", ")"], "partialCredit": 0}}, {"expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "vsetrangepoints": 5, "showCorrectAnswer": true, "answersimplification": "std", "scripts": {}, "answer": "{lma}", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}, {"allowFractions": false, "marks": 1, "maxValue": "{valmax+tol}", "minValue": "{valmax-tol}", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "type": "numberentry", "showPrecisionHint": false}, {"expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "vsetrangepoints": 5, "showCorrectAnswer": true, "answersimplification": "std", "scripts": {}, "answer": "{lmi}", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}, {"allowFractions": false, "marks": 1, "maxValue": "{valmin+tol}", "minValue": "{valmin-tol}", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "type": "gapfill"}, {"prompt": "\nWhat are the following limits?
\n1) $\\lim_{x \\to \\infty}g(x)\\;\\;$
\nChoose one of the following [[0]]
\n2) $\\lim_{x \\to -\\infty}g(x)$
\nChoose one of the following [[1]]
\nDoes $g$ have a finite global maximum? Click on Yes or No
[[2]]
Does $g$ have a finite global maximum? Click on Yes or No
[[2]]
$-\\infty$
", "$\\infty$
", "$\\var{b}$
", "$\\var{valmax}$
", "$0$
"], "marks": 0, "displayType": "radiogroup", "maxMarks": 0, "distractors": ["", "", "", "", ""], "displayColumns": 0, "showCorrectAnswer": true, "type": "1_n_2", "minMarks": 0}, {"matrix": [0, 0, 0, 0, 1], "shuffleChoices": true, "scripts": {}, "choices": ["$-\\infty$
", "$\\infty$
", "$\\var{a}$
", "$\\var{valmin}$
", "$0$
"], "marks": 0, "displayType": "radiogroup", "maxMarks": 0, "distractors": ["", "", "", "", ""], "displayColumns": 0, "showCorrectAnswer": true, "type": "1_n_2", "minMarks": 0}, {"matrix": [1, 0], "shuffleChoices": true, "scripts": {}, "choices": ["Yes
", "No
"], "marks": 0, "displayType": "radiogroup", "maxMarks": 0, "distractors": ["", ""], "displayColumns": 0, "showCorrectAnswer": true, "type": "1_n_2", "minMarks": 0}, {"matrix": [1, 0], "shuffleChoices": true, "scripts": {}, "choices": ["Yes
", "No
"], "marks": 0, "displayType": "radiogroup", "maxMarks": 0, "distractors": ["", ""], "displayColumns": 0, "showCorrectAnswer": true, "type": "1_n_2", "minMarks": 0}], "showCorrectAnswer": true, "scripts": {}, "type": "gapfill"}], "statement": "Let $g: \\mathbb{R} \\rightarrow \\mathbb{R}$ be the function given by:
\\[g(x)=\\simplify{{a}*x/(x^2+{b}^2)}\\]
10/07/2012:
Added tags.
Question appears to be working correctly.
\n \t\t9/07/2012:
\n \t\tAdded tags.
\n \t\tCorrected mistake in Advice ($x$ instead of $x^2$).
\n \t\tTolerance variable set to tol=0.001 for a numeric entry.
\n \t\t", "description": "$g: \\mathbb{R} \\rightarrow \\mathbb{R}, g(x)=\\frac{ax}{x^2+b^2}$. Find stationary points and local maxima, minima. Using limits, has $g$ a global max, min?
", "licence": "Creative Commons Attribution 4.0 International"}, "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Paul Howes", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/632/"}]}]}], "contributors": [{"name": "Paul Howes", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/632/"}]}