Toolkit 95

Coordinate Geometry

Slope, Line Equation, and Distance

Two points on a line with slope, line equation, and distance formulas
mAB=y2y1x2x1m_{AB}=\frac{y_2-y_1}{x_2-x_1}
yy1=m(xx1)y-y_1=m(x-x_1)
AB=(x2x1)2+(y2y1)2AB=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}

Distance from a Point to a Line

Perpendicular distance from a point to a line
For P(x0,y0) and :ax+by+c=0,\text{For }P(x_0,y_0)\text{ and }\ell:ax+by+c=0,
d(P,)=ax0+by0+ca2+b2d(P,\ell)=\frac{|ax_0+by_0+c|}{\sqrt{a^2+b^2}}

Distance from a Point to a Plane

Perpendicular distance from a point to a plane
For P(x0,y0,z0) and α:ax+by+cz+d=0,\text{For }P(x_0,y_0,z_0)\text{ and }\alpha:ax+by+cz+d=0,
d(P,α)=ax0+by0+cz0+da2+b2+c2d(P,\alpha)=\frac{|ax_0+by_0+cz_0+d|}{\sqrt{a^2+b^2+c^2}}

Distance Between Two Parallel Lines

Distance between two parallel lines
1:ax+by+c1=0,2:ax+by+c2=0\ell_1:ax+by+c_1=0,\qquad \ell_2:ax+by+c_2=0
d(1,2)=c1c2a2+b2d(\ell_1,\ell_2)=\frac{|c_1-c_2|}{\sqrt{a^2+b^2}}

Equation of a Circle

Circle with center and radius
A circle with center (x0,y0) and radius r:\text{A circle with center }(x_0,y_0)\text{ and radius }r:
(xx0)2+(yy0)2=r2(x-x_0)^2+(y-y_0)^2=r^2

Finding the Equation of a Tangent Line

Tangent line through an external point to a circle

Let the tangent line through the point P(x₀, y₀) have slope m.

: yy0=m(xx0)\ell:\ y-y_0=m(x-x_0)
(xx1)2+(yy1)2=r2(x-x_1)^2+(y-y_1)^2=r^2

Substitute the line equation into the circle equation. Since a tangent line intersects the circle at exactly one point, set the discriminant equal to zero and solve for m.

Δ=0\Delta=0