\left(\frac a{\sqrt{a^2+b^2}}\right)^2=\frac{a^2}{a^2+b^2}\leq\frac{a^2+b^2}{a^2+b^2}=1