$f(x)=(1+x+\frac{x^2}{2!}+\frac{x^3}{3!}+\dots+\frac{x^n}{n!})e^{-x}$ where n ≥ 4 is a positive integer. Discuss the extremum of $f(x)$.
My observations: Since $x$ is not very large we can't take it as $e^x$. If we had $n \to \infty$ then $f(x)$ would have been 1. How to proceed in this case where it not guaranteed that x is very large?
Let $g(n,x)=\sum_{i=0}^n \frac{x^i}{i!}$.
So $f(x)=e^{-x}\cdot g(n,x)$, and $$\frac{d}{dx}f(x)=g(x,n-1)\cdot e^{-x}-g(x,n-1)\cdot e^{-x}$$ $$=e^{-x}\bigl( g(n-1,x)-g(n,x)\bigl)=-\frac{e^{-x}\cdot x^n}{n!}$$ To find the extremum - $$e^{-x}\cdot x^n\overset!=0 \Rightarrow x=0$$