// Numbas version: finer_feedback_settings {"name": "Product rule", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "name": "Product rule", "tags": [], "advice": "\n

The product rule says that if $u$ and $v$ are functions of $x$ then
\\[\\simplify[std]{Diff(u * v,x,1) = u * Diff(v,x,1) + v * Diff(u,x,1)}\\]

\n

For this example:
\\[\\simplify[std]{u = x^{m}} \\Rightarrow \\simplify[std]{Diff(u,x,1) = {m}x^{m-1}}\\]

\n

\\[\\simplify[std]{v = sin({b} * x+{a})e^({n}x)}\\Rightarrow \\simplify[std]{Diff(v,x,1) = {b} * cos({b} * x+{a})e^({n}x)+{n}sin({b}x+{a})e^({n}x)}\\]

\n

Hence on substituting into the product rule above we get:

\n

\\[\\begin{eqnarray*}\\frac{df}{dx} &=& \\simplify[std]{{m}x^{m-1}sin({b} * x+{a})e^({n}x)+x^{m}({b} * cos({b} * x+{a}) * e ^ ({n} * x) + {n} * sin({b} * x+{a}) * e ^ ({n} * x))}\\\\ &=&\\simplify[std]{x^{m-1}e^({n}x)({b}x*cos({b}x+{a})+{n}x*sin({b}x+{a})+{m}sin({b}x+{a}))}\\\\ &=&\\simplify[std]{x^{m-1}e^({n}x)({b}x*cos({b}x+{a})+({n}x+{m})*sin({b}x+{a}))} \\end{eqnarray*}\\]
Hence $g(x)=\\simplify[std]{{b}x*cos({b}x+{a})+({n}x+{m})*sin({b}x+{a})}$

\n \n ", "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers"], "surdf": [{"pattern": "a/sqrt(b)", "result": "(sqrt(b)*a)/b"}]}, "parts": [{"stepspenalty": 0.0, "prompt": "\n

$\\simplify[std]{f(x) = x^{m}sin({b}x + {a}) * e ^ ({n} * x)}$

\n

The answer is of the form:

\n

$\\displaystyle \\frac{df}{dx}= \\simplify[std]{x^{m-1}e^({n}x)g(x)}$ for a function $g(x)$. You have to find $g(x)$

\n

$g(x)=\\;$[[0]]

\n

if you input a function of the form $xf(x)$ where $f(x)$ is a function, then you must input it as $x*f(x)$ with * for multiplication e.g. input $x*\\sin(ax+b)$ and not $xsin(ax+b)$.

\n

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

\n \n ", "gaps": [{"checkingaccuracy": 0.001, "vsetrange": [0.0, 1.0], "vsetrangepoints": 5.0, "checkingtype": "absdiff", "answersimplification": "std", "marks": 3.0, "answer": "{b}x * cos({b} * x+{a}) + ({n}x+{m}) * sin({b} * x+{a})", "type": "jme"}], "steps": [{"prompt": "

The product rule says that if $u$ and $v$ are functions of $x$ then
\\[\\simplify[std]{Diff(u * v,x,1) = u * Diff(v,x,1) + v * Diff(u,x,1)}\\]

", "type": "information", "marks": 0.0}], "marks": 0.0, "type": "gapfill"}], "extensions": [], "statement": "

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

", "variable_groups": [], "progress": "ready", "type": "question", "variables": {"a": {"definition": "random(1..9)", "name": "a"}, "b": {"definition": "s1*random(2..9)", "name": "b"}, "s2": {"definition": "random(1,-1)", "name": "s2"}, "s1": {"definition": "random(1,-1)", "name": "s1"}, "m": {"definition": "random(2..8)", "name": "m"}, "n": {"definition": "s2*random(2..5)", "name": "n"}}, "metadata": {"notes": "\n \t\t \t\t

31/07/2012:

\n \t\t \t\t

Checked calculation.

\n \t\t \t\t

Added tags.

\n \t\t \t\t

Allowed no penalty on looking at Show steps.

\n \t\t \t\t

Corrected occurences of the form xsin and xcos to x*sin, x*cos.

\n \t\t \t\t

Included message warning about the input of functions of the form xsin etc.

\n \t\t \t\t

Show steps needs to be resolved. Now resolved.

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

Differentiate $f(x)=x^{m}\\sin(ax+b) e^{nx}$.

\n \t\t \t\t

The answer is of the form:
$\\displaystyle \\frac{df}{dx}= x^{m-1}e^{nx}g(x)$ for a function $g(x)$.

\n \t\t \t\t

Find $g(x)$.

\n \t\t \n \t\t", "licence": "Creative Commons Attribution 4.0 International"}, "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/"}]}