I need to find terms up to degree $5$ of $e^{e^{z}}$ at $z=0$.
I tried letting $\omega = e^{z} \approx 1+z+\frac{z^{2}}{2!}+\frac{z^{3}}{3!}+\cdots$, and then substituting these first few terms into the Taylor series expansion for $e^{z}$ as follows:
$e^{\omega} = \sum_{n=0}^{\infty}\frac{\omega^{n}}{n!} = 1 + \omega + \frac{\omega^{2}}{2!}+\frac{\omega^{3}}{3!}+\cdots = 1 + (1+z+\frac{z^{2}}{2!}+\frac{z^{3}}{3!}+\frac{z^{4}}{4!}+\cdots) + \frac{1}{2}\left(1+z+\frac{z^{2}}{2!}+\frac{z^{3}}{3!}+\frac{z^{4}}{4!}+\cdots \right)^{2}+ \frac{1}{3!}\left( 1+z+\frac{z^{2}}{2!}+\frac{z^{3}}{3!}+\frac{z^{4}}{4!}+\cdots\right)^{3}+\cdots$
But, then when I try to multiply this all out (using Maple), I find that going even further out than I have here, the terms of degree $\leq 5$ do not terminate. So, then I tried putting the command into Maple, and it came out to be something long and horrible with $e$ coefficients for each term.
I must be missing something here.
Could somebody please tell me how to finish this problem? I would ask for a complete solution, not hints or leading questions. I've been working on this for hours and am beyond frustrated. The most edifying thing for me at this point would be to see the correct, full way it's supposed to be done, work backwards, take it apart, and then be able to apply it to other situations.
Thank you.
Alternatively you could calculate the expansion this way:
Let $f(z)=e^{e^z}$
Then $\log (f(z))=e^z$
Differentiating with respect to $z$ gives: $\frac 1{f(z)} f'(z)=e^z$ (using chain rule)
Differentiating again gives: $-\frac 1{f^2}f' f'+\frac 1{f} f''=e^z \Rightarrow -\frac 1{f^2}(f')^2+\frac 1{f} f''=e^z $ (using product rule and chain rule)
Can you continue this?
Substituting $z=0$ into the expressions above: $f(0)=e^{e^0}=e^1=e$
$\frac 1{f(0)} f'(0)=e^0 \Rightarrow \frac 1e f'(0)=1 \Rightarrow f'(0)=e$
$-\frac 1{f(0)^2}(f'(0))^2+\frac 1{f(0)} f''(0)=e^0 \Rightarrow -\frac 1{e^2}e^2+\frac 1{e} f''(0)=1 \Rightarrow -1+\frac 1{e} f''(0)=1 \Rightarrow \frac 1{e} f''(0)=2 \Rightarrow f''(0)=2e$
Maclaurin series is $f(0) + f'(0)z + \frac 1{2!} f''(0)z^2 + ...$
Maclaurin series is $e + ez + \frac 1{2} 2ez^2 + ... = e + ez + ez^2 + ... $