r/MathHelp • u/Waldinian • Dec 29 '20
Why can I "cheat" like this with continued fractions?
Every infinite simple (ie. with positive integer entries) continued fraction represents an irrational number, but I can't wrap my head around what changes when we allow entries to be negative.
You can generate an infinite fraction from pretty much any quadratic, regardless of whether it has rational roots or not. For example, the root of the quadratic (x-2)2 =0 represents a fixed point in the recursive function f(x) = 4/(4-4/(f(x))), and so you might be able to "cheat" and say that
4/(4-4/(4-4/(4-4/(4-...)))) converges to 2.
Can anyone help me make sense of this?
I found this book of notes that certainly helped, and page 30 has some information about problems with negative numbers, but I had a hard time wrapping my head around the reasoning for them.
My first concrete question might be: can a quadratic of the form x2 - bx - c, where b and c are positive integers, have rational roots? It shouldn't, since the continued fraction generated from it would have positive integer entries.
My attempt at this so far has been to to use the quadratic formula to get the diophantine equation b2 + 4c = d2 . If someone could point me in the right direction, I'd appreciate it!
My second question might be: what is it about having a negative sign that screws everything up?
1
u/AutoModerator Dec 29 '20
Reminder:
What have you tried so far? (See Rule #2)
Please don't delete your post. (See Rule #7)
We, the moderators of /r/MathHelp, appreciate that your question contributes to the MathHelp archived questions that will help others searching for similar answers in the future. Thank you for obeying these instructions.
(Note that this is an automatic message posted on every submission by default.)
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/A_californica Dec 29 '20
Continued fractions may not be the best lens with which to view the first question you ask.
Instead, you might enjoy studying the rational root theorem, https://en.wikipedia.org/wiki/Rational_root_theorem, which says that if a rational number p/q (with p, q integers and q nonzero) is in lowest terms and is a root of x^2 - bx - c (with b and c integers), then p must divide the constant coefficient (i.e., -c) and q must divide the coefficient of x^2 (i.e. 1).
Because only integers that divide 1 (the coefficient of x^2) are 1 and -1, the rational root theorem tells you that if x^2 - bx - c has rational roots, they must be integers, and in fact integers that divide c.
Before we bother to impose your condition that the coefficients b and c both be positive, it's worth working the other end of the problem: if the rational roots of a quadratic polynomial with leading term x^2 and integer coefficients happen to be integers m and n, then the polynomial has to factor as (x - m)(x - n). If you expand this, you get x^2 - (n + m) x + mn. Now it might help to think about the conditions under which -mn and n+m will both be positive (so that the coefficient of x and the constant coefficient take the form -b and -c for positive integers b and c). This does happen. For example, (x - 5)(x + 3) = x^2 - 2x - 15 has integer roots 5 and -3.
2
u/PHVF Dec 29 '20 edited Dec 29 '20
To the 1st question:
In this image
The equation (ii) is similar as (i). In a quadratic function, the α₀ coefficient determines the curve “direction”.
Second image
In a quadratic function, Δ determines the existence of a real (|R) root. In example figures, the curve can be either ∪ or ∩, depending of α₀ coefficient. Here you can already notice how your equation (ii) will always have Δ ≥ 0 since b and c are positive (even when α₁ and α₂ are not), so your equation can have rational roots.
Third image
As in bhaskara formula, you can see how it all works now.
And this is an example of a function that works like you suggested The book you linked gives this equation as example in page 31.
To the 2nd question, if I got it right, the issue with the negative numbers come back at the Δ of the equation. If Δ < 0, then you won’t have any real root.
And as a side note, you can get a quadratic equation from an infinite fraction, just like this. If you didn’t like this solution, hmu so I can work on another one based in what they showed in the book