// Numbas version: finer_feedback_settings {"name": "Simon's copy of Quotient rule - differentiate quotient of trig functions", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"extensions": [], "functions": {}, "metadata": {"description": "
Find $\\displaystyle \\frac{d}{dx}\\left(\\frac{m\\sin(ax)+n\\cos(ax)}{b\\sin(ax)+c\\cos(ax)}\\right)$. Three part question.
", "licence": "Creative Commons Attribution 4.0 International"}, "advice": "The quotient rule says that if $u$ and $v$ are functions of $x$ then
\\[\\simplify[std]{Diff(u/v,x,1) = (v * Diff(u,x,1) - u * Diff(v,x,1))/v^2}\\]
a)
\nFor this example:
\n\\[\\simplify[std]{u = sin({a}x)}\\Rightarrow \\simplify[std]{Diff(u,x,1) = {a}cos({a}x)}\\]
\n\\[\\simplify[std]{v = {b}sin({a}x)+{c}cos({a}x)} \\Rightarrow \\simplify[std]{Diff(v,x,1) = {a*b}cos({a}x)+{-a*c}sin({a}x)}\\]
\nHence on substituting into the quotient rule above we get:
\n\\[\\begin{eqnarray*} \\frac{df}{dx}&=&\\simplify[std]{({a}cos({a}x)({b}sin({a}x)+{c}cos({a}x))-sin({a}x)({a*b}cos({a}x)+{-a*c}sin({a}x)))/({b}sin({a}x)+{c}cos({a}x))^2}\\\\ &=&\\simplify[std]{({a*b} cos({a}x) sin({a}x)+{a*c} cos({a}x)^2-{a*b} sin({a}x)cos({a}x)+{a*c}sin({a}x)^2)/({b}sin({a}x)+{c}cos({a}x))^2}\\\\ &=&\\simplify[std]{({a*c}cos({a}x)^2+{a*c}sin({a}x)^2)/({b}sin({a}x)+{c}cos({a}x))^2}\\\\ &=&\\simplify[std]{({a*c}(cos({a}x)^2+sin({a}x)^2))/({b}sin({a}x)+{c}cos({a}x))^2}\\\\ &=&\\simplify[std]{({a*c})/({b}sin({a}x)+{c}cos({a}x))^2} \\end{eqnarray*}\\]
\nHence $a=\\var{a*c}$
\nb)\\[\\simplify[std]{u = cos({a}x)}\\Rightarrow \\simplify[std]{Diff(u,x,1) = -{a}sin({a}x)}\\]
\n\\[\\simplify[std]{v = {b}sin({a}x)+{c}cos({a}x)} \\Rightarrow \\simplify[std]{Diff(v,x,1) = {a*b}cos({a}x)+{-a*c}sin({a}x)}\\]
\nHence on substituting into the quotient rule above we get:
\n\\[\\begin{eqnarray*} \\frac{dg}{dx}&=&\\simplify[std]{({-a}sin({a}x)({b}sin({a}x)+{c}cos({a}x))-cos({a}x)({a*b}cos({a}x)+{-a*c}sin({a}x)))/({b}sin({a}x)+{c}cos({a}x))^2}\\\\ &=&\\simplify[std]{({-a*b}sin({a}x)^2-{a*c} sin({a}x)cos({a}x)-{a*b}cos({a}x)^2+{a*c}sin({a})cos({a}x))/({b}sin({a}x)+{c}cos({a}x))^2}\\\\ &=&\\simplify[std]{({-a*b}sin({a}x)^2-{a*b}cos({a}x)^2)/({b}sin({a}x)+{c}cos({a}x))^2}\\\\ &=&\\simplify[std]{({-a*b}(sin({a}x)^2+cos({a}x)^2))/({b}sin({a}x)+{c}cos({a}x))^2}\\\\ &=&\\simplify[std]{({-a*b})/({b}sin({a}x)+{c}cos({a}x))^2} \\end{eqnarray*}\\]
\nHence $b=\\var{-a*b}$
\nc)
\nWe have that $h(x)=\\simplify[std]{{m}f(x)+{n}g(x)}$
Hence \\[\\begin{eqnarray*}\\frac{dh}{dx} &=& \\simplify[std]{{m}*Diff(f,x,1)+{n}*Diff(g,x,1)}\\\\ &=&\\simplify[std]{{m}*({a*c}/({b}sin({a}x)+{c}cos({a}x))^2)+{n}({-a*b}/({b}sin({a}x)+{c}cos({a}x))^2)}\\\\ &=&\\simplify[std]{(({m}*{a*c})+({n}*{-a*b}))/({b}sin({a}x)+{c}cos({a}x))^2}\\\\ &=&\\simplify[std]{{res}/({b}sin({a}x)+{c}cos({a}x))^2} \\end{eqnarray*}\\]
Hence $c=\\var{res}$
", "statement": "Differentiate the following functions using the quotient rule.
", "variable_groups": [], "name": "Simon's copy of Quotient rule - differentiate quotient of trig functions", "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noleadingMinus"]}, "tags": [], "variables": {"res": {"name": "res", "description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "m*a*c-n*b*a"}, "s2": {"name": "s2", "description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(1,-1)"}, "n1": {"name": "n1", "description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "s2*random(2..9)"}, "b": {"name": "b", "description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(1..9)"}, "c": {"name": "c", "description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "if(b^2=c1^2,c1+1,c1)"}, "s1": {"name": "s1", "description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(1,-1)"}, "a": {"name": "a", "description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..9)"}, "n": {"name": "n", "description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "if(m*c=n1*b,n1+1,n1)"}, "c1": {"name": "c1", "description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "s1*random(2..8)"}, "m": {"name": "m", "description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..9)"}}, "parts": [{"prompt": "\n\t\t\t\\[\\simplify[std]{f(x) = (sin({a}x))/({b}sin({a}x)+{c}cos({a}x))}\\]
\n\t\t\tYou are given that \\[\\simplify[std]{Diff(f,x,1) = a / ({b}sin({a}x)+{c}cos({a}x))^2}\\]
\n\t\t\tfor a number $a$. You have to find $a$.
\n\t\t\t$a=\\;$[[0]]
\n\t\t\t", "adaptiveMarkingPenalty": 0, "scripts": {}, "marks": 0, "customName": "", "useCustomName": false, "sortAnswers": false, "variableReplacements": [], "unitTests": [], "customMarkingAlgorithm": "", "gaps": [{"adaptiveMarkingPenalty": 0, "scripts": {}, "variableReplacements": [], "checkingType": "absdiff", "customMarkingAlgorithm": "", "valuegenerators": [], "showPreview": true, "answer": "{a*c}", "showCorrectAnswer": true, "checkingAccuracy": 0.001, "marks": 3, "customName": "", "useCustomName": false, "unitTests": [], "variableReplacementStrategy": "originalfirst", "vsetRangePoints": 5, "failureRate": 1, "type": "jme", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "vsetRange": [0, 1], "checkVariableNames": false}], "variableReplacementStrategy": "originalfirst", "type": "gapfill", "extendBaseMarkingAlgorithm": true, "steps": [{"prompt": "The quotient rule says that if $u$ and $v$ are functions of $x$ then
\\[\\simplify[std]{Diff(u/v,x,1) = (v * Diff(u,x,1) - u * Diff(v,x,1))/v^2}\\]
\\[\\simplify[std]{g(x) = (cos({a}x))/({b}sin({a}x)+{c}cos({a}x))}\\]
\n\t\t\t \n\t\t\t \n\t\t\t \n\t\t\tYou are given that \\[\\simplify[std]{Diff(g,x,1) = b / ({b}sin({a}x)+{c}cos({a}x))^2}\\]
\n\t\t\t \n\t\t\t \n\t\t\t \n\t\t\tfor a number $b$. You have to find $b$.
\n\t\t\t \n\t\t\t \n\t\t\t \n\t\t\t$b=\\;$[[0]]
\n\t\t\t \n\t\t\t \n\t\t\t", "adaptiveMarkingPenalty": 0, "scripts": {}, "marks": 0, "customName": "", "useCustomName": false, "sortAnswers": false, "variableReplacements": [], "unitTests": [], "customMarkingAlgorithm": "", "gaps": [{"adaptiveMarkingPenalty": 0, "scripts": {}, "variableReplacements": [], "checkingType": "absdiff", "customMarkingAlgorithm": "", "valuegenerators": [], "showPreview": true, "answer": "{-b*a}", "showCorrectAnswer": true, "checkingAccuracy": 0.001, "marks": 3, "customName": "", "useCustomName": false, "unitTests": [], "variableReplacementStrategy": "originalfirst", "vsetRangePoints": 5, "failureRate": 1, "type": "jme", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "vsetRange": [0, 1], "checkVariableNames": false}], "variableReplacementStrategy": "originalfirst", "type": "gapfill", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "showCorrectAnswer": true}, {"prompt": "\n\t\t\t\\[\\simplify[std]{h(x) = ({m}sin({a}x)+{n}cos({a}x))/({b}sin({a}x)+{c}cos({a}x))}\\]
\n\t\t\tYou are given that \\[\\simplify[std]{Diff(h,x,1) = c / ({b}sin({a}x)+{c}cos({a}x))^2}\\]
\n\t\t\tfor a number $c$. You have to find $c$.
\n\t\t\t$c=\\;$[[0]]
\n\t\t\t", "adaptiveMarkingPenalty": 0, "scripts": {}, "marks": 0, "customName": "", "useCustomName": false, "sortAnswers": false, "variableReplacements": [], "unitTests": [], "customMarkingAlgorithm": "", "gaps": [{"adaptiveMarkingPenalty": 0, "scripts": {}, "variableReplacements": [], "checkingType": "absdiff", "customMarkingAlgorithm": "", "valuegenerators": [], "showPreview": true, "answer": "{res}", "showCorrectAnswer": true, "checkingAccuracy": 0.001, "marks": 3, "customName": "", "useCustomName": false, "unitTests": [], "variableReplacementStrategy": "originalfirst", "vsetRangePoints": 5, "failureRate": 1, "type": "jme", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "vsetRange": [0, 1], "checkVariableNames": false}], "variableReplacementStrategy": "originalfirst", "type": "gapfill", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "showCorrectAnswer": true}], "ungrouped_variables": ["a", "c", "b", "s2", "s1", "m", "n", "res", "n1", "c1"], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "type": "question", "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}