// Numbas version: exam_results_page_options {"name": "Series: re-indexing", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"statement": "

The following questions focus on re-indexing sums.

", "preamble": {"css": "", "js": ""}, "variables": {"stop": {"definition": "start+length", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "stop"}, "d": {"definition": "random(2..10 except [b,c])", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "d"}, "start": {"definition": "random(1..12)", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "start"}, "shift": {"definition": "random(-10..10 except [0,-start])", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "shift"}, "c": {"definition": "random(2..10)", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "c"}, "length": {"definition": "random(5..20)", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "length"}, "b": {"definition": "random(2..10 except c)", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "b"}}, "rulesets": {}, "advice": "

a) 

\n

We have $\\displaystyle\\sum_{n=\\var{start}}^{\\var{stop}}t_nx^{\\simplify{n+{shift}}}$ but we want $x^{n}$ terms! It's like we want to replace $\\simplify{n+{shift}}$ with $n$ but it can get a bit messy or confusing if we do this because we have to keep track of which are the 'old' and which are the 'new' $n$'s. Instead, we normally do the substitution $k=\\simplify{n+{shift}}$ which then implies $n=\\simplify{k-{shift}}$.

\n

So we go through and change all the values or expressions of $n$ to $k$:

\n\n

Therefore $\\displaystyle\\sum_{n=\\var{start}}^{\\var{stop}}t_nx^{\\simplify{n+{shift}}}=\\sum_{k=\\var{start+shift}}^\\var{stop+shift} t_{\\simplify{k-{shift}}}x^k$, but now we can choose to use $n$ instead of $k$ for our index (or dummy variable) so we replace $k$ with $n$:

\n

\\[\\sum_{n=\\var{start}}^{\\var{stop}}t_nx^{\\simplify{n+{shift}}}=\\sum_{n=\\var{start+shift}}^\\var{stop+shift} t_{\\simplify{n-{shift}}}x^n\\]

\n

\n

b) 

\n

We have $y=\\sum_{n=0}^\\infty t_n x^n$ where \\[t_n=\\begin{cases}0,& \\text{if } n \\text{ is not divisible by } \\var{d}\\\\\\dfrac{t_0}{\\left(\\frac{n}{\\var{d}}\\right)! \\var{c}^\\frac{n}{\\var{d}}},& \\text{if } n \\text{ is divisible by }\\var{d}\\end{cases}\\]

\n

Since a lot of the terms in this sum are actually just zero and the sum relies on a piecewise function, it would be nice to make this sum only deal with the non-zero terms. Notice the only non-zero terms are when $n=0, \\,\\var{d}, \\,\\var{2*d}, \\,\\var{3*d}, \\ldots$ (the multiples of $\\var{d}$) so we make the substitution $k=\\frac{n}{\\var{d}}$, which will make the non-zero terms correspond to $k=0,\\,1,\\,2,\\,3,\\ldots$. So now our sum will be \\[y=\\sum_{k=0}^\\infty \\frac{t_0}{k!\\var{c}^k} x^k\\]

\n

but now we can choose to use $n$ instead of $k$ for our index (or dummy variable) so we replace $k$ with $n$ and we can pull out the common factor of $t_0$:

\n

\\[y=t_0\\sum_{n=0}^\\infty \\frac{x^n}{n!\\var{c}^n}\\]

\n

\n

c)

\n

We have $\\sinh(\\var{b}x)=\\sum_{n=0}^\\infty t_n x^n$ where \\[t_n=\\begin{cases}\\frac{\\var{b}^n}{n!},& \\text{if } n \\text{ is odd}\\\\0,& \\text{if } n \\text{ is even}\\end{cases}\\]

\n

Since half the terms in this sum are actually just zero and the sum relies on a piecewise function, it would be nice to make this sum only deal with the non-zero terms. Notice the only non-zero terms are when $n=1,\\,3,\\,5, \\ldots$ so we make the substitution $n=2k+1$, which will make the non-zero terms correspond to $k=0,\\,1,\\,2,\\,3,\\ldots$. So now our sum will be \\[\\sum_{k=0}^\\infty\\frac{\\var{b}^{2k+1}}{(2k+1)!}x^{2k+1} \\]

\n

but now we can choose to use $n$ instead of $k$ for our index (or dummy variable) so we replace $k$ with $n$:

\n

\\[\\sinh(\\var{b}x)=\\sum_{n=0}^\\infty\\frac{\\var{b}^{2n+1}}{(2n+1)!}x^{2n+1}\\]

", "functions": {}, "metadata": {"licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "description": "

Often students need practice re-indexing series, these are three questions that give them that opportunity.

"}, "name": "Series: re-indexing", "extensions": [], "ungrouped_variables": ["start", "length", "stop", "shift", "b", "c", "d"], "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "tags": [], "parts": [{"scripts": {}, "prompt": "

Rewrite the sum \\[\\sum_{n=\\var{start}}^{\\var{stop}}t_nx^{\\simplify{n+{shift}}}\\] so that it only involves $x^{n}$ terms, by specifying values for $a$ and $b$ and an expression for $c$:

\n

\\[\\sum_{n=\\var{start}}^{\\var{stop}}t_nx^{\\simplify{n+{shift}}}=\\sum_{n=a}^b t_cx^n\\]

\n

where $a=$[[0]], $b=$[[1]] and $c=$[[2]].

", "gaps": [{"scripts": {}, "correctAnswerStyle": "plain", "variableReplacements": [], "mustBeReducedPC": 0, "type": "numberentry", "marks": 1, "minValue": "{start+shift}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "maxValue": "{start+shift}", "mustBeReduced": false, "allowFractions": false, "showFeedbackIcon": true, "notationStyles": ["plain", "en", "si-en"]}, {"scripts": {}, "correctAnswerStyle": "plain", "variableReplacements": [], "mustBeReducedPC": 0, "type": "numberentry", "marks": 1, "minValue": "{stop+shift}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "maxValue": "{stop+shift}", "mustBeReduced": false, "allowFractions": false, "showFeedbackIcon": true, "notationStyles": ["plain", "en", "si-en"]}, {"scripts": {}, "checkingtype": "absdiff", "vsetrangepoints": 5, "variableReplacements": [], "type": "jme", "marks": 1, "variableReplacementStrategy": "originalfirst", "checkingaccuracy": 0.001, "answer": "n-{shift}", "checkvariablenames": false, "showpreview": true, "vsetrange": [0, 1], "showCorrectAnswer": true, "showFeedbackIcon": true, "expectedvariablenames": []}], "showCorrectAnswer": true, "variableReplacements": [], "type": "gapfill", "showFeedbackIcon": true, "marks": 0, "variableReplacementStrategy": "originalfirst"}, {"scripts": {}, "prompt": "

Given \\[y=\\sum_{n=0}^\\infty t_n x^n,\\]

\n

where \\[t_n=\\begin{cases}0,& \\text{if } n \\text{ is not divisible by } \\var{d}\\\\\\dfrac{t_0}{\\left(\\frac{n}{\\var{d}}\\right)! \\var{c}^\\frac{n}{\\var{d}}},& \\text{if } n \\text{ is divisible by }\\var{d}\\end{cases}\\]

\n

rewrite the sum so that each value of the index corresponds to a non-zero coefficient:

\n

\n

$\\displaystyle y=t_0\\sum_{n=0}^\\infty$ [[0]]

\n

Note: To input say $\\dfrac{10!5^{2n}}{x+1}$ you could type 10!*5^(2n)/(x+1)

", "gaps": [{"scripts": {}, "checkingtype": "absdiff", "vsetrangepoints": 5, "variableReplacements": [], "type": "jme", "marks": "1", "variableReplacementStrategy": "originalfirst", "checkingaccuracy": 0.001, "answer": "1/(fact(n)*{c}^n)*x^({d}n)", "checkvariablenames": false, "showpreview": true, "vsetrange": [0, 1], "showCorrectAnswer": true, "showFeedbackIcon": true, "expectedvariablenames": []}], "showCorrectAnswer": true, "variableReplacements": [], "type": "gapfill", "showFeedbackIcon": true, "marks": 0, "variableReplacementStrategy": "originalfirst"}, {"scripts": {}, "prompt": "

Given \\[\\sinh(\\var{b}x)=\\sum_{n=0}^\\infty t_n x^n,\\]

\n

where \\[t_n=\\begin{cases}\\frac{\\var{b}^n}{n!},& \\text{if } n \\text{ is odd}\\\\0,& \\text{if } n \\text{ is even}\\end{cases}\\]

\n

rewrite the sum so that each value of the index corresponds to a non-zero coefficient:

\n

\n

$\\displaystyle \\sinh(\\var{b}x)=\\sum_{n=0}^\\infty$ [[0]]

\n

Note: To input say $\\dfrac{10!5^{2n}}{x+1}$ you could type 10!*5^(2n)/(x+1)

", "gaps": [{"scripts": {}, "checkingtype": "absdiff", "vsetrangepoints": 5, "variableReplacements": [], "type": "jme", "marks": "1", "variableReplacementStrategy": "originalfirst", "checkingaccuracy": 0.001, "answer": "{b}^(2n+1)/(fact(2n+1))*x^(2n+1)", "checkvariablenames": false, "showpreview": true, "vsetrange": [0, 1], "showCorrectAnswer": true, "showFeedbackIcon": true, "expectedvariablenames": []}], "showCorrectAnswer": true, "variableReplacements": [], "type": "gapfill", "showFeedbackIcon": true, "marks": 0, "variableReplacementStrategy": "originalfirst"}], "type": "question", "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}