The function $f_n(x):[-1,1] \to \mathbb{R}, \, \, \,f_n(x) = x^{2n-1}$ tends pointwise to the function $f(x) = \left\{\begin{array}{l l}1&\textrm{if} \quad x=1\\0&\textrm{if} \quad -1
Thanks!
The function $f_n(x):[-1,1] \to \mathbb{R}, \, \, \,f_n(x) = x^{2n-1}$ tends pointwise to the function $f(x) = \left\{\begin{array}{l l}1&\textrm{if} \quad x=1\\0&\textrm{if} \quad -1
Thanks!
Your argument
is a great proof that for any $x$, the sequence $f_n(x)$ tends to $f(x)$. In other words, it's a proof that $f_n$ tends to $f$ pointwise.
But the assertion $||f_n(x) - f(x)||_\infty \to 0$ is the assertion that $f_n$ tends to $f$ uniformly on $[-1,1]$, which as you've noted is false.
The difference in the two statements (hence in how you'd need to prove them) is in the order of quantifiers. For pointwise convergence, given any $\epsilon>0$, it's "for all $x$, there exists $n$ such that..." - in other words, $n$ can depends on $x$ as well as $\epsilon$. For uniform convergence, given any $\epsilon>0$, it's "there exists $n$ such that for all $x$, ..." - in other words, $n$ cannot depend on $x$.
If you try reorganizing your proof so that you have to choose $n$ before $x$ is given, then you'll see the proof break down.