// Numbas version: finer_feedback_settings {"name": "Milena's copy of Chain rule ", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"ungrouped_variables": ["a1", "a2", "a3", "a4"], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "
Chain rule
"}, "variablesTest": {"condition": "", "maxRuns": 100}, "preamble": {"js": "", "css": ""}, "functions": {}, "advice": "\\(f(x)=\\var{a1}sin(\\var{a2}x^{\\var{a3}}+\\var{a4})\\)
\nRecall the chain rule: \\(\\frac{df}{dx}=\\frac{df}{du}.\\frac{du}{dx}\\)
\nlet \\(u=\\var{a2}x^{\\var{a3}}+\\var{a4}\\) then \\(f(x)=\\var{a1}sin(u)\\)
\n\\(\\frac{df}{du}=\\var{a1}cos(u)\\) and \\(\\frac{du}{dx}=\\var{a3}*\\var{a2}x^{\\var{a3}-1}\\)
\n\\(\\frac{df}{dx}=\\var{a1}cos(u).\\simplify{{a2}*{a3}x^{{a3}-1}}\\)
\n\\(\\frac{df}{dx}=\\simplify{{a1}*{a2}*{a3}x^{{a3}-1}}cos(\\var{a2}x^{\\var{a3}}+\\var{a4})\\)
", "tags": [], "statement": "Differentiate the function:
\n\\(f(x)=\\var{a1}cos(\\var{a2}x^{\\var{a3}}+\\var{a4})\\)
", "name": "Milena's copy of Chain rule ", "parts": [{"showCorrectAnswer": true, "prompt": "\\(\\frac{df}{dx}=\\) [[0]]
", "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "scripts": {}, "type": "gapfill", "gaps": [{"expectedvariablenames": [], "showFeedbackIcon": false, "vsetrange": [0, 1], "variableReplacementStrategy": "originalfirst", "showpreview": true, "checkingtype": "absdiff", "marks": "5", "answer": "-{a1}*{a2}*{a3}x^({a3}-1)sin({a2}x^{a3}+{a4})", "showCorrectAnswer": false, "vsetrangepoints": 5, "scripts": {}, "checkvariablenames": false, "type": "jme", "checkingaccuracy": 0.001, "variableReplacements": []}], "marks": 0, "variableReplacements": []}], "extensions": [], "variables": {"a3": {"definition": "random(2..6#1)", "name": "a3", "templateType": "randrange", "group": "Ungrouped variables", "description": ""}, "a4": {"definition": "random(3..12#1)", "name": "a4", "templateType": "randrange", "group": "Ungrouped variables", "description": ""}, "a2": {"definition": "random(2..6#1)", "name": "a2", "templateType": "randrange", "group": "Ungrouped variables", "description": ""}, "a1": {"definition": "random(2..7#1)", "name": "a1", "templateType": "randrange", "group": "Ungrouped variables", "description": ""}}, "variable_groups": [], "rulesets": {}, "type": "question", "contributors": [{"name": "Milena Venkova", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2169/"}]}]}], "contributors": [{"name": "Milena Venkova", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2169/"}]}