Solve that without 4th order polynomial?

  • Thread starter Gerenuk
  • Start date
  • Tags
    Polynomial
In summary, Gerenuk is trying to determine when two ellipses of the form ((x-x0)/a)^2+((y-y0)/b)^2=1 have intersections or just touch. They have tried various equations and simplifying techniques, but have not been able to avoid a 4th order equation. They received suggestions to use linear transformations and rotations to reduce the problem to solving a quadratic equation. However, there is still some work to be done in computing the coefficients of the quadratic. Ultimately, it seems that the problem can only be solved by solving the quartic equation, and the best that can be done is reducing it to solving a cubic using algebraic geometry techniques. The solution also requires the discriminant
  • #1
Gerenuk
1,034
5
I was trying to calculate when two ellipses of the form ((x-x0)/a)^2+((y-y0)/b)^2=1 have intersections. Most of the time I get 4th order equations. Actually I only want to know a condition IF they just touch. Any ideas on this?

After playing around I had various equations. For example the problem is equivalent to finding beta in
[tex]\Re\left((\exp(i\beta)+z)^2\right)=b[/tex]
where z is complex. Suggestions?
 
Mathematics news on Phys.org
  • #2
Hi Gerenuk! :smile:

I don't know whether this will work, but have you tried simplifying it by squashing one of the coordinate axes so that one of the ellipses is a circle?
 
  • #3
Yes, I started like this too. Yet I haven't managed to avoid the 4th order equation. I tried setting the discriminant to zero to determine if the ellipses touch, but there were just too many terms, and I could find an easy way to factorize.
The above equation looks the simplest I could find. Yet not sure how to proceed.
 
  • #4
The intersection of two generic conics will always be equivalent to solving the quartic, essentially due to Bezout's theorem. The best that you can do is reduce this to solving a cubic using some algebraic geometry techniques. The method is described in the context of conics at http://en.wikipedia.org/wiki/Conic_section#Intersecting_two_conics and in the context of the quartic at http://en.wikipedia.org/wiki/Quartic_equation#Algebraic_geometry

With two ellipses, it seems like we can simplify things quite a bit. Use linear transformations to map one of the ellipses to a unit circle. This transforms the parameters of the other ellipse, but it's still of the same form that you wrote down before. Let the center of this ellipse be [tex](x_0',y_0')[/tex]. Now since the unit circle is invariant under rotations in the plane, we can use a rotation to set, say, [tex]y_0'=0[/tex]. But then the quartic equation for the intersection points is actually a perfect square so the problem reduces to solving a quadratic equation. The four points of intersection are [tex](r_{\pm}, \pm \sqrt{1-r_\pm^2})[/tex], where [tex]r_\pm[/tex] are the roots to the quadratic.

For the ellipses to only touch, these four points must be coincident. This can only be the case if [tex]r_+=r_- = \pm 1[/tex]. This requires the discriminant of the quadratic to vanish as well as a condition on the ratio of coefficients.

There's a certain amount of work to do to compute the coefficients of the quadratic above in terms of the parameters of the original ellipsi, but it doesn't seem too bad.
 
  • #5
fzero said:
Now since the unit circle is invariant under rotations in the plane, we can use a rotation to set, say, [tex]y_0'=0[/tex]. But then the quartic equation for the intersection points is actually a perfect square so the problem reduces to solving a quadratic equation.
Hmm? How does that work? The ellipse is rotated so the equation still looks complicating?!
 
  • #6
Gerenuk said:
Hmm? How does that work? The ellipse is rotated so the equation still looks complicating?!

After transforming the first the ellipse into a unit circle ([tex]x=\cost t, y=\sin t[/tex]), the equation for the points of intersection is

[tex] \frac{(\cos t -x_0')^2}{(a')^2} + \frac{(\sin t-y_0')^2}{(b')^2} = 1.[/tex]

After a rotation with [tex]\tan\theta = y_0'/x_0'[/tex], this is put into the form

[tex] \frac{(\cos(t-\theta)-x_0'')^2}{(a')^2} + \frac{\sin^2(t-\theta)}{(b')^2} = 1,~~(*)[/tex]

where

[tex]x_0''=x_0'\sqrt{ 1+ \left(\frac{y_0'}{x_0'}\right)^2}.[/tex]

The whole point is that (*) is a quadratic equation for [tex]cos(t-\theta)[/tex].
 
  • #7
Hmm, actually this is incorrect. Rotating about the origin does not correspond to subtracting an angle from t.

To clarify, I tried plugging in t=a+b and finding an equation for b such that only cos(a) and cos^2(a) terms remain. However, this is not possible for general coefficients.
 
  • #8
Gerenuk said:
Yet I haven't managed to avoid the 4th order equation.

You can't beat the system! :biggrin:
 
  • #9
Gerenuk said:
Hmm, actually this is incorrect. Rotating about the origin does not correspond to subtracting an angle from t.

Of course it does. The rotation matrix is

[tex]\begin{pmatrix} \cos\theta & \sin\theta \\ - \sin\theta & \cos\theta \end{pmatrix}[/tex]

and it acts on

[tex]\begin{pmatrix} x \\ y \end{pmatrix} = \begin{pmatrix} \cos t \\ \sin t \end{pmatrix} .[/tex]

You can verify the action on [tex]t[/tex]. Remember that we have a unit circle based at the origin. What other action would a rotation around the origin have?

To clarify, I tried plugging in t=a+b and finding an equation for b such that only cos(a) and cos^2(a) terms remain. However, this is not possible for general coefficients.

I think the problem you're having is that the center of the 2nd ellipse is not invariant under this transformation.

I just tested my formula for 2 cases. The first was the unit circle and the circle [tex](x-1)^2 + (y-1)^2 =1[/tex], which intersect at two points. The second was the unit circle and the circle [tex](x-1)^2 + (y-1)^2 =(1-\sqrt{2}/2)^2,[/tex] which touch at a point.

You should try to convince yourself that the problem simplifies drastically if either [tex]x_0'[/tex] or [tex]y_0'[/tex] are zero. The rotation I made was a simple way to achieve this.
 
  • #10
tiny-tim said:
You can't beat the system! :biggrin:
Actually I don't need the intersections, but I rather only want to know if there are any. So maybe there is a way to solve it.

@fzero:
If you just plug in this transformation, you don't get rid of y_0.
As I said, if you do it purely algebraically by setting t=a+b and trying to pick b as to eliminate sin(a) terms, you find it's impossible unless you are dealing with two circles on a diagonal.
So you incidently managed to pick exactly the two special cases where it works :) Tests should be more arbitrary.
 

FAQ: Solve that without 4th order polynomial?

Can you explain what a 4th order polynomial is?

A 4th order polynomial is a mathematical expression that contains terms with variables raised to the 4th power, such as x^4, y^4, or z^4.

Why is it important to solve problems without using a 4th order polynomial?

Solving problems without using a 4th order polynomial allows for a simpler and more efficient solution. It also helps to avoid complex calculations and reduces the chances of making errors.

3. What techniques can be used to solve problems without a 4th order polynomial?

Some techniques that can be used include factoring, substitution, and using the quadratic formula. It may also be helpful to simplify the problem or break it down into smaller parts.

4. Are there any real-world applications for solving problems without using a 4th order polynomial?

Yes, there are many real-world applications for solving problems without using a 4th order polynomial. For example, engineers often use simpler equations to model and solve complex problems in fields such as physics, chemistry, and economics.

5. Is it always possible to solve a problem without using a 4th order polynomial?

No, it may not always be possible to solve a problem without using a 4th order polynomial. Some problems may require the use of higher order polynomials, depending on the complexity of the situation.

Similar threads

Back
Top