// Numbas version: exam_results_page_options {"name": "Integration by parts 2", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Integration by parts 2", "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "", "advice": "

Example, 

\n

$\\displaystyle \\int 2xe^x\\,dx$
$u = 2x \\rightarrow \\frac{du}{dx}=2$
$\\frac{dv}{dx}=e^x \\rightarrow v = \\int e^x.dx = e^x$
$\\int 2xe^x.dx = (2x)\\left(e^x\\right) - \\int \\left(e^x \\right) \\left(2\\right).dx$
$=2xe^x - 2\\int e^x.dx$
$=2xe^x - 2e^x + C$
$=2e^x(x-1) + C$

\n

The tabular method could also be used. In this approach, one function is differentiated until it reaches zero. The other is integrated the corresponding number of times. An alternative sign approach is then used to multiple down the table and form the answer. Please see the notes from AMR129 for an example of this. 

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Solve the following integral using the 'by parts' method:

\n

$\\int xe^{3x}\\, dx$

\n

Enter your answer in the same way you would in MATLAB.

\n

Fractions can be entered using the \\ symbol.

\n

Variables must be multiplied using the * symbol, for example $xy$ should be entered as x*y

\n

Functions must include brackets, for example $\\sin{x}$ should be entered as sin(x)

\n

Powers can be entered using the ^ symbol, for example $e^x$ can be entered as e^(x)

\n

Don't forget to include the \"+ C\" as it is an indefinite integral.

", "answer": "x*e^(3x)/3 - e^(3x)/9+C", "answerSimplification": "basic", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "c", "value": ""}, {"name": "x", "value": ""}]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Heather Driscoll", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1703/"}]}]}], "contributors": [{"name": "Heather Driscoll", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1703/"}]}