// Numbas version: exam_results_page_options {"name": "Integration by parts, Exponential 20/10", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"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+{b}}$ and $\\displaystyle\\frac{dv}{dx} = \\simplify[std]{e^({c}x)}$.

\n

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

\n

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

\n

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

\n

b)

\n

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

\n

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

\n

Hence,
\\[ \\begin{eqnarray*}I= \\int \\simplify[std]{({a}*x+{b})^2*e^({c}*x)} dx &=& uv - \\int v \\frac{du}{dx} dx \\\\ &=& \\simplify[std]{({1}/{c})*({a}x+{b})^2*e^({c}x) - (1/{c})*Int({2*a}*({a}x+{b})*e^({c}x),x)} \\\\ &=& \\simplify[std]{(1/{c})*({a}x+{b})^2*e^({c}x) -({2*a}/{c})*Int(({a}x+{b})*e^({c}x),x)}\\dots (*) \\end{eqnarray*}\\]

\n

But in Part a we have aready worked out $\\displaystyle \\simplify[std]{Int(({a}x+{b})*e^({c}*x),x)=(({a}/{c})*x+({c*b-a}/{c^2}))*e^({c}*x)+C}$ 

\n

So on substituting this in equation (*) we find:
\\[ \\begin{eqnarray*}I&=& \\simplify[std]{(1/{c})*({a}x+{b})^2*e^({c}x) -({2*a}/{c})*(({a}/{c})*x+({c*b-a}/{c^2}))*e^({c}*x)+C}\\\\ &=& \\simplify[std]{({a^2}/{c}*x^2+{2*a*b*c-2*a^2}/{c^2}*x+{b^2*c^2-2*a*b*c+2*a^2}/{c^3})*e^({c}x) +C} \\end{eqnarray*}\\]

\n

Hence $\\displaystyle \\simplify[std]{h(x)={a^2}/{c}*x^2+{2*a*b*c-2*a^2}/{c^2}*x+{b^2*c^2-2*a*b*c+2*a^2}/{c^3}}$

\n

More information on the integration of exponentials is in chapter 3 of your Mathematical Physics book, section 3.8 on page 73-75.

", "parts": [{"unitTests": [], "customName": "", "steps": [{"unitTests": [], "customName": "", "marks": 0, "variableReplacements": [], "showCorrectAnswer": true, "prompt": "

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

", "showFeedbackIcon": true, "type": "information", "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "scripts": {}, "useCustomName": false}], "marks": 0, "stepsPenalty": "0", "gaps": [{"checkingAccuracy": 0.001, "notallowed": {"message": "

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

", "showStrings": false, "strings": ["."], "partialCredit": 0}, "checkingType": "absdiff", "showFeedbackIcon": true, "type": "jme", "failureRate": 1, "extendBaseMarkingAlgorithm": true, "valuegenerators": [{"value": "", "name": "x"}], "variableReplacementStrategy": "originalfirst", "scripts": {}, "showPreview": true, "answer": "({a}/{c})*x+{c*b-a}/{c^2}", "unitTests": [], "customName": "", "variableReplacements": [], "showCorrectAnswer": true, "vsetRange": [0, 1], "checkVariableNames": false, "customMarkingAlgorithm": "", "vsetRangePoints": 5, "marks": 2, "useCustomName": false, "answerSimplification": "all"}], "variableReplacements": [], "showCorrectAnswer": true, "prompt": "

$I=\\displaystyle \\int \\simplify[std]{({a}x+{b})*e^({c}x)} dx $
You are given that the answer is of the form \\[I=g(x)e^{\\var{c}x}+C\\] for a polynomial $g(x)$. You have to find $g(x)$.

\n

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

\n

Input all numbers as fractions or integers and not decimals.

\n

You can get help by clicking on Show steps. You will not lose any marks if you do.

", "sortAnswers": false, "showFeedbackIcon": true, "type": "gapfill", "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "scripts": {}, "useCustomName": false}, {"unitTests": [], "customName": "", "marks": 0, "gaps": [{"checkingAccuracy": 0.001, "notallowed": {"message": "

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

", "showStrings": false, "strings": ["."], "partialCredit": 0}, "checkingType": "absdiff", "showFeedbackIcon": true, "type": "jme", "failureRate": 1, "extendBaseMarkingAlgorithm": true, "valuegenerators": [{"value": "", "name": "x"}], "variableReplacementStrategy": "originalfirst", "scripts": {}, "showPreview": true, "answer": "{a^2}/{c}*x^2+{2*a*b*c-2*a^2}/{c^2}*x+{b^2*c^2-2*a*b*c+2*a^2}/{c^3}", "unitTests": [], "customName": "", "variableReplacements": [], "showCorrectAnswer": true, "vsetRange": [0, 1], "checkVariableNames": false, "customMarkingAlgorithm": "", "vsetRangePoints": 5, "marks": 3, "useCustomName": false, "answerSimplification": "all"}], "variableReplacements": [], "showCorrectAnswer": true, "prompt": "

Use the result from the first part to find:

\n

$\\displaystyle I=\\int \\simplify[std]{({a}x+{b})^2*e^({c}x)} dx $

\n

You are given that the answer is of the form \\[I=h(x)e^{\\var{c}x}+C\\] for a polynomial $h(x)$. You have to find $h(x)$.

\n

$h(x)=\\;$[[0]]

\n

Input all numbers as fractions or integers and not decimals.

", "sortAnswers": false, "showFeedbackIcon": true, "type": "gapfill", "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "scripts": {}, "useCustomName": false}], "variable_groups": [], "ungrouped_variables": ["a", "c", "b", "s3", "s2", "s1", "a1", "a2"], "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "name": "Integration by parts, Exponential 20/10", "extensions": [], "tags": [], "metadata": {"description": "

Given $\\displaystyle \\int (ax+b)e^{cx}\\;dx =g(x)e^{cx}+C$, find $g(x)$. Find $h(x)$, $\\displaystyle \\int (ax+b)^2e^{cx}\\;dx =h(x)e^{cx}+C$. 

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

Find the following indefinite integrals.

\n

Input all numbers as fractions or integers and not decimals.

\n ", "preamble": {"css": "", "js": ""}, "contributors": [{"name": "Phil Barker", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/624/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}]}], "contributors": [{"name": "Phil Barker", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/624/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}