To find the centroid of any rod, or in this case the center of mass (x = 3), you can use the equation as follows...I'll try to type this out as best I can.
Center of mass = Integral(density*location)/Integral(density) where density is some weight per unit length
or basically
centerofmass = integral(rho*s*ds)/integral(rho*ds)
3 = integral[(x+3)(x)dx]/integral[(x+3)dx]
3 = [x^3/3 + 3x^2/2]/[x^2/2 + 3x] where x is going to be your length since the integral starts at zero.
Solve for x.
Quote (Azrad @ Oct 10 2013 10:58am)
well the rod starts at x=0 so
the bounds of the "left integral" will be from 0 to 3
the bounds for the "right integral" will be 3 to a, where a is the length of the rod
That also works.
Just as a sanity check, since you have an increasing density with the length of the rod, your length should be somewhere in the neighborhood of 4 or 5, but not 6.
This post was edited by Dontrunaway on Oct 10 2013 10:01am