// 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": [{"variable_groups": [], "variables": {"s1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "name": "s1"}, "b": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s1*random(1..9)", "description": "", "name": "b"}, "a": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..6)", "description": "", "name": "a"}, "c": {"templateType": "anything", "group": "Ungrouped variables", "definition": "ceil(b^2/4a+random(1..5))", "description": "", "name": "c"}}, "ungrouped_variables": ["a", "c", "b", "s1"], "question_groups": [{"pickingStrategy": "all-ordered", "questions": [], "name": "", "pickQuestions": 0}], "name": "Integration by substitution", "functions": {}, "showQuestionGroupNames": false, "parts": [{"stepsPenalty": 1, "scripts": {}, "gaps": [{"answer": "ln(abs((({a} * (x ^ 2)) + ({b} * x) + {c})))+C", "musthave": {"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)}$

", "showStrings": false, "partialCredit": 0, "strings": ["abs"]}, "vsetrange": [0, 1], "checkingaccuracy": 0.001, "showCorrectAnswer": true, "expectedvariablenames": [], "notallowed": {"message": "

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

", "showStrings": false, "partialCredit": 0, "strings": ["."]}, "showpreview": true, "checkingtype": "absdiff", "scripts": {}, "checkvariablenames": false, "type": "jme", "answersimplification": "std", "marks": 3, "vsetrangepoints": 5}], "type": "gapfill", "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 ", "steps": [{"type": "information", "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 ", "showCorrectAnswer": true, "scripts": {}, "marks": 0}], "showCorrectAnswer": true, "marks": 0}], "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 ", "tags": ["calculus", "Calculus", "checked2015", "indefinite integral", "indefinite integration", "integration", "integration by substitution", "logarithms", "mas1601", "MAS1601", "natural logarithm", "Steps", "steps"], "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers"]}, "preamble": {"css": "", "js": ""}, "type": "question", "metadata": {"notes": "\n \t\t

20/06/2012:

\n \t\t

Added tags.

\n \t\t

Extensively changed the variables in order to simplify the question - quadratics generated which only have complex roots to stop the quadratic being zero in any range.

\n \t\t

Added Steps prompt about losing a mark. Also added to Steps re using abs.

\n \t\t

Added required string abs for answer entry.

\n \t\t

Improved spacing.

\n \t\t

4/07/2012:

\n \t\t

In the steps it is explained that the absolute value of the natural logarithm is inputted as ln(abs(x)) however unless steps are revealed it is unclear how to write |x|. Should this information be included in the question somehow?

\n \t\t

6/08/2012:

\n \t\t

Information on using ln(abs(x)) included in the statement.

\n \t\t

 

\n \t\t", "licence": "Creative Commons Attribution 4.0 International", "description": "

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

"}, "variablesTest": {"condition": "", "maxRuns": 100}, "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 ", "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}