// Numbas version: exam_results_page_options {"name": "Differential equation with 3 simple linear factors: I(s)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Differential equation with 3 simple linear factors: I(s)", "tags": [], "metadata": {"description": "

Solve a Differential equation with 3 simple linear factors

", "licence": "Creative Commons Attribution-NonCommercial 4.0 International"}, "statement": "

The solution to the differential equation:

\n

     \\(\\frac{d^2i}{dt^2}+\\simplify{{a1}+{b1}}\\frac{di}{dt}+\\simplify{{a1}*{b1}}i(t)=\\var{c1}e^{-\\var{d1}t}\\)  where \\(i(0)=\\var{i0} \\,\\, and \\,\\,  i'(0)=\\var{i1}\\)

\n

is given by

\n

     \\(i(t)=Ae^{-\\var{d1}t}+Be^{-\\var{a1}t}+Ce^{-\\var{b1}t}\\)

", "advice": "

\\(\\frac{d^2i}{dt^2}+\\simplify{{a1}+{b1}}\\frac{di}{dt}+\\simplify{{a1}*{b1}}i(t)=\\var{c1}e^{-\\var{d1}t}\\)  where \\(i(0)=\\var{i0} \\,\\, and \\,\\,  i'(0)=\\var{i1}\\)

\n

The Laplace transform of this is given by:

\n

\\(s^2I(s)-\\var{i0}s-\\var{i1}+\\simplify{{a1}+{b1}}(sI(s)-\\var{i0})+\\simplify{{a1}*{b1}}I(s)=\\frac{\\var{c1}}{s+\\var{d1}}\\)

\n

Gathering only \\(I(s)\\) terms on the left hand side and factoring gives:

\n

\\((s^2+\\simplify{{a1}+{b1}}s+\\simplify{{a1}*{b1}})I(s)=\\frac{\\var{c1}}{s+\\var{d1}}+\\var{i0}s+\\simplify{{i1}+({a1}+{b1})*{i0}}\\)

\n

\\((s^2+\\simplify{{a1}+{b1}}s+\\simplify{{a1}*{b1}})I(s)=\\frac{\\simplify{{c1}+({i0}s+{i1}+({a1}+{b1})*{i0})*(s+{d1})}}{s+\\var{d1}}\\)

\n

\\(I(s)=\\frac{\\simplify{{c1}+({i0}s+{i1}+({a1}+{b1})*{i0})*(s+{d1})}}{(s+\\var{d1})(s+\\var{a1})(s+\\var{b1})}\\)

\n

\\(I(s)=\\frac{A}{s+\\var{d1}}+\\frac{B}{s+\\var{a1}}+\\frac{C}{s+\\var{b1}}\\)

\n

\\(\\simplify{{c1}+({i0}s+{i1}+({a1}+{b1})*{i0})*(s+{d1})}=A(s+\\var{a1})(s+\\var{b1})+B(s+\\var{d1})(s+\\var{b1})+C(s+\\var{d1})(s+\\var{a1})\\)

\n

Let \\(s=-\\var{d1}\\)

\n

\\(\\simplify{{c1}+({i0}*-{d1}+{i1}+({a1}+{b1})*{i0})*(-{d1}+{d1})}=\\simplify{(-{d1}+{a1})(-{d1}+{b1})}A\\)

\n

\\(A=\\simplify{({c1}+({i0}*-{d1}+{i1}+({a1}+{b1})*{i0})*(-{d1}+{d1}))/((-{d1}+{a1})(-{d1}+{b1}))}\\)

\n

Let \\(s=-\\var{a1}\\)

\n

\\(\\simplify{{c1}+({i0}*-{a1}+{i1}+({a1}+{b1})*{i0})*(-{a1}+{d1})}=\\simplify{(-{a1}+{d1})(-{a1}+{b1})}B\\)

\n

\\(B=\\simplify{({c1}+({i0}*-{a1}+{i1}+({a1}+{b1})*{i0})*(-{a1}+{d1}))/((-{a1}+{d1})(-{a1}+{b1}))}\\)

\n

Let \\(s=-\\var{b1}\\)

\n

\\(\\simplify{{c1}+({i0}*-{b1}+{i1}+({a1}+{b1})*{i0})*(-{b1}+{d1})}=\\simplify{(-{b1}+{d1})(-{b1}+{a1})}C\\)

\n

\\(C=\\simplify{({c1}+({i0}*-{b1}+{i1}+({a1}+{b1})*{i0})*(-{b1}+{d1}))/((-{b1}+{d1})(-{b1}+{a1}))}\\)

\n

\\(i(t)=\\simplify{({c1}+({i0}*-{d1}+{i1}+({a1}+{b1})*{i0})*(-{d1}+{d1}))/((-{d1}+{a1})(-{d1}+{b1}))}e^{-\\var{d1}t}+\\simplify{({c1}+({i0}*-{a1}+{i1}+({a1}+{b1})*{i0})*(-{a1}+{d1}))/((-{a1}+{d1})(-{a1}+{b1}))}e^{-\\var{a1}t}+\\simplify{({c1}+({i0}*-{b1}+{i1}+({a1}+{b1})*{i0})*(-{b1}+{d1}))/((-{b1}+{d1})(-{b1}+{a1}))}e^{-\\var{b1}t}\\)

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"i1": {"name": "i1", "group": "Ungrouped variables", "definition": "random(1..10) ", "description": "", "templateType": "anything", "can_override": false}, "i0": {"name": "i0", "group": "Ungrouped variables", "definition": "random(1..10)", "description": "", "templateType": "anything", "can_override": false}, "a1": {"name": "a1", "group": "Ungrouped variables", "definition": "random(1..5)", "description": "", "templateType": "anything", "can_override": false}, "c1": {"name": "c1", "group": "Ungrouped variables", "definition": "random(1..10)", "description": "", "templateType": "anything", "can_override": false}, "b1": {"name": "b1", "group": "Ungrouped variables", "definition": "random(6..11)", "description": "", "templateType": "anything", "can_override": false}, "d1": {"name": "d1", "group": "Ungrouped variables", "definition": "random(12..16)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": "222"}, "ungrouped_variables": ["b1", "a1", "c1", "d1", "i0", "i1"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Enter the value for \\(A\\) correct to three decimal places.

", "minValue": "({c1}+({i0}*-{d1}+{i1}+({a1}+{b1})*{i0})*(-{d1}+{d1}))/(({b1}-{d1})*({-d1}+{a1}))", "maxValue": "({c1}+({i0}*-{d1}+{i1}+({a1}+{b1})*{i0})*(-{d1}+{d1}))/(({b1}-{d1})*({-d1}+{a1}))", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "3", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": true, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Enter the value for \\(B\\) correct to three decimal places.

", "minValue": "({c1}+({i0}*-{a1}+{i1}+({a1}+{b1})*{i0})*(-{a1}+{d1}))/((-{a1}+{d1})(-{a1}+{b1}))", "maxValue": "({c1}+({i0}*-{a1}+{i1}+({a1}+{b1})*{i0})*(-{a1}+{d1}))/((-{a1}+{d1})(-{a1}+{b1}))", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "3", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": true, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Enter the value for \\(C\\) correct to three decimal places.

", "minValue": "({c1}+({i0}*-{b1}+{i1}+({a1}+{b1})*{i0})*(-{b1}+{d1}))/((-{b1}+{d1})(-{b1}+{a1}))", "maxValue": "({c1}+({i0}*-{b1}+{i1}+({a1}+{b1})*{i0})*(-{b1}+{d1}))/((-{b1}+{d1})(-{b1}+{a1}))", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "3", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": true, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Frank Doheny", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/789/"}]}]}], "contributors": [{"name": "Frank Doheny", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/789/"}]}