Let $w(x)>0$ for $a \leq x \leq b$ be a weight function. (a) Prove that
$\|f\|_{1, w}=\int_a^b|f(x)| w(x) d x$ defines a norm on $\mathrm{C}^0[a, b]$, called the weighted $\mathrm{L}^1$ norm.
(b) Do the same for the weighted $\mathrm{L}^{\infty}$ norm $\|f\|_{\infty, w}=\max \{|f(x)| w(x): a \leq x \leq b\}$.