I'm trying to integrate
$$\int(5x^4+1)\ln(x^5+x)dx$$
When I use an online calculator (it first uses substitution and then integration by parts) I get the answer
$$(x^5+x)\ln(x^5+x)-x^5-x$$
but when I try a different approach (without substitution only with integration by parts) I get
$$(x^5+x)\ln(x^5+x)-x$$
(I change the variable of $dx$ to $x^5+x$)
It seem's that you forgot something since diferentiation of $(x^5+x)\ln(x^5+x)-x$ gives: \begin{align*} D_x\left[(x^5+x)\ln(x^5+x)-x\right]&=(5x^4+1)\ln(x^5+x)+5x^4+1-1\\ &=(5x^4+1)\ln(x^5+x)+5x^4 \end{align*} And in the expression $$(x^5+x)\ln(x^5+x)-x$$ the last $x$ must be $x^5+x$ because the change that you used in order to integrate, i.e. $x^5+x$ instead of $x$.