Centroids as Coordinate Averages
A centroid locates the geometric balance point of a planar region when its area is treated as uniformly distributed. The region’s shape determines how much area lies at each coordinate, so locating the centroid amounts to averaging the coordinates over the entire region—not simply choosing a visually central point.
For a region \(R\) of positive area \(A\), the area element \(dA\) represents a small piece of area. The first moment about the \(y\)-axis adds up each piece’s \(x\)-coordinate weighted by its area; the first moment about the \(x\)-axis does the same with its \(y\)-coordinate. Dividing each moment by total area gives the corresponding average coordinate.
These formulas apply to the geometric centroid, which treats area uniformly. If the region is a uniform lamina with constant density, its center of mass has the same coordinates. The calculation requires finite, positive area and integrable coordinate functions over the region.
Why the First-Moment Formulas Work
Imagine partitioning \(R\) into many small pieces. A piece of area \(\Delta A_i\), located near \((x_i,y_i)\), contributes approximately \(x_i\Delta A_i\) to the total \(x\)-coordinate weighted by area, and \(y_i\Delta A_i\) to the corresponding \(y\)-coordinate total. Adding these contributions and taking the limit gives \(\iint_R x\,dA\) and \(\iint_R y\,dA\). Dividing by the total area forms the average coordinate. Thus the first-moment formulas are the continuous versions of weighted averages.
This also explains a useful check: multiplying a computed centroid coordinate by the area must recover the corresponding first moment. A coordinate shift changes the numerical centroid coordinates, but it does not change the underlying point in the plane.
Disk: Symmetry and Direct Integration
Consider first a disk of radius \(R\) centered at the origin. Its vertical cross-section at coordinate \(x\) runs from \(y=-\sqrt{R^2-x^2}\) to \(y=\sqrt{R^2-x^2}\). Integrating the cross-section lengths gives the area:
For this disk, the first moment about the \(y\)-axis is the integral of \(x\) over each vertical slice. The integrand \(2x\sqrt{R^2-x^2}\) is odd over the symmetric interval \([-R,R]\), so the moment is zero. The first moment about the \(x\)-axis is also zero: each vertical slice has equal area above and below the \(x\)-axis. Therefore the centroid is the origin.
For a disk centered at \((h,k)\), use local coordinates \(u=x-h\) and \(v=y-k\). The centered disk has zero first moments in \(u\) and \(v\), so its averages satisfy \(\bar{u}=\bar{v}=0\). Since \(x=u+h\) and \(y=v+k\), the centroid in the original coordinates is \((h,k)\).
Worked Example: A Disk with a Shifted Center
Find the area and centroid of a disk of radius \(2\) centered at \((1,-2)\).
Set \(u=x-1\) and \(v=y+2\). The disk in local coordinates is \(u^2+v^2\le 4\). Its area, computed from vertical slices, is $$ A=\int_{-2}^{2}2\sqrt{4-u^2}\,du=4\pi. $$
The local first moment in \(u\) is $$ \iint_R u\,dA=\int_{-2}^{2}2u\sqrt{4-u^2}\,du=0, $$ because the integrand is odd. The local first moment in \(v\) is zero because every vertical slice is symmetric about \(v=0\). Hence \(\bar{u}=0\) and \(\bar{v}=0\). Translating back gives $$ \bar{x}=1+\bar{u}=1,\qquad \bar{y}=-2+\bar{v}=-2. $$ As a check, the first moments in the original coordinates are \(1(4\pi)=4\pi\) about the \(y\)-axis and \(-2(4\pi)=-8\pi\) about the \(x\)-axis. Dividing these by \(A=4\pi\) recovers \((1,-2)\).
Semicircle: A Centroid Away from the Center
A semicircle has symmetry across its vertical diameter, which places its centroid on that diameter. But it does not have symmetry across its horizontal diameter: the area lies entirely on one side. For the upper semicircle of radius \(R\) centered at the origin, a horizontal slice at height \(y\), where \(0\le y\le R\), has width \(2\sqrt{R^2-y^2}\).
Worked Example: The Centroid of an Upper Semicircle
Compute the area and centroid of the upper semicircle of radius \(R\). Integrating its horizontal slice widths gives $$ A=\int_0^R 2\sqrt{R^2-y^2}\,dy =\left[y\sqrt{R^2-y^2}+R^2\arcsin\left(\frac{y}{R}\right)\right]_0^R =\frac{\pi R^2}{2}. $$
The first moment about the \(x\)-axis is the integral of the slice height times its width: $$ \iint_R y\,dA =2\int_0^R y\sqrt{R^2-y^2}\,dy. $$ Set \(w=R^2-y^2\), so \(dw=-2y\,dy\). Then $$ 2\int_0^R y\sqrt{R^2-y^2}\,dy =\int_0^{R^2}\sqrt{w}\,dw =\left[\frac{2}{3}w^{3/2}\right]_0^{R^2} =\frac{2R^3}{3}. $$ Therefore $$ \bar{y}=\frac{2R^3/3}{\pi R^2/2}=\frac{4R}{3\pi}. $$ The first moment about the \(y\)-axis is zero: at each height, the slice extends equally far to the left and right of the \(y\)-axis. Thus \(\bar{x}=0\). The result is \((0,4R/(3\pi))\).
Check the first moments: \(A\bar{x}=0\) and \(A\bar{y}=(\pi R^2/2)(4R/(3\pi))=2R^3/3\), exactly the moments just computed.
If this semicircle is translated so its center is \((h,k)\) and its straight edge lies on \(y=k\), the centroid becomes \((h,k+4R/(3\pi))\). The offset is measured from the center along the symmetry axis; it is not measured from the lowest point of the semicircle.
Triangle: Direct Integration and the Vertex Formula
For a right triangle with vertices \((0,0)\), \((a,0)\), and \((0,b)\), where \(a,b>0\), the sloping side has equation \(y=b(1-x/a)\). Integrating between the horizontal bounds \(0\le y\le b(1-x/a)\) gives $$ A=\int_0^a b\left(1-\frac{x}{a}\right)\,dx=\frac{ab}{2}. $$
The first moment about the \(y\)-axis is $$ \iint_R x\,dA =\int_0^a xb\left(1-\frac{x}{a}\right)\,dx =b\left(\frac{a^2}{2}-\frac{a^2}{3}\right) =\frac{ba^2}{6}. $$ The first moment about the \(x\)-axis is $$ \iint_R y\,dA =\int_0^a \frac{1}{2}b^2\left(1-\frac{x}{a}\right)^2\,dx =\frac{ab^2}{6}. $$ Dividing these moments by \(ab/2\) gives \(\bar{x}=a/3\) and \(\bar{y}=b/3\). The centroid is one-third of the way along each leg from the right-angle vertex.
The corresponding formula for any triangle follows by direct integration in coordinates adapted to its vertices. Let its vertices be \(P_0=(x_0,y_0)\), \(P_1=(x_1,y_1)\), and \(P_2=(x_2,y_2)\). Every point in the triangle can be written $$ P(s,t)=P_0+s(P_1-P_0)+t(P_2-P_0), \qquad s\ge 0,\quad t\ge 0,\quad s+t\le 1. $$ The absolute value \(J\) of the transformation’s determinant is constant, so \(dA=J\,ds\,dt\). The parameter triangle has area $$ \int_0^1\int_0^{1-s}1\,dt\,ds =\int_0^1(1-s)\,ds =\frac12, $$ and therefore the physical area is \(J/2\). Its average \(s\)-coordinate is $$ \frac{\int_0^1\int_0^{1-s}s\,dt\,ds}{1/2} =\frac{\int_0^1s(1-s)\,ds}{1/2} =\frac{1/6}{1/2} =\frac13. $$ By the same calculation, the average \(t\)-coordinate is \(1/3\). Since \(P(s,t)\) depends linearly on \(s\) and \(t\), its average is $$ \bar{P}=P_0+\frac13(P_1-P_0)+\frac13(P_2-P_0) =\frac{P_0+P_1+P_2}{3}. $$ Thus a triangle’s centroid is the arithmetic mean of its three vertex coordinates.
Worked Example: A Right Triangle with a Shifted Origin
Find the centroid of the triangle with vertices \((2,-1)\), \((8,-1)\), and \((2,5)\). Set \(u=x-2\) and \(v=y+1\). In these local coordinates, the triangle is \(0\le u\le6\), \(0\le v\le6-u\).
Its area is $$ A=\int_0^6(6-u)\,du =\left[6u-\frac{u^2}{2}\right]_0^6 =36-18=18. $$ The local first moments are $$ \iint_R u\,dA =\int_0^6u(6-u)\,du =\left[3u^2-\frac{u^3}{3}\right]_0^6 =108-72=36, $$ and $$ \iint_R v\,dA =\int_0^6\frac{(6-u)^2}{2}\,du =36. $$ So \(\bar{u}=36/18=2\) and \(\bar{v}=36/18=2\). Translating back gives \(\bar{x}=2+2=4\) and \(\bar{y}=-1+2=1\). As a check, the original-coordinate moments are \(\iint_R x\,dA=36+2(18)=72\) and \(\iint_R y\,dA=36-18=18\). Dividing by \(18\) recovers \((4,1)\). The vertex formula gives the same result: \(((2+8+2)/3,(-1-1+5)/3)=(4,1)\).
Rectangle: The Midpoint of Each Side Pair
For a rectangle \(a\le x\le b\), \(c\le y\le d\), its area is \((b-a)(d-c)\). Its first moments separate into one-dimensional integrals: $$ \iint_R x\,dA=(d-c)\int_a^b x\,dx, \qquad \iint_R y\,dA=(b-a)\int_c^d y\,dy. $$ Evaluating and dividing by the area gives \(\bar{x}=(a+b)/2\) and \(\bar{y}=(c+d)/2\). These are the midpoints of the rectangle’s horizontal and vertical coordinate intervals.
Worked Example: A Rectangle Not Centered at the Origin
Find the centroid of the rectangle \(1\le x\le5\), \(-2\le y\le4\). Its area is $$ A=(5-1)(4-(-2))=4\cdot6=24. $$ Its first moment about the \(y\)-axis is $$ \iint_R x\,dA =6\int_1^5x\,dx =6\left[\frac{x^2}{2}\right]_1^5 =6\left(\frac{25-1}{2}\right)=72. $$ Its first moment about the \(x\)-axis is $$ \iint_R y\,dA =4\int_{-2}^4y\,dy =4\left[\frac{y^2}{2}\right]_{-2}^4 =4\left(\frac{16-4}{2}\right)=24. $$ Hence \(\bar{x}=72/24=3\) and \(\bar{y}=24/24=1\). The check is \(24(3)=72\) and \(24(1)=24\), matching the first moments. The midpoint formulas give the same coordinates: \((1+5)/2=3\), \((-2+4)/2=1\).
Coordinate Shifts and a Common Pitfall
Suppose local coordinates are defined by \(u=x-h\) and \(v=y-k\). For a region of area \(A\), $$ \bar{x}=\frac{1}{A}\iint_R(u+h)\,dA =\bar{u}+h, \qquad \bar{y}=\frac{1}{A}\iint_R(v+k)\,dA =\bar{v}+k. $$ The centroid is a point independent of the coordinate description, but its coordinate pair changes when the origin changes.
For a quick reasonableness check, the centroid of a region with nonnegative area density must lie within its convex hull. A disk’s centroid should be its center, and a rectangle’s centroid should be its midpoint. For a semicircle, symmetry fixes the coordinate along its straight edge, while the other coordinate must lie strictly inside the curved region. Such checks can reveal a sign error or an omitted translation, but they do not replace the moment calculations.
Check Your Understanding
Use the area and first-moment definitions to answer these questions.
- Why is the centroid of a disk centered at \((h,k)\) equal to \((h,k)\)?
- What are the area and centroid of an upper semicircle of radius \(R\) centered at the origin?
- What are the centroid coordinates of a triangle with vertices \((x_0,y_0)\), \((x_1,y_1)\), and \((x_2,y_2)\)?
- For the rectangle \(-3\le x\le1\), \(2\le y\le6\), find its area and centroid by integration.
- A local centroid is \((\bar{u},\bar{v})=(1,4)\), with \(u=x-3\) and \(v=y+2\). What are its original-coordinate coordinates?