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?


Solution 1:

In the comments we have

Note that by writing $f=gh$, this is equivalent to finding functions $g$ and $h$ such that $\int gh=\int g\int h$.
– MPW

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)$$

Solution 2:

I'll do something similar to Oscar's answer, but I'll introduce bounds of integration to avoid issues with constants. Starting with $f(x)=g(x)h(x)$, we have $$\int_a^x g(y) h(y)\,dy=\int_a^x g(y)\,dy \int_a^x h(y)\,dy$$ Differentiating both sides with respect to $x$, we get $$g(x)h(x)=g(x)\int_a^xh(y)\,dy+h(x)\int_a^xg(y)\,dy$$ $$\implies \frac{\int_a^x h(y)\,dy}{h(x)}=1-\frac{\int_a^x g(y)\,dy}{g(x)}$$ $$\implies\frac{h(x)}{\int_a^x h(y)\,dy}=\frac{g(x)}{g(x)-{\int_a^x g(y)\,dy}}$$ Noting that $\frac{d}{dx}\ln\left(\int_a^xh(y)\,dy\right)=\frac{h(x)}{\int_a^x h(y)\,dy}$, we integrate from $b$ to $x$ to obtain $$\ln\left(\int_a^xh(y)\,dy\right)-\ln\left(\int_a^bh(y)\,dy\right)=\int_b^x{\frac{g(z)}{g(z)-{\int_a^z g(y)\,dy}}}\,dz$$ $$\implies \frac{1}{\int_a^bh(y)\,dy}\int_a^xh(y)\,dy=\exp\left(\int_b^x{\frac{g(z)}{g(z)-{\int_a^z g(y)\,dy}}}\,dz \right)$$ Differentiating with respect to $x$, multipying both sides by $g(x)$ (note $f(x)=g(x)h(x)$), and setting $C=\int_a^bh(y)\,dy$, we obtain

$$f(x)=\frac{Cg(x)^2}{g(x)-{\int_a^x g(y)\,dy}}\exp\left(\int_b^x{\frac{g(z)}{g(z)-{\int_a^z g(y)\,dy}}}\,dz \right)$$

Notice however, that if $f(x)$ satisfies your initial condition on division, so does any multiple of it. Hence, the constant is arbitrary, and we can conclude the following:

For any function $g(x)$ defined on $(a,d)$, the equation $$\int_a^d\frac{f(x)}{g(x)}\,dx=\frac{\int_a^df(x)}{\int_a^dg(x)}\,dx$$ is satisfied by any multiple of the family of functions $$f(x)=\frac{g(x)^2}{g(x)-{\int_a^x g(y)\,dy}}\exp\left(\int_b^x{\frac{g(z)}{g(z)-{\int_a^z g(y)\,dy}}}\,dz \right) \forall \,b\in \mathbb{R}$$

Solution 3:

Take for instance $f(x)=e^{4x}$ and $g(x)=e^{2x}$.