Question: Let $f,g \in L^p([a,b]),1 < p < \infty$. Show that the function $I \colon \mathbb{R} \to \mathbb{R}$ defined by $$I(t) := \int_a^b |f(x) + t g(x)|^p\, dx$$ is differentiable at $t = 0$ and compute its derivative.
My attempt: Using Minkowski's inequality the function $I$ is defined for all $t \in \mathbb{R}$ and $I(0) = \int_a^b |f(x)|^p \, dx$. I have consider using Lebesgue-dominated convergence theorem by letting $\{t_n\}\subset \mathbb{R} - \{0\}$ so that $t_n \to 0$ and defining $$I_n(t) := \int_a^b \frac{|f(x) + t_n g(x)|^p - |f(x)|^p}{t_n}\, dx$$ however I am not too sure how to carry on from here. Alternatively, I suspect the derivative at $t = 0$ should be the following expression $$A := \int_a^b p |f(x)|^{p-1} |g(x)| \, dx$$ so i tried to consider proving the following $$\lim_{t \to 0} \int_a^b \frac{|f(x) + t g(x)|^p - pt |f(x)|^{p-1}|g(x)| - |f(x)|}{t}\, dx = 0.$$ However, I am not sure of any inequalities to estimate the integrand. Any hints will be appreciated.
The result follows by dominated convergence for differentiation of integrals. One version, perhaps the weakest, is discussed here, works for the problem in the OP.
Define $F(t,x)=|f(x)+t g(x)|^p$ for $(t, x)\in\mathbb{R}\times [a,b]$.
Then, for each $|t|<1$, the function $x\mapsto \partial_tF(t, x)$ is integrable over $[a,b]$, $$\Phi(t)=\int_{[a,b]}F(t, x)\,dx,\qquad |t|<1$$ is differentiable, and \begin{align} \Phi'(t)&=\int_{[a,b]}\partial_t F(t, x)\,dx\\ &=\int_{[a,b]}p\,\operatorname{sign}(f(x)+t g(x))|f(x)+ tg(x)|^{p-1} g(x)\,dx\qquad |t|<1 \end{align} In particular, $$\Phi'(0)=p\int_{[a,b]}\operatorname{sign}(f(x))|f(x)|^{p-1} g(x)\,dx$$
To emphasize how dominated convergence is used, notice that by the mean value theorem, for fixed $(t_0,x)\in(-1,1)\times[a,b]$, and all $|h|<1-|t_0|$, $$\Big|\frac{F(t_0+h, x)-F(t_0, x)}{h}\Big|=\Big|\partial_t{F}(t_0+\theta_{t_0,x}h,x)\Big|\leq |\phi(x)|$$ where $|\theta_{t_0,x}|<1$. Thus, moving the limit $h\rightarrow0$ inside the integral in $$\int_{[a,b]}\frac{F(t_0+h,x)-F(t_0,x)}{h}$$ is justified by dominated convergence.