There is this more systematic approach (requires linear algebra) which we can extend for more complicated cases. The key fact is that you have a set of functions (vectors) whose linear span is closed under the derivative operator. (You will never get something that is not a linear combination of $e^x \cos(x)$ and $e^x \sin(x)$ by taking derivatives).
Consider the vector space $V$ generated by $e^x \cos(x), e^x \sin(x)$. The derivative $D:V\to V$ is a linear map in that space. In those basis vectors
$$D =
\left(
\begin{array}{cc}
1 & -1 \\
1 & 1 \\
\end{array}
\right)$$
The problem is now to calculate $D^{100}$. For that, we could diagonalise $D$. However, in this case, $D^4 = -4 I$ so $D^{100} = -4^{25} D$. Therefore
$$D(e_1) = 4 e_1 = e^x \cos(x)$$
So, the real part of $2^{n/2}e^x\cdot e^{i(n\pi/4+x)}$ is $2^{n/2}e^x\cos(n\pi/4+x)$ which is the required answer
– lab bhattacharjee Apr 21 '16 at 15:00