// Numbas version: exam_results_page_options {"name": "Luis's copy of Find partial derivatives of $f(x,y)$ and identify its stationary points", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"advice": "

a)

\n

\\begin{align}
\\partial f \\over \\partial x &= \\simplify[std]{(({a} * (x ^ 2)) + ({b} * x * y) + ({c} * (y ^ 2)))} \\\\[1em]
\\partial f \\over \\partial y &= \\simplify[std]{((({b} / 2) * (x ^ 2)) + ({(2 * c)} * x * y) + {d})}
\\end{align}

\n

b)

\n

$(a,b)$ is a stationary point for the function $f(x,y)$ if $f_x=0$ and $f_y=0$, where the partial derivatives are evaluated at $x=a$, $y=b$.

\n

So you have to make sure that both of these partial derivatives are $0$ at the stationary point.

\n

For this example we have from the above equations that:

\n

\\begin{align}
\\simplify[std]{(({a} * (x ^ 2)) + ({b} * x * y) + ({c} * (y ^ 2)))} &= 0, & \\mathbf{(1)}\\\\
\\simplify[std]{((({b} / 2) * (x ^ 2)) + ({(2 * c)} * x * y) + {d})} &= 0, & \\mathbf{(2)}
\\end{align}

\n

The left hand side of equation (1) can be factorised as:

\n

\\[ \\simplify[std]{({a1}x+{b1}y)*({c1}x+{d1}y)=0} \\]

\n

and so we have:

\n

\\[ y=\\simplify[std]{{-a1}/{b1}*x}, \\text{ or } y= \\simplify[std]{{-c1}/{d1}*x} \\]

\n

First case: $y= \\simplify[std]{{-a1}/{b1}*x}$

\n

Substituting this into equation (2) gives:

\n

\\[\\simplify[std]{{b}/2*x^2-{2c*a1}/{b1}*x^2+{d}}=0 \\implies \\simplify[std]{{-b*b1+4*c*a1}/{2*b1}*x^2={d}}\\]

\n

Hence $x=\\var{m}$ or $x = \\var{-m}$. The corresponding stationary points are:

\n

\\[ \\left(\\var{m},\\simplify[std]{-{a1*m}/{b1}}\\right) \\text{ and } \\left(\\var{-m},\\simplify[std]{{a1*m}/{b1}}\\right) \\]

\n

Second case: $y= \\simplify[std]{{-c1}/{d1}*x}$

\n

Substituting this into equation (2) gives:

\n

\\[\\simplify[std]{{b}/2*x^2-{2c*c1}/{d1}*x^2+{d}}=0 \\Rightarrow \\simplify[std]{{-b*d1+4*c*c1}/{2*d1}*x^2={d}}\\]

\n

There can be no more stationary points as this equation has no real solution.

", "ungrouped_variables": ["a", "c", "ch", "d", "m", "s5", "a1", "b", "b1", "c2", "c1", "d1"], "statement": "\n

Answer the following questions about the function:

\n

\\[f(x,y)=\\simplify[std]{ ({a} / 3) * x ^ 3 + ({b} / 2) * x ^ 2 * y + {c} * y ^ 2 * x + {d} * y}\\]

\n ", "variablesTest": {"maxRuns": 100, "condition": "ch<>0\nand\ns5=-1"}, "tags": ["calculus", "functions", "multivariable", "partial derivatives", "stationary points"], "extensions": [], "parts": [{"type": "gapfill", "showFeedbackIcon": true, "customMarkingAlgorithm": "", "showCorrectAnswer": true, "prompt": "

Find the partial derivatives of $f$ with respect to $x$ and $y$.

\n

Note that if you want to enter a product of two unknowns, such as $xy$, then you input the expression in the form x*y.

\n

$\\displaystyle { \\partial f \\over \\partial x} = $ [[0]]

\n

$\\displaystyle {\\partial f \\over \\partial y} = $ [[1]]

", "gaps": [{"answer": "(({a} * (x ^ 2)) + ({b} * x * y) + ({c} * (y ^ 2)))", "type": "jme", "showFeedbackIcon": true, "showPreview": true, "customMarkingAlgorithm": "", "failureRate": 1, "showCorrectAnswer": true, "vsetRangePoints": 5, "checkingAccuracy": 0.001, "vsetRange": [0, 1], "checkingType": "absdiff", "marks": 2, "extendBaseMarkingAlgorithm": true, "unitTests": [], "checkVariableNames": true, "variableReplacements": [], "expectedVariableNames": ["x", "y"], "answerSimplification": "std", "scripts": {}, "variableReplacementStrategy": "originalfirst"}, {"answer": "((({b} / 2) * (x ^ 2)) + ({(2 * c)} * x * y) + {d})", "type": "jme", "showFeedbackIcon": true, "showPreview": true, "customMarkingAlgorithm": "", "failureRate": 1, "showCorrectAnswer": true, "vsetRangePoints": 5, "checkingAccuracy": 0.001, "vsetRange": [0, 1], "checkingType": "absdiff", "marks": 2, "extendBaseMarkingAlgorithm": true, "unitTests": [], "checkVariableNames": true, "variableReplacements": [], "expectedVariableNames": ["x", "y"], "answerSimplification": "std", "scripts": {}, "variableReplacementStrategy": "originalfirst"}], "variableReplacements": [], "sortAnswers": false, "marks": 0, "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "unitTests": [], "scripts": {}}, {"type": "m_n_2", "showFeedbackIcon": true, "customMarkingAlgorithm": "", "showCorrectAnswer": true, "displayType": "checkbox", "choices": ["

$x=\\var{m},\\;\\;y=\\simplify[std]{-{a1*m}/{b1}}$

", "

$x=\\var{-m},\\;\\;y=\\simplify[std]{{a1*m}/{b1}}$

", "

$x=\\var{m+1},\\;\\;y=\\simplify[std]{-{c1*(m+1)}/{d1}}$

", "

$x=\\var{-m-1},\\;\\;y=\\simplify[std]{{c1*(m+1)}/{d1}}$

", "

$x=\\var{m-1},\\;\\;y=\\simplify[std]{-{a1+2*b1}/{b1}}$

", "

$x=\\var{-m+1},\\;\\;y=\\simplify[std]{{a1+2*b1}/{b1}}$

"], "extendBaseMarkingAlgorithm": true, "warningType": "none", "displayColumns": 3, "scripts": {}, "maxAnswers": 0, "maxMarks": 0, "marks": 0, "variableReplacementStrategy": "originalfirst", "minMarks": 0, "matrix": [2, 2, 0, 0, 0, 0], "minAnswers": 0, "prompt": "\n

Finding Stationary Points.

\n

Tick the two choices which give stationary points for $f(x,y)$.

\n

Note that the easiest way to do this question is to substitute the values for $x$ and for $y$ into the expressions for $\\displaystyle {\\partial f \\over \\partial x}$ and $\\displaystyle{\\partial f \\over \\partial y}$ and see if you get $0$ for both.

\n ", "shuffleChoices": true, "variableReplacements": [], "unitTests": [], "distractors": ["", "", "", "", "", ""]}], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Find the stationary points of the function: $f(x,y)=a x ^ 3 + b x ^ 2 y + c y ^ 2 x + dy$ by choosing from a list of points.

\n

Inputting the values given into the partial derivatives to see if 0 is obtained is tedious! Could ask for the factorisation of equation 1 as the solution uses this. However there is a problem in asking for the input of the stationary points - order of input and also giving that there is two stationary points.

"}, "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers", "!noLeadingMinus"]}, "variable_groups": [], "variables": {"c": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "b1*d1", "name": "c"}, "m": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "random(1..4)", "name": "m"}, "b": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "b1*c1+a1*d1", "name": "b"}, "s5": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "if(d*(-b*d1+4*c*c1)<=0,-1,1)", "name": "s5"}, "c1": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "if(b1*c2=3*a1*d1,c2+1,c2)", "name": "c1"}, "a1": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "random(1..5)", "name": "a1"}, "d": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "-(b1*c1-3*a1*d1)/2*m^2", "name": "d"}, "ch": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "if(a1*d1=b1*c1,0,1)", "name": "ch"}, "c2": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "random(1..4)", "name": "c2"}, "b1": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "random(2,4,6)", "name": "b1"}, "d1": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "random(2,4,6)", "name": "d1"}, "a": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "a1*c1", "name": "a"}}, "name": "Luis's copy of Find partial derivatives of $f(x,y)$ and identify its stationary points", "functions": {}, "preamble": {"js": "", "css": ""}, "type": "question", "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}, {"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Luis Hernandez", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2870/"}]}]}], "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}, {"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Luis Hernandez", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2870/"}]}