// Numbas version: exam_results_page_options {"name": "Julie's copy of First order differential equations 4", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["a", "b", "u", "t", "v"], "name": "Julie's copy of First order differential equations 4", "tags": ["1st order differential equation", "arctan", "boundary condition", "boundary condition on a first order differential equation", "Calculus", "calculus", "Differential equations", "differential equations", "first order differential equation", "logarithms", "ode", "ODE", "separable variables", "separation of variables", "solving a differential equation using separation of variables", "solving equations", "Solving equations"], "advice": "\n

We can separate the variables to get

\n

\\[\\frac{dy}{dx}= \\simplify[std]{(1+y^2)/({a}+{b}x)} \\Rightarrow \\frac{1}{1+y^2}\\frac{dy}{dx}=\\simplify[std]{{a}+{b}x}\\]

\n

On integrating we get:
\\[\\arctan(y)=\\frac{1}{\\var{b}}\\ln\\left(\\left|\\var{a}+\\var{b}x\\right|\\right)+A \\Rightarrow y=\\tan\\left(\\frac{1}{\\var{b}}\\ln\\left(\\left|\\var{a}+\\var{b}x\\right|\\right)+A\\right)\\]
To fix the arbitrary constant of integration we use the condition $y(1)=\\var{u}$.

\n

As $\\arctan(\\var{u})=\\var{v}$ we see that $\\displaystyle{A = \\var{v}-\\frac{1}{\\var{b}}\\ln(|\\var{a+b}|)}$.

\n

Hence the solution is

\n

\\[y=\\simplify[std]{tan(({((t * (t -1)) / 2)} * (pi / 3)) + ({((t -1) * (t -2)) / 2} * (pi / 4)) + ((1 / {b}) * ln(abs(({a} + ({b} * x)) / {a + b}))))}\\]

\n ", "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers", "!noLeadingMinus"]}, "parts": [{"prompt": "\n

Solution is:

\n


$y=\\;\\;$[[0]]

\n

Input all numbers as integers or fractions – not as decimals.

\n ", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"notallowed": {"message": "

Input all numbers as integers or fractions.

", "showStrings": false, "strings": ["."], "partialCredit": 0}, "variableReplacements": [], "expectedvariablenames": [], "checkingaccuracy": 1e-06, "type": "jme", "showpreview": true, "vsetrangepoints": 5, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "answersimplification": "std", "scripts": {}, "answer": "tan(({((t * (t -1)) / 2)} * (pi / 3)) + ({((t -1) * (t -2)) / 2} * (pi / 4)) + ((1 / {b}) * ln(abs(({a} + ({b} * x)) / {a + b}))))", "marks": 3, "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": [], "statement": "

Separate the variables:

\n

Find the solution of:

\n

\\[\\frac{dy}{dx}=\\simplify[std]{(1+y^2)/({a}+{b}x)}\\]
which satisfies $y(1)=\\var{u}$

\n

Note that if $\\pi$ is in your expression you enter it as pi.

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"a": {"definition": "random(1..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "b": {"definition": "random(2..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "u": {"definition": "switch(t=0,1,t=1,0,'$\\\\sqrt{3}$')", "templateType": "anything", "group": "Ungrouped variables", "name": "u", "description": ""}, "t": {"definition": "random(0,1,2)", "templateType": "anything", "group": "Ungrouped variables", "name": "t", "description": ""}, "v": {"definition": "switch(t=0,'$\\\\pi/4$',t=1,0,'$\\\\pi/3$')", "templateType": "anything", "group": "Ungrouped variables", "name": "v", "description": ""}}, "metadata": {"description": "

Find the solution of $\\displaystyle \\frac{dy}{dx}=\\frac{1+y^2}{a+bx}$ which satisfies $y(1)=c$

\n

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}]}]}], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}]}