// Numbas version: finer_feedback_settings {"name": "simple linear factors partial fractions and delta function", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"statement": "
Determine the partial fraction breakdown of the following expression:
\n\\(I(s)=\\frac{\\var{R}s+\\var{P}}{(s+\\var{a})(s+\\var{b})(s+\\var{c})}+\\frac{\\var{k}e^{-\\var{k2}s}}{(s+\\var{a})(s+\\var{b})}\\)
", "variablesTest": {"maxRuns": 100, "condition": ""}, "variable_groups": [], "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial 4.0 International"}, "rulesets": {}, "variables": {"k2": {"description": "", "templateType": "randrange", "name": "k2", "group": "Ungrouped variables", "definition": "random(2..6#1)"}, "P": {"description": "", "templateType": "randrange", "name": "P", "group": "Ungrouped variables", "definition": "random(1..20#1)"}, "c": {"description": "", "templateType": "randrange", "name": "c", "group": "Ungrouped variables", "definition": "random(9..15#1)"}, "b": {"description": "", "templateType": "randrange", "name": "b", "group": "Ungrouped variables", "definition": "random(5..8#1)"}, "a": {"description": "", "templateType": "randrange", "name": "a", "group": "Ungrouped variables", "definition": "random(1..4#1)"}, "k": {"description": "", "templateType": "randrange", "name": "k", "group": "Ungrouped variables", "definition": "random(2..16#1)"}, "R": {"description": "", "templateType": "randrange", "name": "R", "group": "Ungrouped variables", "definition": "random(2..12#1)"}}, "ungrouped_variables": ["a", "b", "c", "P", "R", "k", "k2"], "tags": [], "name": "simple linear factors partial fractions and delta function", "advice": "\\(I(s)=\\frac{\\var{R}s+\\var{P}}{(s+\\var{a})(s+\\var{b})(s+\\var{c})}+\\frac{\\var{k}e^{-\\var{k2}s}}{(s+\\var{a})(s+\\var{b})}\\)
\nTake the first fraction and mutiply across by the denominator \\((s+\\var{a})(s+\\var{b})(s+\\var{c})\\) to get
\n\\(\\var{R}s+\\var{P}=A(s+\\var{b})(s+\\var{c})+B(s+\\var{a})(s+\\var{c})+C(s+\\var{a})(s+\\var{b})\\)
\nlet s = \\(-\\var{a}\\)
\n\\(\\simplify{{R}*{-{a}}+{P}}=\\simplify{(-{a}+{b})*(-{a}+{c})}A\\)
\n\\(A=\\simplify{{{R}*{-{a}}+{P}}/((-{a}+{b})*(-{a}+{c}))}\\)
\nlet s = \\(-\\var{b}\\)
\n\\(\\simplify{{R}*{-{b}}+{P}}=\\simplify{(-{b}+{a})*(-{b}+{c})}B\\)
\n\\(B=\\simplify{{{R}*{-{b}}+{P}}/((-{b}+{a})*(-{b}+{c}))}\\)
\nlet s = \\(-\\var{c}\\)
\n\\(\\simplify{{R}*{-{c}}+{P}}=\\simplify{(-{c}+{a})*(-{c}+{b})}C\\)
\n\\(C=\\simplify{{{R}*{-{c}}+{P}}/((-{c}+{b})*(-{c}+{a}))}\\)
\n\nTake the second fraction, ignore the exponential function and mutiply across by the denominator \\((s+\\var{a})(s+\\var{b})\\) to get
\n\\(\\var{k}=A(s+\\var{b})+B(s+\\var{a})\\)
\nlet s = \\(-\\var{a}\\)
\n\\(\\var{k}=A(\\simplify{-{a}+{b}})+B(0)\\)
\n\\(A=\\simplify{{k}/({b}-{a})}\\)
\nlet s = \\(-\\var{b}\\)
\n\\(\\var{k}=A(0)+B(\\simplify{{a}-{b}})\\)
\n\\(B=\\simplify{{k}/({a}-{b})}\\)
\n\n\n\n", "functions": {}, "parts": [{"variableReplacements": [], "marks": 0, "scripts": {}, "gaps": [{"marks": "2", "variableReplacements": [], "vsetrangepoints": 5, "showCorrectAnswer": true, "vsetrange": [0, 1], "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "checkingaccuracy": 0.001, "checkingtype": "absdiff", "expectedvariablenames": [], "answer": "(({P}-{a}*{R})/(({b}-{a})*({c}-{a})))/(s+{a})+(({P}-{b}*{R})/(({a}-{b})*({c}-{b})))/(s+{b})+(({P}-{c}*{R})/(({a}-{c})*({b}-{c})))/(s+{c})+e^((-{k2})*s)({k}/({b}-{a})/(s+{a})+({k}/({a}-{b})/(s+{b})))", "scripts": {}, "showpreview": true, "checkvariablenames": false, "type": "jme"}], "showCorrectAnswer": true, "prompt": "Express your answer as a sum of five fractions:
\n\\(I(s) =\\) [[0]]
", "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "type": "gapfill"}], "extensions": [], "preamble": {"css": "", "js": ""}, "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/"}]}