// Numbas version: finer_feedback_settings {"name": "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": [{"name": "differentiate quotient of trig functions", "statement": "
Differentiate the following functions using the quotient rule.
", "showQuestionGroupNames": false, "type": "question", "metadata": {"notes": "\n\t\t\n\t\t
1/08/2012:
\n\t\tAdded tags.
\n\t\tAdded description.
\n\t\tChecked calculation. OK.
\n\t\tChanged std rule set to include !noLeadingMinus, so expressions don't change order. Got rid of a redundant ruleset.
\n\t\tImproved display in various places.
\n\t\tChanged to 0 penalty for accessing Show steps in first question.
\n\t\t\n\t\t
\n\t\t", "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.
"}, "variable_groups": [], "functions": {}, "variables": {"b": {"templateType": "anything", "name": "b", "description": "", "group": "Ungrouped variables", "definition": "random(1..9)"}, "c": {"templateType": "anything", "name": "c", "description": "", "group": "Ungrouped variables", "definition": "if(b^2=c1^2,c1+1,c1)"}, "n": {"templateType": "anything", "name": "n", "description": "", "group": "Ungrouped variables", "definition": "if(m*c=n1*b,n1+1,n1)"}, "n1": {"templateType": "anything", "name": "n1", "description": "", "group": "Ungrouped variables", "definition": "s2*random(2..9)"}, "s2": {"templateType": "anything", "name": "s2", "description": "", "group": "Ungrouped variables", "definition": "random(1,-1)"}, "res": {"templateType": "anything", "name": "res", "description": "", "group": "Ungrouped variables", "definition": "m*a*c-n*b*a"}, "c1": {"templateType": "anything", "name": "c1", "description": "", "group": "Ungrouped variables", "definition": "s1*random(2..8)"}, "s1": {"templateType": "anything", "name": "s1", "description": "", "group": "Ungrouped variables", "definition": "random(1,-1)"}, "a": {"templateType": "anything", "name": "a", "description": "", "group": "Ungrouped variables", "definition": "random(2..9)"}, "m": {"templateType": "anything", "name": "m", "description": "", "group": "Ungrouped variables", "definition": "random(2..9)"}}, "advice": "\n\tThe 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)
\n\tFor 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\tHence 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\tHence $a=\\var{a*c}$
\n\tb)\\[\\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\tHence 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\tHence $b=\\var{-a*b}$
\n\tc)
\n\tWe 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*}\\]
Hence $c=\\var{res}$
\n\t", "tags": ["checked2015", "MAS1601"], "parts": [{"steps": [{"showCorrectAnswer": true, "type": "information", "scripts": {}, "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]{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", "showCorrectAnswer": true, "gaps": [{"expectedvariablenames": [], "type": "jme", "answer": "{a*c}", "scripts": {}, "showpreview": true, "vsetrange": [0, 1], "checkvariablenames": false, "checkingaccuracy": 0.001, "showCorrectAnswer": true, "vsetrangepoints": 5, "checkingtype": "absdiff", "marks": 3}], "type": "gapfill", "stepsPenalty": 0, "scripts": {}, "marks": 0}, {"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\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", "showCorrectAnswer": true, "type": "gapfill", "gaps": [{"expectedvariablenames": [], "type": "jme", "answer": "{-b*a}", "scripts": {}, "showpreview": true, "vsetrange": [0, 1], "checkvariablenames": false, "checkingaccuracy": 0.001, "showCorrectAnswer": true, "vsetrangepoints": 5, "checkingtype": "absdiff", "marks": 3}], "scripts": {}, "marks": 0}, {"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", "showCorrectAnswer": true, "type": "gapfill", "gaps": [{"expectedvariablenames": [], "type": "jme", "answer": "{res}", "scripts": {}, "showpreview": true, "vsetrange": [0, 1], "checkvariablenames": false, "checkingaccuracy": 0.001, "showCorrectAnswer": true, "vsetrangepoints": 5, "checkingtype": "absdiff", "marks": 3}], "scripts": {}, "marks": 0}], "variablesTest": {"condition": "", "maxRuns": 100}, "preamble": {"css": "", "js": ""}, "question_groups": [{"name": "", "pickQuestions": 0, "pickingStrategy": "all-ordered", "questions": []}], "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noleadingMinus"]}, "ungrouped_variables": ["a", "c", "b", "s2", "s1", "m", "n", "res", "n1", "c1"], "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/"}]}