// Numbas version: exam_results_page_options {"name": "Maria's copy of Integration by parts", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"question_groups": [{"questions": [], "name": "", "pickQuestions": 0, "pickingStrategy": "all-ordered"}], "advice": "

a)

\n

The formula for integrating by parts is
\\[ \\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]{sin({b}x+{c})}$.

\n

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

\n

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

\n

b)

\n

For this part we choose $u = \\simplify[std]{{a}x}$ and $\\frac{dv}{dx} = \\simplify[std]{cos({b}x+{c})}$.

\n

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

\n

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

\n

c)

\n

Using the results from Parts a and b, we have \\[\\begin{eqnarray*}I &=& \\int \\simplify[std]{{a1}x*sin({b}x+{c})} dx + \\int \\simplify[std]{{a2}x*cos({b}x+{c})} dx\\\\ &=& \\simplify[std]{{a1}*((-{a}/{b})*x*cos({b}x+{c}) + ({a}/{b^2})*sin({b}x+{c}))+{a2}*(({a}/{b})*x*sin({b}x+{c}) +({a}/{b^2})*cos({b}x+{c}))+C}\\\\ &=&\\simplify[std]{(-{a1}/{b})*x*cos({b}x+{c}) + ({a1}/{b^2})*sin({b}x+{c})+({a2}/{b})*x*sin({b}x+{c}) +({a2}/{b^2})*cos({b}x+{c}) + C}\\\\ &=&\\simplify[std]{({a2}/{b}*x+{a1}/{b^2})*sin({b}x+{c})+({-a1}/{b}*x+{a2}/{b^2})*cos({b}x+{c})+C} \\end{eqnarray*}\\]
Hence
$\\displaystyle \\simplify[std]{f(x) = {a2}/{b}*x+{a1}/{b^2}}$

\n

$\\displaystyle \\simplify[std]{g(x) = {-a1}/{b}*x+{a2}/{b^2}}$

", "type": "question", "tags": ["Calculus", "Steps", "algebraic manipulation", "calculus", "constant of integration", "integrals", "integrating trigonometric functions", "integration", "integration by parts", "steps"], "showQuestionGroupNames": false, "name": "Maria's copy of Integration by parts", "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "c", "b", "s3", "s2", "s1", "a1", "a2"], "parts": [{"type": "gapfill", "steps": [{"scripts": {}, "type": "information", "marks": 0, "showCorrectAnswer": true, "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 "}], "showCorrectAnswer": true, "stepsPenalty": 1, "gaps": [{"expectedvariablenames": [], "checkingtype": "absdiff", "vsetrangepoints": 5, "type": "jme", "vsetrange": [0, 1], "scripts": {}, "marks": 2, "answer": "({a}/{b^2})sin({b}x+{c}) - ({a}/{b})*x*cos({b}x+{c}) + C", "showpreview": true, "answersimplification": "std", "showCorrectAnswer": true, "checkvariablenames": false, "checkingaccuracy": 0.001, "notallowed": {"partialCredit": 0, "message": "

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

", "strings": ["."], "showStrings": false}}], "marks": 0, "scripts": {}, "prompt": "\n

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

\n

Input all numbers as fractions or integers and not decimals.

\n

Input the constant of integration as $C$.

\n

You can get help by clicking on Show steps. You will lose 1 mark if you do.

\n "}, {"type": "gapfill", "showCorrectAnswer": true, "gaps": [{"expectedvariablenames": [], "checkingtype": "absdiff", "vsetrangepoints": 5, "type": "jme", "vsetrange": [0, 1], "scripts": {}, "marks": 2, "answer": "({a}/{b})*x*sin({b}x+{c}) + ({a}/{b^2})*cos({b}x+{c}) + C", "showpreview": true, "answersimplification": "std", "showCorrectAnswer": true, "checkvariablenames": false, "checkingaccuracy": 0.001, "notallowed": {"partialCredit": 0, "message": "

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

", "strings": ["."], "showStrings": false}}], "marks": 0, "scripts": {}, "prompt": "\n

$\\displaystyle \\int \\simplify[std]{{a}x*cos({b}x+{c})} dx = \\phantom{{}}$[[0]]

\n

Input all numbers as fractions or integers and not decimals.

\n

Input the constant of integration as $C$.

\n "}, {"type": "gapfill", "showCorrectAnswer": true, "gaps": [{"expectedvariablenames": [], "checkingtype": "absdiff", "vsetrangepoints": 5, "type": "jme", "vsetrange": [0, 1], "scripts": {}, "marks": 1, "answer": "{a2}/{b}*x+{a1}/{b^2}", "showpreview": true, "answersimplification": "std", "showCorrectAnswer": true, "checkvariablenames": false, "checkingaccuracy": 0.001, "notallowed": {"partialCredit": 0, "message": "

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

", "strings": ["."], "showStrings": false}}, {"expectedvariablenames": [], "checkingtype": "absdiff", "vsetrangepoints": 5, "type": "jme", "vsetrange": [0, 1], "scripts": {}, "marks": 1, "answer": "{-a1}/{b}*x+{a2}/{b^2}", "showpreview": true, "answersimplification": "std", "showCorrectAnswer": true, "checkvariablenames": false, "checkingaccuracy": 0.001, "notallowed": {"partialCredit": 0, "message": "

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

", "strings": ["."], "showStrings": false}}], "marks": 0, "scripts": {}, "prompt": "\n

Using the first two parts find:
$\\displaystyle I=\\int \\simplify[std]{{a1}x*sin({b}x+{c})+{a2}x*cos({b}x+{c})} dx $
You are given that \\[I=\\simplify[std]{f(x)*sin({b}x+{c})+g(x)*cos({b}x+{c})+C}\\]
where $f(x)$ and $g(x)$ are polynomials of degree 1. You have to find $f(x)$ and $g(x)$.

\n

$f(x)=\\;$[[0]] $\\;\\;\\;\\;\\;g(x)=\\;$[[1]]

\n

Input all numbers as fractions or integers and not decimals.

\n "}], "variables": {"b": {"templateType": "anything", "definition": "random(2..5)", "name": "b", "group": "Ungrouped variables", "description": ""}, "s1": {"templateType": "anything", "definition": "random(1,-1)", "name": "s1", "group": "Ungrouped variables", "description": ""}, "c": {"templateType": "anything", "definition": "s3*random(1..9)", "name": "c", "group": "Ungrouped variables", "description": ""}, "a1": {"templateType": "anything", "definition": "s1*random(1..9)", "name": "a1", "group": "Ungrouped variables", "description": ""}, "a": {"templateType": "anything", "definition": "1", "name": "a", "group": "Ungrouped variables", "description": ""}, "a2": {"templateType": "anything", "definition": "s2*random(1..9)", "name": "a2", "group": "Ungrouped variables", "description": ""}, "s3": {"templateType": "anything", "definition": "random(1,-1)", "name": "s3", "group": "Ungrouped variables", "description": ""}, "s2": {"templateType": "anything", "definition": "random(1,-1)", "name": "s2", "group": "Ungrouped variables", "description": ""}}, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Find $\\displaystyle \\int x\\sin(cx+d)\\;dx,\\;\\;\\int x\\cos(cx+d)\\;dx $ and hence $\\displaystyle \\int ax\\sin(cx+d)+bx\\cos(cx+d)\\;dx$

", "notes": "\n \t\t

3/08/2012:

\n \t\t

Added tags.

\n \t\t

Added description.

\n \t\t

Corrected error in second question answer, + changed to -. Also solution to second gap in third part. Advice changed accordingly.

\n \t\t

Checked calculations after corrections. OK.

\n \t\t

Penalised use of steps in first part, 1 mark. Added message to that effect.

\n \t\t

Changed marks to allow for steps penalty.

\n \t\t

Improved Advice display.

\n \t\t"}, "statement": "\n

Find the following indefinite integrals.

\n

Input all numbers as fractions or integers and not decimals.

\n

Input the constant of integration as $C$ where needed.

\n ", "variable_groups": [], "preamble": {"css": "", "js": ""}, "functions": {}, "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}]}], "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}