| Peter
Conlon |
Does anyone know how I would go about solving b2 + ab - p = 0 a2 + ab + aq - rq = 0 Where a,b are to be found and p,q,r are constants > 0? It gets really messy as soon as I try any sort of substitution. Is there a better way, or should I accept the messy stuff as necessary. Can problems like this in general be solved? Thanks Peter |
||||||||||||||||
| Katie
Wesley |
If you equate for ab, then p-b2 =rq-aq-a2 a2 +aq-b2 =rq-p (a+q/2)2 - b2 = q2 /4 + rq - p (a constant) which is the equation of a hyperbola. You don't specify if you are looking for just integer solutions or all of them but if you want all possible real solutions then they are all the points (a,b) that lie on that hyperbola. There are an infinite number of solutions. |
||||||||||||||||
| Kerwin
Hui |
That is
incorrect. We have a general theorem (usually named
Bezout's Theorem):- If f,g are polynomials in two variables (X, Y) over an algebraically closed field k, then the intersection of f=0 and g=0 cannot have more than deg(f)deg(g) points, unless f and g have a nontrivial common factor. The proof of this theorem can be found in any algebraic geometry textbook (e.g. Elementary Algebraic Geometry by Kendig), and is usually done in 3rd or 4th year of university. Anyway, back to the question. (Assuming you are working in C,)using b2+ ab - p = 0, we get
|
||||||||||||||||
| Katie
Wesley |
What was it that was wrong in my answer? |
||||||||||||||||
| Kerwin
Hui |
Not all points lying on the hyperbola are solutions. There can be at most three solutions (a,b). Kerwin |
||||||||||||||||
| Katie
Wesley |
Oh I know what I did wrong now - I created one equation involving a and b by equating for ab, but in doing so I lost the condition that ab=p-b2 . So the solutions are where the graphs of the hyperbola and the line a=(p-b2 )/b cross. Is that right? |
||||||||||||||||
| Matthew
Smith |
Yes. Though the line a=(p-b2 )/b is another hyperbola, I think (albeit one rotated with respect to the axes). It might be interesting to plot both original equations, and your hyperbola, using a computer (and some particular values of p, q and r). They should all meet at the three solution points. |