// Numbas version: finer_feedback_settings {"name": "Luis's copy of Integrate algebraic fraction", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variablesTest": {"condition": "", "maxRuns": 100}, "parts": [{"gaps": [{"answer": "((({n} * (x ^ 2)) / 2) + ({p} * Arctan(x))+C)", "vsetrange": [0, 1], "notallowed": {"showStrings": false, "partialCredit": 0, "strings": ["."], "message": "
Input all numbers as fractions or integers and not as decimals.
"}, "checkingtype": "absdiff", "scripts": {}, "type": "jme", "checkingaccuracy": 0.001, "showpreview": true, "showCorrectAnswer": true, "marks": 1, "checkvariablenames": false, "expectedvariablenames": [], "answersimplification": "std", "vsetrangepoints": 5}], "showCorrectAnswer": true, "prompt": "\n$\\displaystyle \\int f(x)\\;dx=\\;\\;$[[0]]
\nYou must input the arbitrary constant of integration as $C$.
\nAlso input all numbers as fractions or integers and not as decimals.
\n ", "scripts": {}, "marks": 0, "type": "gapfill"}], "name": "Luis's copy of Integrate algebraic fraction", "ungrouped_variables": ["p", "sp", "sn", "n"], "variables": {"sp": {"description": "", "definition": "random(1,-1)", "templateType": "anything", "name": "sp", "group": "Ungrouped variables"}, "p": {"description": "", "definition": "sp*random(1..9)", "templateType": "anything", "name": "p", "group": "Ungrouped variables"}, "sn": {"description": "", "definition": "random(1,-1)", "templateType": "anything", "name": "sn", "group": "Ungrouped variables"}, "n": {"description": "", "definition": "sn*random(1..9)", "templateType": "anything", "name": "n", "group": "Ungrouped variables"}}, "preamble": {"css": "", "js": ""}, "statement": "\nIntegrate the following function $f(x)$
\n\\[f(x)=\\simplify[std]{({n}x^3+{n}x+{p})/(1+x^2)}\\]
\nNote that you can only enter inverse trigonometric functions as $\\arcsin(x),\\;\\;\\arccos(x),\\;\\;\\arctan(x)$.
\n\n ", "metadata": {"description": "
Find $\\displaystyle \\int\\frac{ax^3+ax+b}{1+x^2}\\;dx$. Enter the constant of integration as $C$.
", "notes": "\n \t\t28/06/2012:
\n \t\t
Added tags.
Improved display of question prompt.
\n \t\tChanged instructions for inputting integration constant
\n \t\tAdded decimal point . as forbidden string to stop decimal input (is this necessary?)
\n \t\t18/07/2012:
\n \t\tAdded description.
\n \t\t23/07/2012:
\n \t\tAdded tags.
\n \t\tSolution always requires arctan(x) and not arcsin(x) or arccos(x). Is this on purpose?
\n \t\tQuestion appears to be working correctly.
\n \t\t", "licence": "Creative Commons Attribution 4.0 International"}, "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers", "!noLeadingMinus"]}, "functions": {}, "variable_groups": [], "question_groups": [{"questions": [], "pickQuestions": 0, "name": "", "pickingStrategy": "all-ordered"}], "showQuestionGroupNames": false, "advice": "Since the degree of the numerator of $f(x)$ is greater than the denominator, $f(x)$ is improper.
\nFirst, perform a polynomial long division, so that $f(x)$ can be rewritten in the form $\\displaystyle{f(x)=\\simplify[std]{{n}x+{p}/(1+x^2)}}$.
\nEach 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}arctan(x)} +C}$
", "type": "question", "tags": ["Calculus", "MAS1601", "arctan", "checked2015", "degree of a polynomial", "improper rational polynomials", "indefinite integration", "integration", "integration of standard functions", "integration using trigonometric identities", "inverse trigonometric functions", "polynomial division", "trigonometric identities"], "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/"}]}