I have a curve in 2D space (x,y), described by the following equation: ax^2+bxy+cy^2+d=0 where a,b,c,d are known. It is obvious that it is a 1D curve embedded in a 2D space. So I would think there could be such a description of the curve, where only single parameter is present.

enmobladatn

enmobladatn

Answered question

2022-07-18

2D curve with two parameters to single parameter
I have been thinking about the following problem. I have a curve in 2D space (x,y), described by the following equation: a x 2 + b x y + c y 2 + d = 0 where a,b,c,d are known. It is obvious that it is a 1D curve embedded in a 2D space. So I would think there could be such a description of the curve, where only single parameter is present.
It is obvious that you can plug x and then solve a quadratic equation for y, but that is not what I'm looking for. The solution I expect is in the form x = f x ( t ) , y = f y ( t ) , t ?
which can be used in the case of circle equation with sine and cosine of angle.
My goal is to plot the curve in python, so I would like to start at some point of the curve and trace along it. Could you point me to a solution or some materials which are dedicated for such problems?

Answer & Explanation

Brienueentismvh

Brienueentismvh

Beginner2022-07-19Added 11 answers

Explanation:
Assuming a > 0 and c > 0, why not to use x = r cos ( t ) a and y = r sin ( t ) c which make a x 2 + b x y + c y 2 + d to become r 2 ( 1 + b sin ( 2 t ) 2 a c ) + d = 0 then r that you replace now in x and y.
jlo2ni5x

jlo2ni5x

Beginner2022-07-20Added 8 answers

Step 1
The solution of the quadratic equation gives you one kind of parameterization of the ellipse, though you may not like it. You could find the minimum and maximum values of x and let x go from the minimum to the maximum and back again to the minimum as t increases. Going in one direction you set y to one of the solutions of the quadratic, and in the other direction you set y to the other solution, so that y is also a function of t.
There are other ways, however.
Since the equation is a quadratic equation in x and y, there are only a limited number of kinds of shapes that can solve it, and we can quickly rule out all of these shapes except for an ellipse. It is possible to find the center, major axis a, and minor axis b of the ellipse, as well as the angle the axes are rotated from the coordinate axes. Let x = a cos θ and y = b sin θ to get an axis-aligned ellipse centered at (0,0), the apply a coordinate transformation x = f ( x , y ) , y = g ( x , y ) to translate and rotate the ellipse as needed. (The translation is zero in this case since it turns out the center of your ellipse is at (0,0).)
Step 2
You can save a lot of bother from the previous paragraph by knowing that at the end of the procedure you'll have something equivalent to x = h + m cos θ n sin θ , y = k + n cos θ + m sin θ .
Take a few points on the ellipse and solve for h, k, m, and n. (In this case h = k = 0 ,, but I've written this for a general ellipse.)

Do you have a similar question?

Recalculate according to your conditions!

New Questions in High school geometry

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?