Locate

Locate The Centroid Of Shaded Area

PL
l-diplomas.com
18 min read
Locate The Centroid Of Shaded Area
Locate The Centroid Of Shaded Area

Finding the centroid of a shaded area is one of those problems that looks intimidating the first time you see it — a weird shape, maybe with curves cut out, and you're told to find a single point that represents its "center of mass." But here's the thing: once you see the setup, it's mostly just arithmetic with integrals. The real trick is knowing which* integrals to set up.

This walkthrough covers the basic idea, the most common approach, and the mistakes that trip people up. If you've ever stared at a problem involving a region bounded by two curves and wondered where to even start, this should help.

What "Centroid of a Shaded Area" Actually Means

When a problem asks for the centroid of a shaded area, it's asking for the geometric center of a two-dimensional region — usually one bounded by curves in the xy-plane. The centroid is the point (x̄, ȳ) where, in theory, you could balance the whole shape on a pin and it wouldn't tip over.

You'll see this most often in calculus courses, especially in a unit on applications of integration. The shaded region is typically described as the area between two curves from x = a to x = b, or bounded by a curve and the x-axis or y-axis. Sometimes there's a hole punched out, which adds a small twist but follows the same logic.

The formulas you'll use come from the idea that the centroid is the average position* of all the tiny pieces of area that make up the region. So instead of just finding a midpoint by eye, you're weighting each piece by its area.

Why Finding It Matters

In a pure math class, it's a way to apply integration in a setting that isn't just "find the area." But the underlying concept shows up in real engineering and physics problems: center of mass of a plate, torque on a rotating object, pressure on a submerged surface, fluid forces on a curved gate.

If you're taking statics or mechanics, this stuff comes back fast. Even outside engineering, the logic is useful: it teaches you to think about a shape as a sum of pieces*, each contributing differently to a whole. That's a transferable way of thinking.

How to Find the Centroid: The Step-by-Step Method

Step 1: Sketch the Region and Identify the Boundaries

Before touching a single integral, draw the region. And seriously. Even a rough sketch on scrap paper saves you from setting up an integral with the wrong limits.

Mark the curves involved, the points where they intersect, and which area is shaded. The intersection points become your limits of integration, and figuring out which curve is "on top" (the upper function) versus "on bottom" (the lower function) decides what goes where in the formula.

Step 2: Find the Area of the Region First

The area of the shaded region is:

A = ∫[a to b] (top curve − bottom curve) dx

if you're integrating with respect to x. Or flip it around if you're using horizontal strips. This A is going to show up in the denominator of both centroid formulas, so you'll need it anyway.

If there's a hole or a region being subtracted, find the total area of the outer region and subtract the area of the inner region. Same idea — just two areas.

Step 3: Set Up the Moment Integrals

This is the heart of the problem. The centroid formulas are:

x̄ = (1/A) · ∫[a to b] x · (top − bottom) dx

ȳ = (1/A) · ∫[a to b] (1/2) · [(top)² − (bottom)²] dx

Let me unpack what those mean.

The first formula, x̄, treats each vertical strip as a tiny rectangle. That strip has area (top − bottom) dx, and its x-position is somewhere in the middle of the strip, which we approximate as just x. In practice, multiply the area by the position x, integrate from a to b, and divide by the total area A. That gives the average x-position of the region.

The ȳ formula does the same thing vertically, but it's a bit trickier. For a vertical strip, the strip isn't a single point in the y-direction — it stretches from the bottom curve up to the top curve. The y-centroid of that strip is at the midpoint of its height, so its y-coordinate is (top + bottom)/2. The area of the strip is still (top − bottom) dx.

y · dA = (top + bottom)/2 · (top − bottom) dx = (1/2)[(top)² − (bottom)²] dx

Integrate that, divide by A, and you get ȳ.

Step 4: Handle the Strip Direction Carefully

Most textbook problems use vertical strips because the curves are functions of x. But sometimes the region is easier to describe with horizontal strips — for instance, if the curves are given as x = something in terms of y, or if the region is tall and narrow.

If you switch to horizontal strips, swap x and y in the formulas:

ȳ = (1/A) · ∫[c to d] y · (right − left) dy

x̄ = (1/A) · ∫[c to d] (1/2) · [(right)² − (left)²] dy

The structure is identical. Don't memorize it as "the x formula" — memorize the logic* and apply whichever variable makes sense.

Step 5: Compute the Integrals

This is just calculus. Use the power rule, antiderivatives, plug in limits, subtract. Most problems at the introductory level have polynomial curves, so the antiderivatives are manageable.

Once you have A, M_y (the integral in the x̄ formula), and M_x (the integral in the ȳ formula), divide:

x̄ = M_y / A, ȳ = M_x / A

And you're done. The point (x̄, ȳ) is the centroid.

Common Mistakes That Throw People Off

Mixing Up Which Curve Is on Top

This is the number one error. If you subtract the curves in the wrong order in the area formula, you'll get a negative A, and the whole problem falls apart. Always recheck by plugging a test x-value into both functions and seeing which gives a larger y.

Using the Wrong Variable in the Strip

If the region is best described with horizontal strips, the formula for x̄ changes. So a lot of students default to vertical strips out of habit, even when the curves are easier to write as x in terms of y. Pick the direction that matches how the curves are given.

Forgetting to Subtract When There's a Hole

For a region with a hole — like a washer shape — find the area of the outer region minus the inner region. The moment integrals follow the same logic: outer moment minus inner moment, all divided by the outer area minus the inner area. Don't just average the two centroids.

Confusing Centroid with Midpoint

The midpoint of a region's bounding box is not its centroid, except in very specific cases (like a rectangle). For curved regions, the centroid shifts toward the heavier side — the side with more area packed in.

Sign Errors from Sloppy Setup

A single sign mistake in the bounds or in (top − bottom) cascades through everything. The fix is the same as in step one: sketch the region, label everything, and recheck before crunching numbers.

Practical Tips That Actually Help

Always sketch the region. Even a tiny diagram. It catches more errors than any other habit.

Compute the area first. If your A is negative, stop and recheck before going further. Everything downstream depends on it.

Write the formula in words before symbols. "The average x-position of vertical strips" is easier to remember than a string of integrals, and it helps you catch the wrong setup.

Use symmetry when it's there. If the region is symmetric about a vertical line, x̄ is that line. If it's symmetric about a horizontal line, ȳ is that line. You can save the corresponding integral entirely.

Pick a calculator-friendly direction. If the curves are polynomials in x, vertical strips keep the algebra simpler. If they involve y under a square root or an inverse function, horizontal strips are usually cleaner.

Double-check the final answer for plausibility. If the region is mostly in the upper half of your window, ȳ should be in the upper half. If the centroid lands far outside the shaded area, something is wrong.

FAQ

What if the region is bounded by three or more curves?

Same

What if the region is bounded by three or more curves?

The principle does not change – you simply break the region into simpler sub‑regions that are each bounded by at most two curves. Treat each sub‑region as its own “shape,” compute its area (A_i) and its moments (M_{x,i}) and (M_{y,i}), and then combine them with a weighted average:

[ \bar{x}=\frac{\sum_i M_{y,i}}{\sum_i A_i}, \qquad \bar{y}=\frac{\sum_i M_{x,i}}{\sum_i A_i}. ]

When choosing how to split the region, look for natural seams such as points where curves intersect or lines of symmetry. Sometimes a single region can be divided in two ways; pick the one that makes the integrals the easiest to set up.


How does a non‑uniform density affect the centroid?

The centroid of a shape is defined without* regard to density; it is the geometric centre of the region. If the material has a variable density (\rho(x,y)), the centre of mass (( \tilde{x},\tilde{y})) is given by

[ \tilde{x}= \frac{\displaystyle\int\int_R x,\rho(x,y),

[ \tilde{x}= \frac{\displaystyle\iint_R x,\rho(x,y),dA}{\displaystyle\iint_R \rho(x,y),dA}, \qquad \tilde{y}= \frac{\displaystyle\iint_R y,\rho(x,y),dA}{\displaystyle\iint_R \rho(x,y),dA}. ]

The denominator (\iint_R \rho(x,y),dA) is the total mass (M) of the region, while the numerators are the first‑moment of mass about the (y)- and (x)-axes, respectively. When the density is constant, (\rho(x,y)=\rho_0) factors out of every integral, cancels with the denominator, and the expressions reduce exactly to the centroid formulas presented earlier.

If the density varies, the “center of mass’’ ((\tilde{x},\tilde{y})) will generally not coincide with the geometric centroid ((\bar{x},\bar{y})). In practice you may encounter:

  • Radial density – e.g. (\rho(r)=k,r) for a circular lamina. The integrals become a little more involved but still follow the same two‑step pattern (compute the moment, then divide by the total mass).
  • Piecewise‑constant density – Suppose a region consists of two sub‑regions with densities (\rho_1) and (\rho_2). Treat each sub‑region separately, compute its area (A_i) and its geometric moments (M_{x,i},M_{y,i}), then weight them by the respective masses (m_i=\rho_i A_i): [ \tilde{x}= \frac{\rho_1 M_{y,1}+\rho_2 M_{y,2}}{\rho_1 A_1+\rho_2 A_2}, \qquad \tilde{y}= \frac{\rho_1 M_{x,1}+\rho_2 M_{x,2}}{\rho_1 A_1+\rho_2 A_2}. ]
  • Functionally defined density – If (\rho(x,y)) is given analytically, integrate as shown. Symbolic integrators (or a carefully set‑up numerical routine) will handle the extra factor inside the integrand.

In all cases the procedure remains unchanged: sketch the region, write the integrals in words, set up the integrals with the correct bounds, evaluate, and finally divide the moment sum by the total mass (or area for the

For more on this topic, read our article on what time will it be 45 minutes from now or check out write the complement of each of the following angles.

and finally divide the moment sum by the total mass (or area for the geometric centroid).

In practice this means that after you have performed the two double integrals

[ M_y=\iint_R x,\rho(x,y),dA,\qquad
M_x=\iint_R y,\rho(x,y),dA, ]

and the total‑mass integral

[ M=\iint_R\rho(x,y),dA, ]

the coordinates of the centre of mass are simply

[ \tilde{x}=\frac{M_y}{M},\qquad\tilde{y}=\frac{M_x}{M}. ]

If (\rho) is constant, (M=\rho,A) and the same formulas reduce to (\bar{x}=M_y/A) and (\bar{y}=M_x/A). Thus the algorithm for any lamina—whether it has uniform or variable density—follows the same three‑step pattern:

  1. Sketch the region and, if necessary, decompose it into sub‑regions that are easier to describe.
  2. Write the three integrals in words (e.g. “the moment about the (y)–axis is the integral of (x) times density over the region”), then translate them into iterated integrals with correct limits.
  3. Evaluate (analytically or numerically) and form the ratios (\tilde{x}=M_y/M) and (\tilde{y}=M_x/M).

A few practical tips can save a lot of algebraic grief:

  • Use symmetry whenever possible. If a region is symmetric about the (x)-axis, (\tilde{y}=0); about the (y)-axis, (\tilde{x}=0). Symmetry reduces the problem to a single non‑trivial integral.
  • Choose the order of integration wisely. Sometimes (dx,dy) is easier; sometimes (dy,dx) is. If the region is described by (y) as a function of (x), integrate with respect to (y) first.
  • Check your limits for consistency. The inner limits may depend on the outer variable, but never on the integration variable itself.
  • Verify units. If the density is in (\text{kg·m}^{-2}) and lengths are in meters, the moments will have units (\text{kg·m}) and the centre‑of‑mass coordinates will be in meters, as expected.
  • Cross‑check with known results. For a semicircle of uniform density the centroid lies at ((0,4r/3\pi)). If your computation yields a different value, revisit the integration bounds or the moment integral.

Extensions and related concepts

The same framework generalises without difficulty to three dimensions. For a solid (V) with density (\rho(x,y,z)),

[ \tilde{x}= \frac{\displaystyle\iiint_V x,\rho,dV}{\displaystyle\iiint_V \rho

,dV}, \qquad \tilde{y}= \frac{\displaystyle\iiint_V y,\rho,dV}{\displaystyle\iiint_V \rho,dV}, \qquad \tilde{z}= \frac{\displaystyle\iiint_V z,\rho,dV}{\displaystyle\iiint_V \rho,dV}. ]

The reasoning is identical: each coordinate is the average of the corresponding position weighted by the local density. In practice, the total mass (M) is computed first, and then the three first‑moment integrals (M_{yz}), (M_{xz}) and (M_{xy}) are evaluated. The same symmetry arguments apply: if a solid is symmetric about a coordinate plane, the corresponding centroidal coordinate vanishes. Here's one way to look at it: a solid right circular cone with its vertex at the origin and its axis along the (z)-axis has (\tilde{x}=\tilde{y}=0); only (\tilde{z}) needs to be calculated.

When the density is constant, the centroid is purely a geometric property of the region, independent of the material. This is why the geometric centroid (or centroid of area in two dimensions, centroid of volume in three) is so useful in engineering: it locates the balance point of a shape regardless of its composition. The same formulas hold, with (\rho) cancelled in the numerator and denominator, leaving ratios of purely geometric integrals.

A further extension is to the first moment of inertia about an axis, defined as (Q = \int r,dm) where (r) is the perpendicular distance to the axis. The centre of mass is precisely the point at which the first moment vanishes: the lamina balances horizontally if suspended from a point directly above (\tilde{x}), and balances vertically if suspended from a point directly to the left of (\tilde{y}). This connection between statics and integration is one of the most elegant applications of double and triple integrals.


Numerical considerations

In realistic problems—say, a metal plate whose density varies with temperature or a composite material with a non‑uniform fibre distribution—the integrals rarely have closed‑form antiderivatives. Three reliable strategies are commonly employed:

  1. Monte Carlo integration. Generate random points uniformly in a bounding rectangle (or box in 3D), accept those that fall inside the region, and estimate each integral by the sample mean of the integrand times the bounding area. This method is reliable for complicated boundaries and high dimensions.
  2. Gaussian quadrature on subdivided elements. For smoother integrands, divide the region into triangles (2D) or tetrahedra (3D) and apply quadrature rules designed for simplices. This gives spectral accuracy for sufficiently regular density functions.
  3. Adaptive Simpson’s or higher‑order rules in 2D (e.g. adaptlob* or adaptintegrate* in scientific libraries). These refine the mesh only where the integrand changes rapidly, making them efficient when (\rho) is highly localised.

Whichever method is chosen, the final step is always the same: compute (M_y), (M_x) and (M), then divide. There are no additional conceptual ingredients beyond the three‑step algorithm outlined above.


Common pitfalls and how to avoid them

  • Swapping (x) and (y) in the moment formulas. Remember that (M_y) contains (x) (the distance to the (y)-axis), not (y). A quick mnemonic: “moment about an axis uses the coordinate perpendicular* to that axis.”
  • Forgetting absolute values when density is given as a function that can be negative. Physical density is non‑negative, but mathematical exercises sometimes use signed “density” to test understanding. In that case, the centre of mass can lie outside the region, which is perfectly valid.
  • Mixing up the order of integration and the bounds. Always draw the region and, for a fixed outer variable, describe the inner variable’s range as a function of that outer variable. A well‑labelled sketch eliminates the majority of bound errors.
  • Neglecting to decompose complicated regions. A region bounded by two curves that cross is often easier as the union of two simpler sub‑regions. Compute moments for each piece and add them—the total moment is the sum of the moments, just as the total mass is the sum of the masses.

Worked mini‑example

To consolidate the workflow, consider the region (R) in the first quadrant bounded by (y=x^2) and (y=2x), with density (\rho(x,y)=1+x).
** The curves intersect at ((0,0)) and ((2,4)). **Step 1 (sketch).For (0\le x\le 2), the line (y=2x) lies above the parabola (y=x^2).
**Step 2 (set up).

[ M=\int_0^2!!\int_{x^2}^{2x}(1+x),dy,dx =\int_0^2(1+x)(2x-x^2),dx, ]

[ M_y=\int_0^2!!\int_{x^2}^{2x}x(1+x),dy,dx =\int_0^2 x(1+x)(2x-x^2),dx, ]

[ M_x=\int_0^2!!\int_{x^2}^{2x}y(1+x),dy,dx =\int_0^2(1+x)\tfrac{1}{2}\bigl[(2x)^2-(x^2)^2\bigr],dx =\int_0^2(1+x)\tfrac{1}{2}(4x

^2-x^4),dx. ]

Step 3 (evaluate). Each integral is a straightforward polynomial:

[ \begin{aligned} M &= \int_0^2 (2x+2x^2-x^2-x^3),dx = \int_0^2 (2x+x^2-x^3),dx \ &= \Bigl[x^2+\tfrac{1}{3}x^3-\tfrac{1}{4}x^4\Bigr]_0^2 = 4+\tfrac{8}{3}-4 = \tfrac{8}{3},\[4pt] M_y &= \int_0^2 (2x^2+x^3-x^4),dx = \Bigl[\tfrac{2}{3}x^3+\tfrac{1}{4}x^4-\tfrac{1}{5}x^5\Bigr]_0^2 = \tfrac{16}{3}+4-\tfrac{32}{5} = \tfrac{80+60-96}{15} = \tfrac{44}{15},\[4pt] M_x &= \int_0^2 \tfrac{1}{2}(1+x)(4x^2-x^4),dx = \tfrac{1}{2}\int_0^2 (4x^2+4x^3-x^4-x^5),dx \ &= \tfrac{1}{2}\Bigl[\tfrac{4}{3}x^3+x^4-\tfrac{1}{5}x^5-\tfrac{1}{6}x^6\Bigr]_0^2 = \tfrac{1}{2}\Bigl(\tfrac{32}{3}+16-\tfrac{32}{5}-\tfrac{64}{6}\Bigr) \ &= \tfrac{1}{2}\Bigl(\tfrac{160+240-96-160}{15}\Bigr)=\tfrac{144}{30}=\tfrac{24}{5}. \end{aligned} ]

Step 4 (centroid).

[ \bar{x}=\frac{M_y}{M}=\frac{44/15}{8/3}=\frac{44}{15}\cdot\frac{3}{8}=\frac{11}{10}=1.1,\qquad \bar{y}=\frac{M_x}{M}=\frac{24/5}{8/3}=\frac{24}{5}\cdot\frac{3}{8}=\frac{9}{5}=1.8. ]

The centroid lies at ((1.Even so, 1,,1. 8)), which indeed falls inside the region between the parabola and the line in the first quadrant—a quick sanity check that the algebra has not gone astray.


Closing remarks

Finding the centre of mass of a planar lamina with a variable density is, at its core, an exercise in systematic decomposition: split the problem into mass, first moment about the (y)-axis, and first moment about the (x)-axis, then combine the three scalar results into the two coordinates of the centroid. The calculus machinery—double integrals, iterated integration, and judicious choice of coordinate order—handles the heavy lifting, while careful attention to geometry and bounds ensures correctness.

The real power of the method lies in its generality. The same three‑step recipe applies whether the region is a disk, a triangle, an annulus, or an irregular shape bounded by arbitrary curves; whether the density is constant, linear, radial, or given by a complicated empirical formula; and whether the integration is performed analytically by hand, with the aid of a computer algebra system, or numerically with adaptive quadrature. Mastery of this workflow therefore equips one with a tool that scales from textbook problems to realistic engineering calculations—from locating the balance point of a composite material plate to estimating the gravitational pull of an irregularly shaped celestial body.

In the end, the centre of mass is more than a formula; it is the point where all the distributed matter “balances.” Understanding how to compute it rigorously opens the door to a wide range of applications in physics, engineering, and beyond.

New

Latest Posts

Related

Related Posts

Thank you for reading about Locate The Centroid Of Shaded Area. We hope this guide was helpful.

Share This Article

X Facebook WhatsApp
← Back to Home
L-

l-diplomas

Staff writer at l-diplomas.com. We publish practical guides and insights to help you stay informed and make better decisions.