There have been lots of questions on this site about the use of infinity in different ways in physics.
Infinitely big - Physics near null infinity
Infinitesimals - Using differentials in physics
Renormalization - A simple, easily understandable example of infinities making trouble in physics?
This is all fine. But one mathematically ordinary use of infinity bothers me. You can show the counting numbers and the even numbers have the same size by mapping 1->2, 2->4, and so on. This obviously fails if you try it with the counting numbers and even numbers below n. You run out of even numbers around n/2. No problem - make n bigger. Now it takes longer to run into trouble. And when you do the trouble is bigger. But for the full set, you never have to settle the accounts. You sweep the infinitely big error under an infinitely distant rug.
This makes me squirm a little. You can use this idea to prove unphysical results like the Banach-Tarski theorem. Vsauce demonstrates how this idea leads to the ability to cut a sphere into 5 "pieces" and put them back together into two spheres. Of course, you can't really cut out the infinitely detailed shaped needed to do this.
But he says that some physicists think this is physical. Some paper have been written using this idea. For example to explain things about quark confinement. He doesn't explain the application to physics. Can anyone enlighten me? Hopefully with a reasonably simple explanation.
There is also the use of
$$1+2+3 + ... = -\frac{1}{12}$$
in string theory. But this might not be the same thing. This isn't true if you just add natural numbers and see what it converges to.
This has something of the flavor of how p-adic numbers work. For p-adics, the norm is different. Numbers that differ in bigger digits are closer together, as explained in The Most Useful Numbers You've Never Heard Of.
To sum 1+2+3+⋯ to −1/12 outlines several ways of showing this sum, including one by Euler.
For more about the use in string theory, see