01 / 21

Centroid via
Integration

Learn to locate the balance point of any flat shape using definite integrals: the coordinates \( \bar{x} \) and \( \bar{y} \) that define the centroid.

Statics

What Is a Centroid?

The centroid of a 2-D region is the point \((\bar{x},\,\bar{y})\) at which the shape would perfectly balance on the tip of a pin. For a region with uniform density, the centroid equals the center of mass.

C \((\bar{x},\,\bar{y})\) balance point

Why Use Integration?

Simple shapes (rectangles, triangles) have known centroid formulas. But when a boundary is defined by a curve, we need calculus to sum infinitely many thin strips.

Formulas
Rectangles, circles, triangles: centroid from a table
Composite
Break into simple shapes, use weighted average
Integration
General curves: use \(\int\) to handle any boundary

The Differential Strip Idea

Imagine slicing the region into infinitely thin vertical strips, each of width \( dx \). Each strip is a tiny rectangle whose area is \( dA = f(x)\,dx \).

x y \(f(x)\) \(dx\) \(y = f(x)\) \(a\) \(b\)

Core Centroid Formulas

For a region bounded above by \( y = f(x) \), below by the \( x \)-axis, from \( x = a \) to \( x = b \):

Total Area
$$ A = \int_a^b f(x)\,dx $$
\(\bar{x}\) coordinate
$$ \bar{x} = \frac{1}{A}\int_a^b x\,f(x)\,dx $$
\(\bar{y}\) coordinate
$$ \bar{y} = \frac{1}{A}\int_a^b \frac{[f(x)]^2}{2}\,dx $$

Region Between Two Curves

When the region is bounded above by \( f(x) \) and below by \( g(x) \) (with \( f(x) \geq g(x) \)):

A
$$ A = \int_a^b \bigl[f(x) - g(x)\bigr]\,dx $$
\(\bar{x}\)
$$ \bar{x} = \frac{1}{A}\int_a^b x\bigl[f(x)-g(x)\bigr]\,dx $$
\(\bar{y}\)
$$ \bar{y} = \frac{1}{A}\int_a^b \frac{f(x)^2 - g(x)^2}{2}\,dx $$

Centroid vs. Center of Mass

Centroid Center of Mass
Density Uniform (constant \(\rho\)) Can vary: \(\rho(x,y)\)
Depends on Geometry only Geometry + mass distribution
Formula \(\bar{x}=\frac{\int x\,dA}{\int dA}\) \(\bar{x}=\frac{\int x\,\rho\,dA}{\int \rho\,dA}\)
When equal? They coincide when \(\rho\) is constant

Step-by-Step Method

1
Sketch the region. Identify the bounding curves \( f(x) \) and \( g(x) \), plus limits \( a \) and \( b \).
2
Choose strip orientation. Vertical strips (\( dx \)) are simplest when boundaries are given as \( y = \ldots \).
3
Compute the total area \( A = \int_a^b [f(x)-g(x)]\,dx \).
4
Compute first moments: \(\int x\,[f-g]\,dx\) for \(\bar{x}\) and \(\int \frac{f^2-g^2}{2}\,dx\) for \(\bar{y}\).
5
Divide each moment by \( A \) to get \(\bar{x}\) and \(\bar{y}\). Sanity-check that the result lies inside the region.

Example 1: Right Triangle

Find the centroid of the triangle with vertices at \((0,0)\), \((6,0)\), and \((0,4)\).

x y (0,0) (6,0) (0,4) \(y = 4 - \tfrac{2}{3}x\) \(C = (2,\,\tfrac{4}{3})\) 2 4 6 2 4

Example 1: Solution

A
Area: \(\displaystyle A = \int_0^6 \!\bigl(4 - \tfrac{2}{3}x\bigr)\,dx = \bigl[4x - \tfrac{x^2}{3}\bigr]_0^6 = 24 - 12 = \) 12
\(\bar{x}\)
\(\displaystyle \int_0^6 x\bigl(4-\tfrac{2}{3}x\bigr)\,dx = \int_0^6 (4x - \tfrac{2}{3}x^2)\,dx = \bigl[2x^2 - \tfrac{2}{9}x^3\bigr]_0^6 = 72 - 48 = 24\).
So \(\bar{x} = \frac{24}{12} = \) 2
\(\bar{y}\)
\(\displaystyle \int_0^6 \frac{(4-\frac{2}{3}x)^2}{2}\,dx = \frac{1}{2}\int_0^6(16 - \tfrac{16}{3}x + \tfrac{4}{9}x^2)\,dx = 16\).
So \(\bar{y} = \frac{16}{12} = \) \(\frac{4}{3}\)

Example 2: Parabolic Region

Find the centroid of the region bounded by \( y = x^2 \) and \( y = 4 \).

x y \(y=4\) \(y = x^2\) -2 -1 1 2 4 C

Example 2: Solution

By symmetry, \(\bar{x} = 0\). For \(\bar{y}\), we use vertical strips with \(f(x)=4\) (top) and \(g(x)=x^2\) (bottom), from \(x=-2\) to \(x=2\).

A
Area: \(\displaystyle A = \int_{-2}^{2}(4-x^2)\,dx = \bigl[4x - \tfrac{x^3}{3}\bigr]_{-2}^{2} = \tfrac{16}{3}+\tfrac{16}{3} = \) \(\frac{32}{3}\)
\(\bar{y}\)
\(\displaystyle \int_{-2}^{2}\frac{f(x)^2 - g(x)^2}{2}\,dx = \frac{1}{2}\int_{-2}^{2}(16-x^4)\,dx = \frac{1}{2}\bigl[16x - \tfrac{x^5}{5}\bigr]_{-2}^{2} = \frac{128}{5}\).
So \(\bar{y} = \frac{128/5}{32/3} = \frac{128}{5}\cdot\frac{3}{32} = \) \(\frac{12}{5} = 2.4\)

Example 3: Quarter Circle

Find \(\bar{x}\) for the region in the first quadrant bounded by \(x^2 + y^2 = r^2\). By symmetry, \(\bar{x} = \bar{y}\).

x y r r \(C = \bigl(\tfrac{4r}{3\pi},\;\tfrac{4r}{3\pi}\bigr)\)

Example 3: Solution

1
Area: \(\displaystyle A = \frac{1}{4}\pi r^2\)
2
First moment: Let \( u = r^2 - x^2 \):
\(\displaystyle \int_0^r x\sqrt{r^2-x^2}\,dx = \frac{1}{3}r^3\)
3
Centroid: \(\displaystyle \bar{x} = \frac{r^3/3}{\pi r^2/4} = \frac{4r}{3\pi}\)

Common Mistakes

✕ Forgetting to divide by A
Computing \(\int x\,f(x)\,dx\) but forgetting to divide by the total area. The centroid is an average.
✕ Wrong \(\bar{y}\) formula
Using \(\int f(x)\,dx\) for \(\bar{y}\) instead of \(\int \frac{[f(x)]^2}{2}\,dx\). The midpoint factor \(\frac{1}{2}\) is essential.
✕ Ignoring symmetry
Doing a long integral for \(\bar{x}\) when the region is symmetric: \(\bar{x}\) can be found by inspection.

Summary of Key Formulas

Quantity Single curve (above x-axis) Between \(f(x)\) and \(g(x)\)
Area \(A\) \(\int_a^b f\,dx\) \(\int_a^b (f-g)\,dx\)
\(\bar{x}\) \(\frac{1}{A}\int_a^b x f\,dx\) \(\frac{1}{A}\int_a^b x(f-g)\,dx\)
\(\bar{y}\) \(\frac{1}{A}\int_a^b \frac{f^2}{2}\,dx\) \(\frac{1}{A}\int_a^b \frac{f^2-g^2}{2}\,dx\)
Symmetry If symmetric about a line, the centroid lies on that line

Question 1 of 5

What does the centroid formula \(\bar{x} = \frac{1}{A}\int_a^b x\,f(x)\,dx\) compute?

Question 2 of 5

For the region under \( y = 3x \) from \( x=0 \) to \( x=2 \), the area is \( A = 6 \). What is \(\bar{x}\)?

Question 3 of 5

A region is symmetric about the line \( x = 5 \). What can you conclude about \(\bar{x}\)?

Question 4 of 5

In the \(\bar{y}\) formula for a single curve above the \(x\)-axis, why does \([f(x)]^2\) appear divided by 2?

Question 5 of 5

The centroid of a quarter-circle of radius \(r\) in the first quadrant is at \(\left(\frac{4r}{3\pi},\;\frac{4r}{3\pi}\right)\). For \(r = 6\), what is the numerical value of \(\bar{x}\)?