# Eight questions on hyperbolas and conic sections

**URL:** https://boards.straightdope.com/t/eight-questions-on-hyperbolas-and-conic-sections/316384
**Category:** Factual Questions
**Created:** [August 10, 2005, 2:26am UTC](https://boards.straightdope.com/t/eight-questions-on-hyperbolas-and-conic-sections/316384 "2005-08-10T02:26:54Z")
**Posts on this page:** 13
**Page:** 2

<div class="post-metadata">

### Author: ![Sequent](https://avatars.discourse-cdn.com/v4/letter/s/dbc845/32.png) [@Sequent](https://boards.straightdope.com/u/Sequent)
#### Post date: [August 11, 2005, 7:13pm UTC](https://boards.straightdope.com/t/eight-questions-on-hyperbolas-and-conic-sections/316384/21 "2005-08-11T19:13:06Z")

</div>

Having read **Omphaloskeptic’s** post half a dozen times, I think I’m starting to understand the proof. One step I don’t understand:

> [@Omphaloskeptic](#):
>
> y = (a+x[sup]2[/sup])/(b-x) = -(x + b) + (a + b[sup]2[/sup])/(b-x).

…is how you got the equation into the form to the right of the last equal sign. I guess basic algebra, but I can’t replicate the step.

More importantly, is there a way one can then determine the values of the integral\* solutions for (x,y) if one starts out with fixed integral values for a & b (and x != b)? Or would one simply be stuck with the problem of factorizing c to arrive at the solutions?

- It sucks not being a math person. The word “integral” threw me at first, but I take it that you’re simply using it as the adjective form of “integer.”

---

<div class="post-metadata">

### Author: ![Mathochist](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@Mathochist](https://boards.straightdope.com/u/Mathochist)
#### Post date: [August 11, 2005, 7:33pm UTC](https://boards.straightdope.com/t/eight-questions-on-hyperbolas-and-conic-sections/316384/22 "2005-08-11T19:33:19Z")

</div>

> [@Sequent](#):
>
> … how you got the equation into the form to the right of the last equal sign. I guess basic algebra, but I can’t replicate the step.

Write

(x+b) = (x+b)(x-b)/(x-b) = (x[sup]2[/sup] - b[sup]2[/sup])/(x-b)

Does that help?

> [@](#):
>
> More importantly, is there a way one can then determine the values of the integral\* solutions for (x,y) if one starts out with fixed integral values for a & b (and x != b)? Or would one simply be stuck with the problem of factorizing c to arrive at the solutions?

I’m pretty sure you’d have to factor. In general, determining integral points of varieties (umm… i’ll explain in a bit[1]) is a very sensitive and case-by-case process, and only estimates can be worked out in general.

Here’s a similar example: Consider again an elliptic curve, but now consider the coefficients and variables to take values which are integers modulo p for some prime p. That is, they’re not integers, but remainders of integers after division by p[2]. Hasse’s theorem states that the number of points N on the curve satisfies

|N - (p+1)| \<= 2sqrt(p)

and further that for any N satisfying that inequality, there exists an elliptic curve with N points. That is, without considering specific parameter values this is the best you can say.

[1] What we’re really considering here are not just sets of points, but solution sets of collections of polynomial equations, called “varieties”. The field of algebraic geometry was created to investigate just these sorts of questions.  
[2] Using remainders after division by 12 is essentially how clock time works.

---

<div class="post-metadata">

### Author: ![Omphaloskeptic](https://avatars.discourse-cdn.com/v4/letter/o/bcef8e/32.png) [@Omphaloskeptic](https://boards.straightdope.com/u/Omphaloskeptic)
#### Post date: [August 11, 2005, 7:55pm UTC](https://boards.straightdope.com/t/eight-questions-on-hyperbolas-and-conic-sections/316384/23 "2005-08-11T19:55:19Z")

</div>

> [@Sequent](#):
>
> Having read **Omphaloskeptic’s** post half a dozen times, I think I’m starting to understand the proof. One step I don’t understand:
> 
> > [@Omphaloskeptic](#):
> >
> > y = (a+x[sup]2[/sup])/(b-x) = -(x + b) + (a + b[sup]2[/sup])/(b-x).
> 
> …is how you got the equation into the form to the right of the last equal sign. I guess basic algebra, but I can’t replicate the step.

Yes, you can get this by long division of polynomials. Dividing a+x[sup]2[/sup] by b-x gives a quotient of -(x+b) and remainder of a+b[sup]2[/sup]. To do long division, you just do the following steps:  
Let P be the dividend and D the divisor. Initially the quotient Q is 0.

1. If the degree (the maximum power of x) of the dividend is less than that of the divisor, stop. The remainder in the dividend is now the long-division remainder.
2. Remove the highest-order term from the dividend by subtracting out a multiple kx[sup]n[/sup]D of the divisor. (Here k will be the ratio of the coefficients of the highest-order terms in P and D, and n will be the difference in their degrees.) Add a term kx[sup]n[/sup] to the quotient Q, and subtract kx[sup]n[/sup]D from the dividend P.
3. Go to step 1.  
It’s easy to see why this works; at each iteration, step 2 preserves the value of Q+(P/D), but it moves the highest-order terms out of P and into Q until the value left in P has smaller degree than that of D. It is exactly the same as the long-division algorithm used in grade school, except that in grade school you used “powers of 10” explicitly instead of powers of x.  
For this example, start with P=a+x[sup]2[/sup], D=b-x, Q=0.
4. deg(P)=2, deg(D)=1; so we’re not done.
5. k=1/(-1)=-1; n=deg(P)/deg(D)=1. So add a term -x to Q (now Q=-x), and subtract -x(b-x) from P (now P=a+bx).
6. deg(P)=1, deg(D)=1; so we’re not done.
7. k=b/(-1)=-b; n=deg(P)/deg(D)=0. So add a term -b to Q (now Q=-x-b), and subtract -b(b-x) from P (now P=a+b[sup]2[/sup]).
8. deg(P)=0, deg(D)=1; so we’re done. Now the quotient is Q=-x-b and the remainder is P=a+b[sup]2[/sup].

It’s easy to check: just put all the values over the same denominator b-x:  
-(x+b) + (a+b[sup]2[/sup])/(b-x) = -(x+b)(b-x)/(b-x) + (a+b[sup]2[/sup])/(b-x) = (x[sup]2[/sup] - b[sup]2[/sup] + a + b[sup]2[/sup])/(b-x) = (x[sup]2[/sup]+a)/(b-x), the original form.

> [@](#):
>
> More importantly, is there a way one can then determine the values of the integral\* solutions for (x,y) if one starts out with fixed integral values for a & b (and x != b)? Or would one simply be stuck with the problem of factorizing c to arrive at the solutions?
> 
> - It sucks not being a math person. The word “integral” threw me at first, but I take it that you’re simply using it as the adjective form of “integer.”

If there were an easier way than just factoring c, then you could use this as a clever trick to factor integers quickly. (Given c, it’s easy to find a and b such that c=a+b[sup]2[/sup], so given the number c to factor, we’d just compute such a and b, break RSA, and, depending on our inclinations, either steal a fortune or make a mathematical name for ourselves.) Since factoring large integers is believed to be hard, it seems unlikely that such a thing exists.

Sorry about the use of “integral.” Using “integer” as an adjective still grates on me sometimes, but “integral” has its own problems too.

---

<div class="post-metadata">

### Author: ![Omphaloskeptic](https://avatars.discourse-cdn.com/v4/letter/o/bcef8e/32.png) [@Omphaloskeptic](https://boards.straightdope.com/u/Omphaloskeptic)
#### Post date: [August 11, 2005, 8:20pm UTC](https://boards.straightdope.com/t/eight-questions-on-hyperbolas-and-conic-sections/316384/24 "2005-08-11T20:20:13Z")

</div>

Hey **Mathochist** , since you brought up elliptic curves: I’m reading Silverman and Tate’s undergrad intro to elliptic curves (_Rational Points on Elliptic Curves_), which (never having run into elliptic curves except as related to integration and doubly-periodic functions) I like quite a bit — actually I find the idea of thinking of elliptic curves as groups utterly beautiful. But sometimes I’d like more details; do you have a recommendation for a readable but more advanced book on the same stuff (elliptic curves, with an emphasis on Diophantine analysis)?

---

<div class="post-metadata">

### Author: ![Sequent](https://avatars.discourse-cdn.com/v4/letter/s/dbc845/32.png) [@Sequent](https://boards.straightdope.com/u/Sequent)
#### Post date: [August 11, 2005, 8:50pm UTC](https://boards.straightdope.com/t/eight-questions-on-hyperbolas-and-conic-sections/316384/25 "2005-08-11T20:50:39Z")

</div>

Wow. Thanks, guys! This helps a bunch. So would it be fair to conclude the following:

Finding an integral solution for (x,y) in the hyperbola described by y = (a+x^2) / (b-x) where a & b are positive integers and b != x is essentially the same problem as factoring (b^2 + a)?

Why is factoring so hard, anyway? I understand trial division becomes impractical past numbers of a certain size. I understand we have some pretty complicated sieve-like algorithms that are a significant improvement over trial divison. I’ve read that, given a quantum computer, the problem would be a snap. But could it be that there is, out there, somewhere, a simple algorithm for factorising a non-prime integer into its component primes? Since it’s pretty easy to multiply those primes together, doesn’t it stand to reason that there’s a fairly simple way to undo the same operation? Or have mathematicians pretty much proven that such a simple route is not possible?

And what’s the term for this: factoring or factorizing?

---

<div class="post-metadata">

### Author: ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)
#### Post date: [August 11, 2005, 9:02pm UTC](https://boards.straightdope.com/t/eight-questions-on-hyperbolas-and-conic-sections/316384/26 "2005-08-11T21:02:35Z")

</div>

> [@Sequent](#):
>
> Why is factoring so hard, anyway?

No one even knows at this point whether it is hard. If you could answer why it’s hard, you’d probably be at least 20-30 years ahead of the best and brightest mathematicians and computer scientists of today.

> [@](#):
>
> But could it be that there is, out there, somewhere, a simple algorithm for factorising a non-prime integer into its component primes?

Yep. Find it, publish it, and if you’re not proven wrong after two years, you get a million bucks.

> [@](#):
>
> Since it’s pretty easy to multiply those primes together, doesn’t it stand to reason that there’s a fairly simple way to undo the same operation?

No. A very large part of modern cryptography is based on the fact that this doesn’t hold.

> [@](#):
>
> Or have mathematicians pretty much proven that such a simple route is not possible?

Nope. Complexity theory is a very young discipline, and it appears to be a lot harder than what we’ve enountered so far.

---

<div class="post-metadata">

### Author: ![Sequent](https://avatars.discourse-cdn.com/v4/letter/s/dbc845/32.png) [@Sequent](https://boards.straightdope.com/u/Sequent)
#### Post date: [August 11, 2005, 9:11pm UTC](https://boards.straightdope.com/t/eight-questions-on-hyperbolas-and-conic-sections/316384/27 "2005-08-11T21:11:36Z")

</div>

> [@ultrafilter](#):
>
> No. A very large part of modern cryptography is based on the fact that this doesn’t hold.

…based on the fact that we haven’t found such simple solutions or based on the fact that we’ve **demonstrated** that no simple solutions exist for analogous problems? In other words, have we proven that there are a number of relatively simple operations which have no simple “reversals,” and, due to that, it actually stands to reason that something as simple as multiplication does not have a simple solution for reversing it?

Basically, is it just a fluke that no one’s found a way to factor large numbers and we’re assuming it’s hard because none of the great math minds have yet found a way, or do we have sound mathematical reason to believe there is no way?

---

<div class="post-metadata">

### Author: ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)
#### Post date: [August 11, 2005, 9:15pm UTC](https://boards.straightdope.com/t/eight-questions-on-hyperbolas-and-conic-sections/316384/28 "2005-08-11T21:15:48Z")

</div>

> [@Sequent](#):
>
> …based on the fact that we haven’t found such simple solutions or based on the fact that we’ve **demonstrated** that no simple solutions exist for analogous problems?

Sorry, I was unclear. No one has proof that factorization is hard or easy, but there are functions which are easy to calculate that seem to be very hard to invert. Again, proving that a problem is hard is a major breakthrough.

---

<div class="post-metadata">

### Author: ![Sequent](https://avatars.discourse-cdn.com/v4/letter/s/dbc845/32.png) [@Sequent](https://boards.straightdope.com/u/Sequent)
#### Post date: [August 11, 2005, 9:40pm UTC](https://boards.straightdope.com/t/eight-questions-on-hyperbolas-and-conic-sections/316384/29 "2005-08-11T21:40:43Z")

</div>

> [@Omphaloskeptic](#):
>
> Think of it this way. Up to rigid motions (translation and rotation), two values define a hyperbola (for example, the angle between the asymptotes and the focal distance; or the denominators a and b in standard form). But there are three parameters defining the cone-plane geometry (for example, the cone’s vertex angle, the angle between the cone’s axis and the plane, and the distance from the cone’s vertex to the plane). You can’t expect to solve for three parameters given only two values (assuming that the values are some reasonably-continuous functions of the parameters). If you were very lucky the equations might have worked out so that you could solve for one or two of the parameters, but that doesn’t happen in this case.

OK. First, it seems like we’ve got more than two parameters with the hyperbola (distance between the asymptotes, for one), but perhaps that’s intruding into the “rigid motions.” But forgetting this, given just the hyperbola, we don’t know anything about the cone of which the hyperbola is a section other than the fact the cone contains all the points in the hyperbola?

Let’s call our two hyperbola parameters, which we know: HP  
Let’s call our three cone-plane parameters, which we don’t know: CP

Is there only one valid set of values for CP? In other words, even if we can’t determine CP, can we still be sure that there’s exactly one cone instance out there that our hyperbola is a section of?

Could we approximate CP by guessing values, drawing the cone for those values, comparing the hyperbola revealed by the intersecting plane with the original hyperbola on the same plane, and repeating the process to minimize the difference in HP? Realizing we could never by such means be certain of CP, but we could come up with a pretty good guess.

---

<div class="post-metadata">

### Author: ![CJJ](https://avatars.discourse-cdn.com/v4/letter/c/ecc23a/32.png) [@CJJ](https://boards.straightdope.com/u/CJJ)
#### Post date: [August 11, 2005, 10:02pm UTC](https://boards.straightdope.com/t/eight-questions-on-hyperbolas-and-conic-sections/316384/30 "2005-08-11T22:02:48Z")

</div>

> [@](#):
>
> But better bounds are possible: For convenience, make the coordinate transformation from (x,y) to (u=b-x,v=y+x+b). Clearly u,v are integers iff x,y are integers (write x=b-u,y=v+u-2b). But we can rewrite the original equation (for x!=b) as
> 
> uv = a + b2 = c
> 
> and clearly there is one integral solution (u,v) (and hence one integral solution (x,y)) for every pair of integers whose product is c. The number of solutions is thus precisely the number of integral divisors of c.

A beautiful solution, _ **Omphaloskeptic** _; wish I’d thought of that, it woulda saved me a lot of sleep:-)

> [@](#):
>
> it seems like we’ve got more than two parameters with the hyperbola (distance between the asymptotes, for one),

Be careful; I think what _ **Omphaloskeptic** _ is saying is that there are only two _independent_ parameters…

---

<div class="post-metadata">

### Author: ![Omphaloskeptic](https://avatars.discourse-cdn.com/v4/letter/o/bcef8e/32.png) [@Omphaloskeptic](https://boards.straightdope.com/u/Omphaloskeptic)
#### Post date: [August 11, 2005, 10:11pm UTC](https://boards.straightdope.com/t/eight-questions-on-hyperbolas-and-conic-sections/316384/31 "2005-08-11T22:11:22Z")

</div>

> [@Sequent](#):
>
> OK. First, it seems like we’ve got more than two parameters with the hyperbola (distance between the asymptotes, for one), but perhaps that’s intruding into the “rigid motions.” But forgetting this, given just the hyperbola, we don’t know anything about the cone of which the hyperbola is a section other than the fact the cone contains all the points in the hyperbola?

I’m not sure what you mean by “distance between the asymptotes”–the asymptotes intersect. Do you mean the distance between the two arcs? That is a function of the two given parameters.

More generally, it’s well known (and easy to see) that by rigid rotation and translation you can convert any hyperbola to standard form, (x/a)[sup]2[/sup]-(y/b)[sup]2[/sup]=1. There are clearly only two parameters in this equation, a and b. You can make different choices of parameters, but in any case you will have only two independent real parameters relevant to the equation.

> [@](#):
>
> Let’s call our two hyperbola parameters, which we know: HP  
> Let’s call our three cone-plane parameters, which we don’t know: CP
> 
> Is there only one valid set of values for CP? In other words, even if we can’t determine CP, can we still be sure that there’s exactly one cone instance out there that our hyperbola is a section of?
> 
> Could we approximate CP by guessing values, drawing the cone for those values, comparing the hyperbola revealed by the intersecting plane with the original hyperbola on the same plane, and repeating the process to minimize the difference in HP? Realizing we could never by such means be certain of CP, but we could come up with a pretty good guess.

The answer is No. Parameter counting indicates that there’s a one-parameter family of solutions for CP, for a given hyperbola HP. That is, there’s one “knob” you can turn, to simultaneously adjust the three cone-plane parameters in such a way that the intersection of the cone and plane remains the same. (It’s not actually too hard to work this out. You can find a function for the angle H between the hyperbola’s asymptotes as a function of the cone’s opening angle C and the angle between the cone’s axis and the plane P. The distance between the hyperbola’s vertices V is proportional to the distance from the cone’s vertex to the plane D, and also depends on some function of C and P. So we can adjust C and P to keep H constant, and then vary D to keep V constant.)

---

<div class="post-metadata">

### Author: ![douglips](https://avatars.discourse-cdn.com/v4/letter/d/e68b1a/32.png) [@douglips](https://boards.straightdope.com/u/douglips)
#### Post date: [August 11, 2005, 10:30pm UTC](https://boards.straightdope.com/t/eight-questions-on-hyperbolas-and-conic-sections/316384/32 "2005-08-11T22:30:24Z")

</div>

> [@ultrafilter](#):
>
> > [@Sequent](#):
> >
> > But could it be that there is, out there, somewhere, a simple algorithm for factorising a non-prime integer into its component primes?
> 
> Yep. Find it, publish it, and if you’re not proven wrong after two years, you get a million bucks.

For some definition of “simple”, such an algorithm exists. Unfortunately it needs a quantum computer to run.

[Shor’s Algorithm](http://en.wikipedia.org/wiki/Shor's_algorithm)

---

<div class="post-metadata">

### Author: ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)
#### Post date: [August 11, 2005, 11:10pm UTC](https://boards.straightdope.com/t/eight-questions-on-hyperbolas-and-conic-sections/316384/33 "2005-08-11T23:10:57Z")

</div>

> [@douglips](#):
>
> For some definition of “simple”, such an algorithm exists. Unfortunately it needs a quantum computer to run.
> 
> [Shor’s Algorithm](http://en.wikipedia.org/wiki/Shor's_algorithm)

Y’know, I didn’t even read that it said “simple” and not “fast”. Brute force is by far simpler than any quantum algorithm you’d like to discuss.

[Previous page](https://boards.straightdope.com/t/eight-questions-on-hyperbolas-and-conic-sections/316384.md?page=1)
