The question is:
Define $f_k: [0,1] \rightarrow \mathbb{R}$ by $$ f_{k}(x) = \begin{cases} 2kx^2 & 0 \leq x \leq \frac{1}{2k} \\ 2k^2(\frac{1}{k}-x) & \frac{1}{2k} \leq x \leq \frac{1}{k} \\ 0 & \frac{1}{k} \leq x \leq 1 \end{cases}$$ Prove that $(f_{k})_{k \in \mathbb{N}}$ converges pointwise to zero on $[0,1]$.
The definition I have is as follows
A sequence $(f_k)_{k \in \mathbb{N}}$ of functions $f_k:A \rightarrow \mathbb{R}$ converges pointwise to a function $f:A \rightarrow \mathbb{R}$ if $\forall \epsilon > 0, \forall x \in A, \exists N \in \mathbb{N}$ such that $\forall k>N: |f_{k}(x)-f(x)|<\epsilon$
How do I go about proving this via the definition?
My attempt is currently
Fix $\epsilon>0$. If $x=0$ then $f_{k}(0)=0$. Now for $0 \leq x \leq \frac{1}{2k}$ we have that $|f_{k}(x)-f(x)|=|2k^{2}x| \leq |k|$ on the interval since $x\in[0,\frac{1}{2k}]$.
I can also find a similar inequality for the second case, but I don't understand how to find a suitable $N$.