// Numbas version: exam_results_page_options {"name": "Sheet 2 Q5 - product rule with custom feedback", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Sheet 2 Q5 - product rule with custom feedback", "tags": [], "metadata": {"description": "Product rule question with feedback given for anticipated student errors.", "licence": "Creative Commons Attribution-NonCommercial 4.0 International"}, "statement": "

Differentiate $f(x)=2xe^{6x}$.

", "advice": "", "rulesets": {}, "extensions": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

$f'(x)=$ [[0]]

", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "malrules:\n [\n [\"12*e^(6x)\", \"Note that the function you need to differentiate is $2x \\\\times e^{6x}$ i.e. one function of $x$ multiplied by another function of $x$. Therefore, you need the product rule.\"],\n [\"2*e^(6x)+2x*e^(6x)\", \"Almost there! What is the extra step you need when differentiating $e^{6x}$ (where the power is more than just $x$)?\"],\n [\"2*e^(6x)+12x*e^(6x-1)\", \"The power rule is only valid for a variable to the power of a number (e.g. $x^6$). Therefore, you cannot use the power rule for $e^{6x}$ (since the variable is in the power).\"],\n [\"2*e^(6x)+12x^2*e^(6x-1)\", \"The power rule is only valid for a variable to the power of a number (e.g. $x^6$). Therefore, you cannot use the power rule for $e^{6x}$ (since the variable is in the power).\"],\n [\"2*e^(6x)+12x*e^(5x)\", \"The power rule is only valid for a variable to the power of a number (e.g. $x^6$). Therefore, you cannot use the power rule for $e^{6x}$ (since the variable is in the power).\"],\n [\"2*e^(6x)+12x^2*e^(5x)\", \"The power rule is only valid for a variable to the power of a number (e.g. $x^6$). Therefore, you cannot use the power rule for $e^{6x}$ (since the variable is in the power).\"],\n [\"2e^(6x)+12x*e^x\", \"Remember, the power on the exponential never changes when you differentiate it!\"]\n ]\n\nparsed_malrules: \n map(\n [\"expr\":parse(x[0]),\"feedback\":x[1]],\n x,\n malrules\n )\n\nagree_malrules (Do the student's answer and the expected answer agree on each of the sets of variable values?):\n map(\n len(filter(not x ,x,map(\n try(\n resultsEqual(unset(question_definitions,eval(studentexpr,vars)),unset(question_definitions,eval(malrule[\"expr\"],vars)),settings[\"checkingType\"],settings[\"checkingAccuracy\"]),\n message,\n false\n ),\n vars,\n vset\n )))