// Numbas version: exam_results_page_options {"name": "Implicit Differentiation", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"extensions": [], "advice": "

Hint:

\n

Note that we regard $y$ as a function of $x$. Hence we have (using the Chain Rule): $\\displaystyle \\frac{d(y^2)}{dx} = 2y\\frac{dy}{dx}$. And, using the Product Rule: $\\displaystyle \\frac{d(xy)}{dx} = y+x\\frac{dy}{dx}$.

\n

Now differentiate both sides of the relation with respect to $x$. Below is a worked solution to the problem.

\n

a) By 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

", "name": "Implicit Differentiation", "preamble": {"js": "", "css": ""}, "variables": {"a": {"definition": "-random(2..9)", "name": "a", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "c": {"definition": "random(3..9 except -a+1)", "name": "c", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "b": {"definition": "c-1", "name": "b", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "d": {"definition": "random(-3..3 except[0,1])", "name": "d", "group": "Ungrouped variables", "description": "", "templateType": "anything"}}, "functions": {}, "variablesTest": {"maxRuns": 100, "condition": ""}, "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"}, "parts": [{"sortAnswers": false, "gaps": [{"showFeedbackIcon": true, "checkVariableNames": false, "type": "jme", "failureRate": 1, "unitTests": [], "checkingType": "absdiff", "valuegenerators": [{"name": "x", "value": ""}, {"name": "y", "value": ""}], "answer": "(({( - a)} + ( - (2 * x))-{d}y) / ({b} + (2 * y)+{d}x))", "vsetRange": [0, 1], "checkingAccuracy": 0.001, "notallowed": {"message": "

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

", "strings": ["."], "partialCredit": 0, "showStrings": false}, "useCustomName": false, "vsetRangePoints": 5, "extendBaseMarkingAlgorithm": true, "scripts": {}, "answerSimplification": "all,!collectNumbers", "showPreview": true, "customName": "", "customMarkingAlgorithm": "", "marks": 2, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true}], "showFeedbackIcon": true, "prompt": "

Input your answer here:

\n

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

\n

Input all numbers as integers not as decimals.

", "customMarkingAlgorithm": "", "type": "gapfill", "showCorrectAnswer": true, "customName": "", "unitTests": [], "marks": 0, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "scripts": {}, "useCustomName": false, "extendBaseMarkingAlgorithm": true}], "ungrouped_variables": ["a", "c", "b", "d"], "statement": "

You are given the following relation between $x$ and $y$
\\[\\simplify{x^2+y^2+{d}x y+{a}x+{b}y}=\\var{c}\\]
where $y=y(x)$. Find $\\dfrac{dy}{dx}$.

", "tags": [], "rulesets": {"std": ["all", "fractionNumbers"]}, "variable_groups": [], "type": "question", "contributors": [{"name": "Gareth Woods", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/978/"}, {"name": "Aoife O'Brien", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1693/"}, {"name": "Antonia Wilmot-Smith", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2410/"}, {"name": "Leticija Dubickaite", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2461/"}, {"name": "Kevin Bohan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3363/"}]}]}], "contributors": [{"name": "Gareth Woods", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/978/"}, {"name": "Aoife O'Brien", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1693/"}, {"name": "Antonia Wilmot-Smith", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2410/"}, {"name": "Leticija Dubickaite", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2461/"}, {"name": "Kevin Bohan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3363/"}]}