// Numbas version: finer_feedback_settings {"name": "cormac's copy of Chain rule - exponential of polynomial, ", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "name": "cormac's copy of Chain rule - exponential of polynomial, ", "metadata": {"description": "

Differentiate $\\displaystyle e^{ax^{m} +bx^2+c}$

", "licence": "Creative Commons Attribution 4.0 International"}, "parts": [{"showCorrectAnswer": true, "showFeedbackIcon": true, "prompt": "

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

\n

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

", "type": "gapfill", "gaps": [{"showCorrectAnswer": true, "answer": "({m*a}x^{m-1}+{2*b}x)*e^({a}x^{m} +{b}x^2+{c})", "showpreview": true, "marks": 3, "scripts": {}, "vsetrange": [0, 1], "variableReplacementStrategy": "originalfirst", "expectedvariablenames": [], "showFeedbackIcon": false, "type": "jme", "checkingtype": "absdiff", "answersimplification": "std", "checkingaccuracy": 0.001, "vsetrangepoints": 5, "checkvariablenames": false, "variableReplacements": []}], "marks": 0, "scripts": {}, "variableReplacementStrategy": "originalfirst", "variableReplacements": []}], "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers"]}, "statement": "

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

", "functions": {}, "advice": "\n\t \n\t \n\t

$\\simplify[std]{f(x) = e^({a}x^{m} +{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\t \n\t \n\t \n\t

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

\n\t \n\t \n\t \n\t

Hence on substituting into the chain rule above we get:

\n\t \n\t \n\t \n\t

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

\n\t \n\t \n\t", "variablesTest": {"maxRuns": 100, "condition": ""}, "tags": [], "ungrouped_variables": ["a", "c", "b", "s2", "s1", "m"], "extensions": [], "preamble": {"css": "", "js": ""}, "variables": {"s2": {"description": "", "definition": "random(1,-1)", "group": "Ungrouped variables", "templateType": "anything", "name": "s2"}, "c": {"description": "", "definition": "s2*random(1..9)", "group": "Ungrouped variables", "templateType": "anything", "name": "c"}, "a": {"description": "", "definition": "random(2..9)", "group": "Ungrouped variables", "templateType": "anything", "name": "a"}, "s1": {"description": "", "definition": "random(1,-1)", "group": "Ungrouped variables", "templateType": "anything", "name": "s1"}, "m": {"description": "", "definition": "random(3..4)", "group": "Ungrouped variables", "templateType": "anything", "name": "m"}, "b": {"description": "", "definition": "s1*random(1..9)", "group": "Ungrouped variables", "templateType": "anything", "name": "b"}}, "type": "question", "contributors": [{"name": "cormac breen", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/306/"}]}]}], "contributors": [{"name": "cormac breen", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/306/"}]}