After noticing some patterns in delta epsilon proofs, I was able to prove a theorem regarding the factorability of quadratics. My question is, if this proof is correct, has it been documented before? And if it has been documented before are there any extensions of the theorem to other contexts?
Theorem: If $f$ is a quadratic with rational coefficients then $f(x)-f(q)$ is factorable $\forall q \in \mathbb{Q}$. (i.e. $\exists \lambda , r_1 , r_2, \in \mathbb{Q} $ $ st. f(x)-f(q)=\lambda (x-r_1)(x-r_2)$)
Proof: Fix $a,b,c \in \mathbb{Q}$ and consider $f(x):= ax^2+bx+c$. Then $\forall q \in \mathbb{Q} $ $f(x)-f(q)= ax^2+bx+c-(aq^2+bq+c)= ax^2+bx-aq^2-bq$. We will continue by reducing this quadratic into factored form $\lambda (x-r_1)(x-r_2)$ and demonstrating that $\lambda,r_1,r_2 \in \mathbb{Q}$. Here $r_1,r_2$ are given by the quadratic formula, and $a= \lambda$ which we already know to be rational. All that is left to show is that $$\frac{-b \pm \sqrt{b^2-4a(aq^2-bq)}}{2a} \in \mathbb{Q}$$ Which can be done by noticing that $\sqrt{b^2-4a(aq^2-bq)}=\sqrt{b^2+4abq+4a^2q^2}= \sqrt{(b+2aq)^2}=|b-2aq|$ $ \forall b,a,q \in \mathbb{R}$. Therefore the roots are rational $ \forall b,a,q \in \mathbb{Q}$ which was to be shown. $\square$
Corollary: $\forall a,b \in \mathbb{Q}$ $ \exists c \ne 0 \in \mathbb{Q}$ st. $ax^2+bx+c$ is factorable.
Proof: Apply the first result with any $q \in \mathbb{Q}$
I have also managed to generalize a form of this result to all functions, but it seems very useless. It should also be noted that it is the strongest version of the theorem that applies to higher degree polynomials that I have been able to prove.
Theorem B: For all continuous functions $f$ defined on some subset of the real line, and for all $r$ on that subset $f(x)-f(r)$ has a root of $r$.
Proof: Fix $f:D \to R$ and $r \in R$ st. $D,R \subset \mathbb{R}$. Then $f(x)-f(r)=0 \implies f(x)=f(r)$ which shows that r is a root of the function $f(x)-f(r)$ $ \square$
Remark: Theorem A I have been able to use widely in my tutoring because it allows for the creation of a factorable quadratic with extreme ease and gives a lot of control on what type of quadratic you obtain. The strongest version of A that applies to higher degrees seems to be that for even degrees $f(x)-f(r)$ has at least two real (or rational depending on your coefficients and choice of r) roots with at least one being r itself. I have not yet felt the need to write this into a formal proof because it seems not very useful, especially when compared with the quadratic case, but I suppose it is true. Theorem B seems both incredibly obvious and slightly non obvious, but I don’t think it’s that useful.
If anyone could offer more insight than what I have here that would be much appreciated.