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

Find $\\displaystyle I=\\int \\frac{2 a x + b} {a x ^ 2 + b x + c}\\;dx$ by substitution or otherwise.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "\n

Find the following integral.

\n

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

\n

Input all numbers as integers or fractions.

\n

You can click on Show steps to get a hint. You will lose 1 mark if you do so.

\n

Note that $\\displaystyle \\int \\frac{1}{x}\\;dx=\\ln(|x|)+C$ and you must include the absolute value in the argument of $\\ln$. You input $|x|$ as abs(x).

\n ", "advice": "\n

This exercise is best solved by using substitution.

\n

Note that the numerator $\\simplify[std]{{2 * a} * x + {b}}$ of \\[\\simplify[std]{({2 * a} * x + {b}) / ({a} * x ^ 2 + {b} * x + {c})}\\] is the derivative of the denominator $\\simplify[std]{{a} * x ^ 2 + {b} * x + {c}}$

\n

So if you use as your substitution $u=\\simplify[std]{{a} * (x ^ 2) + ({b} * x) + {c}}$ you then have $\\simplify[std]{ du = ({2 * a} * x + {b}) * dx}$

\n

Hence we can replace $\\simplify[std]{ ({2 * a} * x + {b}) * dx}$ by $du$

\n

Hence the integral becomes:

\n

\\[\\begin{eqnarray*} I&=&\\int\\;\\frac{du}{u}\\\\ &=&\\ln(|u|)+C\\\\ &=& \\simplify[std]{ln(abs({a} * (x ^ 2) + ({b} * x) + {c}))+C} \\end{eqnarray*}\\]

\n

A Useful Result
This example can be generalised.

\n

Suppose \\[I = \\int\\; \\frac{f'(x)}{f(x)}\\;dx\\]

\n

The using the substitution $u=f(x)$ we find that $du=f'(x)\\;dx$ and so using the same method as above:
\\[I = \\int \\frac{du}{u} = \\ln(|u|)+ C = \\ln(|f(x)|)+C\\]

\n ", "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers"]}, "extensions": [], "variables": {"s1": {"name": "s1", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything"}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "s1*random(1..9)", "description": "", "templateType": "anything"}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(2..6)", "description": "", "templateType": "anything"}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "ceil(b^2/4a+random(1..5))", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "c", "b", "s1"], "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": "\n

\\[I=\\simplify[std]{Int(({2 * a} * x + {b}) / ({a} * x ^ 2 + {b} * x + {c}),x)}\\]

\n

$I=\\;$[[0]]

\n

Input all numbers as integers or fractions.

\n

Do not forget to include the constant of integration $C$.

\n ", "stepsPenalty": 1, "steps": [{"type": "information", "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": "\n

Try the substitution $u=\\simplify[std]{{a} * (x ^ 2) + ({b} * x) + {c}}$

\n

Note that \\[\\int \\frac{1}{x}\\;dx=\\ln(|x|)+C\\] and you must input the absolute value of the argument of the natural logarithm. You input the absolute value using abs, for example abs(x)=$\\simplify{abs(x)}$

\n "}], "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 3, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "ln(abs((({a} * (x ^ 2)) + ({b} * x) + {c})))+C", "answerSimplification": "std", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "musthave": {"strings": ["abs"], "showStrings": false, "partialCredit": 0, "message": "

Note that \\[\\int \\frac{1}{x}\\;dx=\\ln(|x|)+C\\] and you must input the absolute value of the argument of the natural logarithm. You input the absolute value using abs, for example abs(x)=$\\simplify{abs(x)}$

"}, "notallowed": {"strings": ["."], "showStrings": false, "partialCredit": 0, "message": "

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

"}, "valuegenerators": [{"name": "c", "value": ""}, {"name": "x", "value": ""}]}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Simon Vaughan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1135/"}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Simon Vaughan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1135/"}]}