I was just reading though an introductory calculus book and it has the note:
NOTE When integrating quotients, do not integrate the numerator and denominator separately. This is no more valid in integration than it is in differentiation.
Now that's fair enough to point out and it gives a nice example too. But out of curiosity...
Are there examples of functions $f ,g: \Bbb R \rightarrow \Bbb R $ whereby:
$\int \frac {f}{g} =\frac {\int f}{\int g}$.
Say for clarity you have a choice of the constants in the antiderivatives, and $f \not\equiv 0$.
I imagine it might possibly be easier if you choose definite integrals, just none spring to mind!
Maybe there's a link to a similar question on here?
In the comments we have
Differentiating both sides of $\int gh=\int g\int h$ gives $$gh=g\int h +h\int g.$$ Then divide by $h$ to get $$g=g\frac{\int h}{h}+\int g.$$ Differentiate again and rearrange, $$g\left(1+\left[\frac{\int h}{h}\right]'\right)=g'\left(1-\left[\frac{\int h}{h}\right]\right)$$ So for any $h$ the family of $g$ such that the original equation works is described by a differential equation. We can simplify using $$\left[\frac{\int h}{h}\right]'=\frac{h^2-h'\int h}{h^2}.$$ So $$g=g'\left(\frac{h^2-h\int h}{2h^2-h'\int h}\right)$$