Using the Maclaurin expansion formula:
to find the Maclaurin series for $sin(3x)$, I can get the correct answer by using $x^n$ in the formula above (in the tail-end of the formula).
Similarly, to expand $e^(-x)$, I can get the correct answer by using $x^n$.
But to expand $\frac{1}{(1+2x)}$, I can't get the correct answer by using $x^n$, instead I have to use $(2x)^n$ to get the correct answer.
Why is this so? Shouldn't I have to put $(3x)^n$ into the formula to expand $sin(3x)$, and $(-x)^n$ for $e^(-x)$ as well then? Am I doing something wrong?
Just to be sure, here is my working for all three problems:
No. 1. $f(x) = sin(3x)
f(0)=0; f'(0)=3; f''(0)=0; f'''(0)=-27; f''''(0)=0; f'''''(0)=243$
$sin(3x)= sum of f^(n)(0)/n!*(x^n) = 3x - (27/3!)x^3 + (243/5!)x^5 +...
No. 2. f(x) = e^(-x)
f(0)=1, f'(0)=1, f''(0)=1, f'''(0)=1
e^(-x)= sum of f^(n)(0)/n!*(x^n) = 1 - x + x^2/2! - x^3/3! +...
No. 3. f(x) = 1/(1+2x)
f(0)=1, f'(0)=-1, f''(0)=2, f'''(0)=-6
1/(1+2x)= sum of f^(n)/n!*(x^n) = 1 - x + x^2 - x^3 +... (wrong)
or
1/(1+2x)= sum of f^(n)(0)/n!*(2x^n) = 1 - 2x + 4x^2 - 8x^3 +...$ (correct)
I understand that substituting the X values into the standard Maclaurin series formulas for sin(x), e^x, and 1/(1+x) is easier, but I really rather use the general Maclaurin formula to expand the functions. I'd really appreciate it if someone could tell me what I'm doing wrong here, why I need to use a new X value (i.e. 2x) to expand the polynomial but not for the trigonometric or exponential functions.