// Numbas version: exam_results_page_options {"name": "Differential equation with an irreducible quadratic factor 2: I(s)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"statement": "

The solution to the differential equation:

\n

     \\(\\frac{d^2i}{dt^2}+\\simplify{2*{a1}}\\frac{di}{dt}+\\simplify{{a1}*{a1}+{a2}*{a2}}i(t)=\\var{R}\\)  where \\(i(0)=\\var{b1} \\,\\, and \\,\\,  i'(0)=\\var{b2}\\)

\n

is given by

\n

     \\(i(t)=A+Be^{-\\var{a1}t}cos(\\var{a2}t)+Ce^{-\\var{a1}t}sin(\\var{a2}t)\\)

", "variablesTest": {"maxRuns": "197", "condition": ""}, "functions": {}, "variables": {"b2": {"group": "Ungrouped variables", "definition": "random(1..12)", "name": "b2", "templateType": "anything", "description": ""}, "a2": {"group": "Ungrouped variables", "definition": "random(2..12)", "name": "a2", "templateType": "anything", "description": ""}, "R": {"group": "Ungrouped variables", "definition": "random(1..20)", "name": "R", "templateType": "anything", "description": ""}, "b1": {"group": "Ungrouped variables", "definition": "random(1..12)", "name": "b1", "templateType": "anything", "description": ""}, "a1": {"group": "Ungrouped variables", "definition": "random(1..10)", "name": "a1", "templateType": "anything", "description": ""}}, "preamble": {"css": "", "js": ""}, "extensions": [], "tags": [], "rulesets": {}, "metadata": {"licence": "Creative Commons Attribution-NonCommercial 4.0 International", "description": "

Solve a Differential equation with an irreducible quadratic factor 

"}, "variable_groups": [], "ungrouped_variables": ["R", "b1", "b2", "a1", "a2"], "parts": [{"marks": 1, "correctAnswerFraction": false, "maxValue": "{R}/({a1}*{a1}+{a2}*{a2})", "precisionType": "dp", "correctAnswerStyle": "plain", "precisionPartialCredit": 0, "showCorrectAnswer": true, "type": "numberentry", "precision": "3", "showFeedbackIcon": true, "prompt": "

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

", "notationStyles": ["plain", "en", "si-en"], "scripts": {}, "minValue": "{R}/({a1}*{a1}+{a2}*{a2})", "allowFractions": false, "mustBeReducedPC": 0, "variableReplacementStrategy": "originalfirst", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": true, "showPrecisionHint": false, "variableReplacements": [], "mustBeReduced": false}, {"marks": 1, "correctAnswerFraction": false, "maxValue": "{b1}-{R}/({a1}*{a1}+{a2}*{a2})", "precisionType": "dp", "correctAnswerStyle": "plain", "precisionPartialCredit": 0, "showCorrectAnswer": true, "type": "numberentry", "precision": "3", "showFeedbackIcon": true, "prompt": "

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

", "notationStyles": ["plain", "en", "si-en"], "scripts": {}, "minValue": "{b1}-{R}/({a1}*{a1}+{a2}*{a2})", "allowFractions": false, "mustBeReducedPC": 0, "variableReplacementStrategy": "originalfirst", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": true, "showPrecisionHint": false, "variableReplacements": [], "mustBeReduced": false}, {"marks": 1, "correctAnswerFraction": false, "maxValue": "(({b2}+2*{a1}*{b1})*({a1}^2+{a2}^2)-2*{a1}*{R}-{a1}*({b1}*({a1}^2+{a2}^2)-{R}))/({a2}*({a1}^2+{a2}^2))", "precisionType": "dp", "correctAnswerStyle": "plain", "precisionPartialCredit": 0, "showCorrectAnswer": true, "type": "numberentry", "precision": "3", "showFeedbackIcon": true, "prompt": "

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

", "notationStyles": ["plain", "en", "si-en"], "scripts": {}, "minValue": "(({b2}+2*{a1}*{b1})*({a1}^2+{a2}^2)-2*{a1}*{R}-{a1}*({b1}*({a1}^2+{a2}^2)-{R}))/({a2}*({a1}^2+{a2}^2))", "allowFractions": false, "mustBeReducedPC": 0, "variableReplacementStrategy": "originalfirst", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": true, "showPrecisionHint": false, "variableReplacements": [], "mustBeReduced": false}], "name": "Differential equation with an irreducible quadratic factor 2: I(s)", "advice": "

 \\(\\frac{d^2i}{dt^2}+\\simplify{2*{a1}}\\frac{di}{dt}+\\simplify{{a1}*{a1}+{a2}*{a2}}i(t)=\\var{R}\\)  where \\(i(0)=\\var{b1} \\,\\, and \\,\\,  i'(0)=\\var{b2}\\)

\n

The Laplace transform of this is given by:

\n

\\(s^2I(s)-\\var{b1}s-\\var{b2}+\\simplify{2*{a1}}(sI(s)-\\var{b1})+\\simplify{{a1}*{a1}+{a2}*{a2}}I(s)=\\frac{\\var{R}}{s}\\)

\n

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

\n

\\(s^2I(s)+\\simplify{2*{a1}}sI(s)+\\simplify{{a1}^2+{a2}^2})I(s)=\\frac{\\var{R}}{s}+\\var{b1}s+\\simplify{{b2}+2*{a1}*{b1}}\\)

\n

\\((s^2+\\simplify{2*{a1}}s+\\simplify{{a1}^2+{a2}^2})I(s)=\\frac{\\var{b1}s^2+\\simplify{{b2}+2*{a1}*{b1}}s+\\var{R}}{s}\\)

\n

\\(I(s)=\\frac{\\var{b1}s^2+\\simplify{{b2}+2*{a1}*{b1}}s+\\var{R}}{s(s^2+\\simplify{2*{a1}}s+\\simplify{{a1}^2+{a2}^2})}\\)

\n

\\(I(s)=\\frac{A}{s}+\\frac{Bs+c}{(s^2+\\simplify{2*{a1}}s+\\simplify{{a1}^2+{a2}^2})}\\)

\n

\\(\\var{b1}s^2+\\simplify{{b2}+2*{a1}*{b1}}s+\\var{R}=A(s^2+\\simplify{2*{a1}}s+\\simplify{{a1}^2+{a2}^2})+Bs^2+cs\\)

\n

Let \\(s=0\\)

\n

\\(\\var{R}=A(\\simplify{{a1}^2+{a2}^2})\\)

\n

\\(A=\\simplify{{R}/({a1}^2+{a2}^2)}\\)

\n

Compare the coefficients of \\(s^2\\)   

\n

\\(\\var{b1}=A+B\\)

\n

\\(B=\\var{b1}-\\simplify{{R}/({a1}^2+{a2}^2)}=\\simplify{({b1}*({a1}^2+{a2}^2)-{R})/({a1}^2+{a2}^2)}\\)

\n

Compare the coefficients of \\(s\\)

\n

\\(\\simplify{{b2}+2*{a1}*{b1}}=\\simplify{2*{a1}}A+c\\)

\n

\\(c=\\simplify{{b2}+2*{a1}*{b1}}-\\simplify{2*{a1}}A\\)

\n

\\(c=\\simplify{(({b2}+2*{a1}*{b1})*({a1}^2+{a2}^2)-2*{a1}*{R})/({a1}^2+{a2}^2)}\\)

\n

\n

\\(I(s)=\\frac{\\simplify{{R}/({a1}^2+{a2}^2)}}{s}+\\frac{\\simplify{({b1}*({a1}^2+{a2}^2)-{R})/({a1}^2+{a2}^2)}s+\\simplify{(({b2}+2*{a1}*{b1})*({a1}^2+{a2}^2)-2*{a1}*{R})/({a1}^2+{a2}^2)}}{s^2+\\simplify{2*{a1}}s+\\simplify{{a1}^2+{a2}^2}}\\)

\n

\\(I(s)=\\frac{\\simplify{{R}/({a1}^2+{a2}^2)}}{s}+\\frac{\\frac{\\simplify{({b1}*({a1}^2+{a2}^2)-{R})}}{\\simplify{({a1}^2+{a2}^2)}}(s+\\var{a1})}{(s+\\var{a1})^2+\\var{a2}^2}+\\frac{\\simplify{(({b2}+2*{a1}*{b1})*({a1}^2+{a2}^2)-2*{a1}*{R}-{a1}*({b1}*({a1}^2+{a2}^2)-{R}))/({a1}^2+{a2}^2)}}{(s+\\var{a1})^2+\\var{a2}^2}\\)

\n

\\(i(t)=\\simplify{{R}/({a1}^2+{a2}^2)}+\\simplify{({b1}*({a1}^2+{a2}^2)-{R})/({a1}^2+{a2}^2)}e^{-\\var{a1}t}cos(\\var{a2}t)+\\simplify{(({b2}+2*{a1}*{b1})*({a1}^2+{a2}^2)-2*{a1}*{R}-{a1}*({b1}*({a1}^2+{a2}^2)-{R}))/({a2}*({a1}^2+{a2}^2))}e^{-\\var{a1}t}sin(\\var{a2}t)\\)

\n

", "type": "question", "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/"}]}