Why aren't these two integration methods yielding the same answer? I'm trying to solve this (not homework, if it matters), and both u-substitution and integration by parts are both yielding two different answers. Where am I going wrong?
Equation: $$\int \frac{(4x^3)}{(x^4+7)}dx$$
u-substitution answer: $$=\ln\big|(x^4+7)\big|+C$$
integration by parts answer: 
$$=\int4x^3*(x^4+7)^{-1}dx$$
$$=4x^3*\ln\big|x^4+7\big|-\int 12x^2*(x^4+7)^{-1}dx$$
$$=4x^3*\ln\big|x^4+7\big|-(12x^2*ln\big|x^4+7\big|-\int 24x*(x^4+7)^{-1}dx)$$
$$=4x^3*\ln\big|x^4+7\big|-(12x^2*ln\big|x^4+7\big|-24x*ln\big|x^4+7\big|-\int 24(x^4+7)^{-1}dx)$$
$$= 4x^3*\ln\big|x^4+7\big|-(12x^2*\ln\big|x^4+7\big|-(24x\ln\big|x^4+7\big|-24\ln\big|x^4+7\big|))$$
$$=(4x^3-12x^2+24x-24)(\ln\big|x^4+7\big|)$$
 A: Just to answer your question about why using integration by parts allegedly leads to a different solution:
 In your work on integration by parts, you made a mistake at the start; you seem to have let $ u =4x^3$, $\,dv = (x^4 + 7)^{-1}\,dx$. The problem is in your conclusion that $uv = 4x^3 \ln(x^4+ 7)$. 
It is NOT true that in integrating $dv$, we obtain $v = \ln(x^4 + 7)$. In order to integrate $dv$, you're attempting to integrate $$\int\dfrac{dx}{(x^4 +7)}\neq \ln(x^4 + 7) +c$$  We need $u = 4x^3$ to be back in the integrand to obtain $$\int \dfrac{(x^4 + 7)'}{x^4 + 7}\,dx = \ln(x^4 + 7) + c$$
In short, you're back to the original integral.
A: I don't understand it. For $u = x^4+7, du = 4x^3dx$ so
$$
\int \frac{4x^3}{x^4+7} dx = \int du/u = \ln |x^4+7| + C.
$$
Show work for your by parts results and it will become clear where the error is...
A: I know you are asking about a specific math problem, however, I ran into the same issue with finding the integral of 
$$ \int x(x-2)^5 dx.$$
The two answers I received were 
$$\frac{(x-2)^7}{7}+\frac{x-2^6}{3}+C$$
by using the Chain Rule and 
$$\frac{x (x-2)^6}{6}-\frac{(x-2)^7}{42} +C$$ 
using the Product Rule (integration by parts or tabular method). At first I thought they were different answers but I expanded both answers in my TI-89 (could be done by hand but will take a minute). Then I factored each expanded answer and received 
$$\frac{(x-2)^6 (3x+1)}{21}+C$$ 
for both answers. So through that route I figured out both yield the same answer but in different algebraic form. 
A: The correct result is:
$$\int\frac{4x^3}{x^4+7}dx=\ln|x^4+7|+c$$.
With substitution: $u=x^4+7$ from which $du=4x^3dx$ hence the integral become:
$$\int\frac{du}{u}=\ln|u|+c$$.
Integration by parts it's not raccomanded in this case.
A: Both answers are wrong, I believe. Letting $u = x^4 + 7$, you get $du = 4x^3 ~dx$, sop the first integral becomes
$$
\int \frac{1}{u} du = \ln u = \ln (x^4 + 7).
$$
For the second, it's not at all clear to me which parts of the integral you've chosen as $u$ and $dv$ for your integration by parts. 
