Wednesday, September 29, 2021

Tangent of ellipse

Tangent of ellipse

Tangent of ellipse

In this post, we would like to give a formula to plot the tangent plane of an ellipse. The full course with relevant topics is available on my Github.

An n-dimensional ellipse can be defined by the following equation
xc,P1(xc)=1.\langle x-c, P^{-1}(x-c)\rangle=1.

where PRm×mP\in \mathbb R^{m\times m} is a positive definite matrix and cRmc\in \mathbb R^m is the center of ellipse.

Then for any point x0Rmx_0\in \mathbb R^m belonging to this ellipse, the tangent plane at x0x_0 is given by
xc,P1(x0c)=1.\langle x-c, P^{-1}(x_0-c)\rangle=1.

Note. For a general point gg, we may construct a point x0x_0 lying on the ellipse by using the following formula
x0=gg,P1g+c.x_0=\frac{g}{\sqrt{\langle g, P^{-1}g\rangle}}+c.

The following figure is our experiment using Python.

Popular Posts