The slope of the ellipse at the point (m,n) can be computed by implicit differentiation of the ellipse equation with respect to x. Implicit differentiation yields:
2x/a2 + (2 y/b2) (dy/dx) = 0 The slope is dy/dx. This can be rearranged as:
slope = - (x/y) b2/a2 At the point (m, n) the slope will be
slope = - (m/n) b2/a2
The equation for the tangent line can be found using the formula for a line when the slope and one point are known.
(y - n) = slope ( x - m) = -(m/n) (b2/a2) ( x - m)
After a lot of algebra, this can be reorganized into the form:
a2 n y/(a2n2 + b2 m2) + b2 m x /(a2 n2 + b2 m2) = 1
This is the equation of a straight line in standard form.