How do you compute the following? $$\int_{-\pi/4}^{\pi/4} f(x) \, dg(x) $$ Given $$f(x) = \begin{cases} \dfrac{\sin^4(x)}{\cos(x)} & x \in [0,\infty)\\[6pt] \dfrac{1}{\cos^3(x)} & x \in(-\infty,0) \end{cases} $$ Alright, so we have a discontinuity at $0$. Can I just evaluate as: $$\int_{-\pi/4}^{\pi/4} f(x) \, dg(x)=f(0)(g(0^{+})-g(0^{-1}))+\int_{-\pi/4}^{\pi/4} f(x)g'(x) \, dx$$ I get confused looking at examples, because the integral term always somehow goes to 0. I'm not sure if that's what happens in this case. The first term of the left hand side is $0$, so I think my answer here is $0$, but I'm not sure. Would appreciate an explanation for what happens to the integral term.
EDIT: $$g(x)=1+\sin(x)$$ for $$x \in (-\frac{\pi}{4},\frac{\pi}{4})$$ and $-\frac{1}{2}$ elsewhere