TITLE: Integration by Parts implies U-substitution?
QUESTION [13 upvotes]: So I feel a bit strange asking a Calculus question, but this came up today while teaching.
One can check that if you start with some integral, which can be see as an "obvious u-substitution problem", that you can instead use integration by parts, and wind up with the scenario where you have have the original integral on both sides of your equation so you solve for the integral.
Example: Given $I=\int g^n(x)g'(x)dx$ we can clearly use u-substitution, but if we use integration by parts we get the equation $I=-nI+g^{n+1}$. This is nothing exciting or surprising, but it yields the observation that u-sub leads to one of these int by parts equations.

Question Is the opposite true?

What I mean to say is, if you do integration by parts and you wind up with an equation of this type, does it mean that you could of used some very clever u-substitution?
I feel like I should know this, but I have thought about it today, and asked a friend or two, and we don't see an immediate proof of this.
Thanks!

REPLY [7 votes]: This expands on a comment that might not have been perfectly clear (perhaps because of its obviousness, for which I apologize).
Suppose you have in hand some magic method of integration (such as the one in the question).  By this I mean any procedure that takes a functional expression $f(x)$ and returns some expression $F(x)$ for its indefinite integral. (I also assume you accept $F(x)$ as a valid solution to your integration; e.g., some people might not accept an elliptic function, or imaginary values are verboten, or they might not like power series, etc.  I leave the criterion of acceptability to you as a matter of taste.  All I require is that you know how to differentiate $F$ and are able to compare that result to $f$ in order to check the validity of your magic method.)  A trivial application of the Fundamental Theorem of Calculus asserts that the "very clever" substitution
$$u = F(x)$$
will enable you to perform the integral.  This happens, of course, because you can calculate that $du = F'(x)dx = f(x)dx$, whence the substitution converts the original integral into $\int{du}$ with general solution $u + C = F(x) + C$ by back-substitution.  In other words, the question as posed merely asks whether the FTC is true in a special case.