# Distance between two points

## Distance between two points

$$d=\overline{{P}_{1}{P}_{2}}=\sqrt{({x}_{2}-{x}_{1}{)}^{2}+({y}_{2}-{y}_{1}{)}^{2}}$$

## Split point in ratio a:b

$$\overline{{P}_{1}M}:\overline{M{P}_{2}}=a:b$$

$${x}_{M}=\frac{a\xb7{x}_{1}+b\xb7{x}_{2}}{a+b};{y}_{M}=\frac{a\xb7{y}_{1}+b\xb7{y}_{2}}{a+b}$$

## Midpoint

$${x}_{M}=\frac{{x}_{1}+{x}_{2}}{2};{y}_{M}=\frac{{y}_{1}+{y}_{2}}{2}$$

Keywords: distance between two points