I have been reading David Angell's lovely book, Irrationality and Transcendence in Number Theory, which has given me some fresh insights even with some of the easier proofs. But the book reminds me of something that I've long been puzzled by, which the book hasn't cleared up for me. In the book's proof that $e^r$ is irrational for nonzero rational $r$, the starting point is to consider an integral of the form $$\tag{*}\label{star}\int_0^r f(x) e^x \thinspace dx$$ for some suitably chosen polynomial $f(x)$. Lest you think this is an isolated trick used only in this one proof, let me mention that perhaps the shortest known proof of the irrationality of $\pi$ is based on the same idea (with $\sin x$ in place of $e^x$) as are even more general irrationality/transcendence proofs. My main question is:
Why would you think that multiplying by a polynomial and integrating is a fruitful idea here?
To give a better idea of what I'm asking, let me make a few remarks about how far I've gotten with trying to answer my own question. It makes sense that for an irrationality proof, we should be looking for good approximations to $e^x$. Angell attributes the idea for his proof to Hermite, and it occurs to me that Hermite is also well known for his work on orthogonal polynomials. So maybe the thought process could go something like this: If Taylor series aren't working for us (Fourier's proof of the irrationality of $e$ does use the Taylor series, but if you try to mimic it naïvely to prove the irrationality of $e^r$, you run into some difficulties when $r>1$), then maybe we can try to approximate $e^x$ using orthogonal polynomials. This idea would at least get integration into the picture. So I have a side question:
Is there any historical evidence that Hermite's proof of the transcendence of $e$ was partially inspired by his work on orthogonal polynomials?
One problem with this line of heuristic reasoning is that the best choices for the polynomial $f(x)$ seemingly have nothing to do with classical orthogonal polynomials. For the proof of the irrationality of $e^r$ or Niven's proof of the irrationality of $\pi$, the appropriate choice of $f(x)$ turns out to be something of the form $$\tag{**}\label{starstar}f(x) = {x^n (a-bx)^n\over n!}$$ where $a/b$ is the rational number that we are trying to prove can't exist. Well, if you get as far as thinking that Formula \eqref{star} might be helpful, then it's not so hard, by staring at what you get via integration by parts, to "optimize" the choice of $f(x)$. So maybe that's all there is to it: motivated by a vague analogy with the theory of orthogonal polynomials, we are led to consider Formula \eqref{star}, and then we find the optimum choice of $f(x)$ for our purposes. However, I'm still left wondering if there's some general theory that can be used to justify that polynomials of the form \eqref{starstar} are interesting. Here's one observation to suggest that something more might be hiding behind the scenes. Suppose we evaluate $$ \int_0^1 {x^n(1-x)^n\over n!} e^x \thinspace dx.$$ We find that we get (some of) the continued fraction convergents for $e$—or more precisely, we get $p-qe$ for convergents $p/q$. (By contrast, if we truncate the Taylor series for $e$, we don't generally get convergents for $e$.) So a third question might be:
Is there a way to see a priori, without "just working it out," that we should expect the continued fraction convergents to emerge from $e$ in this manner?