// Numbas version: exam_results_page_options {"name": "Integration By Parts", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "variables": {"s1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "name": "s1"}, "b": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..5)", "description": "", "name": "b"}, "c": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s3*random(1..9)", "description": "", "name": "c"}, "s3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "name": "s3"}, "a": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..5)", "description": "", "name": "a"}, "s2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "name": "s2"}, "a1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s1*random(1..9)", "description": "", "name": "a1"}, "a2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s2*random(1..9)", "description": "", "name": "a2"}, "t": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(0,1)", "description": "", "name": "t"}}, "ungrouped_variables": ["a", "c", "b", "s3", "s2", "s1", "a1", "a2", "t"], "question_groups": [{"pickingStrategy": "all-ordered", "questions": [], "name": "", "pickQuestions": 0}], "name": "Integration By Parts", "functions": {}, "showQuestionGroupNames": false, "parts": [{"stepsPenalty": 0, "scripts": {}, "gaps": [{"answer": "- ({a}/{b})*x*({t}*cos({b}x+{c})-{1-t}*exp({b}x+{c})) +({a}/{b^2})({t}*sin({b}x+{c})-{1-t}*exp({b}x+{c})) + C", "vsetrange": [0, 1], "checkingaccuracy": 0.001, "showCorrectAnswer": true, "expectedvariablenames": [], "notallowed": {"message": "

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

", "showStrings": false, "partialCredit": 0, "strings": ["."]}, "showpreview": true, "checkingtype": "absdiff", "scripts": {}, "checkvariablenames": false, "type": "jme", "answersimplification": "std", "marks": 1, "vsetrangepoints": 5}], "type": "gapfill", "prompt": "

$\\displaystyle \\int \\simplify[std]{{a}x*({t}sin({b}x+{c})+{1-t}*exp({b}x+{c}))} dx = \\phantom{{}}$[[0]]

", "steps": [{"type": "information", "prompt": "\n \n \n

The formula for integrating by parts is
\\[ \\int u\\frac{dv}{dx} dx = uv - \\int v \\frac{du}{dx} dx. \\]

\n \n \n \n ", "showCorrectAnswer": true, "scripts": {}, "marks": 0}], "showCorrectAnswer": true, "marks": 0}], "statement": "

Find the following indefinite integral.

\n

Input all numbers as fractions or integers and not decimals.

\n

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

\n

Note that if you are entering an expression such as $x*\\cos(p)$ for $p$ some expression then you must enter it as x*cos(p).

", "tags": ["Calculus", "calculus", "checked2015", "exponential function", "indefinite integration", "integration", "integration by parts", "integration of trigonometric functions", "mas1601", "MAS1601"], "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "preamble": {"css": "", "js": ""}, "type": "question", "metadata": {"notes": "\n \t\t \t\t

20/06/2012:

\n \t\t \t\t

Added tags.

\n \t\t \t\t

Changed xsin to x*sin in Advice.

\n \t\t \t\t

Tidied up display. Checked calculations. Users have to include capital C for the first two questions.

\n \t\t \t\t

4/07/2012:

\n \t\t \t\t

Edited part c to include brackets around the integrand.

\n \t\t \t\t

Added tags.

\n \t\t \t\t

9/07/2012:

\n \t\t \t\t

Added !noLeadingMinus to ruleset so that integrating by parts expressions are in the expected order.

\n \t\t \t\t

Improved display of last two lines of Advice.

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

Integrating by parts.

\n

Find $ \\int ax\\sin(bx+c)\\;dx$ or $\\int ax e^{bx+c}\\;dx$ 

"}, "variablesTest": {"condition": "", "maxRuns": 100}, "advice": "

The formula for integrating by parts is

\n

\\[ \\int u\\frac{dv}{dx} dx = uv - \\int v \\frac{du}{dx} dx. \\]

\n

We choose $u = \\simplify[std]{{a}x}$ and $\\displaystyle \\frac{dv}{dx} = \\simplify[std]{{t}*sin({b}x+{c})+{1-t}*exp({b}x+{c})}$.

\n

So $\\displaystyle \\frac{du}{dx} = \\var{a}$ and $v = \\simplify[std]{({-t}/{b})*cos({b}x+{c})+{1-t}/{b}*exp({b}x+{c})}$.

\n

Hence,
\\[ \\begin{eqnarray} \\int \\simplify[std]{{a}x*({t}sin({b}x+{c})+{1-t}*exp({b}x+{c})) } dx &=& uv - \\int v \\frac{du}{dx} dx \\\\ &=& \\simplify[std]{({a}/{b})*x*(({-t})*cos({b}x+{c})+{1-t}*exp({b}x+{c}))-{a}/{b}int (({-t})*cos({b}x+{c})+{1-t}*exp({b}x+{c}),x)} \\\\ &=&  \\simplify[std]{({a}/{b})*x*(({-t})*cos({b}x+{c})+{1-t}*exp({b}x+{c}))  + ({t*a}/{b^2})*sin({b}x+{c}) -{(1-t)*a}/{b^2}*exp({b}x+{c})+ C} \\end{eqnarray} \\]

\n

 

", "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}