// Numbas version: exam_results_page_options {"name": "Simon's copy of Julie's copy of First order differential equations 1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Solve 4 first order differential equations of two types:$\\displaystyle \\frac{dy}{dx}=\\frac{ax}{y},\\;\\;\\frac{dy}{dx}=\\frac{by}{x},\\;y(2)=1$ for all 4.

\n

rebelmaths

\n

 

"}, "advice": "\n

These are all separable first order differential equations.

\n

a)

\n

$\\displaystyle{\\frac{dy}{dx}=\\frac{y}{\\var{a1}x} \\Rightarrow \\int \\frac{1}{y}\\;dy = \\frac{1}{\\var{a1}}\\int\\frac{1}{x}\\;dx \\Rightarrow \\ln(y)=\\frac{1}{\\var{a1}}\\ln(x)+C}$

\n

Exponentiation of both sides then gives $y=Ax^{1/\\var{a1}}$ where we have renamed the constant of integration.

\n

To find the particular solution satisfying $y=1$ at $x=2$, we have $\\displaystyle{1=A \\times 2^{1/\\var{a1}} \\Rightarrow A = \\frac{1}{2^{1/\\var{a1}}}}$

\n

Hence the solution is $\\displaystyle{y=\\left(\\frac{x}{2}\\right)^{1/\\var{a1}}}$

\n

b)

\n

$\\displaystyle{\\frac{dy}{dx}=-\\var{a2}\\frac{y}{x} \\Rightarrow \\int \\frac{1}{y}\\;dy = -\\var{a2}\\int\\frac{1}{x}\\;dx \\Rightarrow \\ln(y)=-\\var{a2}\\ln(x)+C}$

\n

Exponentiation of both sides then gives $y=Ax^{-\\var{a2}}$ where we have renamed the constant of integration.

\n

The particular solution satisfying $y=1$ at $x=2$, gives $A = 2^{\\var{a2}}$

\n

Hence the solution is $\\displaystyle{y=\\left(\\frac{2}{x}\\right)^{\\var{a2}}}$

\n

c)

\n

$\\displaystyle{\\frac{dy}{dx}=\\var{a3}\\frac{x}{y} \\Rightarrow \\int y\\;dy = \\var{a3}\\int x\\;dx \\Rightarrow \\frac{y^2}{2}=\\var{a3}\\frac{x^2}{2}+C\\Rightarrow y^2=\\var{a3}x^2+A}$

\n

The particular solution satisfying $y=1$ at $x=2$, gives $A = \\var{1-4*a3}$.

\n

Hence the solution is $\\displaystyle{y^2=\\simplify[std]{{a3}x^2+{1-4*a3}}}$.

\n

d)

\n

$\\displaystyle{\\frac{dy}{dx}=-\\var{a4}\\frac{x}{y} \\Rightarrow \\int y\\;dy = -\\var{a4}\\int x\\;dx \\Rightarrow y^2=-\\var{a4}x^2+A}$

\n

The particular solution satisfying $y=1$ at $x=2$, gives $A = \\var{1+4*a4}$.

\n

Hence the solution is $\\displaystyle{y^2=\\simplify[std]{{-a4}x^2+{1+4*a4}}}$.

\n ", "variablesTest": {"condition": "", "maxRuns": 100}, "parts": [{"showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "sortAnswers": false, "showCorrectAnswer": true, "marks": 0, "gaps": [{"answer": "(x/2)^(1/{a1})", "showFeedbackIcon": true, "expectedVariableNames": [], "showPreview": true, "checkingAccuracy": 0.001, "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "notallowed": {"partialCredit": 0, "strings": ["."], "showStrings": false, "message": "

Input numbers as fractions or integers, not as decimals

"}, "checkingType": "absdiff", "vsetRange": [0, 1], "answerSimplification": "std", "failureRate": 1, "showCorrectAnswer": true, "marks": 1, "checkVariableNames": false, "vsetRangePoints": 5, "type": "jme", "variableReplacements": [], "customMarkingAlgorithm": "", "scripts": {}, "unitTests": []}], "type": "gapfill", "variableReplacements": [], "customMarkingAlgorithm": "", "scripts": {}, "prompt": "\n

$\\displaystyle{\\frac{dy}{dx}=\\frac{y}{\\var{a1}x}}$

\n

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

\n

Do not enter decimals in your answer; use only fractions or integers.

\n ", "unitTests": []}, {"showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "sortAnswers": false, "showCorrectAnswer": true, "marks": 0, "gaps": [{"answer": "(2/x)^({a2})", "showFeedbackIcon": true, "expectedVariableNames": [], "showPreview": true, "checkingAccuracy": 0.001, "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "notallowed": {"partialCredit": 0, "strings": ["."], "showStrings": false, "message": "

Input numbers as fractions or integers, not as decimals

"}, "checkingType": "absdiff", "vsetRange": [1, 2], "answerSimplification": "std", "failureRate": 1, "showCorrectAnswer": true, "marks": 1, "checkVariableNames": false, "vsetRangePoints": 5, "type": "jme", "variableReplacements": [], "customMarkingAlgorithm": "", "scripts": {}, "unitTests": []}], "type": "gapfill", "variableReplacements": [], "customMarkingAlgorithm": "", "scripts": {}, "prompt": "\n

$\\displaystyle{\\frac{dy}{dx}=-\\var{a2}\\frac{y}{x}}$

\n

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

\n

Do not enter decimals in your answer; use only fractions or integers.

\n ", "unitTests": []}, {"showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "sortAnswers": false, "showCorrectAnswer": true, "marks": 0, "gaps": [{"answer": "{1-4*a3} + {a3} * (x ^ 2)", "showFeedbackIcon": true, "expectedVariableNames": [], "showPreview": true, "checkingAccuracy": 0.001, "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "notallowed": {"partialCredit": 0, "strings": ["."], "showStrings": false, "message": "

Input numbers as fractions or integers, not as decimals

"}, "checkingType": "absdiff", "vsetRange": [0, 1], "answerSimplification": "std", "failureRate": 1, "showCorrectAnswer": true, "marks": 1, "checkVariableNames": false, "vsetRangePoints": 5, "type": "jme", "variableReplacements": [], "customMarkingAlgorithm": "", "scripts": {}, "unitTests": []}], "type": "gapfill", "variableReplacements": [], "customMarkingAlgorithm": "", "scripts": {}, "prompt": "\n

$\\displaystyle{\\frac{dy}{dx}=\\var{a3}\\frac{x}{y}}$

\n

The solution can be written in the form $y^2=f(x)$. Enter $f(x)$ in the box below

\n

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

\n

Do not enter decimals in your answer; use only fractions or integers.

\n ", "unitTests": []}, {"showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "sortAnswers": false, "showCorrectAnswer": true, "marks": 0, "gaps": [{"answer": "{1+4*a4} + {-a4} * (x ^ 2)", "showFeedbackIcon": true, "expectedVariableNames": [], "showPreview": true, "checkingAccuracy": 0.001, "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "notallowed": {"partialCredit": 0, "strings": ["."], "showStrings": false, "message": "

Input numbers as fractions or integers, not as decimals

"}, "checkingType": "absdiff", "vsetRange": [0, 1], "answerSimplification": "std", "failureRate": 1, "showCorrectAnswer": true, "marks": 1, "checkVariableNames": false, "vsetRangePoints": 5, "type": "jme", "variableReplacements": [], "customMarkingAlgorithm": "", "scripts": {}, "unitTests": []}], "type": "gapfill", "variableReplacements": [], "customMarkingAlgorithm": "", "scripts": {}, "prompt": "\n

$\\displaystyle{\\frac{dy}{dx}=-\\var{a4}\\frac{x}{y}}$

\n

The solution can be written in the form $y^2=g(x)$. Enter $g(x)$ in the box below

\n

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

\n

Do not enter decimals in your answer; use only fractions or integers.

\n ", "unitTests": []}], "functions": {}, "tags": [], "variable_groups": [], "name": "Simon's copy of Julie's copy of First order differential equations 1", "extensions": [], "ungrouped_variables": ["a1", "a3", "a2", "a4"], "statement": "

Separation of variables

\n

Use separation of variables to solve the following ordinary differential equations, satisfying the condition $y=1$ at $x=2$.

", "preamble": {"js": "", "css": ""}, "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers", "!noLeadingMinus"]}, "variables": {"a3": {"description": "", "group": "Ungrouped variables", "definition": "random(2..6)", "templateType": "anything", "name": "a3"}, "a2": {"description": "", "group": "Ungrouped variables", "definition": "random(2..6)", "templateType": "anything", "name": "a2"}, "a1": {"description": "", "group": "Ungrouped variables", "definition": "random(2..5)", "templateType": "anything", "name": "a1"}, "a4": {"description": "", "group": "Ungrouped variables", "definition": "random(2..6)", "templateType": "anything", "name": "a4"}}, "type": "question", "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}]}], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}