// 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": [{"rulesets": {}, "extensions": [], "tags": [], "ungrouped_variables": ["a", "b", "c", "P", "R", "k", "k2"], "functions": {}, "name": "simple linear factors partial fractions and delta function", "advice": "
\\(X(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", "metadata": {"licence": "Creative Commons Attribution-NonCommercial 4.0 International", "description": ""}, "variable_groups": [], "variables": {"b": {"definition": "random(5..8#1)", "templateType": "randrange", "name": "b", "group": "Ungrouped variables", "description": ""}, "R": {"definition": "random(2..12#1)", "templateType": "randrange", "name": "R", "group": "Ungrouped variables", "description": ""}, "a": {"definition": "random(1..4#1)", "templateType": "randrange", "name": "a", "group": "Ungrouped variables", "description": ""}, "k": {"definition": "random(2..16#1)", "templateType": "randrange", "name": "k", "group": "Ungrouped variables", "description": ""}, "P": {"definition": "random(1..20#1)", "templateType": "randrange", "name": "P", "group": "Ungrouped variables", "description": ""}, "k2": {"definition": "random(2..6#1)", "templateType": "randrange", "name": "k2", "group": "Ungrouped variables", "description": ""}, "c": {"definition": "random(9..15#1)", "templateType": "randrange", "name": "c", "group": "Ungrouped variables", "description": ""}}, "statement": "Determine the partial fraction breakdown of the following expression:
\n\\(X(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})}\\)
\n.
", "parts": [{"gaps": [{"expectedvariablenames": [], "checkingaccuracy": 0.001, "variableReplacements": [], "showCorrectAnswer": true, "checkvariablenames": false, "vsetrangepoints": 5, "variableReplacementStrategy": "originalfirst", "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})))", "checkingtype": "absdiff", "showpreview": true, "scripts": {}, "showFeedbackIcon": true, "type": "jme", "vsetrange": [0, 1], "marks": "2"}], "type": "gapfill", "scripts": {}, "prompt": "Express your answer as a sum of five fractions:
\n\\(X(s) =\\) [[0]]
", "variableReplacements": [], "showFeedbackIcon": true, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "marks": 0}], "preamble": {"js": "", "css": ""}, "variablesTest": {"condition": "", "maxRuns": 100}, "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/"}]}