MAT Lab - Elipse & Line Question

  • Thread starter eyanveom
  • Start date
  • Tags
    Lab Line
In summary, to find the intersection of a line and an ellipse, substitute the equation of the line into the equation of the ellipse and solve the resulting quadratic equation for x using the quadratic formula. The coefficients A, B, and C can be found using the equations A= a²(m² + 1), B= 2a²mc, and C= a²c² - a²b².
  • #1
eyanveom
3
0
I have a question on an assignment that's due at 11:55 tonight. Here is the question:

Compute the intersection of a line and an ellipse centered at (0,0). Ellipse equation is b²x² + a²y² = a²b²
where b is the minor axis and a is the major axis.

I am having trouble finding A, B, and C- somewhere down the line, I know the Quadratic Eq. is used to find x. I also know AX² + BX + C = 0 is used. I've combined the slope (y = mx + c) into the ellipse equation ==> b²x² + a² (mx+c)² = a² b². I then distributed the a², yielding b²x² + (a²mx + a²c)² = a²b². Here is where I'm stuck. I know that ultimately I am trying to find A, B, and C.

A= (a²mx + a²c)²??
B= ??
C= b²x² - a²b²?? I am SO lost and confused! lol
 
Physics news on Phys.org
  • #2
To compute the intersection of a line and an ellipse centered at (0,0), you need to substitute the equation of the line into the equation of the ellipse. The equation of the ellipse is b²x² + a²y² = a²b², and the equation of the line is y = mx + c. Substitute the equation of the line into the equation of the ellipse and simplify to get an equation in the form Ax² + Bx + C = 0. This will be a quadratic equation which can be solved for x using the quadratic formula. The coefficients A, B and C can be found as follows: A= a²(m² + 1) B= 2a²mc C= a²c² - a²b²
 

FAQ: MAT Lab - Elipse & Line Question

What is MAT Lab?

MAT Lab stands for Matrix Laboratory and it is a multi-paradigm numerical computing environment and fourth-generation programming language. It is commonly used in engineering and scientific applications for data analysis, visualization, and simulation.

What is an ellipse in MAT Lab?

In MAT Lab, an ellipse is a closed curve that is defined by a set of points in a plane. It is typically represented by a mathematical equation and can be used for various purposes such as modeling planetary orbits, signal processing, and image analysis.

How do I plot an ellipse in MAT Lab?

To plot an ellipse in MAT Lab, you can use the "ellipse" function which takes in the coordinates of the center, the major and minor axes, and the angle of rotation as inputs. Alternatively, you can also use the "plot" function to plot a set of points that define the ellipse.

What is a line in MAT Lab?

In MAT Lab, a line is a straight curve that connects two points in a plane. It is usually represented by an equation in the form of y = mx + b, where m is the slope and b is the y-intercept. Lines are commonly used in data analysis, regression analysis, and curve fitting.

How do I find the equation of a line in MAT Lab?

To find the equation of a line in MAT Lab, you can use the "polyfit" function which takes in a set of coordinates and returns the coefficients of the line equation. Alternatively, you can also use the "plot" function to plot the points and visually determine the equation of the line.

Similar threads

Replies
13
Views
2K
Replies
5
Views
1K
Replies
2
Views
2K
Replies
4
Views
1K
Replies
4
Views
2K
Back
Top