for a function $g_n:[0,5] \rightarrow \mathbb{R}$ where
$g_n=-nx^2+5\; if\; 0\le x \le 1/n$
$g_n=0\; if\; 1/n < x \le 5$
show pointwise convergence
My attempt: I am very new to this subject but I thought for pointwise convergence I take $n\rightarrow \infty$ and I get $g=-\infty x^2+5\; for \; 0 \le x \le 0$, so this function is true for x = 0, but infinity multiply zero is problematic. How to deal with this?