// Numbas version: exam_results_page_options {"name": "Integration: Using a Table of Integrals 2", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Integration: Using a Table of Integrals 2", "tags": [], "metadata": {"description": "

Calculating the integral of a function of the form $a_1x^{b_1}+a_2x^{b_2}+a_3x^{b_3}$ using a table of integrals. 

", "licence": "None specified"}, "statement": "

Find the integral of $f(x)=\\simplify[unitFactor, unitPower, fractionNumbers]{{a_1}*x^{b_1}+{a_2}*x^{b_2}+{a_3}*x^{b_3}}$.

\n

\n

", "advice": "

From the Table of Integrals we see that a function of the form \\[ f(x)=x^n \\] has the integral \\[ \\int x^n dx  =  \\frac{x^{n+1}}{n+1}+ c,\\]

\n

and \\[\\int kf(x) dx = k \\int f(x) dx.\\]

\n

Additionally, the integral of the sum or difference of two or more functions is equal to the sum or difference of the integrals of each function: \\[ \\int(f(x)\\pm g(x))\\, dx = \\int f(x)\\, dx  \\pm \\int g(x) \\, dx.\\]

\n

So, for the function

\n

\\[f(x)=\\simplify[unitFactor,unitPower]{{a_1}*x^{b_1}+{a_2}*x^{b_2}+{a_3}*x^{b_3}},\\]

\n

the integral  is

\n

\\[ \\begin{split}\\simplify[unitFactor,unitPower]{int({a_1}*x^{b_1}+{a_2}*x^{b_2}+{a_3}*x^{b_3},x)} &\\,= \\simplify{{a_1}int(x^{b_1},x)+{a_2}int(x^{b_2},x)+{a_3}int(x^{b_3},x)} \\\\&\\,= \\simplify[all,fractionNumbers]{({a_1}*x^{b_1+1})/{b_1+1}+({a_2}*x^{b_2+1})/{b_2+1}+({a_3}*x^{b_3+1})/{b_3+1}}+c.\\end{split} \\]

\n

\n

Note: You only need to put one $c$ term here, you do not need to put a separate constant term for each calculation. 

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a_1": {"name": "a_1", "group": "Ungrouped variables", "definition": "random(1..10)", "description": "", "templateType": "anything", "can_override": false}, "b_1": {"name": "b_1", "group": "Ungrouped variables", "definition": "random(1..10)", "description": "", "templateType": "anything", "can_override": false}, "a_2": {"name": "a_2", "group": "Ungrouped variables", "definition": "random(-10..10 except 0)", "description": "", "templateType": "anything", "can_override": false}, "b_2": {"name": "b_2", "group": "Ungrouped variables", "definition": "random(1..10 except b_1)", "description": "", "templateType": "anything", "can_override": false}, "b_3": {"name": "b_3", "group": "Ungrouped variables", "definition": "random(1..10 except [b_1,b_2])", "description": "", "templateType": "anything", "can_override": false}, "a_3": {"name": "a_3", "group": "Ungrouped variables", "definition": "random(-10..10 except 0)", "description": "", "templateType": "anything", "can_override": false}, "advice": {"name": "advice", "group": "Ungrouped variables", "definition": "if(a_2>0 and a_3>0,'{solutiona}',{advice2})", "description": "", "templateType": "anything", "can_override": false}, "solutiona": {"name": "solutiona", "group": "Ungrouped variables", "definition": "\"

So, for the function \\\\[y=\\\\simplify[all, fractionNumbers]{{a_1}x^{b_1}+{a_2}x^{b_2}+{a_3}x^{b_3}} \\\\] the derivative  is \\\\begin{split}\\\\frac{dy}{dx} &= (\\\\var[fractionNumbers]{a_1}\\\\times\\\\var[fractionNumbers]{b_1})x^{\\\\var[fractionNumbers]{b_1}-1} +(\\\\var[fractionNumbers]{a_2}\\\\times\\\\var[fractionNumbers]{b_2})x^{\\\\var[fractionNumbers]{b_2}-1} +(\\\\var[fractionNumbers]{a_3}\\\\times\\\\var[fractionNumbers]{b_3})x^{\\\\var[fractionNumbers]{b_3}-1},\\\\\\\\ \\\\\\\\&= \\\\simplify[all, fractionNumbers]{{a_1*b_1}x^{b_1-1} +{a_2*b_2}x^{b_2-1} +{a_3*b_3}x^{b_3-1}}.\\\\end{split}

\"", "description": "", "templateType": "long string", "can_override": false}, "solutionb": {"name": "solutionb", "group": "Ungrouped variables", "definition": "\"

So, for the function \\\\[y=\\\\simplify[all, fractionNumbers]{{a_1}x^{b_1}+{a_2}x^{b_2}+{a_3}x^{b_3}} \\\\] the derivative  is \\\\begin{split}\\\\frac{dy}{dx} &= (\\\\var[fractionNumbers]{a_1}\\\\times\\\\var[fractionNumbers]{b_1})x^{\\\\var[fractionNumbers]{b_1}-1} -(\\\\var[fractionNumbers]{abs(a_2)}\\\\times\\\\var[fractionNumbers]{b_2})x^{\\\\var[fractionNumbers]{b_2}-1} +(\\\\var[fractionNumbers]{a_3}\\\\times\\\\var[fractionNumbers]{b_3})x^{\\\\var[fractionNumbers]{b_3}-1},\\\\\\\\ \\\\\\\\&= \\\\simplify[all, fractionNumbers]{{a_1*b_1}x^{b_1-1} +{a_2*b_2}x^{b_2-1} +{a_3*b_3}x^{b_3-1}}.\\\\end{split}

\"", "description": "", "templateType": "long string", "can_override": false}, "solutionc": {"name": "solutionc", "group": "Ungrouped variables", "definition": "\"

So, for the function \\\\[y=\\\\simplify[all, fractionNumbers]{{a_1}x^{b_1}+{a_2}x^{b_2}+{a_3}x^{b_3}} \\\\] the derivative  is \\\\begin{split}\\\\frac{dy}{dx} &= (\\\\var[fractionNumbers]{a_1}\\\\times\\\\var[fractionNumbers]{b_1})x^{\\\\var[fractionNumbers]{b_1}-1} +(\\\\var[fractionNumbers]{a_2}\\\\times\\\\var[fractionNumbers]{b_2})x^{\\\\var[fractionNumbers]{b_2}-1} -(\\\\var[fractionNumbers]{abs(a_3)}\\\\times\\\\var[fractionNumbers]{b_3})x^{\\\\var[fractionNumbers]{b_3}-1},\\\\\\\\ \\\\\\\\&= \\\\simplify[all, fractionNumbers]{{a_1*b_1}x^{b_1-1} +{a_2*b_2}x^{b_2-1} +{a_3*b_3}x^{b_3-1}}.\\\\end{split}

\"", "description": "", "templateType": "long string", "can_override": false}, "solutiond": {"name": "solutiond", "group": "Ungrouped variables", "definition": "\"

So, for the function \\\\[y=\\\\simplify[all, fractionNumbers]{{a_1}x^{b_1}+{a_2}x^{b_2}+{a_3}x^{b_3}} \\\\] the derivative  is \\\\begin{split}\\\\frac{dy}{dx} &= (\\\\var[fractionNumbers]{a_1}\\\\times\\\\var[fractionNumbers]{b_1})x^{\\\\var[fractionNumbers]{b_1}-1} -(\\\\var[fractionNumbers]{abs(a_2)}\\\\times\\\\var[fractionNumbers]{b_2})x^{\\\\var[fractionNumbers]{b_2}-1} -(\\\\var[fractionNumbers]{abs(a_3)}\\\\times\\\\var[fractionNumbers]{b_3})x^{\\\\var[fractionNumbers]{b_3}-1},\\\\\\\\ \\\\\\\\&= \\\\simplify[all, fractionNumbers]{{a_1*b_1}x^{b_1-1} +{a_2*b_2}x^{b_2-1} +{a_3*b_3}x^{b_3-1}}.\\\\end{split}

\"", "description": "", "templateType": "long string", "can_override": false}, "advice2": {"name": "advice2", "group": "Ungrouped variables", "definition": "if(a_2<0 and a_3>0,'{solutionb}',{advice3})", "description": "", "templateType": "anything", "can_override": false}, "advice3": {"name": "advice3", "group": "Ungrouped variables", "definition": "if(a_2>0 and a_3<0,'{solutionc}','{solutiond}')", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "b_1>b_2 and b_2>b_3", "maxRuns": "100"}, "ungrouped_variables": ["a_1", "a_2", "a_3", "b_1", "b_2", "b_3", "advice", "advice2", "advice3", "solutiona", "solutionb", "solutionc", "solutiond"], "variable_groups": [{"name": "Unnamed group", "variables": []}], "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": "

[[0]]

", "gaps": [{"type": "jme", "useCustomName": true, "customName": "Gap 0", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{a_1}x^{{b_1}+1}/{b_1+1}+{a_2}x^{{b_2}+1}/{b_2+1}+{a_3}x^{{b_3}+1}/{b_3+1}+c", "answerSimplification": "all, fractionNumbers", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": "0.01", "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "c", "value": ""}, {"name": "x", "value": ""}]}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Ruth Hand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3228/"}, {"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}]}]}], "contributors": [{"name": "Ruth Hand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3228/"}, {"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}]}