# Centroid

Centroid of a triangle

In mathematics and physics, the centroid or geometric center of a plane figure is the arithmetic mean position of all the points in the figure. Informally, it is the point at which a cutout of the shape could be perfectly balanced on the tip of a pin.

The definition extends to any object in n-dimensional space: its centroid is the mean position of all the points in all of the coordinate directions.

While in geometry the term barycenter is a synonym for centroid, in astrophysics and astronomy, barycenter is the center of mass of two or more bodies that orbit each other. In physics, the center of mass is the arithmetic mean of all points weighted by the local density or specific weight. If a physical object has uniform density, then its center of mass is the same as the centroid of its shape.

In geography, the centroid of a radial projection of a region of the Earth's surface to sea level is known as the region's geographical center.

## Properties

The geometric centroid of a convex object always lies in the object. A non-convex object might have a centroid that is outside the figure itself. The centroid of a ring or a bowl, for example, lies in the object's central void.

If the centroid is defined, it is a fixed point of all isometries in its symmetry group. In particular, the geometric centroid of an object lies in the intersection of all its hyperplanes of symmetry. The centroid of many figures (regular polygon, regular polyhedron, cylinder, rectangle, rhombus, circle, sphere, ellipse, ellipsoid, superellipse, superellipsoid, etc.) can be determined by this principle alone.

In particular, the centroid of a parallelogram is the meeting point of its two diagonals. This is not true for other quadrilaterals.

For the same reason, the centroid of an object with translational symmetry is undefined (or lies outside the enclosing space), because a translation has no fixed point.

## Of a triangle

The centroid of a triangle is the intersection of the three medians of the triangle (each median connecting a vertex with the midpoint of the opposite side). It lies on the triangle's Euler line, which also goes through various other key points including the orthocenter and the circumcenter.[1][2]

Any of the three medians through the centroid divides the triangle's area in half. This is not true for other lines through the centroid; the greatest departure from the equal-area division occurs when a line through the centroid is parallel to a side of the triangle, creating a smaller triangle and a trapezoid; in this case the trapezoid's area is 5/9 that of the original triangle.[3]

Let P be any point in the plane of a triangle with vertices A, B, and C and centroid G. Then the sum of the squared distances of P from the three vertices exceeds the sum of the squared distances of the centroid G from the vertices by three times the squared distance between P and G:

${\displaystyle PA^{2}+PB^{2}+PC^{2}=GA^{2}+GB^{2}+GC^{2}+3PG^{2}.}$[4]

The sum of the squares of the triangle's sides equals three times the sum of the squared distances of the centroid from the vertices:

${\displaystyle AB^{2}+BC^{2}+CA^{2}=3(GA^{2}+GB^{2}+GC^{2}).}$[5]

A triangle's centroid is the point that maximizes the product of the directed distances of a point from the triangle's sidelines.[6]

For other properties of a triangle's centroid, see below.

## Locating

### Plumb line method

The centroid of a uniform planar lamina, such as (a) below, may be determined, experimentally, by using a plumbline and a pin to find the center of mass of a thin body of uniform density having the same shape. The body is held by the pin inserted at a point near the body's perimeter, in such a way that it can freely rotate around the pin; and the plumb line is dropped from the pin (b). The position of the plumbline is traced on the body. The experiment is repeated with the pin inserted at a different point of the object. The intersection of the two lines is the centroid of the figure (c).

 (a) (b) (c)

This method can be extended (in theory) to concave shapes where the centroid lies outside the shape, and to solids (of uniform density), but the positions of the plumb lines need to be recorded by means other than drawing.

### Balancing method

For convex two-dimensional shapes, the centroid can be found by balancing the shape on a smaller shape, such as the top of a narrow cylinder. The centroid occurs somewhere within the range of contact between the two shapes. In principle, progressively narrower cylinders can be used to find the centroid to arbitrary precision. In practice air currents make this unfeasible. However, by marking the overlap range from multiple balances, one can achieve a considerable level of accuracy.

### Of a finite set of points

The centroid of a finite set of ${\displaystyle {k}}$ points ${\displaystyle \mathbf {x} _{1},\mathbf {x} _{2},\ldots ,\mathbf {x} _{k}}$ in ${\displaystyle \mathbb {R} ^{n}}$ is

${\displaystyle \mathbf {C} ={\frac {\mathbf {x} _{1}+\mathbf {x} _{2}+\cdots +\mathbf {x} _{k}}{k}}}$.[7]

This point minimizes the sum of squared Euclidean distances between itself and each point in the set.

### By geometric decomposition

The centroid of a plane figure ${\displaystyle X}$ can be computed by dividing it into a finite number of simpler figures ${\displaystyle X_{1},X_{2},\dots ,X_{n}}$, computing the centroid ${\displaystyle C_{i}}$ and area ${\displaystyle A_{i}}$ of each part, and then computing

${\displaystyle C_{x}={\frac {\sum C_{i_{x}}A_{i}}{\sum A_{i}}},C_{y}={\frac {\sum C_{i_{y}}A_{i}}{\sum A_{i}}}}$

Holes in the figure ${\displaystyle X}$, overlaps between the parts, or parts that extend outside the figure can all be handled using negative areas ${\displaystyle A_{i}}$. Namely, the measures ${\displaystyle A_{i}}$ should be taken with positive and negative signs in such a way that the sum of the signs of ${\displaystyle A_{i}}$ for all parts that enclose a given point ${\displaystyle p}$ is 1 if ${\displaystyle p}$ belongs to ${\displaystyle X}$, and 0 otherwise.

For example, the figure below (a) is easily divided into a square and a triangle, both with positive area; and a circular hole, with negative area (b).

(a) 2D Object
(b) Object described using simpler elements
(c) Centroids of elements of the object

The centroid of each part can be found in any list of centroids of simple shapes (c). Then the centroid of the figure is the weighted average of the three points. The horizontal position of the centroid, from the left edge of the figure is

${\displaystyle x={\frac {5\times 10^{2}+13.33\times {\frac {1}{2}}10^{2}-3\times \pi 2.5^{2}}{10^{2}+{\frac {1}{2}}10^{2}-\pi 2.5^{2}}}\approx 8.5{\mbox{ units}}.}$

The vertical position of the centroid is found in the same way.

The same formula holds for any three-dimensional objects, except that each ${\displaystyle A_{i}}$ should be the volume of ${\displaystyle X_{i}}$, rather than its area. It also holds for any subset of ${\displaystyle \mathbb {R} ^{d}}$, for any dimension ${\displaystyle d}$, with the areas replaced by the ${\displaystyle d}$-dimensional measures of the parts.

### By integral formula

The centroid of a subset X of ${\displaystyle \mathbb {R} ^{n}}$ can also be computed by the integral

${\displaystyle C={\frac {\int xg(x)\;dx}{\int g(x)\;dx}}}$

where the integrals are taken over the whole space ${\displaystyle \mathbb {R} ^{n}}$, and g is the characteristic function of the subset, which is 1 inside X and 0 outside it.[8] Note that the denominator is simply the measure of the set X. This formula cannot be applied if the set X has zero measure, or if either integral diverges.

Another formula for the centroid is

${\displaystyle C_{k}={\frac {\int zS_{k}(z)\;dz}{\int S_{k}(z)\;dz}}}$

where Ck is the kth coordinate of C, and Sk(z) is the measure of the intersection of X with the hyperplane defined by the equation xk = z. Again, the denominator is simply the measure of X.

For a plane figure, in particular, the barycenter coordinates are

${\displaystyle C_{\mathrm {x} }={\frac {\int xS_{\mathrm {y} }(x)\;dx}{A}}}$
${\displaystyle C_{\mathrm {y} }={\frac {\int yS_{\mathrm {x} }(y)\;dy}{A}}}$

where A is the area of the figure X; Sy(x) is the length of the intersection of X with the vertical line at abscissa x; and Sx(y) is the analogous quantity for the swapped axes.

#### Bounded region

The centroid ${\displaystyle ({\bar {x}},\;{\bar {y}})}$ of a region bounded by the graphs of the continuous functions ${\displaystyle f}$ and ${\displaystyle g}$ such that ${\displaystyle f(x)\geq g(x)}$ on the interval ${\displaystyle [a,b]}$, ${\displaystyle a\leq x\leq b}$, is given by

${\displaystyle {\bar {x}}={\frac {1}{A}}\int _{a}^{b}x[f(x)-g(x)]\;dx}$[9]
${\displaystyle {\bar {y}}={\frac {1}{A}}\int _{a}^{b}\left[{\frac {f(x)+g(x)}{2}}\right][f(x)-g(x)]\;dx,}$[10]

where ${\displaystyle A}$ is the area of the region (given by ${\displaystyle \int _{a}^{b}[f(x)-g(x)]\;dx}$).[11][12]

### Of an L-shaped object

This is a method of determining the centroid of an L-shaped object.

1. Divide the shape into two rectangles, as shown in fig 2. Find the centroids of these two rectangles by drawing the diagonals. Draw a line joining the centroids. The centroid of the shape must lie on this line AB.
2. Divide the shape into two other rectangles, as shown in fig 3. Find the centroids of these two rectangles by drawing the diagonals. Draw a line joining the centroids. The centroid of the L-shape must lie on this line CD.
3. As the centroid of the shape must lie along AB and also along CD, it must be at the intersection of these two lines, at O. The point O might not lie inside the L-shaped object.

### Of a triangle

The centroid of a triangle is the point of intersection of its medians (the lines joining each vertex with the midpoint of the opposite side). The centroid divides each of the medians in the ratio 2:1, which is to say it is located ⅓ of the distance from each side to the opposite vertex (see figures at right). Its Cartesian coordinates are the means of the coordinates of the three vertices. That is, if the three vertices are ${\displaystyle L=(x_{L},y_{L}),}$ ${\displaystyle M=(x_{M},y_{M}),}$ and ${\displaystyle N=(x_{N},y_{N}),}$ then the centroid (denoted C here but most commonly denoted G in triangle geometry) is

${\displaystyle C={\frac {1}{3}}(L+M+N)=\left({\frac {1}{3}}(x_{L}+x_{M}+x_{N}),\;\;{\frac {1}{3}}(y_{L}+y_{M}+y_{N})\right).}$

The centroid is therefore at ${\displaystyle {\tfrac {1}{3}}:{\tfrac {1}{3}}:{\tfrac {1}{3}}}$ in barycentric coordinates.

In trilinear coordinates the centroid can be expressed in any of these equivalent ways in terms of the side lengths a, b, c and vertex angles L, M, N:[13]

${\displaystyle C={\frac {1}{a}}:{\frac {1}{b}}:{\frac {1}{c}}=bc:ca:ab=\csc L:\csc M:\csc N}$
${\displaystyle =\cos L+\cos M\cdot \cos N:\cos M+\cos N\cdot \cos L:\cos N+\cos L\cdot \cos M}$
${\displaystyle =\sec L+\sec M\cdot \sec N:\sec M+\sec N\cdot \sec L:\sec N+\sec L\cdot \sec M.}$

The centroid is also the physical center of mass if the triangle is made from a uniform sheet of material; or if all the mass is concentrated at the three vertices, and evenly divided among them. On the other hand, if the mass is distributed along the triangle's perimeter, with uniform linear density, then the center of mass lies at the Spieker center (the incenter of the medial triangle), which does not (in general) coincide with the geometric centroid of the full triangle.

The area of the triangle is 1.5 times the length of any side times the perpendicular distance from the side to the centroid.[14]

A triangle's centroid lies on its Euler line between its orthocenter H and its circumcenter O, exactly twice as close to the latter as to the former:

${\displaystyle CH=2CO.}$

In addition, for the incenter I and nine-point center N, we have

${\displaystyle CH=4CN,}$
${\displaystyle CO=2CN,}$
${\displaystyle IC
${\displaystyle IH
${\displaystyle IC

If G is the centroid of the triangle ABC, then:

• ${\displaystyle \displaystyle ({\text{Area of triangle ABG}})=({\text{Area of triangle ACG}})=({\text{Area of triangle BCG}})={\frac {1}{3}}({\text{Area of triangle ABC}})}$

The isogonal conjugate of a triangle's centroid is its symmedian point.

### Of a polygon

The centroid of a non-self-intersecting closed polygon defined by n vertices (x0,y0), (x1,y1), ..., (xn−1,yn−1) is the point (Cx, Cy),[15] where

${\displaystyle C_{\mathrm {x} }={\frac {1}{6A}}\sum _{i=0}^{n-1}(x_{i}+x_{i+1})(x_{i}\ y_{i+1}-x_{i+1}\ y_{i})}$ , and
${\displaystyle C_{\mathrm {y} }={\frac {1}{6A}}\sum _{i=0}^{n-1}(y_{i}+y_{i+1})(x_{i}\ y_{i+1}-x_{i+1}\ y_{i})}$ ,

and where A is the polygon's signed area,[15] as described by

${\displaystyle A={\frac {1}{2}}\sum _{i=0}^{n-1}(x_{i}\ y_{i+1}-x_{i+1}\ y_{i})\;}$.

In these formulas, the vertices are assumed to be numbered in order of their occurrence along the polygon's perimeter; furthermore, the vertex ( xn, yn ) is assumed to be the same as ( x0, y0 ), meaning i + 1 on the last case must loop around to i = 0.[citation needed] (If the points are numbered in clockwise order, the area A, computed as above, will be negative; however, the centroid coordinates will be correct even in this case.[citation needed])

### Of a cone or pyramid

The centroid of a cone or pyramid is located on the line segment that connects the apex to the centroid of the base. For a solid cone or pyramid, the centroid is 1/4 the distance from the base to the apex. For a cone or pyramid that is just a shell (hollow) with no base, the centroid is 1/3 the distance from the base plane to the apex.

### Of a tetrahedron and n-dimensional simplex

A tetrahedron is an object in three-dimensional space having four triangles as its faces. A line segment joining a vertex of a tetrahedron with the centroid of the opposite face is called a median, and a line segment joining the midpoints of two opposite edges is called a bimedian. Hence there are four medians and three bimedians. These seven line segments all meet at the centroid of the tetrahedron.[16] The medians are divided by the centroid in the ratio 3:1. The centroid of a tetrahedron is the midpoint between its Monge point and circumcenter (center of the circumscribed sphere). These three points define the Euler line of the tetrahedron that is analogous to the Euler line of a triangle.

These results generalize to any n-dimensional simplex in the following way. If the set of vertices of a simplex is ${\displaystyle {v_{0},\ldots ,v_{n}}}$, then considering the vertices as vectors, the centroid is

${\displaystyle C={\frac {1}{n+1}}\sum _{i=0}^{n}v_{i}.}$

The geometric centroid coincides with the center of mass if the mass is uniformly distributed over the whole simplex, or concentrated at the vertices as n equal masses.

### Of a hemisphere

The centroid of a solid hemisphere (i.e. half of a solid ball) divides the line segment connecting the sphere's center to the hemisphere's pole in the ratio 3:8. The centroid of a hollow hemisphere (i.e. half of a hollow sphere) divides the line segment connecting the sphere's center to the hemisphere's pole in half.

## Notes

1. ^ Altshiller-Court (1925, p. 101)
2. ^ Kay (1969, pp. 18,189,225–226)
3. ^ Bottomley, Henry. "Medians and Area Bisectors of a Triangle". Retrieved 27 September 2013.
4. ^ Altshiller-Court (1925, pp. 70–71)
5. ^ Altshiller-Court (1925, pp. 70–71)
6. ^ Clark Kimberling, "Trilinear distance inequalities for the symmedian point, the centroid, and other triangle centers", Forum Geometricorum, 10 (2010), 135--139. http://forumgeom.fau.edu/FG2010volume10/FG201015index.html
7. ^ Protter & Morrey, Jr. (1970, p. 520)
8. ^ Protter & Morrey, Jr. (1970, p. 526)
9. ^ Protter & Morrey, Jr. (1970, p. 526)
10. ^ Protter & Morrey, Jr. (1970, p. 527)
11. ^ Protter & Morrey, Jr. (1970, p. 528)
12. ^ Larson (1998, pp. 458–460)
13. ^ Clark Kimberling's Encyclopedia of Triangles "Archived copy". Archived from the original on 2012-04-19. Retrieved 2012-06-02.
14. ^ Johnson (2007, p. 173)
15. ^ a b Bourke (1997)
16. ^ Leung, Kam-tim; and Suen, Suk-nam; "Vectors, matrices and geometry", Hong Kong University Press, 1994, pp. 53–54

## References

• Altshiller-Court, Nathan (1925), College Geometry: An Introduction to the Modern Geometry of the Triangle and the Circle (2nd ed.), New York: Barnes & Noble, LCCN 52013504
• Bourke, Paul (July 1997). "Calculating the area and centroid of a polygon".
• Johnson, Roger A. (2007), Advanced Euclidean Geometry, Dover
• Kay, David C. (1969), College Geometry, New York: Holt, Rinehart and Winston, LCCN 69012075
• Larson, Roland E.; Hostetler, Robert P.; Edwards, Bruce H. (1998), Calculus of a Single Variable (6th ed.), Houghton Mifflin Company
• Protter, Murray H.; Morrey, Jr., Charles B. (1970), College Calculus with Analytic Geometry (2nd ed.), Reading: Addison-Wesley, LCCN 76087042