I was reading about how 1+2+3+4... !=-1/12 (which is something that drove me crazy when I first heard about it in a Numberphile video) in an article by Terence Tao. He says that -1/12 is in fact -1/12 + $ \int^{\infty}_{0} x \, dx $ . I have a couple of questions that I hope you guys can answer me in a way I could sort of understand as I'm still an undergraduate student. I've also read his article on zeta function but I didn't get a clue where do these integrals come from as it is a bit advanced for me.
My questions are: Where do these integrals come from? When he says "these infinites can sometimes be neglected as they can be considered orthogonal to the application" (near the end of the article), what does orthogonal to the application mean? How is the theory studies this infinite sums called? Any books where I can find more info?
Thanks in advance.