I have a short question about partial integration. If I want to determine an integral of the form $\int f'gdx$, the formula for partial integration is:
$$\int f'gdx=[fg]-\int fg'dx$$ https://en.wikipedia.org/wiki/Integration_by_parts .
Sometimes it is useful to apply the integration rule twice, for example if $g=x^2$ and then you have to apply partial integration on $\int fg'dx$.
My question is: To calculate $\int f'gdx$, are both possibilities ((1),(2)) allowed:
(1) $\int fg'dx=[Fg']-\int Fg''dx$
(2) $\int fg'dx=[f'g]-\int f'g dx$?