// Numbas version: exam_results_page_options
{"name": "Indefinite integral (custom feedback)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variablesTest": {"maxRuns": 100, "condition": ""}, "functions": {}, "tags": [], "parts": [{"variableReplacementStrategy": "originalfirst", "customMarkingAlgorithm": "", "showFeedbackIcon": true, "variableReplacements": [], "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "gaps": [{"variableReplacementStrategy": "originalfirst", "failureRate": 1, "showPreview": true, "customMarkingAlgorithm": "malrules:\n [\n [\"({b}/{a})*(e^({a}*x))-(({b1}/{a1})*cos({a1}*x))+({a2}/{c3+1})*(x^{(c3+1)})\", \"Almost there! Did you forget to include the integration constant?\"],\n [\"{a*b}*(e^({a}*x))+{a1*b1}*cos({a1}*x)+{a2}*{c3}*x^{(c3-1)}\", \"It looks like you have differentiated rather than integrating.\"],\n [\"{a*b}*(e^({a}*x))+{a1*b1}*cos({a1}*x)+{a2}*{c3}*x^{(c3-1)}+C\", \"It looks like you have differentiated rather than integrating.\"],\n [\"{a*b}*(e^({a}*x))+{a1*b1}*cos({a1}*x)+({a2}/{c3+1})*x^{(c3+1)}+C\", \"Are you sure that you have integrated each term rather than differentiating?\"],\n [\"{a*b}*(e^({a}*x))+{a1*b1}*cos({a1}*x)+({a2}/{c3+1})*x^{(c3+1)}\", \"Are you sure that you have integrated each term rather than differentiating?\"],\n [\"({b}/{a})*(e^({a}*x))+{a1*b1}*cos({a1}*x)+({a2}/{c3+1})*x^{(c3+1)}+C\", \"Are you sure that you have integrated each term rather than differentiating?\"],\n [\"({b}/{a})*(e^({a}*x))+{a1*b1}*cos({a1}*x)+({a2}/{c3+1})*x^{(c3+1)}\", \"Are you sure that you have integrated each term rather than differentiating?\"],\n [\"{a*b}*(e^({a}*x))-({b1}/{a1})*cos({a1}*x)+({a2}/{c3+1})*x^{(c3+1)}\", \"Are you sure that you have integrated each term rather than differentiating?\"],\n [\"{a*b}*(e^({a}*x))-({b1}/{a1})*cos({a1}*x)+({a2}/{c3+1})*x^{(c3+1)}+C\", \"Are you sure that you have integrated each term rather than differentiating?\"],\n [\"({b}/{a})*(e^({a}*x))+({(b1)}/{a1})*cos({a1}*x)+({a2}/{c3+1})*(x^{(c3+1)})+C\", \"Double check the rule for integrating $\\\\sin x $.\"],\n [\"({b}/{a})*(e^({a}*x))+({(b1)}/{a1})*cos({a1}*x)+({a2}/{c3+1})*(x^{(c3+1)})\", \"Double check the rule for integrating $\\\\sin x $.\"],\n [\"{b}*(e^({a}*x))-{b1}*cos({a1}*x)+({a2}/{c3+1})*(x^{(c3+1)})+C\", \"Have another look at how you integrated $\\\\var{b} e^{\\\\var{a}x}$ and $\\\\sin (\\\\var{a1}x)$. Did you remember to divide by the number in front of $x$ in each case?\"],\n [\"{b}*(e^({a}*x))-{b1}*cos({a1}*x)+({a2}/{c3+1})*(x^{(c3+1)})\", \"Have another look at how you integrated $\\\\var{b} e^{\\\\var{a}x}$ and $\\\\sin (\\\\var{a1}x)$. Did you remember to divide by the number in front of $x$ in each case?\"],\n [\"{b}*(e^({a}*x))+{b1}*cos({a1}*x)+({a2}/{c3+1})*(x^{(c3+1)})+C\", \"Have another look at how you integrated $\\\\var{b} e^{\\\\var{a}x}$ and $\\\\sin (\\\\var{a1}x)$. Did you remember to divide by the number in front of $x$ in each case? Also, double check the rule for integrating $\\\\sin(x)$.\"],\n [\"{b}*(e^({a}*x))+{b1}*cos({a1}*x)+({a2}/{c3+1})*(x^{(c3+1)})\", \"Have another look at how you integrated $\\\\var{b} e^{\\\\var{a}x}$ and $\\\\sin (\\\\var{a1}x)$. Did you remember to divide by the number in front of $x$ in each case? Also, double check the rule for integrating $\\\\sin(x)$.\"],\n [\"({b}/{a})*(e^({a}*x))-{b1}*cos({a1}*x)+({a2}/{c3+1})*(x^{(c3+1)})\", \"Have another look at how you integrated $\\\\sin (\\\\var{a1}x)$. Did you remember to divide by the number in front of $x$?\"],\n [\"({b}/{a})*(e^({a}*x))-{b1}*cos({a1}*x)+({a2}/{c3+1})*(x^{(c3+1)})+C\", \"Have another look at how you integrated $\\\\sin (\\\\var{a1}x)$. Did you remember to divide by the number in front of $x$?\"],\n [\"({b}/{a})*(e^({a}*x))+{b1}*cos({a1}*x)+({a2}/{c3+1})*(x^{(c3+1)})\", \"Have another look at how you integrated $\\\\sin (\\\\var{a1}x)$. Did you remember to divide by the number in front of $x$? Also, double check the rule for integrating $\\\\sin(x)$.\"],\n [\"({b}/{a})*(e^({a}*x))+{b1}*cos({a1}*x)+({a2}/{c3+1})*(x^{(c3+1)})+C\", \"Have another look at how you integrated $\\\\sin (\\\\var{a1}x)$. Did you remember to divide by the number in front of $x$? Also, double check the rule for integrating $\\\\sin(x)$.\"],\n [\"{b}*(e^({a}*x))-({b1}/{a1})*cos({a1}*x)+({a2}/{c3+1})*(x^{(c3+1)})\", \"Have another look at how you integrated $\\\\var{b} e^{\\\\var{a}x}$. Did you remember to divide by the number in front of $x$?\"],\n [\"{b}*(e^({a}*x))-({b1}/{a1})*cos({a1}*x)+({a2}/{c3+1})*(x^{(c3+1)})+C\", \"Have another look at how you integrated $\\\\var{b} e^{\\\\var{a}x}$. Did you remember to divide by the number in front of $x$?\"],\n [\"{b}*(e^({a}*x))+({b1}/{a1})*cos({a1}*x)+({a2}/{c3+1})*(x^{(c3+1)})\", \"Have another look at how you integrated $\\\\var{b} e^{\\\\var{a}x}$. Did you remember to divide by the number in front of $x$? Also, double check the rule for integrating $\\\\sin(x)$.\"],\n [\"{b}*(e^({a}*x))+({b1}/{a1})*cos({a1}*x)+({a2}/{c3+1})*(x^{(c3+1)})+C\", \"Have another look at how you integrated $\\\\var{b} e^{\\\\var{a}x}$. Did you remember to divide by the number in front of $x$? Also, double check the rule for integrating $\\\\sin(x)$.\"] \n ]\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 )))
$\\simplify[std]{f(x) = {b}*e^({a}*x)+{b1}*Sin({a1}*x)+{a2}*x^{c3}}$
\n$\\displaystyle \\int\\;f(x)\\,dx=\\;$[[0]]
\nInput all numbers as integers or fractions and not decimals. Remember to include the constant of integration $C$.
\nClick on Show steps to get more information. You will not lose any marks by doing so.
", "type": "gapfill", "sortAnswers": false, "scripts": {}, "marks": 0, "steps": [{"variableReplacementStrategy": "originalfirst", "scripts": {}, "customMarkingAlgorithm": "", "showFeedbackIcon": true, "marks": 0, "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "unitTests": [], "prompt": "Note that \\[\\begin{eqnarray*} &\\int& \\;x^n\\;dx&=&\\frac{x^{n+1}}{n+1}+C,\\;\\;n \\neq -1\\\\ &\\int& \\;\\sin(ax)\\;dx &=& -\\frac{1}{a}\\cos(ax)+C\\\\ &\\int& \\;e^{ax}\\;dx &=& \\frac{1}{a}e^{ax}+C\\\\ \\end{eqnarray*}\\]
", "type": "information"}], "unitTests": [], "stepsPenalty": 0}], "rulesets": {"surdf": [{"pattern": "a/sqrt(b)", "result": "(sqrt(b)*a)/b"}], "std": ["all", "!collectNumbers", "fractionNumbers"]}, "variable_groups": [], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "Find $\\displaystyle \\int ae ^ {bx}+ c\\sin(dx) + px ^ {q}\\;dx$.
"}, "name": "Indefinite integral (custom feedback)", "advice": "\nNote that \\[\\begin{eqnarray*} &\\int& \\;x^n\\;dx&=&\\frac{x^{n+1}}{n+1}+C,\\;\\;n \\neq -1\\\\ &\\int& \\;\\sin(ax)\\;dx &=& -\\frac{1}{a}\\cos(ax)+C\\\\ &\\int& \\;e^{ax}\\;dx &=& \\frac{1}{a}e^{ax}+C\\\\ \\end{eqnarray*}\\]
\nSplitting the integral into three parts and using the above information we have:
\\[\\begin{eqnarray*}\\simplify[std]{Int({b} * e ^ ({a}*x) + {b1} * Sin({a1}*x) + {a2} * x ^ {c3},x)}&=&\\simplify[std]{Int({b} * e ^ ({a}*x),x)+Int({b1} * Sin({a1}*x),x)+Int({a2} * x ^ {c3},x) }\\\\ &=&\\simplify[std]{({b}/{a}) * (e ^({a}*x)) + (({(-b1)}/{a1}) * Cos({a1}*x)) + ({a2}/{c3+1}) * (x ^ {(c3 + 1)})+C} \\end{eqnarray*}\\]
Integrate the following function $f(x)$.
\n
Input the constant of integration as $C$.