So we have ${I(a) = \int_{0}^{\infty}\frac{1}{(1+ax^2)^{m+1}}dx}$. The derivative is ${-(m+1)\int_{0}^{\infty}\frac{x^2}{(1+ax^2)^{m+2}}}$ (remember that $x$ is a constant with respect to $a$). Now, from integration by parts (with ${dv=\frac{-(m+1)x}{(1+ax^2)^{m+2}}, u=x}$) we get
$${\left(\frac{x}{2a(1+ax^2)^{m+1}}\right)_{0}^{\infty} - \frac{1}{2a}\int_{0}^{\infty}\frac{1}{(1+ax^2)^{m+1}}dx}$$
Obviously the limit will be zero, and hence we have the relation ${I'(a) = \frac{-1}{2a}I(a)}$. You can see this is a very simple separable differential equation:
$${\int\frac{dI}{I}=\frac{-1}{2}\int\frac{1}{a}da}$$
Hence we have ${\ln(I)=-0.5\ln(a)+C}$, and so
$${I(a)=\frac{A}{\sqrt{a}}}$$
The only thing left to do is find the constant ${A}$. This is not really trivial to do, and in general will be in terms of $m$. Take ${I(1)}$:
$${I(1)=\int_{0}^{\infty}\frac{1}{(1+x^2)^{m+1}}dx=\frac{A}{\sqrt{1}}=A}$$
Let's make the substitution ${x = \tan(t)}$. This gives
$${A=\int_{0}^{\frac{\pi}{2}}\frac{\sec^2(t)}{(\sec^2(t))^{m+1}}dt=\int_{0}^{\frac{\pi}{2}}\cos^{2m}(t)dt}$$
Since we are dealing with even powers of cosine, we can write
$${\int_{0}^{\frac{\pi}{2}}\cos^{2m}(t)dt=\frac{1}{4}\int_{0}^{2\pi}cos^{2m}(t)dt}$$
A formula exists for this, see: Integral of $\int_0^{2\pi}\cos^n(x)\,dx$. :
$${\int_{0}^{2\pi}cos^{m}(t)dt=\frac{2\pi}{2^m}\left(\begin{array}{c}m\\\frac{m}{2}\end{array}\right)}$$
And so finally,
$${A=\frac{1}{4}\int_{0}^{\frac{\pi}{2}}\cos^{2m}(t)dt=\frac{\pi}{2^{2m+1}}\left(\begin{array}{c}2m\\m\end{array}\right)}$$
Giving our final answer
$${I(a)=\frac{\pi}{2^{2m+1}\sqrt{a}}\left(\begin{array}{c}2m\\m\end{array}\right)}$$
Edit: ah I see many people already beat me to it, I'm slow at writing LaTeX haha. The way I like to think of Feynmans trick (which is just a special case of the Leibniz rule for integration) is that we essentially are parameterising our integral, and looking at how our integral changes with respect to our new variable. If we can then "pin down" our integral to a value at a certain point (that is much easier for us to evaluate), we can deduce what value the integral will take on for different values. Of course if we take multiple derivatives with Feynmans trick, the more constants you will have to account for...