// Numbas version: finer_feedback_settings {"name": "Second order ODEs with complex 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 complex roots", "tags": ["2nd order", "characteristic equation", "complex roots", "differential equations", "ODE", "ODEs"], "metadata": {"description": "
The general solution to an ODE is given. The student must deduce from its form that the characteristic equation has complex roots and 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=\\simplify{e^({re} x)(C cos({im} x) + D sin({im} x))}$, find $b$ and $c$.
\n", "advice": "Recall that $y=e^{\\alpha x}(\\simplify{C(cos(beta x))+D(sin(beta x))})$ is the general form of a solution to the ODE whose characteristic equation has complex roots, of the form $\\lambda=\\alpha \\pm \\beta i$.
\nHence we are looking for the ODE which yields a characteristic equation with complex roots
$\\lambda=\\var{re} \\pm \\var{im}i$, i.e.
$\\simplify{{lambda}-{re}}=\\pm\\var{im}i$
\n$\\implies (\\simplify{{lambda}-{re}})^2=-\\var{im^2}$.
\nExpanding and rearranging gives the characteristic equation
\n$\\simplify{{lambda}^2-{2*re}{lambda}+{re^2}+{im^2}}=0.$
\nSo the ODE is $\\simplify{((d^2y)/(d x^2))-{2*re}((d y)/(d x))+{re^2}+{im^2}}=0.$
\n", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"B": {"name": "B", "group": "Ungrouped variables", "definition": "-2*re", "description": "", "templateType": "anything", "can_override": false}, "C": {"name": "C", "group": "Ungrouped variables", "definition": "re^2+im^2", "description": "", "templateType": "anything", "can_override": false}, "lambda": {"name": "lambda", "group": "Ungrouped variables", "definition": "\"$\\\\lambda$\"", "description": "", "templateType": "string", "can_override": false}, "alpha": {"name": "alpha", "group": "Ungrouped variables", "definition": "\"$\\\\alpha$\"", "description": "", "templateType": "string", "can_override": false}, "re": {"name": "re", "group": "Ungrouped variables", "definition": "random(-9..9 except 0)", "description": "", "templateType": "anything", "can_override": false}, "im": {"name": "im", "group": "Ungrouped variables", "definition": "random(2..9)", "description": "", "templateType": "anything", "can_override": false}, "cosimx": {"name": "cosimx", "group": "Ungrouped variables", "definition": "\"$\\\\cos{\\\\var{im} x}$\"", "description": "", "templateType": "string", "can_override": false}, "sinimx": {"name": "sinimx", "group": "Ungrouped variables", "definition": "\"$\\\\sin{\\\\var{im} x}$\"", "description": "", "templateType": "string", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["B", "C", "lambda", "alpha", "re", "im", "cosimx", "sinimx"], "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/"}]}