// Numbas version: finer_feedback_settings {"name": "Luis's copy of Chain rule - square root of polynomial,", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"advice": "\n\t \n\t \n\t

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

\n\t \n\t \n\t", "preamble": {"css": "", "js": ""}, "question_groups": [{"questions": [], "pickingStrategy": "all-ordered", "pickQuestions": 0, "name": ""}], "name": "Luis's copy of Chain rule - square root of polynomial,", "variable_groups": [], "type": "question", "functions": {}, "variablesTest": {"maxRuns": 100, "condition": ""}, "statement": "

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

", "parts": [{"prompt": "\n\t\t\t

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

\n\t\t\t

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

\n\t\t\t

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

\n\t\t\t

Input all numbers as fractions or integers and not decimals.

\n\t\t\t

 

\n\t\t\t", "steps": [{"prompt": "\n\t\t\t\t\t \n\t\t\t\t\t \n\t\t\t\t\t

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\t\t\t\t\t \n\t\t\t\t\t \n\t\t\t\t\t", "type": "information", "showCorrectAnswer": true, "marks": 0, "scripts": {}}], "scripts": {}, "gaps": [{"checkvariablenames": false, "answersimplification": "std", "scripts": {}, "type": "jme", "checkingtype": "absdiff", "notallowed": {"showStrings": false, "message": "

Input all numbers as fractions or integers and not decimals.

", "partialCredit": 0, "strings": ["."]}, "expectedvariablenames": [], "marks": 3, "showCorrectAnswer": true, "checkingaccuracy": 1e-05, "vsetrange": [4, 5], "showpreview": true, "answer": "({a*m}x ^ {m-1})/(2*sqrt({a} * x^{m}+{b}))", "vsetrangepoints": 5}], "stepsPenalty": 0, "type": "gapfill", "showCorrectAnswer": true, "marks": 0}], "ungrouped_variables": ["a", "s1", "b", "m"], "metadata": {"notes": "\n\t\t

1/08/2012:

\n\t\t

Added tags.

\n\t\t

Added description.

\n\t\t

Checked calculation. OK - but had to introduce more stringent accuracy constraints - see below.

\n\t\t

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

\n\t\t

Got rid of a redundant ruleset.

\n\t\t

Improved display in prompt.

\n\t\t

Added decimal point to forbidden strings and included message not to input decimals.

\n\t\t

Increased accuracy threshold to abs diff of 0.00001 and tested the outcomes. OK.

\n\t\t", "description": "\n\t\t

Differentiate

\n\t\t

\\[ \\sqrt{a x^m+b})\\]

\n\t\t", "licence": "Creative Commons Attribution 4.0 International"}, "tags": ["Calculus", "MAS1601", "SFY0004", "Steps", "chain rule", "checked2015", "derivative of a function of a function", "differentiation", "function of a function"], "showQuestionGroupNames": false, "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers"]}, "variables": {"b": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "name": "b", "definition": "s1*random(1..9)"}, "a": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "name": "a", "definition": "random(2..9)"}, "s1": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "name": "s1", "definition": "random(1,-1)"}, "m": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "name": "m", "definition": "random(2..8)"}}, "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Luis Hernandez", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2870/"}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Luis Hernandez", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2870/"}]}