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

Calculating the definite integral $\\int_{n_1}^{n_2}a_1x^{b_1}+a_2x^{b_2}+a_3x^{b_3} dx$.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Evaluate \\[ \\int_{\\var{n_1}}^{\\var{n_2}}\\simplify[unitFactor, unitPower, fractionNumbers]{{a_1}*x^{b_1}+{a_2}*x^{b_2}+{a_3}*x^{b_3}} \\,dx.\\]

\n

", "advice": "

Integrating a function of the form  \\[ f(x)=x^n \\] has the integral \\[ \\int_a^b x^n dx  =  \\left[\\frac{x^{n+1}}{n+1}\\right]_a^b,\\]

\n

and \\[\\int_a^b kf(x) dx = k \\int_a^b 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

\n

Therefore,

\n

\\[ \\begin{split}\\simplify[unitFactor,unitPower]{defint({a_1}*x^{b_1}+{a_2}*x^{b_2}+{a_3}*x^{b_3},x,{n_1},{n_2})} &\\,= \\simplify{{a_1}defint(x^{b_1},x,{n_1},{n_2})+{a_2}defint(x^{b_2},x,{n_1},{n_2})+{a_3}defint(x^{b_3},x,{n_1},{n_2})} \\\\ &\\,= \\left[\\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}}\\right]_\\var{n_1}^\\var{n_2} \\\\ &\\,= \\left[\\simplify[all,fractionNumbers,!collectNumbers]{{a_1*n_2^(b_1+1)}/{b_1+1}+{a_2*n_2^(b_2+1)}/{b_2+1}+{a_3*n_2^(b_3+1)}/{b_3+1}}\\right] -\\left[\\simplify[all,fractionNumbers,!collectNumbers]{{a_1*n_1^(b_1+1)}/{b_1+1}+{a_2*n_1^(b_2+1)}/{b_2+1}+{a_3*n_1^(b_3+1)}/{b_3+1}}\\right] \\\\ &\\,= \\simplify[!collectNumbers]{{eval2a}-{eval1a}} \\\\ &\\,=\\var{sol1} \\end{split} \\]

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a_1": {"name": "a_1", "group": "Ungrouped variables", "definition": "random(1..5)", "description": "", "templateType": "anything", "can_override": false}, "b_1": {"name": "b_1", "group": "Ungrouped variables", "definition": "3", "description": "", "templateType": "anything", "can_override": false}, "a_2": {"name": "a_2", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "b_2": {"name": "b_2", "group": "Ungrouped variables", "definition": "2", "description": "", "templateType": "anything", "can_override": false}, "b_3": {"name": "b_3", "group": "Ungrouped variables", "definition": "1", "description": "", "templateType": "anything", "can_override": false}, "a_3": {"name": "a_3", "group": "Ungrouped variables", "definition": "random(-6..6 except 0)", "description": "", "templateType": "anything", "can_override": false}, "n_1": {"name": "n_1", "group": "Ungrouped variables", "definition": "random(0..2)", "description": "", "templateType": "anything", "can_override": false}, "n_2": {"name": "n_2", "group": "Ungrouped variables", "definition": "random(2..5)", "description": "", "templateType": "anything", "can_override": false}, "eval2": {"name": "eval2", "group": "Ungrouped variables", "definition": "a_1*n_2^(b_1+1)/(b_1+1)+a_2*n_2^(b_2+1)/(b_2+1)+a_3*n_2^(b_3+1)/(b_3+1)", "description": "", "templateType": "anything", "can_override": false}, "eval1": {"name": "eval1", "group": "Ungrouped variables", "definition": "a_1*n_1^(b_1+1)/(b_1+1)+a_2*n_1^(b_2+1)/(b_2+1)+a_3*n_1^(b_3+1)/(b_3+1)", "description": "", "templateType": "anything", "can_override": false}, "eval2a": {"name": "eval2a", "group": "Ungrouped variables", "definition": "precround(eval2,3)", "description": "", "templateType": "anything", "can_override": false}, "eval1a": {"name": "eval1a", "group": "Ungrouped variables", "definition": "precround(eval1,3)", "description": "", "templateType": "anything", "can_override": false}, "sol": {"name": "sol", "group": "Ungrouped variables", "definition": "eval2-eval1", "description": "", "templateType": "anything", "can_override": false}, "sol1": {"name": "sol1", "group": "Ungrouped variables", "definition": "precround(sol,2)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "b_1>b_2 and b_2>b_3 and n_2>n_1", "maxRuns": "100"}, "ungrouped_variables": ["a_1", "a_2", "a_3", "b_1", "b_2", "b_3", "n_1", "n_2", "eval2", "eval1", "eval2a", "eval1a", "sol", "sol1"], "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]] (Give answers to 2 decimal places where necessary)

", "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": "{sol1}", "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": []}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}]}]}], "contributors": [{"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}]}