DoAssignment.ca

8.2 · Find centroids of simple lines and areas by integration

Learn to find centroids of simple lines and areas by integration through clear examples and targeted practice.

University of Alberta ENGG 130: Engineering Mechanics: Statics

Centroids and Centres of Gravity

ENGG 130 study topic 8.2

A centroid is the geometric balance point of a uniform line or plane area. It is found by averaging the positions of small pieces, weighted by their lengths or areas. Integration performs this continuous sum. In this lesson, the system is a geometric line or area; forces and material behaviour are not being analysed. Define the shape and axes, choose a small element, and express both its measure and location. Then integrate the total measure and first moments. The useful checks here are geometric first-moment checks, not force or structural equilibrium equations.

What you will learn

  • Explain a centroid as the geometric balance point of a uniform line or area.
  • Set up centroid coordinates by integrating small lengths or areas.
  • Choose coordinates and integration limits that match a shape.
  • Check a centroid using symmetry, units, bounds, and first moments.

Centroid coordinates and first moments

For an area made of small pieces dAdA, the horizontal centroid coordinate is the area-weighted average of the pieces’ horizontal positions. The vertical coordinate is the corresponding average of their vertical positions. For a line, use small lengths dLdL in place of areas.
The coordinates xx and yy locate a small piece, while xˉ\bar{x} and yˉ\bar{y} locate the centroid. The integrals ∫x dA\int x\,dA and ∫y dA\int y\,dA are first moments of area. Dividing by total area gives a length. For a line, divide the first moments of length by total length.
Centroid coordinates depend on the chosen axes, but the geometric centroid does not. Choose axes that make the element description and integration limits simple. If a shape is symmetric about an axis, its centroid lies on that axis; symmetry can determine one coordinate without integration.
xˉ=∫x dA∫dA,yˉ=∫y dA∫dA;xˉ=∫x dL∫dL,yˉ=∫y dL∫dL\bar{x}=\frac{\int x\,dA}{\int dA},\quad \bar{y}=\frac{\int y\,dA}{\int dA};\quad \bar{x}=\frac{\int x\,dL}{\int dL},\quad \bar{y}=\frac{\int y\,dL}{\int dL}
  • Use dAdA for area and dLdL for line length.
  • A centroid coordinate is a first moment divided by total area or length.
  • Centroid coordinates have units of length.

Choose an element that matches the shape

For an area, a thin strip is often convenient. A vertical strip of width dxdx between upper and lower boundaries has area equal to its width times its height. If its lower boundary is the xx-axis, the strip’s centroid is halfway up its height. Use that midpoint when calculating a vertical first moment.
For a curved line, the length element must follow the curve, rather than merely measuring its horizontal or vertical projection. On a circular arc of radius RR, a small angle change dθd\theta, measured in radians, gives dL=R dθdL=R\,d\theta. For another curve, obtain the length element from that curve’s geometry.
Write the size and centroid location of the element before integrating. Use matching limits for total measure and first moments. Integrate the total area or length, then divide each first moment by that total.
dA=(yupper−ylower) dx,dL=R dθdA=(y_{\mathrm{upper}}-y_{\mathrm{lower}})\,dx,\quad dL=R\,d\theta
  • Choose an element whose measure describes the actual shape.
  • Use the element’s centroid location, not an arbitrary point on it.
  • Use consistent axes and limits in the numerator and denominator.

Integrate, interpret, and check

A reliable procedure is to define the line or area, mark axes and limits, choose a small element, and state its measure and centroid location. Integrate to find the total measure and first moments, then divide. Keep dimensions visible: an area first moment has units of length cubed, while a line first moment has units of length squared.
Check whether the result lies within the shape’s bounds and agrees with any symmetry. A direct check is to multiply the centroid coordinate by the total measure and compare it with the corresponding integrated first moment. This checks the weighted-average calculation.
A uniform quarter-circle arc illustrates why the correct length element matters: its points are described by angle, and its small length is R dθR\,d\theta. Treating its length as dxdx would omit the changing relationship between horizontal position and distance along the arc.
xˉ∫dA=∫x dA,yˉ∫dA=∫y dA\bar{x}\int dA=\int x\,dA,\quad \bar{y}\int dA=\int y\,dA
  • For an area, total area times a centroid coordinate equals its first moment.
  • Use symmetry as an independent check where it applies.
  • A first moment divided by total area or length must have units of length.

Worked example

Centroid of a quarter-circular line

Find the centroid of a uniform quarter-circle arc of radius RR in the first quadrant, running from (R,0)(R,0) to (0,R)(0,R). Place the origin at the circle centre.
  1. Set coordinates and limits
    Describe a point on the arc using angle θ\theta measured from the positive horizontal axis. Its coordinates are x=Rcos⁡θx=R\cos\theta and y=Rsin⁡θy=R\sin\theta, with limits from zero to π/2\pi/2.
    x=Rcos⁡θ,y=Rsin⁡θ,0≤θ≤π2x=R\cos\theta,\quad y=R\sin\theta,\quad 0\leq\theta\leq\frac{\pi}{2}
  2. Find the length element and total length
    For a circular arc, a small angular change in radians corresponds to a length equal to the radius times that change. Integrating gives the quarter-arc length.
    dL=R dθ,L=∫0π/2R dθ=πR2dL=R\,d\theta,\quad L=\int_0^{\pi/2}R\,d\theta=\frac{\pi R}{2}
  3. Find the first moments
    Multiply each coordinate by the length element and integrate over the arc. The sine and cosine integrals are equal over these limits.
    ∫x dL=R2,∫y dL=R2\int x\,dL=R^2,\quad \int y\,dL=R^2
  4. Divide by total length
    Divide both first moments by the arc length. Equal positive coordinates agree with the arc’s symmetry about the line y=xy=x.
    xˉ=yˉ=2Rπ\bar{x}=\bar{y}=\frac{2R}{\pi}
Answer: The centroid is at (2R/π, 2R/π)(2R/\pi,\,2R/\pi) relative to the circle centre.
Check: Each coordinate is between zero and RR. The first-moment check gives Lxˉ=Lyˉ=(πR/2)(2R/π)=R2L\bar{x}=L\bar{y}=(\pi R/2)(2R/\pi)=R^2, matching the integrated first moments.

Worked example

Centroid of a triangular area

Find the centroid of the area below the straight boundary y=h(1−x/b)y=h(1-x/b) and above the xx-axis for 0≤x≤b0\leq x\leq b. Use b=120 mmb=120\,\mathrm{mm} and h=60 mmh=60\,\mathrm{mm}.
  1. Define a vertical strip
    At horizontal position xx, the strip height is y(x)y(x). Its area is y(x) dxy(x)\,dx. Since it extends from the xx-axis to height y(x)y(x), its centroid is halfway up, at height y(x)/2y(x)/2.
    dA=h(1−xb)dx,ystrip=y(x)2dA=h\left(1-\frac{x}{b}\right)dx,\quad y_{\mathrm{strip}}=\frac{y(x)}{2}
  2. Find the total area
    Integrate strip areas across the full base. This verifies that the chosen element covers the whole triangle.
    A=∫0bh(1−xb)dx=bh2A=\int_0^b h\left(1-\frac{x}{b}\right)dx=\frac{bh}{2}
  3. Find the horizontal coordinate
    For the horizontal first moment, weight each strip by its horizontal coordinate and divide by total area. The result lies toward the wider, left side of the triangle.
    xˉ=∫0bxh(1−x/b) dxbh/2=b3\bar{x}=\frac{\int_0^b xh(1-x/b)\,dx}{bh/2}=\frac{b}{3}
  4. Find the vertical coordinate and substitute
    For the vertical first moment, use the strip centroid height. Dividing by total area gives h/3h/3. Substituting the dimensions produces the coordinates in millimetres.
    yˉ=∫0b[y(x)/2]y(x) dxbh/2=h3,(xˉ,yˉ)=(40,20) mm\bar{y}=\frac{\int_0^b [y(x)/2]y(x)\,dx}{bh/2}=\frac{h}{3},\quad (\bar{x},\bar{y})=(40,20)\,\mathrm{mm}
Answer: The centroid is 40 mm40\,\mathrm{mm} to the right of the vertical axis and 20 mm20\,\mathrm{mm} above the base.
Check: The area is 3600 mm23600\,\mathrm{mm^2}. Thus Axˉ=120000 mm3A\bar{x}=120000\,\mathrm{mm^3} and Ayˉ=72000 mm3A\bar{y}=72000\,\mathrm{mm^3}. These equal the strip-integral first moments b2h/6b^2h/6 and bh2/6bh^2/6, respectively.

Worked example

Centroid of an upper semicircular area

Find the centroid of a uniform upper semicircular area of radius R=45 mmR=45\,\mathrm{mm}. Its diameter lies on the xx-axis and its centre is at the origin.
  1. Use symmetry
    The shape is symmetric about the vertical axis. Matching area to the left and right of that axis cancels the horizontal first moment, so the horizontal centroid coordinate is zero.
    xˉ=0\bar{x}=0
  2. Set up vertical strips
    At position xx, the upper boundary has height y=R2−x2y=\sqrt{R^2-x^2}. The vertical strip has area y dx and centroid height y/2y/2 above the diameter.
    dA=y dx,ystrip=y2dA=y\,dx,\quad y_{\mathrm{strip}}=\frac{y}{2}
  3. Integrate area and vertical first moment
    Integrate from the left edge to the right edge. The area is half a circle. For the vertical first moment, multiply strip area by its centroid height, then use y2=R2−x2y^2=R^2-x^2.
    A=πR22,∫y dA=12∫−RR(R2−x2)dx=2R33A=\frac{\pi R^2}{2},\quad \int y\,dA=\frac{1}{2}\int_{-R}^{R}(R^2-x^2)dx=\frac{2R^3}{3}
  4. Calculate the vertical coordinate
    Divide the vertical first moment by the area. Substituting R=45 mmR=45\,\mathrm{mm} gives a coordinate measured upward from the diameter.
    yˉ=4R3π=19.1 mm\bar{y}=\frac{4R}{3\pi}=19.1\,\mathrm{mm}
Answer: The centroid is at (0,19.1 mm)(0,19.1\,\mathrm{mm}) relative to the circle centre.
Check: The coordinate is positive and less than the radius. Also, Ayˉ=(πR2/2)(4R/3π)=2R3/3A\bar{y}=(\pi R^2/2)(4R/3\pi)=2R^3/3, equal to the integrated vertical first moment.

Common mistakes and how to avoid them

Using dxdx as the length element for a curved line.
Correction: Use the actual length along the curve. For a circular arc, this is dL=R dθdL=R\,d\theta.
Using the top of an area strip as its vertical location.
Correction: Use the strip’s centroid. For a rectangular strip starting at the xx-axis, that is halfway up its height.
Dividing an area first moment by total length, or a line first moment by total area.
Correction: Use the total measure that matches the element: total area for dAdA, total length for dLdL.
Assuming the centroid is always at the centre of the outline.
Correction: Use the weighted integrals or a valid symmetry argument; a boundary’s visual centre is not generally the area’s centroid.

Lesson summary

  • Centroid coordinates are first moments divided by total length or area.
  • For an area, choose strips with a simple area and a known strip-centroid location.
  • For a line, integrate along the actual curve length.
  • Check the result using units, symmetry, bounds, and first moments.

Check your understanding

Question 1

A uniform straight line extends from x=0x=0 to x=Lx=L. What is its centroid coordinate?
  1. L/4L/4
  2. L/2L/2
  3. 2L/32L/3
  4. LL
Show answer and explanation
L/2L/2
The line has constant length per unit coordinate, so its centroid is the midpoint: ∫0Lx dx/∫0Ldx=L/2\int_0^L x\,dx/\int_0^L dx=L/2.

Question 2

For a vertical strip of height y(x)y(x) starting at the xx-axis, what is its contribution to the vertical first moment of area?
  1. y(x) dxy(x)\,dx
  2. xy(x) dxxy(x)\,dx
  3. 12y(x)2 dx\frac{1}{2}y(x)^2\,dx
  4. 12x2 dx\frac{1}{2}x^2\,dx
Show answer and explanation
12y(x)2 dx\frac{1}{2}y(x)^2\,dx
The strip area is y dx and its centroid height is y/2y/2. Their product, the contribution to the vertical first moment, is 12y2 dx\frac{1}{2}y^2\,dx.

Question 3

A uniform area is symmetric about the vertical axis x=0x=0. What is its horizontal centroid coordinate?
  1. xˉ=0\bar{x}=0
  2. xˉ\bar{x} equals the maximum width
  3. xˉ\bar{x} must be positive
  4. It cannot be found without integrating both coordinates
Show answer and explanation
xˉ=0\bar{x}=0
For every area element at positive xx, a matching element at negative xx has an equal and opposite contribution to the horizontal first moment.

Key terms

Centroid
The geometric balance point of a uniform line or area.
Differential element
A very small piece of a line or area, written as dLdL or dAdA.
First moment
A small length or area multiplied by its distance from an axis, summed over the shape.
Parameter
A variable, such as an angle, used to describe points along a curve.

Continue through ENGG 130

View the complete ENGG 130 University of Alberta ENGG 130: Engineering Mechanics: Statics curriculum and lessons

About this lesson and its review

Published by DoAssignment. This AI-assisted lesson follows University of Alberta ENGG 130: Engineering Mechanics: Statics, study topic 8.2. It is a study resource, not an official curriculum publication.

Before publication, the draft is checked for structure, mathematical or chemical notation, calculations, course boundaries, and readability, and then requires administrator approval. Errors can still occur, so corrections are welcomed.

Official curriculum reference

Report a correction or ask a question