Skip to main content
Speclore

Cartesian Coordinate System Distance Between Two Points

Reference data and engineering information about cartesian coordinate system distance between two points for mathematics applications.

cartesiancoordinatesystemdistance

Overview

Engineering reference data for Cartesian Coordinate System Distance Between Two Points in mathematics.

Key Formulas

Quadratic Formula

x=b±b24ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

Roots of ax² + bx + c = 0.

Pythagorean Theorem

c2=a2+b2c^2 = a^2 + b^2

Right triangle relationship.

Circle Area

A=πr2A = \pi r^2

Area of a circle.

Logarithm

logb(x)=ln(x)ln(b)\log_b(x) = \frac{\ln(x)}{\ln(b)}

Change of base formula.

Variables

SymbolDescriptionUnit
π\piPi3.14159...
eeEuler's number2.71828...

Intermediate Position Calculation

The point P that lies on the line segment connecting points P₁ and P₂ can be calculated using a ratio. Let r₁ be the ratio of the distance from P₁ to P, and r₂ be the ratio of the distance from P₂ to P, relative to the total distance between P₁ and P₂.

The coordinates of the intermediate point P are given by: x=r1x1+r2x2r1+r2x = \frac{r_1 x_1 + r_2 x_2}{r_1 + r_2} y=r1y1+r2y2r1+r2y = \frac{r_1 y_1 + r_2 y_2}{r_1 + r_2}

Midpoint Formula

For the exact midpoint between two points, the ratios are equal: r1=r2=1r_1 = r_2 = 1. This simplifies the intermediate position formulas to the standard midpoint formulas: x=x1+x22x = \frac{x_1 + x_2}{2} y=y1+y22y = \frac{y_1 + y_2}{2}

Using the example points P₁(4, 5) and P₂(7, 9):

  • Midpoint x-coordinate: x=4+72=5.5x = \frac{4 + 7}{2} = 5.5
  • Midpoint y-coordinate: y=5+92=7y = \frac{5 + 9}{2} = 7 The midpoint is located at (5.5, 7).

LaTeX Formulas and Definitions

Distance Formula

The distance between two points P1(x1,y1)P_1(x_1, y_1) and P2(x2,y2)P_2(x_2, y_2) in Cartesian coordinates is:

d(P1,P2)=(x2x1)2+(y2y1)2d(P_1, P_2) = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}

Intermediate Position Formulas

For an intermediate point PP dividing the segment between P1P_1 and P2P_2 with ratios r1r_1 and r2r_2, the coordinates are:

x=r1x1+r2x2r1+r2x = \frac{r_1 x_1 + r_2 x_2}{r_1 + r_2} y=r1y1+r2y2r1+r2y = \frac{r_1 y_1 + r_2 y_2}{r_1 + r_2}

where:

  • r1r_1: ratio of the distance from P1P_1 to PP relative to the distance from P1P_1 to P2P_2.
  • r2r_2: ratio of the distance from P2P_2 to PP relative to the distance from P1P_1 to P2P_2.

Midpoint Simplification

When r1=r2=1r_1 = r_2 = 1 (midpoint), the formulas reduce to:

x=x1+x22x = \frac{x_1 + x_2}{2} y=y1+y22y = \frac{y_1 + y_2}{2}

Definitions

In a rectangular Cartesian coordinate system, the coordinate axes (x-axis and y-axis) are perpendicular to each other, and the same unit length is consistently used on both axes.

Formulas

Distance Between Two Points:

d(P1,P2)=(x2x1)2+(y2y1)2d(P_1,P_2) = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}

Weighted Intermediate Position:

x=r1x1+r2x2r1+r2x = \frac{r_1 x_1 + r_2 x_2}{r_1 + r_2} y=r1y1+r2y2r1+r2y = \frac{r_1 y_1 + r_2 y_2}{r_1 + r_2}

Midpoint (where r1=r2=1r_1 = r_2 = 1):

x=x1+x22x = \frac{x_1 + x_2}{2} y=y1+y22y = \frac{y_1 + y_2}{2}

Practical Examples

Distance Calculation: For points P1(4,5)P_1(4, 5) and P2(7,9)P_2(7, 9):

d(P1,P2)=(74)2+(95)2=32+42=25=5d(P_1,P_2) = \sqrt{(7 - 4)^2 + (9 - 5)^2} = \sqrt{3^2 + 4^2} = \sqrt{25} = 5

Midpoint Calculation: For the same points:

x=4+72=5.5x = \frac{4 + 7}{2} = 5.5 y=5+92=7y = \frac{5 + 9}{2} = 7

References