// Numbas version: finer_feedback_settings {"name": "Simon's copy of SFY0004 Implicit 2", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"parts": [{"extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "showCorrectAnswer": true, "scripts": {}, "sortAnswers": false, "stepsPenalty": 0, "marks": 0, "unitTests": [], "prompt": "

Using implicit differentiation find $\\displaystyle \\frac{dy}{dx}$ in terms of $x$ and $y$.

\n

Input your answer here:

\n

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

\n

Input all numbers as integers not as decimals.

\n

If you want more help click on Show steps - you will not lose any marks.

", "variableReplacementStrategy": "originalfirst", "steps": [{"prompt": "\n

Note that we regard $y$ as a function of $x$.

\n

Hence we have (using the chain rule):

\n

$\\displaystyle \\frac{d(y^2)}{dx} = 2y\\frac{dy}{dx}$

\n

And , using the product rule:

\n

$\\displaystyle \\frac{d(xy)}{dx} = y+x\\frac{dy}{dx}$.

\n

 Now differentiate both sides of the relation with respect to $x$.

\n ", "type": "information", "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "showCorrectAnswer": true, "scripts": {}, "variableReplacements": [], "unitTests": [], "customMarkingAlgorithm": "", "marks": 0, "extendBaseMarkingAlgorithm": true}], "gaps": [{"notallowed": {"strings": ["."], "message": "

Input all numbers as integers or as fractions, not as decimals.

", "partialCredit": 0, "showStrings": false}, "checkingType": "absdiff", "showPreview": true, "failureRate": 1, "answerSimplification": "all,!collectNumbers", "showFeedbackIcon": true, "showCorrectAnswer": true, "scripts": {}, "vsetRangePoints": 5, "vsetRange": [0, 1], "marks": 2, "unitTests": [], "checkingAccuracy": 0.001, "checkVariableNames": false, "type": "jme", "variableReplacementStrategy": "originalfirst", "answer": "(({( - a)} + ( - (2 * x))-{d}y) / ({b} + (2 * y)+{d}x))", "variableReplacements": [], "expectedVariableNames": [], "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true}], "variableReplacements": [], "customMarkingAlgorithm": "", "type": "gapfill"}, {"extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "showCorrectAnswer": true, "scripts": {}, "sortAnswers": false, "marks": 0, "unitTests": [], "prompt": "\n

Find the two points $(0,a),\\;\\;(0,b),\\;\\;a \\lt b$ which lie on the curve given by the relation.

\n

$a=\\;$[[0]]

\n

$b=\\;$[[1]]

\n

(remember that $a \\lt b$).

\n ", "variableReplacementStrategy": "originalfirst", "gaps": [{"minValue": "-c", "showFeedbackIcon": true, "showCorrectAnswer": true, "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "marks": 1, "unitTests": [], "mustBeReduced": false, "mustBeReducedPC": 0, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "maxValue": "-c", "correctAnswerFraction": false, "variableReplacements": [], "customMarkingAlgorithm": "", "allowFractions": false, "extendBaseMarkingAlgorithm": true}, {"minValue": "1", "showFeedbackIcon": true, "showCorrectAnswer": true, "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "marks": 1, "unitTests": [], "mustBeReduced": false, "mustBeReducedPC": 0, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "maxValue": "1", "correctAnswerFraction": false, "variableReplacements": [], "customMarkingAlgorithm": "", "allowFractions": false, "extendBaseMarkingAlgorithm": true}], "variableReplacements": [], "customMarkingAlgorithm": "", "type": "gapfill"}, {"extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "showCorrectAnswer": true, "scripts": {}, "sortAnswers": false, "marks": 0, "unitTests": [], "prompt": "\n

Hence find the equations of the tangents at the points $(0,a)$ and $(0,b)$.

\n

Input all numbers as integers or as fractions, not as decimals.

\n

Equation of tangent at $(0,a)$:

\n

Find the gradient of the tangent at $(0,a)$.

\n

Gradient=[[0]].

\n

Hence the equation of the tangent at $(0,a)$ is:

\n

$y = \\;$[[1]]

\n

Equation of tangent at $(0,b)$:

\n

Find the gradient of the tangent at $(0,b)$.

\n

Gradient=[[2]].

\n

Hence the equation of the tangent at $(0,b)$ is:

\n

$y = \\;$[[3]]

\n ", "variableReplacementStrategy": "originalfirst", "gaps": [{"notallowed": {"strings": ["."], "message": "

Input as an integer or as a fraction, not as a decimal.

", "partialCredit": 0, "showStrings": false}, "checkingType": "absdiff", "showPreview": true, "failureRate": 1, "answerSimplification": "std", "showFeedbackIcon": true, "showCorrectAnswer": true, "scripts": {}, "vsetRangePoints": 5, "vsetRange": [0, 1], "marks": 1, "unitTests": [], "checkingAccuracy": 0.001, "checkVariableNames": false, "type": "jme", "variableReplacementStrategy": "originalfirst", "answer": "{a-d*c}/{c+1}", "variableReplacements": [], "expectedVariableNames": [], "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true}, {"notallowed": {"strings": ["."], "message": "

Input all numbers as integers or as fractions, not as decimals.

", "partialCredit": 0, "showStrings": false}, "checkingType": "absdiff", "showPreview": true, "failureRate": 1, "answerSimplification": "std", "showFeedbackIcon": true, "showCorrectAnswer": true, "scripts": {}, "vsetRangePoints": 5, "vsetRange": [0, 1], "marks": 1, "unitTests": [], "checkingAccuracy": 0.001, "checkVariableNames": false, "type": "jme", "variableReplacementStrategy": "originalfirst", "answer": "{a-d*c}/{c+1}*x-{c}", "variableReplacements": [], "expectedVariableNames": [], "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true}, {"notallowed": {"strings": ["."], "message": "

Input as an integer or as a fraction, not as a decimal.

", "partialCredit": 0, "showStrings": false}, "checkingType": "absdiff", "showPreview": true, "failureRate": 1, "answerSimplification": "std", "showFeedbackIcon": true, "showCorrectAnswer": true, "scripts": {}, "vsetRangePoints": 5, "vsetRange": [0, 1], "marks": 1, "unitTests": [], "checkingAccuracy": 0.001, "checkVariableNames": false, "type": "jme", "variableReplacementStrategy": "originalfirst", "answer": "{-a-d}/{c+1}", "variableReplacements": [], "expectedVariableNames": [], "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true}, {"notallowed": {"strings": ["."], "message": "

Input all numbers as integers or as fractions, not as decimals.

", "partialCredit": 0, "showStrings": false}, "checkingType": "absdiff", "showPreview": true, "failureRate": 1, "answerSimplification": "std", "showFeedbackIcon": true, "showCorrectAnswer": true, "scripts": {}, "vsetRangePoints": 5, "vsetRange": [0, 1], "marks": 1, "unitTests": [], "checkingAccuracy": 0.001, "checkVariableNames": false, "type": "jme", "variableReplacementStrategy": "originalfirst", "answer": "{-a-d}/{c+1}*x+{1}", "variableReplacements": [], "expectedVariableNames": [], "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true}], "variableReplacements": [], "customMarkingAlgorithm": "", "type": "gapfill"}], "extensions": [], "tags": [], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "\n \t\t

Implicit differentiation.

\n \t\t

Given $x^2+y^2+dxy +ax+by=c$ find $\\displaystyle \\frac{dy}{dx}$ in terms of $x$ and $y$.

\n \t\t

Also find two points on the curve where $x=0$ and find the equation of the tangent at those points.

\n \t\t

 

\n \t\t"}, "name": "Simon's copy of SFY0004 Implicit 2", "statement": "

Given the following relation between $x$ and $y$
\\[\\simplify[all,!collectNumbers]{x^2+y^2+{d}x y+{a}x+{b}y}=\\var{c}\\]
answer the following questions.

", "variable_groups": [], "advice": "

Note from the chain rule that $\\frac{d}{dx}(xy) = x\\frac{dy}{dx}+y\\frac{d}{dx}(x)= x\\frac{dy}{dx}+y$

\n

\n

(a)

\n

On differentiating both sides of the equation implicitly we get
\\[2x + \\simplify[all,!collectNumbers]{2y*Diff(y,x,1) +{d}(y+x*Diff(y,x,1))+ {a} + {b} *Diff(y,x,1)} = 0\\]
Collecting terms in $\\displaystyle\\frac{dy}{dx}$ and rearranging the equation we get
\\[( \\simplify[all,!collectNumbers]{({b} + 2y+{d}x)} )\\frac{dy}{dx} = \\simplify[all,!collectNumbers]{{ -a} -2x-{d}y}\\] and hence on further rearranging:

\n

\\[\\frac{dy}{dx} = \\simplify[all,!collectNumbers]{({ - a} - 2 * x-{d}y) / ({b} + (2 * y)+{d}x)}\\]

\n

\n

(b)

\n

On putting $x=0$ in the relation we get:

\n

\\[\\simplify{y^2+{b}y={c}} \\Rightarrow \\simplify{y^2+{b}y-{c}=0 }\\Rightarrow (y+\\var{c})(y-1)=0\\]

\n

Hence $a=-\\var{c}$ and $b=1$.

\n

\n

(c)

\n

First we find the tangent at the point $(0,-\\var{c})$.

\n

We find using the formula we found for $\\frac{dy}{dx}$ in part (a) that the gradient at  $(0,-\\var{c})$ is:

\n

\\[\\frac{dy}{dx}=\\frac{\\simplify[all,!collectnumbers]{{-a}+{d*c}}}{\\var{b}-\\var{2*c}}=\\simplify[all,fractionNumbers]{{a-d*c}/{c+1}}\\]

\n

As the tangent goes through the point $(0,\\var{-c})$ i.e. at $x=0,\\;\\;y=-\\var{c}$ we see that the equation of the tangent is:

\n

\\[y=\\simplify[all,fractionNumbers]{{a-d*c}/{c+1}}x-\\var{c}\\]

\n

Next we find that the gradient at  $(0,1)$ is:

\n

\\[\\frac{dy}{dx}=\\frac{\\simplify[all,!collectnumbers]{{-a}-{d}}}{\\var{b}+2}=\\simplify[all,fractionNumbers]{-{a+d}/{c+1}}\\]

\n

As the tangent goes through the point $(0,1)$ i.e. at $x=0,\\;\\;y=1$ we see that the equation of the tangent is:

\n

\\[y=\\simplify[all,fractionNumbers]{-{a+d}/{c+1}}x+1\\]

", "ungrouped_variables": ["a", "c", "b", "d"], "variables": {"d": {"name": "d", "group": "Ungrouped variables", "definition": "random(-3..3 except 0)", "templateType": "anything", "description": ""}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(2..9 except -a+1)", "templateType": "anything", "description": ""}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "c-1", "templateType": "anything", "description": ""}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "-random(1..9)", "templateType": "anything", "description": ""}}, "preamble": {"css": "", "js": ""}, "functions": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "rulesets": {"std": ["all", "fractionNumbers"]}, "type": "question", "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}]}], "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}