// Numbas version: exam_results_page_options {"name": "Maria's copy of Separable variables (1)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "parts": [{"scripts": {}, "type": "gapfill", "gaps": [{"answer": "{(d1*a1-b1*c1)}/{a1+c1}+{(d1+b1)}*x/{a1+c1}", "type": "jme", "answersimplification": "all", "expectedvariablenames": [], "vsetrangepoints": 5, "vsetrange": [0, 1], "showCorrectAnswer": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "scripts": {}, "notallowed": {"showStrings": false, "message": "
Do not enter decimals in your answer.
", "strings": ["."], "partialCredit": 0}, "checkingtype": "absdiff", "marks": 1, "showpreview": true, "checkvariablenames": false, "checkingaccuracy": 0.001}], "showCorrectAnswer": true, "variableReplacements": [], "marks": 0, "prompt": "$y=$ [[0]] (Do not enter decimals in your answer.)
", "variableReplacementStrategy": "originalfirst"}], "question_groups": [{"pickingStrategy": "all-ordered", "name": "", "questions": [], "pickQuestions": 0}], "extensions": [], "tags": [], "advice": "The differential equation is separable, so we can write
\n\\[\\int{\\!\\frac{1}{\\var{b1}+y}\\,\\mathrm{d}y} = \\int{\\!\\frac{1}{\\var{a1}+x}\\,\\mathrm{d}x},\\]
\nthen
\n\\[\\ln\\lvert\\var{b1}+y\\rvert=\\ln\\lvert\\var{a1}+x\\rvert+c,\\]
\nso
\n\\[y=\\simplify{A({a1}+x)-{b1}},\\]
\nwhich is the general solution of the equation.
\nNow,
\n\\[\\var{d1}=y(\\var{c1})=\\simplify[std]{A({a1}+{c1})-{b1}},\\]
\nso
\n\\[A=\\simplify[std]{({d1}+{b1})/({a1}+{c1})}=\\simplify{{d1+b1}/{a1+c1}},\\]
\nand then the full solution is
\n\\[y=\\simplify[std]{{d1+b1}/{a1+c1}({a1}+x)-{b1}}=\\simplify{{(d1*a1-b1*c1)}/{a1+c1}+{(d1+b1)}*x/{a1+c1}}.\\]
", "showQuestionGroupNames": false, "name": "Maria's copy of Separable variables (1)", "statement": "Equations which can be written in the form
\n\\[\\dfrac{\\mathrm{d}y}{\\mathrm{d}x} = f(x), \\dfrac{\\mathrm{d}y}{\\mathrm{d}x} = f(y), \\dfrac{\\mathrm{d}y}{\\mathrm{d}x} = f(x)f(y)\\]
\ncan all be solved by integration.
\nIn each case it is possible to separate the $x$'s to one side of the equation and the $y$'s to the other
\nSolving such equations is therefore known as solution by separation of variables
\n\nQuestion
\nFind the solution of the differential equation
\n\\[(\\var{a1}+x)\\dfrac{\\mathrm{d}y}{\\mathrm{d}x}=\\var{b1}+y\\]
\n\nsatisfying the condition that $y = \\var{d1}$ when $x = \\var{c1}$
\n", "type": "question", "variable_groups": [], "preamble": {"css": "", "js": ""}, "rulesets": {"std": ["all", "!collectNumbers", "!noLeadingMinus"]}, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "Equations which can be written in the form
\n\\[\\dfrac{\\mathrm{d}y}{\\mathrm{d}x} = f(x), \\dfrac{\\mathrm{d}y}{\\mathrm{d}x} = f(y), \\dfrac{\\mathrm{d}y}{\\mathrm{d}x} = f(x)f(y)\\]
\ncan all be solved by integration.
\nIn each case it is possible to separate the $x$'s to one side of the equation and the $y$'s to the other
\nSolving such equations is therefore known as solution by separation of variables
\n"}, "ungrouped_variables": ["a1", "c1", "b1", "d1"], "variables": {"a1": {"name": "a1", "definition": "random(1..9)*sign(random(-1,1))", "templateType": "anything", "description": "", "group": "Ungrouped variables"}, "b1": {"name": "b1", "definition": "random(1..9)*sign(random(-1,1))", "templateType": "anything", "description": "", "group": "Ungrouped variables"}, "d1": {"name": "d1", "definition": "random(1..9 except abs(b1))*sign(random(-1,1))", "templateType": "anything", "description": "", "group": "Ungrouped variables"}, "c1": {"name": "c1", "definition": "random(1..9 except abs(a1))*sign(random(-1,1))", "templateType": "anything", "description": "", "group": "Ungrouped variables"}}, "variablesTest": {"maxRuns": 100, "condition": ""}, "contributors": [{"name": "Stephen Bowlzer", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/206/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}]}], "contributors": [{"name": "Stephen Bowlzer", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/206/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}