Loading…

Center of Mass Calculator

Math Calculus • Applications of Integrals

View all topics
7. Center Of Mass Calculator
Computes the centroid / center of mass of a lamina (region between curves) with density: \(\;\big(\bar x,\bar y\big)=\left(\frac{1}{M}\iint x\,\rho\,dA,\;\frac{1}{M}\iint y\,\rho\,dA\right)\;\) using robust numerical integration (Composite Simpson), with optional symmetry shortcuts and a balance-point plot.
Inputs
Use variable x. Constants: pi, e. Supported: + − * / ^, parentheses, sin cos tan ln log sqrt abs exp. Implicit multiplication allowed: 2x, (x+1)(x-1).
Region is \(\{(x,y): a\le x\le b,\; y_B(x)\le y\le y_T(x)\}\).
Supports pi, e.
Example: \(b=1\) or \(b=\pi\).
Choose uniform, \(\rho(x)\), or full \(\rho(x,y)\).
Any positive constant.
Must be even; higher \(N\) → better accuracy (slower).
Used only for \(\rho(x,y)\). Must be even.
Click a preset to load and evaluate.
Ready
Balance-point plot
Drag to pan • wheel/pinch to zoom • shaded region is between \(y_B\) and \(y_T\).
\(y_T(x)\) \(y_B(x)\) region centroid
Graph window center (x-axis).
Graph spans \([c-w,c+w]\).
x: 0, y: 0, zoom(px/unit): 60
Result & Steps
Enter \(y_T(x)\), \(y_B(x)\), choose the density, then click Calculate.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

What is the difference between a centroid and a center of mass?

The centroid is the geometric balance point of a region and corresponds to constant density (ρ = 1 or any uniform constant). The center of mass uses a density function ρ and shifts toward areas with higher density.

How do you compute mass and moments for a region between two curves?

For yB(x) ≤ y ≤ yT(x) on [a, b], common single-integral forms are M = ∫[a,b] ρ(x)(yT - yB) dx, My = ∫[a,b] x ρ(x)(yT - yB) dx, and Mx = ∫[a,b] ρ(x) 0.5(yT^2 - yB^2) dx. Then x̄ = My/M and ȳ = Mx/M.

Why must the Simpson segment counts N and Ny be even?

Composite Simpson’s rule works by combining parabolic fits over pairs of subintervals, so it requires an even number of segments. Using larger even values typically improves accuracy but increases computation time.

When can symmetry shortcuts set x̄ = 0 or ȳ = 0?

If the region and density are symmetric about the y-axis with symmetric bounds (for example, [-L, L]), then x̄ = 0. If they are symmetric about the x-axis, then ȳ = 0.