Academy
Formulas/maths/Ellipse/Tangent with a Given Slope

Tangent with a Given Slope

Two tangents to x²/a² + y²/b² = 1 exist for each slope m. Point of contact: (∓a²m/√(a²m²+b²), ±b²/√(a²m²+b²)).
Derivation

Substitute y=mx+cy = mx + c into x2/a2+y2/b2=1x^2/a^2 + y^2/b^2 = 1:

x2a2+(mx+c)2b2=1\frac{x^2}{a^2} + \frac{(mx+c)^2}{b^2} = 1 b2x2+a2(mx+c)2=a2b2b^2x^2 + a^2(mx+c)^2 = a^2b^2 (b2+a2m2)x2+2a2mcx+a2c2a2b2=0(b^2 + a^2m^2)x^2 + 2a^2mcx + a^2c^2 - a^2b^2 = 0

For tangency, discriminant =0= 0:

(2a2mc)24(b2+a2m2)(a2c2a2b2)=0(2a^2mc)^2 - 4(b^2+a^2m^2)(a^2c^2 - a^2b^2) = 0 4a4m2c24a2(b2+a2m2)(c2b2)=04a^4m^2c^2 - 4a^2(b^2+a^2m^2)(c^2-b^2) = 0 a2m2c2(b2c2b4+a2m2c2a2m2b2)=0a^2m^2c^2 - (b^2c^2 - b^4 + a^2m^2c^2 - a^2m^2b^2) = 0 b4+a2m2b2b2c2=0    c2=a2m2+b2b^4 + a^2m^2b^2 - b^2c^2 = 0 \implies c^2 = a^2m^2 + b^2 c=±a2m2+b2c = \pm\sqrt{a^2m^2+b^2}

The two tangents: y=mx±a2m2+b2y = mx \pm \sqrt{a^2m^2+b^2}.

Point of contact: Substituting c=a2m2+b2c = \sqrt{a^2m^2+b^2} back and solving the quadratic (which now has a double root):

x=a2ma2m2+b2,y=b2a2m2+b2x = -\frac{a^2m}{\sqrt{a^2m^2+b^2}}, \quad y = \frac{b^2}{\sqrt{a^2m^2+b^2}}