Why Triangles with Varying Density Need Care
A triangular lamina is a thin, flat object occupying a triangular region in the plane. If its density is constant, its mass is distributed uniformly. If density varies from point to point, however, parts of the triangle contribute different amounts to the total mass and to its first moments. The centroid therefore need not be the geometric center of the triangle.
For an affine density, the density changes linearly with the coordinates. The computations use the same mass and first-moment integrals used for other laminae, but the triangle’s sloping sides must be translated into correct strip bounds. A reliable solution therefore connects three things: the region, the density, and the moments.
Mass, First Moments, and Centroid
The coordinate order in the centroid formula matters. The moment about the \(y\)-axis uses the distance \(x\), so it determines \(\bar{x}\). The moment about the \(x\)-axis uses the distance \(y\), so it determines \(\bar{y}\).
An affine density has the form \(\rho(x,y)=a+bx+cy\), where \(a,b,c\) are constants. For a physical lamina, density should be nonnegative throughout the region, and its total mass must be positive. On a triangle, checking the density at the three vertices is enough to establish nonnegativity throughout: every point of the triangle is a weighted average of its vertices with nonnegative weights summing to one, and an affine function takes the same weighted average of its vertex values. Thus, if the three vertex values are nonnegative, so is every value inside the triangle.
Turning a Triangle into Strip Bounds
For vertical strips, describe the region by \(x\) between its left and right limits, then give the lower and upper \(y\)-bounds as functions of \(x\). A vertical strip has thickness \(dx\), so its area element is \(dA=dy\,dx\). For horizontal strips, give the left and right \(x\)-bounds as functions of \(y\); then \(dA=dx\,dy\).
Once the bounds are set, integrate the density for mass. For the first moment about the \(x\)-axis, include the additional factor \(y\); for the first moment about the \(y\)-axis, include \(x\). The bounds may change if a triangle cannot be described by one set of strips in the chosen direction. For a single triangle with one vertex on an axis and the opposite side a straight line, one strip description is often especially direct.
These formulas follow by dividing the region into thin vertical strips. A small piece at \((x,y)\) with area \(dA\) has mass approximately \(\rho(x,y)dA\). Its contributions to the first moments are approximately \(y\rho(x,y)dA\) and \(x\rho(x,y)dA\), respectively. Adding those contributions over the region and taking the limit gives the area integrals above. The same reasoning with horizontal strips gives the corresponding integrals in the opposite order.
Worked Examples
Worked Example: Vertical Strips on a Right Triangle
A triangular lamina occupies the triangle with vertices \((0,0)\), \((4,0)\), and \((0,3)\), with coordinates measured in meters. Its density is \(\rho(x,y)=2+x\) kilograms per square meter. Find its mass and centroid.
The sloping side joins \((4,0)\) and \((0,3)\), so its equation is \(y=3-\frac{3}{4}x\). Vertical bounds are \(0\le x\le4\) and \(0\le y\le3-\frac{3}{4}x\). The density values at the vertices are \(2\), \(6\), and \(2\), so the density is positive throughout.
For the mass, first integrate in \(y\):
As a check on the integration, the derivative of the antiderivative is \(6+\frac{3x}{2}-\frac{3x^2}{4}\), the integrand above.
For the first moment about the \(y\)-axis, multiply by \(x\):
The derivative of the displayed antiderivative is the stated integrand. For the first moment about the \(x\)-axis, integrate \(y(2+x)\) over each strip:
Differentiating the antiderivative gives \(2-\frac{3x^2}{8}+\frac{x^3}{16}\), as required. Therefore,
The point satisfies \(0\le 1.6\le4\), \(0\le0.9\), and \(0.9\le3-\frac34(1.6)=1.8\), so it lies inside the triangle. The larger density at larger \(x\)-values is consistent with the centroid lying to the right of the triangle’s geometric centroid.
Worked Example: Horizontal Strips on a Triangle
A triangle has vertices \((0,0)\), \((4,0)\), and \((4,3)\). Let its density be \(\rho(x,y)=1+y\) kilograms per square meter. Find the mass and centroid using horizontal strips.
The sloping side is \(x=\frac43y\), so the bounds are \(0\le y\le3\) and \(\frac43y\le x\le4\). The density at the vertices is \(1\), \(1\), and \(4\), so it is positive throughout.
The strip width is \(4-\frac43y\). Thus the mass is
The derivative of the antiderivative is the integrand. The moment about the \(x\)-axis is
The derivative of this antiderivative is \(4y+\frac83y^2-\frac43y^3\). To calculate the other moment, integrate \(x\) across each strip:
The derivative of the antiderivative inside the brackets is \(1+y-\frac{y^2}{9}-\frac{y^3}{9}\). The centroid is therefore
It lies within the triangle: \(0\le\frac54\le3\), \(\frac{17}{6}\le4\), and \(\frac{17}{6}\ge\frac43\cdot\frac54=\frac53\). The density increases with \(y\), and the centroid’s \(y\)-coordinate exceeds the triangle’s uniform-density value of \(1\) meter.
Worked Example: An Affine Density Depending on Both Coordinates
Consider the triangle \(0\le x\le2\), \(0\le y\le x\), with density \(\rho(x,y)=4-x-y\) kilograms per square meter. Find its mass and centroid.
The vertices are \((0,0)\), \((2,0)\), and \((2,2)\). The density there is \(4\), \(2\), and \(0\), so it is nonnegative throughout. Using vertical strips,
The antiderivative differentiates to \(4x-\frac32x^2\). For the two first moments,
In each case, differentiating the displayed antiderivative gives the integrand immediately above it. Hence
The centroid satisfies \(0\le\frac76\le2\) and \(0\le\frac12\le\frac76\), so it is within the triangle. Since the density is greatest near the origin and decreases toward the other vertices, the centroid is shifted toward the origin relative to the uniform-density centroid \((\frac43,\frac23)\).
A Common Moment-Assignment Error
A common mistake is to use the moment about the \(x\)-axis to calculate \(\bar{x}\). For the first example, that would give the incorrect calculation \(\bar{x}=M_x/m=18/20=0.9\) meters. The correction is to match each moment with the coordinate it measures: \(M_x\) contains the factor \(y\), while \(M_y\) contains the factor \(x\). Thus the correct values are \(\bar{x}=M_y/m=32/20=1.6\) meters and \(\bar{y}=M_x/m=18/20=0.9\) meters.
Another useful check is geometric. A computed centroid of a positive-density triangle should be consistent with the triangle’s boundaries. Testing its coordinates in the triangle’s inequalities can reveal a bounds error, a missing coordinate factor in a moment, or an arithmetic mistake. Passing this test does not by itself prove the integrals are correct, but failing it signals that something needs to be revisited.
Check Your Understanding
Use the definitions and strip setups above to answer these questions.
- For vertical strips, what additional factor belongs in the integrand for \(M_y\), and what factor belongs in the integrand for \(M_x\)?
- A triangle has vertices \((0,0)\), \((3,0)\), and \((0,2)\). What are suitable vertical bounds?
- Why is checking the density at the three vertices sufficient to establish that an affine density is nonnegative throughout a triangle?
- If a lamina has mass \(10\), \(M_x=12\), and \(M_y=25\), what are its centroid coordinates?
- What inequality would you check to confirm that a point lies below the sloping side joining \((4,0)\) and \((0,3)\)?