// Numbas version: exam_results_page_options {"name": "Maria's copy of Solve a separable first order ODE,", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"parts": [{"unitTests": [], "showCorrectAnswer": true, "prompt": "

Solve the equation, and enter the expression for $f(x)$ in the box.  Do not enter decimals in your answer.

\n

$f(x)=$ [[0]].

", "extendBaseMarkingAlgorithm": true, "gaps": [{"unitTests": [], "showCorrectAnswer": true, "notallowed": {"message": "

Do not enter decimals in your answer.

", "partialCredit": 0, "strings": ["."], "showStrings": false}, "showPreview": true, "expectedVariableNames": [], "failureRate": 1, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "vsetRange": [0, 1], "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "checkVariableNames": false, "answerSimplification": "all", "vsetRangePoints": 5, "variableReplacements": [], "checkingType": "absdiff", "type": "jme", "answer": "{d1^2+b1}/{c1^(2/a1)}*x^(2/{a1})-{b1}", "checkingAccuracy": 0.001, "marks": 1, "scripts": {}}], "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "customMarkingAlgorithm": "", "sortAnswers": false, "variableReplacements": [], "type": "gapfill", "marks": 0, "scripts": {}}], "advice": "

The differential equation is separable, and we can therefore write

\n

\\[\\int{\\!\\frac{y}{\\var{b1}+y^2}\\,\\mathrm{d}y}=\\frac{1}{\\var{a1}}\\int{\\!\\frac{1}{x}\\,\\mathrm{d}x},\\]

\n

which can be integrated to give

\n

\\[\\frac{1}{2}\\ln\\lvert\\var{b1}+y^2\\rvert=\\frac{1}{\\var{a1}}\\ln\\lvert x\\rvert+c.\\]

\n

Exponentiating both sides leads to

\n

\\[\\sqrt{\\var{b1}+y^2}=\\simplify{Ax^(1/{a1})}\\]

\n

and, on rearranging for $y$ (and redefining $A$), we have

\n

\\[y=\\pm\\sqrt{\\simplify{A*x^(2/{a1})-{b1}}}.\\]

\n

Then we have

\n

\\[\\var{d1}=y(\\var{c1})=\\pm\\sqrt{\\simplify{A*{c1}^(2/{a1})-{b1}}},\\]

\n

so

\n

\\[A=\\simplify[std]{({d1}^2+{b1})/{c1}^(2/{a1})}=\\simplify{{d1^2+b1}/{c1^(2/a1)}}.\\]

\n

Then the full solution is

\n

\\[y=\\pm\\sqrt{\\simplify{{d1^2+b1}/{c1^(2/a1)}*x^(2/{a1})-{b1}}}.\\]

", "ungrouped_variables": ["a1", "c1", "b1", "d1"], "variables": {"d1": {"description": "", "group": "Ungrouped variables", "name": "d1", "definition": "random(1..9)*sign(random(-1,1))", "templateType": "anything"}, "c1": {"description": "", "group": "Ungrouped variables", "name": "c1", "definition": "random(1..4)^(a1/2)", "templateType": "anything"}, "a1": {"description": "", "group": "Ungrouped variables", "name": "a1", "definition": "2*random(1..4)", "templateType": "anything"}, "b1": {"description": "", "group": "Ungrouped variables", "name": "b1", "definition": "random(1..9 except d1^2)*sign(random(-1,1))", "templateType": "anything"}}, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Find the solution of a first order separable differential equation of the form $axyy'=b+y^2$.

"}, "variablesTest": {"condition": "", "maxRuns": 100}, "statement": "

You are given the differential equation

\n

\\[\\simplify{{a1}*x*y*y'}=\\var{b1}+y^2,\\]

\n

satisfying $y(\\var{c1})=\\var{d1}$.

\n

The solution can be written in the form $y=\\pm\\sqrt{f(x)}$, where $f(x)$ is some function of $x$.

", "name": "Maria's copy of Solve a separable first order ODE,", "functions": {}, "preamble": {"js": "", "css": ""}, "tags": ["checked2015"], "variable_groups": [], "extensions": [], "rulesets": {"std": ["all", "!collectNumbers", "!noLeadingMinus"]}, "type": "question", "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}, {"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}]}], "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}, {"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}