// Numbas version: exam_results_page_options {"name": "Indefinite integral", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "name": "Indefinite integral", "tags": ["Calculus", "Steps", "calculus", "constant of integration", "exponential function", "indefinite integration", "integrals", "integrating powers", "integration", "integration of exponential function", "integration of powers", "integration of trigonometric functions", "standard integrals", "steps", "trigonometric functions"], "advice": "\n

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

\n

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

\n ", "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers"], "surdf": [{"pattern": "a/sqrt(b)", "result": "(sqrt(b)*a)/b"}]}, "parts": [{"stepspenalty": 0.0, "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

Input all numbers as integers or fractions and not decimals. Remember to include the constant of integration $C$.

\n

Click on Show steps to get more information. You will not lose any marks by doing so.

\n ", "gaps": [{"notallowed": {"message": "

Input all numbers as integers or fractions and not decimals.

", "showstrings": false, "strings": ["."], "partialcredit": 0.0}, "checkingaccuracy": 0.001, "vsetrange": [1.0, 2.0], "vsetrangepoints": 5.0, "checkingtype": "absdiff", "answersimplification": "std", "marks": 3.0, "answer": "({b}/{a}) * (e ^({a}*x)) + (({(-b1)}/{a1}) * Cos({a1}*x)) + ({a2}/{c3+1}) * (x ^ {(c3 + 1)})+C", "type": "jme"}], "steps": [{"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", "marks": 0.0}], "marks": 0.0, "type": "gapfill"}], "extensions": [], "statement": "\n

Integrate the following function $f(x)$.

\n

 
Input the constant of integration as $C$.

\n ", "variable_groups": [], "progress": "ready", "type": "question", "variables": {"a": {"definition": "s1*random(2..5)", "name": "a"}, "b": {"definition": "s2*random(2..9)", "name": "b"}, "s3": {"definition": "random(1,-1)", "name": "s3"}, "s2": {"definition": "random(1,-1)", "name": "s2"}, "s1": {"definition": "random(1,-1)", "name": "s1"}, "s5": {"definition": "random(1,-1)", "name": "s5"}, "s4": {"definition": "random(1,-1)", "name": "s4"}, "a1": {"definition": "random(2..5)", "name": "a1"}, "a2": {"definition": "s4*random(3..9)", "name": "a2"}, "b1": {"definition": "s3*random(2..9)", "name": "b1"}, "c3": {"definition": "s5*random(2..8)", "name": "c3"}}, "metadata": {"notes": "\n \t\t

2/08/2012:

\n \t\t

Added tags.

\n \t\t

Added description.

\n \t\t

Corrected mistake in formula for integrating $\\sin(ax)$ in Steps and Advice.

\n \t\t

Checked calculation. OK.

\n \t\t

Added decimal point to forbidden strings along with message to user re input of numbers.

\n \t\t

Message about Show steps included. Also another message about including the constant of integration.

\n \t\t

Changed checking range from 0 to 1 to 1 to 2 as we can have negative powers of $x$.

\n \t\t

Improved display of Steps by aligning integral signs.

\n \t\t", "description": "

Find $\\displaystyle \\int ae ^ {bx}+ c\\sin(dx) + px ^ {q}\\;dx$.

", "licence": "Creative Commons Attribution 4.0 International"}, "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}]}]}], "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}]}