// Numbas version: exam_results_page_options {"name": "Harry's copy of Chain rule - trig and quadratic, ", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Harry's copy of Chain rule - trig and quadratic, ", "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers"]}, "ungrouped_variables": ["a", "s2", "c", "b", "s1"], "type": "question", "variables": {"c": {"name": "c", "group": "Ungrouped variables", "templateType": "anything", "definition": "s2*random(1..9)", "description": ""}, "a": {"name": "a", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(2..9)", "description": ""}, "s2": {"name": "s2", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(1,-1)", "description": ""}, "s1": {"name": "s1", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(1,-1)", "description": ""}, "b": {"name": "b", "group": "Ungrouped variables", "templateType": "anything", "definition": "s1*random(1..9)", "description": ""}}, "functions": {}, "variablesTest": {"maxRuns": 100, "condition": ""}, "statement": "

Differentiate the following function $f(x)$ using the chain rule.

", "variable_groups": [], "question_groups": [{"name": "", "pickQuestions": 0, "pickingStrategy": "all-ordered", "questions": []}], "parts": [{"type": "gapfill", "stepsPenalty": 0, "scripts": {}, "prompt": "

\\[\\simplify[std]{f(x) = cos(e^({a}x) +{b}x^2+{c})}\\]

\n

$\\displaystyle \\frac{df}{dx}=\\;$[[0]]

\n

Click on Show steps for more information. You will not lose any marks by doing so.

", "showCorrectAnswer": true, "steps": [{"type": "information", "showCorrectAnswer": true, "marks": 0, "scripts": {}, "prompt": "\n \n \n

The chain rule says that if $f(x)=g(h(x))$ then
\\[\\simplify[std]{f'(x) = h'(x)g'(h(x))}\\]
One way to find $f'(x)$ is to let $u=h(x)$ then we have $f(u)=g(u)$ as a function of $u$.
Then we use the chain rule in the form:
\\[\\frac{df}{dx} = \\frac{du}{dx}\\frac{df}{du}\\]
Once you have worked this out, you replace $u$ by $h(x)$ and your answer is now in terms of $x$.

\n \n "}], "gaps": [{"type": "jme", "checkingaccuracy": 0.001, "expectedvariablenames": [], "checkingtype": "absdiff", "vsetrangepoints": 5, "showCorrectAnswer": true, "vsetrange": [0, 1], "answersimplification": "std", "scripts": {}, "marks": 3, "answer": "-({a}e^({a}x)+{2*b}x)*sin(e^({a}x) +{b}x^2+{c})", "checkvariablenames": false, "showpreview": true}], "marks": 0}], "tags": ["Calculus", "MAS1601", "SFY0004", "Steps", "chain rule", "checked2015", "derivative of a function of a function", "differentiation", "function of a function"], "showQuestionGroupNames": false, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "notes": "

1/08/2012:

\n

Added tags.

\n

Added description.

\n

Checked calculation. OK.

\n

Added information about Show steps. Altered to 0 marks lost rather than 1.

\n

Got rid of a redundant ruleset.

\n

Improved display in prompt.

", "description": "

Differentiate $\\displaystyle \\cos(e^{ax}+bx^2+c)$

"}, "advice": "\n \n \n

$\\simplify[std]{f(x) = cos(e^({a}x) +{b}x^2+{c})}$
The chain rule says that if $f(x)=g(h(x))$ then
\\[\\simplify[std]{f'(x) = h'(x)g'(h(x))}\\]
One way to find $f'(x)$ is to let $u=h(x)$ then we have $f(u)=g(u)$ as a function of $u$.
Then we use the chain rule in the form:
\\[\\frac{df}{dx} = \\frac{du}{dx}\\frac{df(u)}{du}\\]
Once you have worked this out, you replace $u$ by $h(x)$ and your answer is now in terms of $x$.

\n \n \n \n

For this example, we let $u=\\simplify[std]{e^({a}x) +{b}x^2+{c}}$ and we have $f(u)=\\simplify[std]{cos(u)}$.
This gives
\\[\\begin{eqnarray*}\\frac{du}{dx} &=& \\simplify[std]{{a}e^({a}x) +{2*b}x}\\\\\n \n \\frac{df(u)}{du} &=& \\simplify[std]{-sin(u)} \\end{eqnarray*}\\]

\n \n \n \n

Hence on substituting into the chain rule above we get:

\n \n \n \n

\\[\\begin{eqnarray*}\\frac{df}{dx} &=& \\simplify[std]{({a}e^({a}x) +{2*b}x) * (-sin(u))}\\\\\n \n &=& \\simplify[std]{-({a}e^({a}x) +{2*b}x)*sin(e^({a}x) +{b}x^2+{c})}\n \n \\end{eqnarray*}\\]
on replacing $u$ by $\\simplify[std]{e^({a}x) +{b}x^2+{c}}$.

\n \n ", "preamble": {"js": "", "css": ""}, "contributors": [{"name": "Harry Flynn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/976/"}]}]}], "contributors": [{"name": "Harry Flynn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/976/"}]}