MathorynMathematical Formula Database

Analytic Geometry

Section Formula

The section formula finds the point that divides the segment from A(x1,y1)A(x_1,y_1) to B(x2,y2)B(x_2,y_2) internally in the ratio m:nm:n. The midpoint is the case m=nm=n.

P=(mx2+nx1m+n, my2+ny1m+n)P=\left(\frac{m x_2+n x_1}{m+n},\ \frac{m y_2+n y_1}{m+n}\right)
LaTeXP=\left(\frac{m x_2+n x_1}{m+n},\ \frac{m y_2+n y_1}{m+n}\right)

Variables

m:nm:n
ratio AP : PB
(x1,y1), (x2,y2)(x_1,y_1),\ (x_2,y_2)
coordinates of A and B

Example

Divide A(1,2)A(1,2), B(7,8)B(7,8) in the ratio 1:21:2.

  1. (7+23,8+43)\left(\frac{7+2}{3},\frac{8+4}{3}\right).

Answer: P=(3,4)P=(3,4).

Related formulas