I have a volume $V$ bounded by the following equations:
$ x^2 + y^2 + z^2 = 1 $
$ z^2 = (x^2 +y^2) {\sqrt2} $
and I have to find out the mass of the volume given that:
$\rho(x,y,z) = z$
where $\rho$ is the density
I tried it but cannot do it. Can anyone help?
To find the mass you should integrate $\rho (x,y,z)$ around the volume described by your equation.
$$m=\int_V \rho (x,y,z)\ dV$$
I think that there is something wrong with your question.
Your first case is a sphere of radius $1$ centered at origin.
For each $\rho\ dV=(z)\ dV$ at any point on positive $z$-octants belonging to the sphere, there is a corresponding $\rho\ dV=(-z)\ dV$ on negative $z$-octants belonging to the sphere. Therefore they cancel out so that the net integral (i.e. mass) is zero.
This doesn't make sense. This is because in your question it has been said that $\rho (x,y,z)=z$ and thus at negative $z$-octants, the mass density is negative. So in your question, I think you should replace the equation $\rho (x,y,z)=z$ to $\rho (x,y,z) = \left|z\right|$.