// Numbas version: exam_results_page_options {"name": "First Order Differential Equation 1 [Explore]", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "First Order Differential Equation 1 [Explore]", "tags": [], "metadata": {"description": "

Separable equation for integration.

", "licence": "All rights reserved"}, "statement": "

The following first order differential equation is given.

\n

\n

$\\frac{dy}{dx} = xy^\\var{a}$, where $y=\\var{b}$ when $x=0$

", "advice": "

$\\frac{dy}{dx} = xy^\\var{a}$, where $y=\\var{b}$ when $x=0$

\n

Separate the variables

\n

\\[ y^\\var{-a}.dy = x.dx \\]

\n

Integrate each side

\n

\\[ \\int{y^\\var{-a}.dy} = \\int{x}.dx \\]

\n

\\[\\frac{y^\\var{-a+1}}{\\var{-a+1}}=\\frac{x^2}{2}+C \\] ...general solution

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "random(2 .. 4#1)", "description": "", "templateType": "randrange", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(1 .. 12#0.5)", "description": "", "templateType": "randrange", "can_override": false}, "Cint": {"name": "Cint", "group": "Ungrouped variables", "definition": "precround({b}^(-{a}+1)/(-{a}+1),2)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "b", "Cint"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": true, "customName": "General Solution", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [{"label": "Constant of Integration", "rawLabel": "", "otherPart": 1, "variableReplacements": [], "availabilityCondition": "answered", "penalty": "", "penaltyAmount": 0, "showPenaltyHint": true, "lockAfterLeaving": true}], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": "General Solution", "prompt": "

Find the general solution for the expression.

\n

$\\frac{dy}{dx} = xy^\\var{a}$

\n

Enter values as integers or fractions. Use C as the constant of integration.

\n

$y =$  [[0]]

", "gaps": [{"type": "jme", "useCustomName": true, "customName": "Gap 0.", "marks": "4", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "((-{a}+1)*(x^2/2 + C))^(1/(-{a}+1))", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "c", "value": ""}, {"name": "x", "value": ""}]}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": true, "customName": "Constant of Integration", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [{"label": "Particular Solution", "rawLabel": "", "otherPart": 2, "variableReplacements": [], "availabilityCondition": "answered", "penalty": "", "penaltyAmount": 0, "showPenaltyHint": true, "lockAfterLeaving": true}], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": "Constant of Integration", "prompt": "

The general solution for part a can be expressed as,

\n

\\[y =( {\\var{-a+1}}(\\frac{x^{2}}{2} + C))^{\\frac{1}{\\var{-a+1}}}\\]

\n

Evaluate the constant of integration, C, for the initial conditions $y=\\var{b}$ when $x=0$. Input values as decimal.

\n

$C=$ [[0]]

", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "Gap 1.", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "0.95*{Cint}", "maxValue": "1.05*{Cint}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": true, "customName": "Particular Solution", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": "Particular Solution", "prompt": "

For a constant of integration 

\n

\\[C=\\frac{\\var{b}^{\\var{-a+1}}}{\\var{-a+1}}=\\var{Cint}\\]

\n

Sub this back into the general solution and write the particular solution in terms of y.

\n

$y =$ [[0]]

", "gaps": [{"type": "jme", "useCustomName": true, "customName": "Gap 2.", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "({-a+1}*((x^2)/2 +{Cint}))^((1)/({-a+1}))", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "x", "value": ""}]}], "sortAnswers": false}], "partsMode": "explore", "maxMarks": "8", "objectives": [{"name": "General Solution", "limit": "4"}, {"name": "Constant of Integration", "limit": "2"}, {"name": "Particular Solution", "limit": "2"}], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Brendan Kennedy", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/20026/"}]}]}], "contributors": [{"name": "Brendan Kennedy", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/20026/"}]}