The distance formula between two points describes the relationship between points and the distance between points.
Let two points A and B have their coordinates A(X 1, Y 1) and B(X2, Y2), so the distance between two points A and B is ∣ AB ∣ = ∣ [(x 1-x2)? +(y 1-y2)? ]。 The distance formula between two points is a basic formula commonly used to find the distance between two points and point coordinates in function diagrams, and it is one of the distance formulas.
Derivation of distance formula between two points;
The coordinates of AB are known as A(x 1, y 1) and B(x2, y2).
The straight line passing through A is parallel to the X axis, the straight line passing through B is parallel to the Y axis, and the intersection of the two straight lines is C.
AC is perpendicular to BC (because the x axis is perpendicular to the y axis)
Triangle ACB is a right triangle.
Derived from Pythagorean theorem
AB^2=AC^2+BC^2
So ab = AC 2+BC 2 under the root sign, which is the distance formula between two points.
Distance from point to straight line:
The straight line Ax+By+C=0 coordinates (x0, y0), then the distance from this point to this straight line is: d=│Ax0+By0+C│/ root sign (a 2+b 2).
Formula description:
The linear equation in the formula is Ax+By+C=0, and the coordinate of point P is (x0, y0).
Of all the line segments connecting a point outside the straight line with a point on the straight line, the vertical line segment is the shortest, and the length of this vertical line segment is called the distance from the point to the straight line.