- #1
drugcpp
- 2
- 0
Homework Statement
I need to calculate center of mass of this isosceles triangle using integration:
the density is constant.
Homework Equations
Rcm = integral(xdm) / integral(dm)
The Attempt at a Solution
I know how to begin:
dm = density * dx * dy;
x = double-integral(x*dx*dy) / integral(dy*dx);
y = double-integral(y*dx*dy) / integral(dy*dx);
I have problem with defining the boundaries of integration.
let's say that c is the base and b is the height of this triangle.
I think that -c/2 to c/2 are the boundaries for x, but I have no idea what the boundaries for y are. I know how to solve similar problem with right triangle, a boundary for y there is defined by function b-(b/a)x. Any help?