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

This exercise is best solved by using substitution.
Note that if we let $u=\\simplify[std]{{a}+{b}cos(x)}$ then $du=\\simplify[std]{({-b}*sin(x))*dx }$
Hence we can replace $\\sin(x)\\;dx$ by $\\frac{1}{\\var{-b}}\\;du$.

\n \n \n \n

Hence the integral becomes:

\n \n \n \n

\\[\\begin{eqnarray*} I&=&\\simplify[std]{Int((1/{-b})u^{m},u)}\\\\\n \n &=&\\simplify[std]{(1/{-b})u^{m+1}/{m+1}+C}\\\\\n \n &=& \\simplify[std]{({a}+{b}*cos(x))^{m+1}/{-b*(m+1)}+C}\n \n \\end{eqnarray*}\\]

\n \n \n ", "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "parts": [{"stepspenalty": 1.0, "prompt": "\n

\\[I=\\simplify[std]{Int( sin(x)*({a} + {b}*cos(x))^{m},x)}\\]

\n

Input all numbers as integers or fractions.

\n

$I=\\;$[[0]]

\n

Input the constant of integration as $C$.

\n

Click on Show steps if you need help. You will lose 1 mark if you do so.

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

Do not input numbers as decimals, only as integers without the decimal point, or fractions.

", "showstrings": false, "strings": ["."], "partialcredit": 0.0}, "checkingaccuracy": 0.001, "vsetrange": [0.0, 1.0], "vsetrangepoints": 5.0, "checkingtype": "absdiff", "answersimplification": "std", "marks": 3.0, "answer": "({a}+{b}*cos(x))^{m+1}/{-b*(m+1)}+C", "type": "jme"}], "steps": [{"prompt": "

Try the substitution $u=\\simplify[std]{{a}+{b}cos(x)}$

", "type": "information", "marks": 0.0}], "marks": 0.0, "type": "gapfill"}], "extensions": [], "statement": "\n

Find the following integral.

\n

Input the constant of integration as $C$.

\n

Input all numbers as integers or fractions not as decimals.

\n ", "variable_groups": [], "progress": "ready", "type": "question", "variables": {"a": {"definition": "random(1..9)", "name": "a"}, "s1": {"definition": "random(1,-1)", "name": "s1"}, "b": {"definition": "s1*random(1..9)", "name": "b"}, "m": {"definition": "random(3..9)", "name": "m"}}, "metadata": {"notes": "\n \t\t

2/08/2012:

\n \t\t

Added tags.

\n \t\t

Added description.

\n \t\t

Checked calculation. OK.

\n \t\t

Added information about Show steps in prompt content area. 

\n \t\t

Got rid of a redundant ruleset. !noLeadingMinus added to std ruleset.

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

Find $\\displaystyle \\int \\sin(x)(a+ b\\cos(x))^{m}\\;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/"}]}