// Numbas version: exam_results_page_options {"name": "Integration: By Parts 5", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Integration: By Parts 5", "tags": [], "metadata": {"description": "

Calculating the integral of a function of the form $\\ln(ax)$ using integration by parts.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Calculate the integral \\[ \\simplify{int(ln({a}x) ,x)}\\]

", "advice": "

To calculate the integral

\n

\\[ \\simplify{int(ln({a}x),x)},\\] despite there only being a single function of $x$, we can make use of integration by parts. This is because there is no 'standard' integral for $\\simplify{ln({a}x)}$.

\n

However, if we think of \\[ \\simplify{int(ln({a}x),x)} = \\int 1 \\times \\ln(\\var{a}x)\\, \\text{d}x ,\\]

\n

we can set \\[ u=\\simplify{ln({a}x)}, \\quad \\frac{dv}{dx}=1,\\]

\n

so we only have to differentiate the $\\simplify{ln({a}x)}$ term.

\n

Now, calculating the $\\tfrac{du}{dx}$ and $v(x)$ terms:

\n

\\[ \\begin{split} u(x) = \\simplify{ln({a}x)} \\quad &\\implies \\frac{du}{dx} = \\simplify{1/x}; \\\\ \\frac{dv}{dx} = 1 &\\implies v(x) = x. \\end{split} \\]

\n

Plugging these 4 terms into the integration by parts formula we can succesfully find a solution:

\n

\\[  \\begin{split} \\simplify{int(ln({a}x),x)} &\\,= \\simplify{x ln({a}x)} - \\simplify[alwaysTimes]{int((1/x)x,x)}, \\\\ &\\,=\\simplify{x ln({a}x)-int(1,x)}, \\\\ &\\,= \\simplify{x ln({a}x) - x}+c, \\\\ &\\,=\\simplify{x (ln({a}x)-1)}+c.\\end{split} \\]

\n

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "random(2..4)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

[[0]]

", "gaps": [{"type": "jme", "useCustomName": true, "customName": "Gap 0", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "x*(ln({a}x)-1)+c", "answerSimplification": "all", "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": ""}]}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}]}]}], "contributors": [{"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}]}