Skip to main content
Engineering LibreTexts

17.2: Centroids of Areas via Integration

  • Page ID
    55339
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    The centroid of an area can be thought of as the geometric center of that area. The location of the centroid is often denoted with a \(C\) with the coordinates being \((\bar{x}\), \(\bar{y})\), denoting that they are the average \(x\) and \(y\) coordinate for the area. If an area was represented as a thin, uniform plate, then the centroid would be the same as the center of mass for this thin plate.

    The centroid of a semicircle of radius r is 4r/(3 pi) from the midpoint of the straight side, along the radius perpendicular to that side. The centroid of a right triangle whose legs have lengths h and b is located a distance of h/3 in the direction of h and a distance of b/3 in the direction of b, with both distances measured from the right angle. The centroid of a rectangle with side lengths of b and h is located at the intersection of the midpoints of opposite sides.
    Figure \(\PageIndex{1}\): The centroid (marked \(C\)) for a few common shapes.

    Centroids of areas are useful for a number of situations in the mechanics course sequence, including in the analysis of distributed forces, the bending in beams, and torsion in shafts, and as an intermediate step in determining moments of inertia.

    The location of centroids for a variety of common shapes can simply be looked up in tables, such as this table for 2D centroids and this table for 3D centroids. However, we will often need to determine the centroid of other shapes; to do this, we will generally use one of two methods.

    1. We can use the first moment integral to determine the centroid location.
    2. We can use the method of composite parts along with centroid tables to determine the centroid location.

    On this page we will only discuss the first method, as the method of composite parts is discussed in a later section. The tables used in the method of composite parts, however, are derived via the first moment integral, so both methods ultimately rely on first moment integrals.

    Finding the Centroid via the First Moment Integral

    When we find the centroid of a two-dimensional shape, we will be looking for both an \(x\) and a \(y\) coordinate, represented as \(\bar{x}\) and \(\bar{y}\) respectively. Collectively, this \((\bar{x}, \bar{y}\) coordinate is the centroid of the shape.

    To find the average \(x\)-coordinate of a shape (\(\bar{x}\)), we will essentially break the shape into a large number of very small and equally sized areas, and find the average \(x\)-coordinate of these areas. To do this sum of an infinite number of very small things, we will use integration. Specifically, we will take the first rectangular area moment integral along the \(x\)-axis, and then divide that integral by the total area to find the average coordinate. We can do something similar along the \(y\)-axis to find our \(\bar{y}\) value. Writing all of this out, we have the equations below.

    \[ C = ( \bar{x}, \bar{y}) \]

    \begin{align} \bar{x} &= \dfrac{ \displaystyle\int_{A} (dA*x)}{A} \\[4pt] \bar{y} &= \dfrac{ \displaystyle\int_{A} (dA*y)}{A} \end{align}

    Next let's discuss what the variable \(dA\) represents and how we integrate it over the area. The variable \(dA\) is the rate of change in area as we move in a particular direction. For \(\bar{x}\) we will be moving along the \(x\)-axis, and for \(\bar{y}\) we will be moving along the \(y\)-axis in these integrals.

    As we move along the \(x\)-axis of a shape from its leftmost point to its rightmost point, the rate of change of the area at any instant in time will be equal to the height of the shape that point times the rate at which we are moving along the axis (\(dx\)). Because the height of the shape will change with position, we do not use any one value, but instead must come up with an equation that describes the height at any given value of x. We will then multiply this \(dA\) equation by the variable \(x\) (to make it a moment integral), and integrate that equation from the leftmost \(x\) position of the shape (\(x_{min}\)) to the rightmost \(x\) position of the shape (\(x_{max}\)).

    A portion of a downwards-opening parabola, containing the vertex, lies in the first quadrant of the Cartesian coordinate plane. The shape is bounded below by the x-axis and intersects the origin at its leftmost point, which is labeled x_max. The rightmost point of the shape, which also touches the x-axis, is labeled x_min. The shape is divided into many thin vertical strips, each approximating a thin rectangle with an area of dA. The x coordinate of the centroid is the integral of dA * x, evaluated from x_min to x_max, the whole divided by the shape's total area.
    Figure \(\PageIndex{2}\): The procedure for calculating the \(x\) coordinate of the centroid.

    To find the \(y\) coordinate of the of the centroid, we have a similar process, but because we are moving along the \(y\)-axis, the value \(dA\) is the equation describing the width of the shape times the rate at which we are moving along the \(y\) axis (\(dy\)). We then take this \(dA\) equation and multiply it by \(y\) to make it a moment integral. We will integrate this equation from the \(y\) position of the bottommost point on the shape (\(y_{min}\)) to the \(y\) position of the topmost point on the shape (\(y_{max}\)).

    A portion of a downwards-opening parabola, containing the vertex, lies in the first quadrant of the Cartesian coordinate plane. The shape is bounded below by the x-axis, which is labeled y_min. The y-value of the vertex is labeled y_max. The shape is divided into many thin horizontal strips, each approximating a thin rectangle with an area of dA. The y coordinate of the centroid is the integral of dA * y, evaluated from y_min to x_max, the whole divided by the shape's total area.
    Figure \(\PageIndex{3}\): The procedure for calculating the \(y\) coordinate of the centroid.

    Using the first moment integral and the equations shown above, we can theoretically find the centroid of any shape as long as we can write out equations to describe the height and width at any \(x\) or \(y\) value respectively. For more complex shapes, however, determining these equations and then integrating these equations can become very time-consuming. That is why most of the time, engineers will instead use the method of composite parts or computer tools.

    Using Symmetry as a Shortcut

    Shape symmetry can provide a shortcut in many centroid calculations. Remember that the centroid is located at the average \(x\) and \(y\) coordinate for all the points in the shape. If the shape has a line of symmetry, that means each point on one side of the line must have an equivalent point on the other side of the line. This means that the average value (AKA the centroid) must lie along any axis of symmetry. If the shape has more than one axis of symmetry, then the centroid must exist at the intersection of the two axes of symmetry.

    An isosceles triangle has its centroid located somewhere on the line of symmetry that divides its base in half. A semicircle with a smaller concentric semicircle removed, producing a C-shape, has its centroid located somewhere on the C's horizontal line of symmetry. A rectangle has its centroid located at the intersection its vertical and its horizontal lines of symmetry.
    Figure \(\PageIndex{4}\): If a shape has a line of symmetry, the centroid must lie somewhere along that line. If a shape has more than one line of symmetry, the centroid must exist at the intersection of these lines.
    Video lecture covering this section, delivered by Dr. Jacob Moore. YouTube source: https://youtu.be/ilgYN8c1HUk.

    Example \(\PageIndex{1}\)

    Find the \(x\) and \(y\) coordinates of the centroid of the shape shown below.

    A right triangle lies in the first quadrant of a standard Cartesian coordinate plane. One leg, 6 inches long, has its left endpoint located at the origin and lies along the positive x-axis. The second leg, 4 inches long, extends upwards from the right endpoint of the horizontal leg.
    Figure \(\PageIndex{5}\): problem diagram for Example \(\PageIndex{1}\). A right triangle with one leg lying along the \(x\)-axis in the first quadrant of a Cartesian plane.
    Solution:
    Video \(\PageIndex{2}\): Worked solution to example problem \(\PageIndex{1}\), provided by Dr. Jacob Moore. YouTube source: https://youtu.be/dZ2O3zwvuP0.

    Example \(\PageIndex{2}\)

    Find the \(x\) and \(y\) coordinates of the centroid of the shape shown below.

    A triangle in the first quadrant of a standard Cartesian coordinate plane. The longest side of the triangle, 9 inches long, begins at the origin and lies along the x-axis. The intersection of the triangle's other two sides is located 3 inches to the right of the origin and 3 inches above the x-axis.
    Figure \(\PageIndex{6}\): problem diagram for Example \(\PageIndex{2}\). A triangle with its longest side lying along the \(x\)-axis in the first quadrant of a Cartesian plane.
    Solution:
    Video \(\PageIndex{3}\): Worked solution to example problem \(\PageIndex{2}\), provided by Dr. Jacob Moore. YouTube source: https://youtu.be/hmGiCFwgIo8.

    Example \(\PageIndex{3}\)

    Find the \(x\) and \(y\) coordinates of the centroid of the shape shown below.

    An L-shaped region in the first quadrant of a standard Cartesian coordinate plane. The shape consists of one rectangle 3 inches long and 1 inch high, lying along the x-axis with its lower left corner at the origin, and one rectangle 1 inch long by 3 inches high, lying along the y-axis with its lower left corner at the origin.
    Figure \(\PageIndex{7}\): problem diagram for Example \(\PageIndex{3}\). An L-shaped region lies along the \(x\)- and \(y\)-axes in the first quadrant of a Cartesian plane.
    Solution:
    Video \(\PageIndex{4}\): Worked solution to example problem \(\PageIndex{3}\), provided by Dr. Jacob Moore. YouTube source: https://youtu.be/4MHflda4FBw.

    This page titled 17.2: Centroids of Areas via Integration is shared under a CC BY-SA 4.0 license and was authored, remixed, and/or curated by Jacob Moore & Contributors (Mechanics Map) via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.