// Numbas version: finer_feedback_settings {"name": "test 1", "metadata": {"description": "

This is the test description. Placeholder text can be changed per test.

", "licence": "All rights reserved"}, "duration": 1800, "percentPass": 0, "showQuestionGroupNames": false, "showstudentname": true, "question_groups": [{"name": "Group", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": ["", "", ""], "questions": [{"name": "differentiate by power rule", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Bj\u00f6rn R\u00fcffer", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/8088/"}], "tags": [], "metadata": {"description": "

this is a test only

", "licence": "All rights reserved"}, "statement": "

Let $f(x) = \\simplify{ {a} x^{n} }$.

", "advice": "

$f(x)= \\simplify{ x^{n} }$.

\n

\n

By power rule:

\n

\n

$f'(x)= \\simplify{ {n}x^{n-1} }$.

", "rulesets": {}, "variables": {"n": {"name": "n", "group": "Ungrouped variables", "definition": "random(2 .. 10#1)", "description": "

the exponent

", "templateType": "randrange"}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(2 .. 8#1)", "description": "

the coefficient

", "templateType": "randrange"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["n", "a"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What is $f'(x)$?

", "alternatives": [{"type": "jme", "useCustomName": false, "customName": "", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "alternativeFeedbackMessage": "

Not quite right.

", "useAlternativeFeedback": true, "answer": "{a} * x^{n-1}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "valuegenerators": [{"name": "x", "value": ""}]}, {"type": "jme", "useCustomName": false, "customName": "", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "alternativeFeedbackMessage": "

Not quite right.

", "useAlternativeFeedback": true, "answer": "{(n-1) * a} * x^{n-1}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "valuegenerators": [{"name": "x", "value": ""}]}], "answer": "{n * a} * x^{n-1}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "valuegenerators": [{"name": "x", "value": ""}]}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What is $\\int f(x)\\,\\mathrm{d}x$? Use $C$ for the constant of integration.

", "answer": "{a/(n+1)}*x^{n+1}+C", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "valuegenerators": [{"name": "c", "value": ""}, {"name": "x", "value": ""}]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "Arithmetics of complex numbers II", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Multiplication and addition of complex numbers. Four parts.

"}, "parts": [{"variableReplacementStrategy": "originalfirst", "marks": 0, "adaptiveMarkingPenalty": 0, "unitTests": [], "scripts": {}, "prompt": "

$\\var{e6*i}(\\simplify[std]{{a}})\\;=\\;$[[0]].

", "sortAnswers": false, "useCustomName": false, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "type": "gapfill", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "customName": "", "showFeedbackIcon": true, "gaps": [{"marks": 1, "answerSimplification": "std", "scripts": {}, "checkVariableNames": false, "checkingType": "absdiff", "valuegenerators": [], "failureRate": 1, "notallowed": {"showStrings": false, "partialCredit": 0, "message": "

Input all numbers as fractions or integers. Also do not include brackets in your answers.

", "strings": [".", ")", "("]}, "variableReplacements": [], "vsetRange": [0, 1], "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "customName": "", "vsetRangePoints": 5, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "checkingAccuracy": 0.001, "unitTests": [], "answer": "{a*e6*i}", "extendBaseMarkingAlgorithm": true, "type": "jme", "showCorrectAnswer": true, "showPreview": true, "useCustomName": false}]}, {"variableReplacementStrategy": "originalfirst", "marks": 0, "adaptiveMarkingPenalty": 0, "unitTests": [], "scripts": {}, "prompt": "

$(\\simplify[std]{{a}})(\\simplify[std]{{z4}})\\;=\\;$[[0]].

", "sortAnswers": false, "useCustomName": false, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "type": "gapfill", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "customName": "", "showFeedbackIcon": true, "gaps": [{"marks": 1, "answerSimplification": "std", "scripts": {}, "checkVariableNames": false, "checkingType": "absdiff", "valuegenerators": [], "failureRate": 1, "notallowed": {"showStrings": false, "partialCredit": 0, "message": "

Input all numbers as fractions or integers. Also do not include brackets in your answers.

", "strings": [".", ")", "("]}, "variableReplacements": [], "vsetRange": [0, 1], "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "customName": "", "vsetRangePoints": 5, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "checkingAccuracy": 0.001, "unitTests": [], "answer": "({a*z4})", "extendBaseMarkingAlgorithm": true, "type": "jme", "showCorrectAnswer": true, "showPreview": true, "useCustomName": false}]}, {"variableReplacementStrategy": "originalfirst", "marks": 0, "adaptiveMarkingPenalty": 0, "unitTests": [], "scripts": {}, "prompt": "

$\\simplify[std,!otherNumbers]{{a}*({a3} + {b3} * i + {c3} * i ^ 2 + {d3} * i ^ 3)}\\;=\\;$[[0]].

", "sortAnswers": false, "useCustomName": false, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "type": "gapfill", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "customName": "", "showFeedbackIcon": true, "gaps": [{"marks": 1, "notallowed": {"showStrings": false, "partialCredit": 0, "message": "

Input all numbers as fractions or integers. Also do not include brackets in your answers.

", "strings": [".", ")", "("]}, "scripts": {}, "checkVariableNames": false, "checkingType": "absdiff", "valuegenerators": [], "failureRate": 1, "variableReplacements": [], "vsetRange": [0, 1], "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "customName": "", "vsetRangePoints": 5, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "checkingAccuracy": 0.001, "unitTests": [], "answer": "{(a3 + b3 * i + c3 * i ^ 2 + d3 * i ^ 3)*a}", "extendBaseMarkingAlgorithm": true, "type": "jme", "showCorrectAnswer": true, "showPreview": true, "useCustomName": false}]}, {"variableReplacementStrategy": "originalfirst", "marks": 0, "adaptiveMarkingPenalty": 0, "unitTests": [], "scripts": {}, "prompt": "

$(\\simplify[std]{{a}})(\\simplify[std]{ {z1}})(\\simplify[std]{ {z3}})\\;=\\;$[[0]].

", "sortAnswers": false, "useCustomName": false, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "type": "gapfill", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "customName": "", "showFeedbackIcon": true, "gaps": [{"marks": 1, "notallowed": {"showStrings": false, "partialCredit": 0, "message": "

Input all numbers as fractions or integers. Also do not include brackets in your answers.

", "strings": [".", ")", "("]}, "scripts": {}, "checkVariableNames": false, "checkingType": "absdiff", "valuegenerators": [], "failureRate": 1, "variableReplacements": [], "vsetRange": [0, 1], "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "customName": "", "vsetRangePoints": 5, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "checkingAccuracy": 0.001, "unitTests": [], "answer": "{a*(z1)*(z3)}", "extendBaseMarkingAlgorithm": true, "type": "jme", "showCorrectAnswer": true, "showPreview": true, "useCustomName": false}]}], "ungrouped_variables": ["a", "f6", "s3", "s2", "s1", "d3", "s6", "s5", "s4", "c3", "a3", "b3", "d6", "e6", "z4", "z1", "z2", "z3"], "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "variables": {"a": {"group": "Ungrouped variables", "name": "a", "description": "", "definition": "s1*random(1..9)+s2*random(1..9)*i", "templateType": "anything"}, "s1": {"group": "Ungrouped variables", "name": "s1", "description": "", "definition": "random(1,-1)", "templateType": "anything"}, "s4": {"group": "Ungrouped variables", "name": "s4", "description": "", "definition": "random(1,-1)", "templateType": "anything"}, "z1": {"group": "Ungrouped variables", "name": "z1", "description": "", "definition": "s3*random(1..9)+f6*i", "templateType": "anything"}, "d3": {"group": "Ungrouped variables", "name": "d3", "description": "", "definition": "s4*random(1..9)", "templateType": "anything"}, "a3": {"group": "Ungrouped variables", "name": "a3", "description": "", "definition": "s1*random(1..9)", "templateType": "anything"}, "b3": {"group": "Ungrouped variables", "name": "b3", "description": "", "definition": "s2*random(1..9)", "templateType": "anything"}, "s5": {"group": "Ungrouped variables", "name": "s5", "description": "", "definition": "random(1,-1)", "templateType": "anything"}, "z3": {"group": "Ungrouped variables", "name": "z3", "description": "", "definition": "s6*random(1..9)+e6*i", "templateType": "anything"}, "e6": {"group": "Ungrouped variables", "name": "e6", "description": "", "definition": "s5*random(3..9)", "templateType": "anything"}, "z4": {"group": "Ungrouped variables", "name": "z4", "description": "", "definition": "s6*s2*random(1..9)+s3*s5*random(1..9)*i", "templateType": "anything"}, "f6": {"group": "Ungrouped variables", "name": "f6", "description": "", "definition": "s6*random(1..9)", "templateType": "anything"}, "d6": {"group": "Ungrouped variables", "name": "d6", "description": "", "definition": "s4*random(1..9)", "templateType": "anything"}, "c3": {"group": "Ungrouped variables", "name": "c3", "description": "", "definition": "s3*random(1..9)", "templateType": "anything"}, "s3": {"group": "Ungrouped variables", "name": "s3", "description": "", "definition": "random(1,-1)", "templateType": "anything"}, "z2": {"group": "Ungrouped variables", "name": "z2", "description": "", "definition": "s2*random(1..9)+d6*i", "templateType": "anything"}, "s2": {"group": "Ungrouped variables", "name": "s2", "description": "", "definition": "random(1,-1)", "templateType": "anything"}, "s6": {"group": "Ungrouped variables", "name": "s6", "description": "", "definition": "random(1,-1)", "templateType": "anything"}}, "variable_groups": [], "tags": ["addition of complex numbers", "algebra of complex numbers", "checked2015", "complex numbers", "multiplication of complex numbers"], "preamble": {"css": "", "js": ""}, "statement": "

Find the following complex numbers in the form $a+bi\\;$ where $a$ and $b$ are real.

\n

Input all numbers as fractions or integers. Also do not include brackets in your answers.

", "functions": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "advice": "

a)

\n

The solution is given by:

\n


$\\simplify[std]{{e6*i}}(\\simplify[std]{{a}})=\\simplify[std]{{a*e6*i}}$

\n


b)

\n

$\\simplify[std]{{a}*{z4}={a*z4}}$

\n


c)
\\[ \\begin{eqnarray*} \\simplify[std,!otherNumbers]{{a}*({a3} + {b3} * i + {c3} * i ^ 2 + {d3} * i ^ 3)}&=&\\simplify[std]{{a}*{a3 + b3 * i + c3 * i ^ 2 + d3 * i ^ 3}}\\\\ &=&\\simplify[std]{{a*(a3 + b3 * i + c3 * i ^ 2 + d3 * i ^ 3)}} \\end{eqnarray*} \\]
d)

\n

This can be calculated by using the formula twice, firstly to multiply out the first two sets of parentheses, 

\n

and then to multiply the result of that calculation by the third set of parentheses.

\n

So we obtain:
\\[ \\begin{eqnarray*} (\\var{a})(\\var{z1})(\\var{z3})&=&((\\var{a})(\\var{z1}))(\\var{z3})\\\\ &=&(\\var{a*(z1)})(\\var{z3})\\\\ &=&\\var{a*(z1)*(z3)} \\end{eqnarray*} \\]

", "type": "question"}, {"name": "Chain rule - binomial", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}], "tags": ["Calculus", "calculus", "chain rule", "checked2015", "derivative of a function of a function", "differentiation", "Differentiation", "function of a function", "Steps", "steps"], "metadata": {"description": "

Differentiate $\\displaystyle (ax^m+b)^{n}$.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

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

", "advice": "

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

\n

The chain rule says that if $f(x)=g(h(x))$ then

\n

\\[\\simplify[std]{f'(x) = h'(x)g'(h(x))}\\]

\n

One way to find $f'(x)$ is to let $u=h(x)$ then we have $f(u)=g(u)$ as a function of $u$.

\n

Then we use the chain rule in the form:

\n

\\[\\frac{\\mathrm{d}f}{\\mathrm{d}x} = \\frac{\\mathrm{d}u}{\\mathrm{d}x}\\frac{\\mathrm{d}f(u)}{\\mathrm{d}u}\\]

\n

Once you have worked this out, you replace $u$ by $h(x)$ and your answer is now in terms of $x$.

\n

For this example, we let $u=\\simplify[std]{{a} * x^{m}+{b}}$ and we have $f(u)=\\simplify[std]{u^{n}}$.

\n

This gives

\n

\\begin{align}
\\frac{\\mathrm{d}u}{\\mathrm{d}x} &= \\simplify[std]{{m*a}x ^ {m -1}} \\\\[1em]
\\frac{\\mathrm{d}f(u)}{\\mathrm{d}u} &= \\simplify[std]{{n}u^{n-1}}
\\end{align}

\n

Hence on substituting into the chain rule above we get:

\n

\\begin{align}
\\frac{\\mathrm{d}f}{\\mathrm{d}x} &= \\simplify[std]{{m*a}x ^ {m-1} * ({n}*u^{n-1})} \\\\
&= \\simplify[std]{{m*a*n}x^{m-1}u^{n-1}} \\\\
&= \\simplify[std]{{m*a*n}x^{m-1}({a}*x^{m}+{b})^{n-1}}
\\end{align}

\n

on replacing $u$ by $\\simplify[std]{{a}x^{m}+{b}}$.

", "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers"], "surdf": [{"result": "(sqrt(b)*a)/b", "pattern": "a/sqrt(b)"}]}, "variables": {"s1": {"name": "s1", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything"}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "s1*random(1..9)", "description": "", "templateType": "anything"}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "random(5..9)", "description": "", "templateType": "anything"}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(2..9)", "description": "", "templateType": "anything"}, "m": {"name": "m", "group": "Ungrouped variables", "definition": "random(2..9)", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "s1", "b", "m", "n"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

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

\n

$\\displaystyle \\frac{\\mathrm{d}f}{\\mathrm{d}x}=$ [[0]]

\n

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

", "stepsPenalty": 0, "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The chain rule says that if $f(x)=g(h(x))$ then

\n

\\[\\simplify[std]{f'(x) = h'(x)g'(h(x))}\\]

\n

One way to find $f'(x)$ is to let $u=h(x)$ then we have $f(u)=g(u)$ as a function of $u$.

\n

Then we use the chain rule in the form:

\n

\\[\\frac{\\mathrm{d}f}{\\mathrm{d}x} = \\frac{\\mathrm{d}u}{\\mathrm{d}x}\\frac{\\mathrm{d}f}{\\mathrm{d}u}\\]

\n

Once you have worked this out, you replace $u$ by $h(x)$ and your answer is now in terms of $x$.

"}], "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 3, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{a*m*n}x ^ {m-1} * ({a} * x^{m}+{b})^{n-1}", "answerSimplification": "std", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": true, "singleLetterVariables": false, "allowUnknownFunctions": false, "implicitFunctionComposition": false, "valuegenerators": [{"name": "x", "value": ""}]}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}]}], "navigation": {"allowregen": true, "reverse": true, "browse": true, "allowsteps": true, "showfrontpage": true, "showresultspage": "oncompletion", "navigatemode": "sequence", "onleave": {"action": "none", "message": ""}, "preventleave": true, "startpassword": ""}, "timing": {"allowPause": false, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "warn", "message": "

5 minutes left, hurry up!

"}}, "feedback": {"showactualmark": true, "showtotalmark": true, "showanswerstate": true, "allowrevealanswer": true, "advicethreshold": 0, "intro": "

This is the introduction to this test. Placeholder text can be changed per test.

", "reviewshowscore": true, "reviewshowfeedback": true, "reviewshowexpectedanswer": true, "reviewshowadvice": true, "feedbackmessages": [], "enterreviewmodeimmediately": true, "showexpectedanswerswhen": "inreview", "showpartfeedbackmessageswhen": "always", "showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showadvicewhen": "inreview"}, "type": "exam", "contributors": [{"name": "Bj\u00f6rn R\u00fcffer", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/8088/"}], "extensions": [], "custom_part_types": [], "resources": []}