// Numbas version: finer_feedback_settings {"name": "CF Maths Portfolio - Differentiation 9 - Chain Rule", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["c"], "name": "CF Maths Portfolio - Differentiation 9 - Chain Rule", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "

The solutions here require the use of the 'chain rule'.

\n

Certain functions often define the input variable $x$ as being within another function (a function of a function).

\n

For example,     $y=2(3x^3+1)^2$

\n

Here, an inner function is shown in brackets as: $3x^3+1$, which in turn is squared and then multiplied by two: $2(3x^3+1)^2$

\n

To differentiate such a function, we can use the chain rule, which states:

\n

$\\frac{dy}{dx}=\\frac{dy}{du}\\times\\frac{du}{dx}$

\n

This works by first defining the inner function as $u$. In this case: $u=3x^3+1$. Notice that this forms a new equation where $u$ can be differentiated in terms of $x$ using the power rule: $\\frac{du}{dx}=(3\\times3)x^{3-1}+(1\\times0)x^{0-1}=9x^2+0=9x^2$

\n

Using the $u$-substitution, the original equation becomes $y=2u^2$ and $y$ can now be differentiated with respect to $u$ with the power rule: $\\frac{dy}{du}=(2\\times2)u^{2-1}=4u^1=4u$

\n

We've now found both $\\frac{dy}{du}$    and    $\\frac{du}{dx}$

\n

$\\therefore\\;\\;\\;\\frac{dy}{dx}=4u\\times9x^2=36x^2u$

\n

The original expression for $u$ is then substiuted back in to give the final answer:

\n

$\\frac{dy}{dx}=36x^2(3x+1)$    this could be further expanded to give     $\\frac{dy}{dx}=108x^3+36x^2$

\n

With practice, as with many other mathematical processes, differentiating in this way can be achieved by 'inspection', where you mentally think ahead and carry out the steps without writing down the $u$ subsitution. It's always advisable to train yourself to use the full process first and move onto inspection when you're ready.

", "rulesets": {}, "parts": [{"prompt": "

$y=(x^2+\\var{c[2]})^4$

\n

$\\frac{dy}{dx}=$ [[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"vsetrangepoints": 5, "expectedvariablenames": ["x"], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "answersimplification": "all", "scripts": {}, "answer": "8x*(x^2+{c[2]})^3", "marks": "2", "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "

$y=(1-\\var{c[4]}x^2)^3$

\n

$\\frac{dy}{dx}=$ [[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"vsetrangepoints": 5, "expectedvariablenames": ["x"], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "answersimplification": "all", "scripts": {}, "answer": "-6{c[4]}x*(1-{c[4]}x^2)^2", "marks": "2", "checkvariablenames": true, "checkingtype": "absdiff", "type": "jme"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": [], "statement": "

Differentiate the following using the chain rule.

\n

Do not write out $dy/dx$; only input the differentiated right hand side of each equation.

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"c": {"definition": "repeat(random(2..9),8)", "templateType": "anything", "group": "Ungrouped variables", "name": "c", "description": ""}}, "metadata": {"description": "

Using the chain rule with polynomials.

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/514/"}]}]}], "contributors": [{"name": "", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/514/"}]}