// Numbas version: exam_results_page_options {"name": "Luis's copy of Indefinite integral of improper polynomial fraction", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"advice": "

Since the degree of the numerator of $f(x)$ is greater than the denominator, $f(x)$ is improper.

\n

First, perform a long division, so that $f(x)$ can be rewritten in the form $\\displaystyle{f(x)=\\simplify[std]{{-n}x+{p}/(1-x^2)}}$.

\n

Each term of this expression can then be integrated using standard functions (to within the arbitrary constant) to give:

\n

$\\displaystyle{\\int f(x)\\;dx=\\simplify[std]{ (({ - n} * (x ^ 2)) / 2) + ({p} / 2) * ln(abs((1 + x) / (1 -x)))+C}}$

\n

where we have used partial fractions to integrate $\\displaystyle{\\frac{1}{1-x^2}}$.

\n

Note carefully that in this example it is good practice to take the absolute value of the argument of $\\ln$.

", "preamble": {"css": "", "js": ""}, "question_groups": [{"questions": [], "pickingStrategy": "all-ordered", "pickQuestions": 0, "name": ""}], "name": "Luis's copy of Indefinite integral of improper polynomial fraction", "variable_groups": [], "type": "question", "functions": {}, "variablesTest": {"maxRuns": 100, "condition": ""}, "statement": "

Integrate the following function $f(x)$

\n

\\[f(x)=\\simplify[std]{({n}x^3+{-n}x+{p})/(1-x^2)}\\]

\n

Remember that the correct integration of expressions such as $\\displaystyle \\frac{1}{x-a}$ is:

\n

\\[\\int \\frac{1}{x-a}\\;dx=\\ln(|x-a|)+C\\]

", "parts": [{"prompt": "

$\\displaystyle{\\int f(x)\\;dx=\\;\\;}$[[0]]

\n

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

\n

Input all numbers as fractions or integers and not decimals.

", "scripts": {}, "type": "gapfill", "gaps": [{"checkvariablenames": false, "answersimplification": "std", "scripts": {}, "type": "jme", "checkingtype": "absdiff", "notallowed": {"showStrings": false, "message": "

Input all numbers as fractions or integers and not decimals.

", "partialCredit": 0, "strings": ["."]}, "expectedvariablenames": [], "marks": 3, "showCorrectAnswer": true, "checkingaccuracy": 0.001, "vsetrange": [0.25, 0.75], "showpreview": true, "answer": "(({ - n} * (x ^ 2)) / 2) + ({p} / 2) * ln(abs((1 + x) / (1 -x)))+C", "vsetrangepoints": 5}], "showCorrectAnswer": true, "marks": 0}], "ungrouped_variables": ["p", "sp", "sn", "n"], "metadata": {"notes": "

28/06/2012:

\n

Added tags. Changed prompt slightly. Calculation checks.

\n

Checking range is 2 to 3, giving a negative argument for ln without taking the absolute value, hence the reason for asking for absolute value being used. But in fact the user can just wrap abs around the $1+x$ and not the $1-x$. So is redundant!!

\n

To be changed!

\n

29/06/2012:

\n

Got rid of necessity to have abs by changing checking range to 0.25 to 0.75. However, still including the homily about using abs as good practice. Cannot use in Show steps for now as not available (issue reported) so is in the statement and also in Advice.

\n

10/07/2012:

\n

Included message in the prompt about using fractions or integers, not decimals. Included decimal point in forbidden strings.

\n

18/07/2012:

\n

Added description.

\n

23/07/2012:

\n

Added tags.

\n

Question appears to be working correctly.

", "description": "

Find $\\displaystyle\\int \\frac{ax^3-ax+b}{1-x^2}\\;dx$. Input constant of integration as $C$.

", "licence": "Creative Commons Attribution 4.0 International"}, "tags": ["absolute value", "Calculus", "checked2015", "improper rational polynomials", "indefinite integral", "indefinite integration", "integration", "integration of rational polynomials", "long division of polynomials", "MAS1601", "natural logarithm", "natural logs", "partial fractions", "polynomial division", "rational polynomials"], "showQuestionGroupNames": false, "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers", "!noLeadingMinus"]}, "variables": {"n": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "name": "n", "definition": "sn*random(1..9)"}, "p": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "name": "p", "definition": "sp*random(1..9)"}, "sn": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "name": "sn", "definition": "random(1,-1)"}, "sp": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "name": "sp", "definition": "random(1,-1)"}}, "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Luis Hernandez", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2870/"}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Luis Hernandez", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2870/"}]}