From a Bounded Region to Its Centroid
A region between two curves can be divided into thin vertical strips. Each strip contributes some mass, and its position determines how much it contributes to the first moments about the coordinate axes. Adding these contributions across the region gives the mass and moments; dividing each moment by the mass gives the centroid.
The key is to keep the upper and lower boundaries in the correct order and to use the appropriate moment integrand. The height of a strip determines its mass, while its vertical position also matters when calculating the moment about the \(x\)-axis.
Definition and Formulas
Let \(a<b\), and let \(f\) and \(g\) be continuous on \([a,b]\), with \(f(x)\leq g(x)\) throughout the interval. The region \(R\) between their graphs and the vertical lines \(x=a\) and \(x=b\) consists of points satisfying \(a\leq x\leq b\) and \(f(x)\leq y\leq g(x)\). Assume this region has positive area, and suppose its lamina has constant areal density \(\rho>0\).
Since \(g-f\) is continuous and nonnegative, the area is \(\int_a^b(g-f)\,dx\). Requiring positive area is important: if the two curves agree throughout the interval, then the region has zero area and, for positive density, zero mass. In that case the centroid ratios are undefined.
For constant density, the factor \(\rho\) appears in the mass and both moments, so it cancels from the centroid coordinates. The location of the centroid therefore depends on the shape of the region, not on the particular positive value of its uniform density.
Why the Moment Formulas Work
Consider a thin vertical strip at position \(x\), with width \(dx\) and vertical extent from \(f(x)\) to \(g(x)\). Its height is \(g(x)-f(x)\), so its area is approximately \((g(x)-f(x))\,dx\), and its mass is approximately \(\rho(g(x)-f(x))\,dx\). At this strip, the horizontal coordinate is \(x\), which gives its contribution to the moment about the \(y\)-axis.
For the moment about the \(x\)-axis, the mass in the strip is distributed over its full height. A thin horizontal element at height \(y\) has area \(dy\,dx\) and mass \(\rho\,dy\,dx\); its moment about the \(x\)-axis is its mass times its distance \(y\) from that axis. Integrating over the strip's height gives the strip's moment contribution.
The mass contribution is \(\rho(g(x)-f(x))\,dx\). Integrating from \(a\) to \(b\) gives \(m=\rho\int_a^b(g-f)\,dx\).
The moment contribution about the \(y\)-axis is \(x\,\rho(g(x)-f(x))\,dx\). Integrating gives \(M_y=\rho\int_a^b x(g-f)\,dx\).
The moment contribution about the \(x\)-axis is \(\rho\int_{f(x)}^{g(x)}y\,dy\,dx=\frac{\rho}{2}(g(x)^2-f(x)^2)\,dx\). Integrating across the interval gives the stated formula for \(M_x\).
By the definition of the centroid of a lamina, its coordinates are \(M_y/m\) and \(M_x/m\), respectively.
The inner integral in Step 3 uses \(\int y\,dy=y^2/2\), evaluated at the upper and lower limits. Thus the difference of squares is \(g(x)^2-f(x)^2\), not the square of the strip's height.
Worked Polynomial Examples
Worked Example: A Parabola and a Line
Find the mass, first moments, and centroid of the region between \(y=x^2\) and \(y=2x\) on \(0\leq x\leq2\), with constant density \(\rho\).
First check the order of the curves. Their difference is \(2x-x^2=x(2-x)\), which is nonnegative on \([0,2]\) and positive for \(0<x<2\). The region has positive area, so the centroid is defined. Here \(f(x)=x^2\) and \(g(x)=2x\).
The mass is
The moment about the \(y\)-axis is
The moment about the \(x\)-axis is
Therefore
To check, the integrands used above have antiderivatives \(x^2-x^3/3\), \(2x^3/3-x^4/4\), and \(2x^3/3-x^5/10\), respectively; differentiating each recovers its integrand. Substituting the evaluated mass and moments into the centroid ratios gives \((1,8/5)\), as calculated. At \(x=1\), the region runs from \(y=1\) to \(y=2\), so the centroid's coordinates are also consistent with the region's vertical bounds.
Worked Example: Two Curves Meeting at Both Ends
Find the centroid of the region between \(y=x^2\) and \(y=x\) on \(0\leq x\leq1\), with constant density \(\rho\).
On this interval, \(x-x^2=x(1-x)\geq0\), and it is positive for \(0<x<1\). Thus \(f(x)=x^2\), \(g(x)=x\), and the region has positive area.
The mass is
The moments are
Hence
For a direct check of the integrations, differentiating \(x^2/2-x^3/3\), \(x^3/3-x^4/4\), and \(x^3/6-x^5/10\) gives \(x-x^2\), \(x^2-x^3\), and \((x^2-x^4)/2\), respectively. The moment-to-mass ratios give the stated centroid.
Worked Example: A Linear Upper Boundary
Find the mass, moments, and centroid of the region between \(y=0\) and \(y=x+1\), from \(x=0\) to \(x=2\), with constant density \(\rho\).
The upper curve exceeds the lower curve throughout the interval because \(x+1\geq1\). In particular, the area is positive. Set \(f(x)=0\) and \(g(x)=x+1\).
The mass is
The moment about the \(y\)-axis is
The moment about the \(x\)-axis is
Therefore
Differentiating the antiderivatives used for \(m\), \(M_y\), and \(M_x\) recovers \(x+1\), \(x^2+x\), and \((x+1)^2/2\), respectively. The computed mass and moments therefore yield the centroid \((7/6,13/12)\) by substitution into the defining ratios.
A Common Mistake: Squaring the Slice Height
The mass of a vertical strip depends on its height \(g-f\), but the moment about the \(x\)-axis is found by integrating the vertical coordinate over that strip. These are different calculations. For the region in the second example, a mistaken calculation might use
This incorrectly squares the strip height. The correct integral is \(\frac{\rho}{2}\int_0^1(x^2-x^4)\,dx=\rho/15\), obtained by integrating \(y\) from the lower curve to the upper curve. The incorrect moment would give \(\bar{y}=(\rho/60)/(\rho/6)=1/10\); the correct moment gives \(\bar{y}=(\rho/15)/(\rho/6)=2/5\).
Before evaluating the integrals, check the upper and lower curves on the entire interval, confirm that the region has positive area, and write down which moment each integrand represents. If the curves cross inside the interval, the upper and lower boundaries are not ordered as assumed here; the interval must first be split at the crossing points and the bounds assigned correctly on each part.
Check Your Understanding
Use the definitions and formulas to answer these questions. Assume constant positive density unless a question says otherwise.
- For a region between \(f(x)\) and \(g(x)\) on \([a,b]\), which curve belongs in the upper-bound position in the moment formula for \(M_x\)?
- Why does positive area matter when defining the centroid by ratios of moments to mass?
- Set up, but do not evaluate, the mass and first-moment integrals for the region between \(y=x^2\) and \(y=3x\) on \(0\leq x\leq2\).
- Explain why the integrand for \(M_x\) involves \(g(x)^2-f(x)^2\), rather than \((g(x)-f(x))^2\).
- For the region between \(y=0\) and \(y=2-x\) on \(0\leq x\leq1\), identify \(f\), \(g\), and the expression for the mass before integration.