// Numbas version: finer_feedback_settings {"name": "Simon's copy of Antiderivatives", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"tags": [], "metadata": {"description": "

Antiderivatives

\n

rebel 

\n

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "parts": [{"vsetRange": [0, 1], "vsetRangePoints": 5, "failureRate": 1, "scripts": {}, "showFeedbackIcon": true, "customMarkingAlgorithm": "", "unitTests": [], "prompt": "

$f(x) = \\var{a}x - \\var{b}$

\n

$\\int f(x) dx$  =

", "showCorrectAnswer": true, "checkVariableNames": false, "checkingType": "absdiff", "answer": "{a}x^2/2-{b}x+C", "showPreview": true, "expectedVariableNames": [], "checkingAccuracy": 0.001, "extendBaseMarkingAlgorithm": true, "marks": 1, "type": "jme", "variableReplacements": [], "variableReplacementStrategy": "originalfirst"}, {"vsetRange": [0, 1], "vsetRangePoints": 5, "failureRate": 1, "scripts": {}, "showFeedbackIcon": true, "customMarkingAlgorithm": "", "unitTests": [], "prompt": "

$f(x) = \\frac{1}{\\var{c}}+ \\frac{2}{\\var{d}}x^2 - \\frac{3}{\\var{f}}x^3$

\n

$\\int f(x) dx$  =

", "showCorrectAnswer": true, "checkVariableNames": false, "checkingType": "absdiff", "answer": "1/{c}x+2/(3{d})x^3-3x^4/(4{f})+C", "showPreview": true, "expectedVariableNames": [], "checkingAccuracy": 0.001, "extendBaseMarkingAlgorithm": true, "marks": 1, "type": "jme", "variableReplacements": [], "variableReplacementStrategy": "originalfirst"}, {"vsetRange": [0, 1], "vsetRangePoints": 5, "failureRate": 1, "scripts": {}, "showFeedbackIcon": true, "customMarkingAlgorithm": "", "unitTests": [], "prompt": "

$f(x) = e^\\var{g}$

\n

$\\int f(x) dx$  =

", "showCorrectAnswer": true, "checkVariableNames": false, "checkingType": "absdiff", "answer": "e^{g}x+C", "showPreview": true, "expectedVariableNames": [], "checkingAccuracy": 0.001, "extendBaseMarkingAlgorithm": true, "marks": 1, "type": "jme", "variableReplacements": [], "variableReplacementStrategy": "originalfirst"}, {"vsetRange": [0, 1], "vsetRangePoints": 5, "failureRate": 1, "scripts": {}, "showFeedbackIcon": true, "customMarkingAlgorithm": "", "unitTests": [], "prompt": "

$f(x) = e^{\\var{g}x}$

\n

$\\int f(x) dx$  =

", "showCorrectAnswer": true, "checkVariableNames": false, "checkingType": "absdiff", "answer": "e^({g}x)/{g}+C", "showPreview": true, "expectedVariableNames": [], "checkingAccuracy": 0.001, "extendBaseMarkingAlgorithm": true, "marks": 1, "type": "jme", "variableReplacements": [], "variableReplacementStrategy": "originalfirst"}], "functions": {}, "statement": "

Note that \\[\\begin{eqnarray*}&\\int& \\;a\\;dx&=&ax+C \\text{  (for any constant } a)\\\\ &\\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*}\\]

\n

\n

For each of the following functions $f(x)$, find $\\int f(x) dx$ 

\n

Use the letter C to represent an unknown constant. 

", "preamble": {"css": "", "js": ""}, "name": "Simon's copy of Antiderivatives", "variables": {"f": {"description": "", "templateType": "anything", "group": "Ungrouped variables", "name": "f", "definition": "random(4,5,7,8)"}, "c": {"description": "", "templateType": "anything", "group": "Ungrouped variables", "name": "c", "definition": "random(2..4)"}, "a": {"description": "", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "definition": "2*random(2..4)"}, "d": {"description": "", "templateType": "anything", "group": "Ungrouped variables", "name": "d", "definition": "random(3,5,7)"}, "b": {"description": "", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "definition": "random(1..9 except a)"}, "g": {"description": "", "templateType": "anything", "group": "Ungrouped variables", "name": "g", "definition": "random(2..5)"}}, "rulesets": {}, "advice": "

Note that \\[\\begin{eqnarray*}&\\int& \\;a\\;dx&=&ax+C \\text{  (for any constant } a)\\\\ &\\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*}\\]

\n

\n

Don't forget to include the unknown constant C.

\n

\n

(a) 

\n

$f(x) = \\var{a}x - \\var{b}$

\n

Noting that $\\var{a}x = \\var{a}x^1$ and using $\\int \\;x^n\\;dx=\\frac{x^{n+1}}{n+1}+C$ with $n=1$ we obtain

\n

$\\int f(x)dx = \\frac{\\var{a}}{2}x^2 - \\var{b}x+C= \\simplify{{a/2}x^2 - {b}x+C}$

\n

\n

(b)

\n

$f(x) = \\frac{1}{\\var{c}}+ \\frac{2}{\\var{d}}x^2 - \\frac{3}{\\var{f}}x^3$

\n

$\\int f(x) dx  =\\frac{1}{\\var{c}}x+ \\frac{2}{\\var{d}}\\frac{x^3}{3} - \\frac{3}{\\var{f}}\\frac{x^4}{4}+C=\\simplify{x/{c}+2x^3/(3{d})-3x^4/(4{f})+C}$

\n

\n

(c)

\n

Since $ e^\\var{g}$ is simply a constant number, we obtain $ \\int e^\\var{g}dx = e^\\var{g}x+C$

\n

\n

(d)

\n

$f(x) = e^{\\var{g}x}$

\n

 Using our rule $\\int e^{ax}\\;dx = \\frac{1}{a}e^{ax}+C$ we immediately obtain

\n

$\\int f(x) dx =\\frac{1}{\\var{g}}e^{\\var{g}x}+C$

", "ungrouped_variables": ["a", "c", "b", "d", "g", "f"], "extensions": [], "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "type": "question", "contributors": [{"name": "TEAME UCC", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/351/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}]}], "contributors": [{"name": "TEAME UCC", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/351/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}