Distance formula: Difference between revisions
m →Proof |
m →Proof |
||
| Line 20: | Line 20: | ||
<cmath>\implies ax_1 + by_1 + c + t \cdot \sqrt{a^2+b^2} = 0,</cmath> | <cmath>\implies ax_1 + by_1 + c + t \cdot \sqrt{a^2+b^2} = 0,</cmath> | ||
So; | |||
<cmath> t \cdot \sqrt{a^2+b^2} = -(ax_1+by_1+c)</cmath> | <cmath> t \cdot \sqrt{a^2+b^2} = -(ax_1+by_1+c)</cmath> | ||
<cmath>\implies t = \dfrac{-(ax_1+by_1+c)}{\sqrt{a^2+b^2}}.</cmath> | <cmath>\implies t = \dfrac{-(ax_1+by_1+c)}{\sqrt{a^2+b^2}}.</cmath> | ||
Therefore the perpendicular distance from <imath>(x_1,y_1)</imath> to the line <imath>ax+by+c = 0</imath> is: | Therefore, the perpendicular distance from <imath>(x_1,y_1)</imath> to the line <imath>ax+by+c = 0</imath> is: | ||
<cmath>|t| = \dfrac{|ax_1 + by_1 + c|}{\sqrt{a^2+b^2}}.</cmath> | <cmath>|t| = \dfrac{|ax_1 + by_1 + c|}{\sqrt{a^2+b^2}}.</cmath> | ||
Revision as of 23:44, 10 November 2025
The distance formula is a direct application of the Pythagorean Theorem in the setting of a Cartesian coordinate system. In the two-dimensional case, it says that the distance between two points
and
is given by
. In the
-dimensional case, the distance between
and
is
.
Shortest distance from a point to a line
The distance between the line
and point
is
Proof
The equation
can be written as
Thus, the perpendicular line through
is:
where
is the parameter.
will be the distance from the point
along the perpendicular line to
.
So
and
This meets the given line
, where:
So;
Therefore, the perpendicular distance from
to the line
is:
This article is a stub. Help us out by expanding it.