I'm trying to prove some statement from my differential equations class, and for some part of the proof I used that, being each $f_n(x,y)$ a continuous function defined over a compact set $\Omega$,
$$ \lim_{n \rightarrow \infty} \text{max}\{|f_n(x,y)| : (x,y)\in\Omega\} = \text{max}\{|\lim_{n\rightarrow\infty} f_n(x,y)|: (x,y)\in\Omega\ \}.$$ I thought this is true, but I don't know how to justify it, or if it's only true when $f$ is continuous or anything. Is this true in general? If not, under what conditions is it true? Any help will be appreciated, thanks in advance.
Based on the useful suggestion of Zwim, I propose here a proof for your identity under the uniform convergence assumption. I.e.
Proof.
First, notice that $x^*_n$ is a miximizer of $f_n$ and $f_n$ converges to $f$ uniformly, we obtain \begin{align} \lim_n f_n(x^*_n) \geq \lim_n f_n(x^*)= f(x^*). \end{align}
Second, as $x^*$ is a minimizer of $f$ we obtain \begin{align} f(x^*) & \geq f(x^*_n) \Rightarrow f(x^*) \geq \lim_n f(x^*_n)= \lim_n f_n(x^*_n). \end{align} Here the last equality is a consequence of the uniform convergence \begin{align} |f(x^*_n)-f_n(x^*_n)|\leq \sup_{x\in \Omega} |f(x)-f_n(x)| \xrightarrow{n\rightarrow +\infty} 0 \end{align}
The proof is completed.