- Let $f$ be integrable on $[a, b],$ and suppose $g$ is a function on $[a, b]$ such that
$$g(x)=f(x)$$
except for finitely many $x$ in $[a, b] .$ Show that $g$ is integrable and
$$ \int_{a}^{b} f=\int_{a}^{b} g $$.
How can I show, can you help?
There is a solution here (but I couldn't understand, the solution is very complicated.).
Because $f-g=0$ a.e., $$ \int (f-g) = 0 \text{.} $$ Then $$ \int f = \int (f-0) = \int (f - (f-g)) = \int g \text{,} $$ showing $g$ is integrable by showing to what it integrates.