Let $(f_n)$ be a sequence of functions with $$f_n(x)=\sum_{k=0}^n (-1)^k \frac{x^{2k}}{(2k)!}.$$ Find a function $f:[0,1] \to \Bbb R$ such that $f_n \to f$ on $[0,1]$.
I know that this sequence of function is the partial sum of the Maclaurin series of $\cos x$, and so, $f_n \to f$ on $[0,1]$, where $f(x)=\cos x$. But, the codomain of $f$ is not $\Bbb R$, but $[-1,1]$. How to approach this?
Thanks in advanced.