I'm working on indefinite integrals right now. I'm given the problem
$$\int(\frac{8}{x}-\frac{5}{x^2}+\frac{6}{x^3}) dx$$
My worksheet gives the answer $8\ln(x)+\frac{5}{x}-\frac{3}{x^2}+c$
I'm trying to figure out if my answer is correct in a different form. So I tried making my solution equal to the given solution to test it, but so far I don't think that has worked. Here's how I approached this problem:
\begin{align*} \int\frac{8}{x}dx&=8\int\frac{1}{x}dx \implies 8\ln(|x|) \\ \int-\frac{5}{x^2}dx&=-5\int\frac{1}{x}dx \implies -5\ln(|x^2|) \\ \int\frac{6}{x^3}dx&=6\int\frac{1}{x^3}dx \implies6\ln(|x^3|) \\ &= 8\ln(x)-5\ln(x^2)+6\ln(x^3) \\ &= \ln(x^8)-\ln(x^2)^5+\ln(x^3)^{6} \\ &= \frac{\ln(x)^8}{\ln(x)^{10}}+\ln(x)^{18} \\ &= \ln(\frac{1}{x^2}+\ln(x)^{18}) \\ &= -2\ln(x)+18\ln(x) \\ &= 16\ln(x)+c \end{align*}
Careful!
The primitive of $x^a$ is $\frac{x^{a+1}}{a+1}$ for all $a\neq -1$.
Only for $a=-1$ we have that the primitive is $\ln(|x|)$.