// Numbas version: finer_feedback_settings {"name": "Second order ODEs with distinct real roots", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "feedback": {"showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "allowrevealanswer": true, "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview"}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Second order ODEs with distinct real roots", "tags": ["2nd order", "characteristic equation", "differential equations", "ODE", "ODEs"], "metadata": {"description": "
The general solution to an ODE is given. The student must deduce the (distinct, real) roots of the characteristic equation from the general solution to find the coefficients in the original ODE.
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "Given that the equation
\n$\\simplify{(d^2y)/(d x^2) + b* (d y/(d x)) + c y}=0$
\nhas the general solution $y=Ae^{\\simplify{{root1} x}}+Be^{\\simplify{{root2} x}}$, find $b$ and $c$.
\n", "advice": "Recall that $y=Ae^{\\simplify{{lambda1} x}}+Be^{\\simplify{{lambda2} x}}$ is the general form of a solution to the ODE whose characteristic equation has two distinct real roots, $\\lambda_1$ and $\\lambda_2$.
\nHence we are looking for the ODE which yields a characteristic equation with roots $\\lambda_1=\\var{root1}$ and $\\lambda_2=\\var{root2}$, i.e.
\n$(\\simplify{{lambda}-{root1}})(\\simplify{{lambda}-{root2}})=0.$
\nExpanding and rearrianging gives the characteristic equation
\n$\\simplify{{lambda}^2-{root1+root2}{lambda}+{root1*root2}}=0.$
\nSo the ODE is $\\simplify{((d^2y)/(d x^2))-{root1+root2}((d y)/(d x))+{root1*root2}}=0.$
\n", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"B": {"name": "B", "group": "Ungrouped variables", "definition": "-(root1+root2)", "description": "", "templateType": "anything", "can_override": false}, "C": {"name": "C", "group": "Ungrouped variables", "definition": "root1*root2", "description": "", "templateType": "anything", "can_override": false}, "lambda": {"name": "lambda", "group": "Ungrouped variables", "definition": "\"$\\\\lambda$\"", "description": "", "templateType": "string", "can_override": false}, "lambda1": {"name": "lambda1", "group": "Ungrouped variables", "definition": "\"$\\\\lambda_1$\"", "description": "", "templateType": "string", "can_override": false}, "lambda2": {"name": "lambda2", "group": "Ungrouped variables", "definition": "\"$\\\\lambda_2$\"", "description": "", "templateType": "string", "can_override": false}, "root1": {"name": "root1", "group": "Ungrouped variables", "definition": "random(-9..9 except 0)", "description": "", "templateType": "anything", "can_override": false}, "root2": {"name": "root2", "group": "Ungrouped variables", "definition": "random(-9..9 except 0)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["B", "C", "lambda", "lambda1", "lambda2", "root1", "root2"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "$b=$[[0]]
\n$c=$[[1]]
", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "minValue": "B", "maxValue": "B", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "minValue": "C", "maxValue": "C", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false, "inlineCorrectAnswer": true}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "showAllParts": false, "contributors": [{"name": "Nick McCullen", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/953/"}, {"name": "Will Roberts", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/32402/"}, {"name": "Nick McCullen", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/953/"}, {"name": "Andrew Barnes", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3725/"}, {"name": "Nick McCullen", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/953/"}], "resources": []}]}], "contributors": [{"name": "Nick McCullen", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/953/"}, {"name": "Will Roberts", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/32402/"}, {"name": "Nick McCullen", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/953/"}, {"name": "Andrew Barnes", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3725/"}, {"name": "Nick McCullen", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/953/"}]}