Implicit differentiation question with customised feedback to catch some common errors.

", "licence": "Creative Commons Attribution-NonCommercial 4.0 International"}, "name": "Implicit differentiation 1 (Basic)", "functions": {}, "statement": "Find the gradient of the curve $\\simplify{{a}x}+x^2y^2=\\simplify{{constant}+{b}y}$ at the point $(\\var{c},\\var{d})$.

\n", "parts": [{"customMarkingAlgorithm": "", "sortAnswers": false, "extendBaseMarkingAlgorithm": true, "type": "gapfill", "gaps": [{"failureRate": 1, "customMarkingAlgorithm": "malrules:\n [\n [\"3/y+y+x\", \"This is an implicit differentiation question. Therefore you need to consider $y$ as having something to do with $x$. Therefore, whenever you differentiate part of this expression involving $y$ you need the chain rule and so need to include $\\\\frac{dy}{dx}$. For example, when using the product rule to differentiate $xy$ (which you spotted - well done!), you get $x \\\\cdot \\\\frac{dy}{dx} + y \\\\cdot 1 = x \\\\frac{dy}{dx}+y$. Similarly, when differentiating $\\\\ln \\\\left( y^3 \\\\right)$, recall that $\\\\frac{d}{dx} \\\\left( \\\\ln x \\\\right)=\\\\frac{1}{x}$ but $\\\\frac{d}{dx} \\\\left( \\\\ln \\\\left( f(x) \\\\right) \\\\right)=\\\\frac{1}{f(x)} \\\\cdot f'(x)$. Therefore $\\\\frac{d}{dx} \\\\left( \\\\ln \\\\left( y^3 \\\\right) \\\\right) = \\\\frac{1}{y^3} \\\\cdot \\\\frac{d}{dx} \\\\left(y^3 \\\\right) = \\\\frac{1}{y^3} \\\\cdot 3y^2 \\\\cdot \\\\frac{dy}{dx}$\"],\n [\"1/(1+3/y)\", \"There are two main errors here. Firstly, since this is implicit differentiation, you are thinking of $y$ as having something to do with $x$. This means you need the product rule to differentiate $xy$, since $x \\\\cdot y$ is really $x \\\\times $ (something to do with $x$). Secondly, what is the derivative of the right hand side? Don't forget to differentiate $\\\\textbf{both}$ sides.\"],\n [\"-y/(x+1/y^3)\", \"Be careful when differentiating $\\\\ln \\\\left( y^3 \\\\right)$. Remember, $\\\\frac{d}{dx} \\\\left( \\\\ln x \\\\right)=\\\\frac{1}{x}$ but $\\\\frac{d}{dx} \\\\left( \\\\ln \\\\left( f(x) \\\\right) \\\\right)=\\\\frac{1}{f(x)} \\\\cdot f'(x)$. Therefore $\\\\frac{d}{dx} \\\\left( \\\\ln \\\\left( y^3 \\\\right) \\\\right) = \\\\frac{1}{y^3} \\\\cdot \\\\frac{d}{dx} \\\\left(y^3 \\\\right) = \\\\frac{1}{y^3} \\\\cdot 3y^2 \\\\cdot \\\\frac{dy}{dx}$\"],\n [\"1/y^3+y+x\", \"This is an implicit differentiation question. Therefore you need to consider $y$ as having something to do with $x$. Therefore, whenever you differentiate part of this expression involving $y$ you need the chain rule and so need to include $\\\\frac{dy}{dx}$. For example, when using the product rule to differentiate $xy$ (which you spotted - well done!), you get $x \\\\cdot \\\\frac{dy}{dx} + y \\\\cdot 1 = x \\\\frac{dy}{dx}+y$. Similarly, when differentiating $\\\\ln \\\\left( y^3 \\\\right)$, recall that $\\\\frac{d}{dx} \\\\left( \\\\ln x \\\\right)=\\\\frac{1}{x}$ but $\\\\frac{d}{dx} \\\\left( \\\\ln \\\\left( f(x) \\\\right) \\\\right)=\\\\frac{1}{f(x)} \\\\cdot f'(x)$. Therefore $\\\\frac{d}{dx} \\\\left( \\\\ln \\\\left( y^3 \\\\right) \\\\right) = \\\\frac{1}{y^3} \\\\cdot \\\\frac{d}{dx} \\\\left(y^3 \\\\right) = \\\\frac{1}{y^3} \\\\cdot 3y^2 \\\\cdot \\\\frac{dy}{dx}$\"],\n [\"1/(1/y^3+1)\", \"There are three things to watch here. Firstly, since this is implicit differentiation, you are thinking of $y$ as having something to do with $x$. This means you need the product rule to differentiate $xy$, since $x \\\\cdot y$ is really $x \\\\times $ (something to do with $x$). Secondly, be careful when differentiating $\\\\ln \\\\left( y^3 \\\\right)$. Remember, $\\\\frac{d}{dx} \\\\left( \\\\ln x \\\\right)=\\\\frac{1}{x}$ but $\\\\frac{d}{dx} \\\\left( \\\\ln \\\\left( f(x) \\\\right) \\\\right)=\\\\frac{1}{f(x)} \\\\cdot f'(x)$. Therefore $\\\\frac{d}{dx} \\\\left( \\\\ln \\\\left( y^3 \\\\right) \\\\right) = \\\\frac{1}{y^3} \\\\cdot \\\\frac{d}{dx} \\\\left(y^3 \\\\right) = \\\\frac{1}{y^3} \\\\cdot 3y^2 \\\\cdot \\\\frac{dy}{dx}$. Finally, what is the derivative of the right hand side? Don't forget to differentiate $\\\\textbf{both}$ sides.\"]\n ]\n\n\nparsed_malrules: \n map(\n [\"expr\":parse(x[0]),\"feedback\":x[1]],\n x,\n malrules\n )\n\nagree_malrules (Do the student's answer and the expected answer agree on each of the sets of variable values?):\n map(\n len(filter(not x ,x,map(\n try(\n resultsEqual(unset(question_definitions,eval(studentexpr,vars)),unset(question_definitions,eval(malrule[\"expr\"],vars)),settings[\"checkingType\"],settings[\"checkingAccuracy\"]),\n message,\n false\n ),\n vars,\n vset\n )))\n

$\\frac{dy}{dx}=$ [[0]]

"}, {"customMarkingAlgorithm": "", "sortAnswers": false, "extendBaseMarkingAlgorithm": true, "type": "gapfill", "gaps": [{"failureRate": 1, "customMarkingAlgorithm": "", "vsetRange": [0, 1], "extendBaseMarkingAlgorithm": true, "type": "jme", "checkingType": "absdiff", "showPreview": true, "unitTests": [], "showCorrectAnswer": false, "checkVariableNames": false, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": false, "useCustomName": false, "variableReplacements": [], "marks": 1, "customName": "", "vsetRangePoints": 5, "answer": "{a}/{b}", "valuegenerators": [], "checkingAccuracy": 0.001, "scripts": {}}], "showCorrectAnswer": true, "variableReplacements": [], "showFeedbackIcon": true, "useCustomName": false, "variableReplacementStrategy": "originalfirst", "marks": 0, "customName": "", "scripts": {}, "unitTests": [], "prompt": "$\\frac{dy}{dx} \\bigg|_{(\\var{c},\\var{d})}=$[[0]]

\n(Answer in fraction form if necessary)

"}], "tags": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "advice": "$\\frac{d}{dx}(\\var{a}x+x^2y^2)=\\frac{d}{dx}(\\simplify{{constant}+{b}y})$

\n$\\var{a}+2x.y^2+x^2.2y.\\frac{dy}{dx}=\\var{b}.\\frac{dy}{dx}$

\n$(\\simplify{2x^2y-{b}}) \\frac{dy}{dx}=\\simplify{-{a}-2x*y^2}$

\n$\\frac{dy}{dx}=\\frac{\\simplify{-{a}-2x*y^2}}{\\simplify{2x^2*y-{b}}} =\\simplify{-(2x*y^2+{a})/(2x^2*y-{b})}$

\n$\\ $

\n$\\frac{dy}{dx} \\bigg|_{(\\var{c},\\var{d})}=\\simplify{{a}/{b}}$

\n\n", "type": "question", "contributors": [{"profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/384/", "name": "Clodagh Carroll"}, {"profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2346/", "name": "JPO AddMath"}], "extensions": [], "rulesets": {}, "preamble": {"css": "", "js": ""}, "ungrouped_variables": ["a", "b", "c", "d", "constant"], "variable_groups": []}]}], "contributors": [{"profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/384/", "name": "Clodagh Carroll"}, {"profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2346/", "name": "JPO AddMath"}]}