// Numbas version: exam_results_page_options {"name": "Harry's copy of Second order ODE with constant coefficients and boundary conditions", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"statement": "
Solve:
\\[\\simplify[std]{(d^2y/dx^2)+{2*a}*(dy/dx)+{a^2+b^2}y}=0\\]
which satisfies $y(0)=1$ and $y'(0)=\\var{c}$ (where prime denotes the derivative).
The auxillary equation is $\\simplify[std]{lambda^2+{2*a}lambda+{a^2+b^2}}=0$.
\nOn solving this equation we get $\\lambda=\\simplify[std]{{-a}+{b}i}$ and $\\lambda=\\simplify[std]{{-a}-{b}i}$.
\nHence the general solution is:
\\[y = \\simplify[std]{e^({-a}x)(A*sin({b}x)+B*cos({b}x))}\\]
Note that
\\[y'(x)=\\simplify[std]{-{a}e^({-a}x)(A*sin({b}x)+B*cos({b}x))+e^({-a}x)({b}*A*cos({b}x)-{b}*B*sin({b}x))}\\]
Using the conditions $y(0)=1$ and $y'(0)=\\var{c}$ gives:
\\[\\begin{eqnarray*} B &=& 1\\\\ \\simplify[std]{{b}A+{-a}B}&=& \\var{c} \\end{eqnarray*} \\]
This gives $\\displaystyle{A = \\simplify[std]{{c+a}/{b}}}$.
Hence the solution is:
\n\\[y=\\simplify[std]{exp({- a} * x) * (cos({b} * x) + ({c+a} / {b}) * sin({b} * x))}\\]
", "type": "question", "ungrouped_variables": ["a", "s", "b", "c"], "functions": {}, "variable_groups": [], "tags": ["2nd order differential equation", "auxiliary equation", "boundary conditions on differential equation", "Calculus", "checked2015", "complex roots of auxillary equation", "constant coefficients", "differential equation", "differential equation ", "exponential function", "finding the auxillary equation", "linear differential equation", "MAS1603", "ode", "quadratic equation", "second order differential equation", "solving differential equations", "solving quadratic equation", "trigonometric functions"], "variablesTest": {"maxRuns": 100, "condition": ""}, "name": "Harry's copy of Second order ODE with constant coefficients and boundary conditions", "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers", "!noLeadingMinus"]}, "parts": [{"marks": 0, "type": "gapfill", "prompt": "Solution is:
\n$y=\\;\\;$[[0]]
\nInput all numbers as integers or fractions – not as decimals.
", "gaps": [{"marks": 3, "vsetrangepoints": 5, "notallowed": {"showStrings": false, "partialCredit": 0, "message": "Input all numbers as integers or fractions.
", "strings": ["."]}, "showpreview": true, "type": "jme", "answer": "exp({- a} * x) * (cos({b} * x) + ({c+a} / {b}) * sin({b} * x))", "checkingtype": "absdiff", "checkingaccuracy": 1e-05, "scripts": {}, "showCorrectAnswer": true, "answersimplification": "std", "vsetrange": [0, 1], "expectedvariablenames": [], "checkvariablenames": false}], "scripts": {}, "showCorrectAnswer": true}], "variables": {"b": {"definition": "random(1..7)", "name": "b", "group": "Ungrouped variables", "templateType": "anything", "description": ""}, "a": {"definition": "s*random(1..5)", "name": "a", "group": "Ungrouped variables", "templateType": "anything", "description": ""}, "c": {"definition": "random(1..5)", "name": "c", "group": "Ungrouped variables", "templateType": "anything", "description": ""}, "s": {"definition": "random(1,-1)", "name": "s", "group": "Ungrouped variables", "templateType": "anything", "description": ""}}, "preamble": {"css": "", "js": ""}, "showQuestionGroupNames": false, "metadata": {"notes": "29/06/2012:
\n
Added tags. Edited tags.
Improved display.
\nChecked answer.
\n23/07/2012:
\nAdded tags.
\nQuestion appears to be working correctly.
\n04/11/2012:
\n
Corrected mistake in solution.
Solve: $\\displaystyle \\frac{d^2y}{dx^2}+2a\\frac{dy}{dx}+(a^2+b^2)y=0,\\;y(0)=1$ and $y'(0)=c$.
", "licence": "Creative Commons Attribution 4.0 International"}, "contributors": [{"name": "Harry Flynn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/976/"}]}]}], "contributors": [{"name": "Harry Flynn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/976/"}]}