// Numbas version: finer_feedback_settings {"name": "Basic Indefinite Integration with Anti-Chain Rule", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variables": {"a2": {"definition": "s4*random(3..9)", "group": "Ungrouped variables", "name": "a2", "templateType": "anything", "description": ""}, "b": {"definition": "s2*random(2..9)", "group": "Ungrouped variables", "name": "b", "templateType": "anything", "description": ""}, "b1": {"definition": "s3*random(2..9)", "group": "Ungrouped variables", "name": "b1", "templateType": "anything", "description": ""}, "s4": {"definition": "random(1,-1)", "group": "Ungrouped variables", "name": "s4", "templateType": "anything", "description": ""}, "s5": {"definition": "random(1,-1)", "group": "Ungrouped variables", "name": "s5", "templateType": "anything", "description": ""}, "a": {"definition": "s1*random(2..5)", "group": "Ungrouped variables", "name": "a", "templateType": "anything", "description": ""}, "s1": {"definition": "random(1,-1)", "group": "Ungrouped variables", "name": "s1", "templateType": "anything", "description": ""}, "s3": {"definition": "random(1,-1)", "group": "Ungrouped variables", "name": "s3", "templateType": "anything", "description": ""}, "a1": {"definition": "random(2..5)", "group": "Ungrouped variables", "name": "a1", "templateType": "anything", "description": ""}, "s2": {"definition": "random(1,-1)", "group": "Ungrouped variables", "name": "s2", "templateType": "anything", "description": ""}, "c3": {"definition": "s5*random(2..8)", "group": "Ungrouped variables", "name": "c3", "templateType": "anything", "description": ""}}, "statement": "\n

Integrate the following function $f(x)$.

\n


You must input the constant of integration as $C$.

\n ", "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "metadata": {"notes": "\n \t\t

 20/06/2012:

\n \t\t

Added tags.

\n \t\t

Tidied up display of prompt using \\displaystyle.

\n \t\t

Problems with display of $e^{ax}$ for $a \\lt 0$. Had brackets around the $a$. (Corrected as an issue 29/06/2012).

\n \t\t

Mistake in Show steps, corrected.

\n \t\t

Added requirement to enter numbers as fractions or integers.

\n \t\t

 

\n \t\t

3/07/2012:

\n \t\t

Added tags.

\n \t\t

 

\n \t\t

9/07/2012:

\n \t\t

Extended ruleset std to include !noLeadingMinus so that answer is displayed in the right order.

\n \t\t", "licence": "Creative Commons Attribution 4.0 International", "description": "

Integrate $f(x) = ae ^ {bx} + c\\sin(dx) + px^q$. Must input $C$ as the constant of integration.

"}, "functions": {}, "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"js": "", "css": ""}, "type": "question", "showQuestionGroupNames": false, "variable_groups": [], "advice": "\n

Splitting the integral into three parts and using the information in Steps we have: 

\n

\\[\\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*}\\]

\n ", "question_groups": [{"pickingStrategy": "all-ordered", "name": "", "pickQuestions": 0, "questions": []}], "ungrouped_variables": ["a", "b", "s3", "s2", "s1", "s5", "s4", "a1", "a2", "b1", "c3"], "name": "Basic Indefinite Integration with Anti-Chain Rule", "parts": [{"scripts": {}, "variableReplacements": [], "showCorrectAnswer": true, "marks": 0, "variableReplacementStrategy": "originalfirst", "stepsPenalty": 0, "gaps": [{"checkvariablenames": false, "vsetrange": [0, 1], "scripts": {}, "showCorrectAnswer": true, "marks": 3, "checkingtype": "absdiff", "answersimplification": "std", "type": "jme", "showpreview": true, "vsetrangepoints": 5, "answer": "({b}/{a}) * e ^({a}*x) + (({(-b1)}/{a1}) * Cos({a1}*x)) + ({a2}/{c3+1}) * (x ^ {(c3 + 1)})+C", "expectedvariablenames": [], "checkingaccuracy": 0.001, "variableReplacementStrategy": "originalfirst", "notallowed": {"message": "

Enter all numbers as integers or fractions and not as decimals.

", "partialCredit": 0, "strings": ["."], "showStrings": false}, "variableReplacements": []}], "prompt": "\n

$\\simplify[std]{f(x) = {b} * e ^ ({a}*x) + {b1} * Sin({a1}*x) + {a2} * x ^ {c3}}$

\n

$\\displaystyle \\int\\;f(x)\\,dx=\\;$[[0]]

\n

Enter all numbers as integers or fractions and not as decimals.

\n ", "steps": [{"scripts": {}, "variableReplacements": [], "showCorrectAnswer": true, "marks": 0, "variableReplacementStrategy": "originalfirst", "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"}], "type": "gapfill"}], "tags": ["Calculus", "calculus", "checked2015", "exponential function", "functions", "indefinite integral", "indefinite integration", "integration", "integration of an exponential", "integration of an integer power", "integration of trigonometric functions", "mas1601", "MAS1601", "Steps", "steps", "trigonometric function"], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Johnny Yi", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2810/"}, {"name": "Luis Hernandez", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2870/"}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Johnny Yi", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2810/"}, {"name": "Luis Hernandez", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2870/"}]}