Statics › Section G · Centroids and centers of gravity › Topic G.6

Centroids by integration

A curved edge cannot be split into a few rectangles and triangles. Integration splits it into infinitely many thin strips instead, and it is also where the table of standard centroids comes from.

When the table runs out

The composite method needs parts whose areas and centroids are already known. A gate with a parabolic edge, a cam profile or the region under a load curve has no such parts. The integral form from the previous topic, "Average value of a function", handles them:

A = \int dA \qquad Q_x = \int \bar{y}_{el}\,dA \qquad Q_y = \int \bar{x}_{el}\,dA

and then \(\bar{x} = Q_y/A\) and \(\bar{y} = Q_x/A\), exactly as before. Here \(dA\) is a tiny element of area and \((\bar{x}_{el}, \bar{y}_{el})\) is that element's own centroid, usually a function of \(x\) or \(y\). Areas come out in length squared and first moments in length cubed.

Choosing the element

Three elements are common. A tiny square element \(dA = dx\,dy\) at \((x, y)\) needs a double integral. A vertical strip of width \(dx\) running from the lower boundary \(y_{bot}(x)\) to the upper one \(y_{top}(x)\) has \(dA = (y_{top} - y_{bot})\,dx\). A horizontal strip of height \(dy\) from \(x_{left}(y)\) to \(x_{right}(y)\) has \(dA = (x_{right} - x_{left})\,dy\). A strip's centroid is its midpoint, the average of its two ends. For a vertical strip, \(\bar{x}_{el} = x\) and \(\bar{y}_{el} = \frac{y_{top} + y_{bot}}{2}\). For a horizontal strip, \(\bar{y}_{el} = y\) and \(\bar{x}_{el} = \frac{x_{left} + x_{right}}{2}\). Strips need only single integrals.

The procedure

1. Sketch the region and write each boundary as an equation, finding any unknown constant from a point the curve passes through. 2. Choose vertical or horizontal strips and write \(dA\), \(\bar{x}_{el}\) and \(\bar{y}_{el}\) in terms of the one variable of integration. 3. Set the limits from one edge of the region to the other. 4. Integrate to find \(A\), \(Q_x\) and \(Q_y\), skipping \(A\) if a formula already gives it. 5. Divide, remembering that \(Q_x\) goes with \(\bar{y}\). 6. Plot the point and check that it lies where the bulk of the area is, and that units are consistent.

Worked example: under a parabola

Find the centroid of the region between the \(x\)-axis, the line \(x = 4\) m and the parabola \(y = kx^2\) through (4, 2). 1. From \(2 = 16k\), \(k = 1/8\). 2. Vertical strips: \(dA = y\,dx\), \(\bar{x}_{el} = x\), \(\bar{y}_{el} = y/2\), with \(x\) from 0 to 4. 3. \(A = \int_0^4 \frac{x^2}{8}\,dx = \frac{8}{3}\ \mathrm{m^2}\). 4. \(Q_y = \int_0^4 \frac{x^3}{8}\,dx = 8\ \mathrm{m^3}\), so \(\bar{x} = 3\) m. 5.

Q_x = \int_0^4 \frac{1}{2}\left(\frac{x^2}{8}\right)^2 dx = 1.6\ \mathrm{m^3}

so \(\bar{y} = 0.6\) m. 6. Check: the area crowds towards the tall right end and stays low, so (3, 0.6) m is sensible.

The general spandrel

A spandrel is the region between a curve and the sides of its enclosing rectangle. For the area under \(y = kx^n\) from \(x = 0\) to \(x = a\), with the curve passing through \((a, b)\), the same steps with \(k = b/a^n\) give

A = \frac{ab}{n + 1} \qquad \bar{x} = \frac{(n + 1)a}{n + 2} \qquad \bar{y} = \frac{(n + 1)b}{2(2n + 1)}

Setting \(n = 0\) gives a rectangle, centroid \((a/2, b/2)\). Setting \(n = 1\) gives a triangle, centroid \((2a/3, b/3)\), matching the standard result. Setting \(n = 2\) gives the parabola above, \((3a/4, 3b/10)\). Formulas like these fill the tables of common shapes used with the composite method.

Worked example: between two curves

Find the centroid of the region between the line \(y = 2x\) and the parabola \(y = x^2\), lengths in metres. 1. They meet where \(2x = x^2\), at \(x = 0\) and \(x = 2\); the line is on top. 2. Vertical strip: \(dA = (2x - x^2)\,dx\), \(\bar{x}_{el} = x\), \(\bar{y}_{el} = \frac{2x + x^2}{2}\). 3. \(A = \int_0^2 (2x - x^2)\,dx = \frac{4}{3}\). 4. \(Q_y = \int_0^2 (2x^2 - x^3)\,dx = \frac{4}{3}\), so \(\bar{x} = 1\) m. 5.

Q_x = \int_0^2 \frac{(2x)^2 - (x^2)^2}{2}\,dx = \frac{32}{15}

so \(\bar{y} = \frac{32}{15} \div \frac{4}{3} = 1.6\) m. 6. Check: the strip heights are symmetric about \(x = 1\), so \(\bar{x} = 1\) is expected.

When horizontal strips are better

Either strip gives the same answer, but one is often less work. Choose horizontal strips when the left and right boundaries are simple functions of \(y\), or when vertical strips would hit a boundary that changes partway across, forcing two separate integrals. The parabola region above can be redone with horizontal strips running from \(x = \sqrt{8y}\) to \(x = 4\): then

Q_x = \int_0^2 y\left(4 - \sqrt{8y}\right)dy = 1.6\ \mathrm{m^3}

the same as before. Only the bookkeeping changed. Circular shapes are often set up in polar coordinates, but the next example shows that a well-chosen strip handles them too.

Worked example: where 4r/(3π) comes from

Find \(\bar{y}\) for the half disc of radius \(r\) above the \(x\)-axis, centred at the origin. 1. By symmetry, \(\bar{x} = 0\), and the area is known: \(A = \pi r^2/2\). 2. Horizontal strip at height \(y\): it spans the circle \(x^2 + y^2 = r^2\), so \(dA = 2\sqrt{r^2 - y^2}\,dy\) and \(\bar{y}_{el} = y\). 3. Substituting \(u = r^2 - y^2\):

Q_x = \int_0^r 2y\sqrt{r^2 - y^2}\,dy = \frac{2r^3}{3}

4. \(\bar{y} = \frac{2r^3}{3} \div \frac{\pi r^2}{2} = \frac{4r}{3\pi}\). 5. Check: this is about \(0.424r\), below mid-height because the half disc is widest at its base.

Common mistakes to avoid

First, taking \(\bar{y}_{el} = y\) for a vertical strip; its centroid is at its midpoint, \(y/2\) for a strip standing on the axis. Second, using \(dA = y\,dx\) when the region lies above the curve, which finds the centroid of the wrong piece; the height is always top minus bottom. Third, leaving both \(x\) and \(y\) in an integrand. Fourth, taking limits from the wrong variable. Fifth, crossing the moments. A units check helps: \(A\) must be in length squared and \(Q\) in length cubed.

Key takeaways

Centroids of curved regions come from \(A = \int dA\), \(Q_x = \int \bar{y}_{el}\,dA\) and \(Q_y = \int \bar{x}_{el}\,dA\), then \(\bar{x} = Q_y/A\) and \(\bar{y} = Q_x/A\). Strips need single integrals; a strip's centroid is its midpoint. Vertical strips use height top minus bottom; horizontal strips use length right minus left. Pick the strip that keeps the boundaries simple. The spandrel under \(y = kx^n\) has area \(ab/(n+1)\), and integration confirms table values such as \(4r/(3\pi)\) for a semicircle.

Flashcards

Flashcard

A = ∫ dA

Total area from the elements

Length squared.

Test your understanding

Question 1 of 5

A vertical strip of width dx runs from the x-axis up to the curve y = f(x). Where is the strip's own centroid, ȳ_el?

Question 2 of 5

Find x̄ for the region under y = x³ from x = 0 to x = 2 m, above the x-axis.

Question 3 of 5

The curve y = kx² passes through (6, 3) m. What is the area between the curve, the x-axis and the line x = 6 m?

Question 4 of 5

A horizontal strip at height y runs from the curve x = g(y) on its left to the line x = c on its right. What is x̄_el?

Question 5 of 5

Find ȳ for the region between y = x (above) and y = x² (below) from x = 0 to x = 1 m.

← Previous topicNext topic →