Let $f: [a, b] \to \mathbb R$ limited and integrable function and $g: [a, b] \to \mathbb R$ function. Presume that there exists points $y_1, y_2, ... , y_k \in [a, b]$ s. t. $f(x) = g(x)$ for all $x \in [a, b] - y_1, y_2,...,y_k.$ Then $g$ is also integrable on $[a,b]$ and
$\int_a^b g(x) dx = \int_a^b f(x) dx$
I didnt really get a grasp of this, how do I prove it in a neat way?