// Numbas version: exam_results_page_options {"name": "JD's copy of Chain rule - power of a quadratic,", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"statement": "

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

", "variablesTest": {"maxRuns": 100, "condition": ""}, "extensions": [], "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers"]}, "ungrouped_variables": ["a", "c", "b", "s2", "s1", "m", "n"], "variables": {"s2": {"definition": "random(1,-1)", "description": "", "name": "s2", "templateType": "anything", "group": "Ungrouped variables"}, "m": {"definition": "random(3..7)", "description": "", "name": "m", "templateType": "anything", "group": "Ungrouped variables"}, "a": {"definition": "random(2..9)", "description": "", "name": "a", "templateType": "anything", "group": "Ungrouped variables"}, "n": {"definition": "random(3..5)", "description": "", "name": "n", "templateType": "anything", "group": "Ungrouped variables"}, "c": {"definition": "s2*random(1..9)", "description": "", "name": "c", "templateType": "anything", "group": "Ungrouped variables"}, "s1": {"definition": "random(1,-1)", "description": "", "name": "s1", "templateType": "anything", "group": "Ungrouped variables"}, "b": {"definition": "s1*random(1..9)", "description": "", "name": "b", "templateType": "anything", "group": "Ungrouped variables"}}, "advice": "\n \n \n

$\\simplify[std]{f(x) = f(x) = ({a} * x^{m}+{c}x^2+{b})^{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(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]{{a} * x^{m}+{c}*x^2+{b}}$ and we have $f(u)=\\simplify[std]{u^{n}}$.
This gives
\\[\\begin{eqnarray*}\\frac{du}{dx} &=& \\simplify[std]{{m*a}x ^ {m -1}+{2*c}x}\\\\\n \n \\frac{df(u)}{du} &=& \\simplify[std]{{n}u^{n-1}} \\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]{({m*a}x ^ {m-1}+{2*c}x) * ({n}*u^{n-1})}\\\\\n \n &=&\\simplify[std]{{n}*({m*a}x^{m-1}+{2*c}*x)u^{n-1}}\\\\\n \n &=& \\simplify[std]{{n}*({m*a}x^{m-1}+{2*c}*x)({a}*x^{m}+{c}*x^2+{b})^{n-1}}\n \n \\end{eqnarray*}\\]
on replacing $u$ by $\\simplify[std]{{a}x^{m}+{c}x^2+{b}}$.

\n \n ", "variable_groups": [], "name": "JD's copy of Chain rule - power of a quadratic,", "metadata": {"description": "

Differentiate $\\displaystyle (ax^m+bx^2+c)^{n}$.

", "licence": "Creative Commons Attribution 4.0 International"}, "tags": [], "functions": {}, "parts": [{"steps": [{"variableReplacements": [], "customName": "", "unitTests": [], "scripts": {}, "useCustomName": false, "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 ", "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "type": "information", "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "marks": 0}], "variableReplacements": [], "customName": "", "sortAnswers": false, "unitTests": [], "scripts": {}, "stepsPenalty": 0, "useCustomName": false, "prompt": "

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

\n

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

\n

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

", "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "type": "gapfill", "showCorrectAnswer": true, "gaps": [{"customName": "", "failureRate": 1, "unitTests": [], "vsetRangePoints": 5, "checkingType": "absdiff", "useCustomName": false, "answer": "{n}({a*m}x ^ {m-1}+{2*c}x) * ({a} * x^{m}+{c}x^2+{b})^{n-1}", "customMarkingAlgorithm": "", "answerSimplification": "std", "showPreview": true, "showCorrectAnswer": true, "vsetRange": [0, 1], "variableReplacements": [], "marks": 3, "variableReplacementStrategy": "originalfirst", "scripts": {}, "checkingAccuracy": 0.001, "extendBaseMarkingAlgorithm": true, "type": "jme", "checkVariableNames": false, "showFeedbackIcon": true, "valuegenerators": [{"value": "", "name": "x"}]}], "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "marks": 0}], "preamble": {"js": "", "css": ""}, "type": "question", "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "JD Ichwan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3389/"}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "JD Ichwan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3389/"}]}