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

-
The two results are false. – JJacquelin Feb 14 '14 at 16:33
Both are wrong. You're making a mistake on passing from rational functions to a log primitive. The integral should be just $log(x^4+7)$, since differentiating it comes out as $f(x) '/f(x)$ – Felipe Jacob Feb 14 '14 at 16:33
I just updated the u-substitution answer, still not sure on the int-by-parts, I'll update with my work – Josh F Feb 14 '14 at 16:37
[NB: Try using \begin{align}A&=B \\ &=C \\ &\dots\end{align} for \begin{align}A&=B \\ &=C \\ &=\dots\end{align}] – Shauna Feb 14 '14 at 16:50

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.

-

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...

-
Quickest answer with no need for repetition by others! + (In all fairness to other answerers, they were also quick, and probably in the process of answering while you posted first.) – amWhy Feb 14 '14 at 16:33
thanks! I mis-typed the u-substitution answer and re-wrote it as what you have. – Josh F Feb 14 '14 at 16:47
But with the integration by parts answer, I wrote out my work, but I can't quite see why it doesn't work. Thoughts? – Josh F Feb 14 '14 at 16:47

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.

-

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.

-