// Numbas version: finer_feedback_settings {"name": "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": [{"metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Find $\\displaystyle \\frac{d}{dx}\\left(\\frac{m\\sin(ax)+n\\cos(ax)}{b\\sin(ax)+c\\cos(ax)}\\right)$. Three part question.

"}, "preamble": {"css": "", "js": ""}, "advice": "\n\t

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}\\]

\n\t

a)

\n\t

For this example:

\n\t

\\[\\simplify[std]{u = sin({a}x)}\\Rightarrow \\simplify[std]{Diff(u,x,1) = {a}cos({a}x)}\\]

\n\t

\\[\\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)}\\]

\n\t

Hence on substituting into the quotient rule above we get:

\n\t

\\[\\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*}\\]

\n\t

Hence $a=\\var{a*c}$

\n\t

b)\\[\\simplify[std]{u = cos({a}x)}\\Rightarrow \\simplify[std]{Diff(u,x,1) = -{a}sin({a}x)}\\]

\n\t

\\[\\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)}\\]

\n\t

Hence on substituting into the quotient rule above we get:

\n\t

\\[\\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*}\\]

\n\t

Hence $b=\\var{-a*b}$

\n\t

c)

\n\t

We 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(f,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*}\\]

\n\t

Hence $c=\\var{res}$

\n\t", "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noleadingMinus"]}, "extensions": [], "name": "Quotient rule - differentiate quotient of trig functions", "ungrouped_variables": ["a", "c", "b", "s2", "s1", "m", "n", "res", "n1", "c1"], "functions": {}, "tags": [], "variablesTest": {"condition": "", "maxRuns": 100}, "variable_groups": [], "variables": {"b": {"name": "b", "group": "Ungrouped variables", "definition": "random(1..9)", "description": "", "templateType": "anything"}, "res": {"name": "res", "group": "Ungrouped variables", "definition": "m*a*c-n*b*a", "description": "", "templateType": "anything"}, "s2": {"name": "s2", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything"}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(2..9)", "description": "", "templateType": "anything"}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "if(m*c=n1*b,n1+1,n1)", "description": "", "templateType": "anything"}, "c1": {"name": "c1", "group": "Ungrouped variables", "definition": "s1*random(2..8)", "description": "", "templateType": "anything"}, "m": {"name": "m", "group": "Ungrouped variables", "definition": "random(2..9)", "description": "", "templateType": "anything"}, "n1": {"name": "n1", "group": "Ungrouped variables", "definition": "s2*random(2..9)", "description": "", "templateType": "anything"}, "s1": {"name": "s1", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything"}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "if(b^2=c1^2,c1+1,c1)", "description": "", "templateType": "anything"}}, "statement": "

Differentiate the following functions using the quotient rule.

", "parts": [{"customName": "", "type": "gapfill", "customMarkingAlgorithm": "", "steps": [{"customName": "", "type": "information", "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "marks": 0, "showFeedbackIcon": true, "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}\\]

", "scripts": {}, "useCustomName": false, "showCorrectAnswer": true, "unitTests": [], "variableReplacements": [], "extendBaseMarkingAlgorithm": true}], "variableReplacementStrategy": "originalfirst", "marks": 0, "showFeedbackIcon": true, "gaps": [{"customName": "", "type": "jme", "customMarkingAlgorithm": "", "vsetRangePoints": 5, "checkingAccuracy": 0.001, "variableReplacementStrategy": "originalfirst", "marks": 3, "showFeedbackIcon": true, "valuegenerators": [], "failureRate": 1, "answer": "{a*c}", "checkVariableNames": false, "scripts": {}, "useCustomName": false, "showPreview": true, "checkingType": "absdiff", "vsetRange": [0, 1], "showCorrectAnswer": true, "unitTests": [], "variableReplacements": [], "extendBaseMarkingAlgorithm": true}], "sortAnswers": false, "prompt": "\n\t\t\t

\\[\\simplify[std]{f(x) = (sin({a}x))/({b}sin({a}x)+{c}cos({a}x))}\\]

\n\t\t\t

You are given that \\[\\simplify[std]{Diff(f,x,1) = a / ({b}sin({a}x)+{c}cos({a}x))^2}\\]

\n\t\t\t

for a number $a$. You have to find $a$.

\n\t\t\t

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

\n\t\t\t", "scripts": {}, "useCustomName": false, "stepsPenalty": 0, "showCorrectAnswer": true, "unitTests": [], "variableReplacements": [], "extendBaseMarkingAlgorithm": true}, {"customName": "", "type": "gapfill", "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "marks": 0, "showFeedbackIcon": true, "gaps": [{"customName": "", "type": "jme", "customMarkingAlgorithm": "", "vsetRangePoints": 5, "checkingAccuracy": 0.001, "variableReplacementStrategy": "originalfirst", "marks": 3, "showFeedbackIcon": true, "valuegenerators": [], "failureRate": 1, "answer": "{-b*a}", "checkVariableNames": false, "scripts": {}, "useCustomName": false, "showPreview": true, "checkingType": "absdiff", "vsetRange": [0, 1], "showCorrectAnswer": true, "unitTests": [], "variableReplacements": [], "extendBaseMarkingAlgorithm": true}], "sortAnswers": false, "prompt": "\n\t\t\t \n\t\t\t \n\t\t\t

\\[\\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\t

You 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\t

for 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", "scripts": {}, "useCustomName": false, "showCorrectAnswer": true, "unitTests": [], "variableReplacements": [], "extendBaseMarkingAlgorithm": true}, {"customName": "", "type": "gapfill", "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "marks": 0, "showFeedbackIcon": true, "gaps": [{"customName": "", "type": "jme", "customMarkingAlgorithm": "", "vsetRangePoints": 5, "checkingAccuracy": 0.001, "variableReplacementStrategy": "originalfirst", "marks": 3, "showFeedbackIcon": true, "valuegenerators": [], "failureRate": 1, "answer": "{res}", "checkVariableNames": false, "scripts": {}, "useCustomName": false, "showPreview": true, "checkingType": "absdiff", "vsetRange": [0, 1], "showCorrectAnswer": true, "unitTests": [], "variableReplacements": [], "extendBaseMarkingAlgorithm": true}], "sortAnswers": false, "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\t

You are given that \\[\\simplify[std]{Diff(h,x,1) = c / ({b}sin({a}x)+{c}cos({a}x))^2}\\]

\n\t\t\t

for a number $c$. You have to find $c$.

\n\t\t\t

$c=\\;$[[0]]

\n\t\t\t", "scripts": {}, "useCustomName": false, "showCorrectAnswer": true, "unitTests": [], "variableReplacements": [], "extendBaseMarkingAlgorithm": true}], "type": "question", "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}