So I want to integrate $\frac{1}{x^2+10x+50}$ and when I calculate it with an online calculator, I get $\frac{1}{x^2+10x+50}=\frac{1}{(x+5)^2+25} => u=\frac{x+5}{5}=>\frac{du}{dx}=\frac{1}{5}$
so that $\frac{1}{x^2+10x+50}=\frac{1}{5}\frac{1}{u^2+1}$
As far as I understood, the most common substitution I see is that the term is transformed into a function times the derivative of said function, which is when you can substitute the function and the derivative disappears. Here I can't wrap my head around as to what happens mathematically in this substitution - any help?