// Numbas version: exam_results_page_options {"name": "Bill's copy of CF Maths Portfolio 6 - Differentitation of Trigonometric Functions", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["c", "p"], "name": "Bill's copy of CF Maths Portfolio 6 - Differentitation of Trigonometric Functions", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "

For any questions on differentiating trigonometric functions, study the following table of derivatives provided by mathcentre: http://www.mathcentre.ac.uk/resources/Engineering%20maths%20first%20aid%20kit/latexsource%20and%20diagrams/8_2.pdf

\n

\n

These questions use the chain rule.

\n

The earlier questions are easy to do by inspection, e.g using Part a:

\n

$y=\\sin(\\var{c[0]}x)$.

\n

We differentiate the term(s) inside the function, here the term is $\\var{c[0]}x$.

\n

Then we derive $\\sin$ of any function, giving us $\\cos$.

\n

Putting our results together, we get

\n

$\\var{c[0]}\\cos(\\var{c[0]}x)$.

\n

\n

\n

\n

We will now go through an entire worked example of the formal method of the chain rule using Part e.

\n

The expression we will be differentiating here is

\n

$y=\\tan^\\var{p[0]}(x)$.

\n

As a reminder, the chain rule is defined as

\n

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

\n

Now we let $u=\\tan(x)$, so then $y=u^\\var{p[0]}$

\n

This becomes an easy differentiation using $\\frac{dy}{du}\\times\\frac{du}{dx}$:

\n

Differentiate $y$ with respect to $u$, giving $\\simplify{{p[0]}u^{{p[0]}-1}}$.

\n

Then differentiate $u$ with respect to $x$, giving $\\sec^2x$.

\n

Multiply these results together, and substitue $\\tan$ back in for $u$.

\n

Your final result is therefore

\n

$\\var{p[0]}\\tan^{\\var{p[0]-1}}(x)\\sec^2(x)$.

\n

Note that you have to input powers of these trig functions in the form tan(x)^m and sec(x)^n for suitable values of m and n.

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

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

\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": "-2{c[2]}x*cos({c[2]}x^2)", "marks": "2", "checkvariablenames": true, "checkingtype": "absdiff", "type": "jme"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "

$y=-5\\cos(\\var{c[3]}x)+\\sin(\\var{c[4]}x)$

\n

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

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

$y=\\tan^\\var{p[0]}(x)$

\n

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

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

$y=\\cos(x^\\var{p[1]}-1)$

\n

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

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

Differentiate the following trigonometric functions using the chain rule.

\n

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

\n

Note that if you input an expression such as $x\\sin(x)$ then you need to include a multiplication sign as in x*sin(x).

\n

Also to input a power of a trig function such as $\\tan^5(x)$ then you input (tan(x))^5.

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"p": {"definition": "repeat(random(3..6),2)", "templateType": "anything", "group": "Ungrouped variables", "name": "p", "description": ""}, "c": {"definition": "shuffle(2..8)[0..5]", "templateType": "anything", "group": "Ungrouped variables", "name": "c", "description": "

coefficients

"}}, "metadata": {"description": "

More work on differentiation with trigonometric functions

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