# math代写 – Math 251: Computational Lab 5 Background

### Math 251: Computational Lab 5 Background

math代写 | lab -这是math相关的代写任务，这是值得参考的lab代写的题目 #### 1 Area/Volume and Mass

If we have a regionDof either 2 or 3 dimensional space, we can find the area (in two dimensions) or volume (in 3 dimensions) by integrating 1 over the region. For example, the area betweenx= 1 andx= 1 between the graphs ofy=x^2 andy= 2×5 can be calculated by

`````` 1
``````
`````` 1
``````
``````x 2
``````
``````2 x 5
``````
``````1 dy dx.
``````

If one is given a density for the object, that is, a mass per unit area (in two dimensions) or mass per unit volume (in three dimensions), one can find the total mass of the object by integrating the density over the region. That is, if the density of the unit cube 0x,y,z,1 is given by the function(x,y,z), the total mass of this cube can be computed by

`````` 1
``````
``````0
``````
##### 1
``````0
``````
##### 1
``````0
``````
``````(x,y,z)dx dy dz.
``````

If the region is given in a way where it makes sense to use a different coordinate system, all of this can be done in the same way, but you will need to convert the density into the appropriate coordinate system and add in the Jacobian factor. If we were to use the same densityover the unit sphere, we could do this by

`````` 1
``````
``````0
``````
`````` 2
``````
``````0
``````
``````
``````
``````0
``````
``````(rcos() sin(),rsin() sin(),rcos())r^2 sin()d d dr
``````

and you could do similar calculations in cylindrical coordinates. Whenever you are trying to carry out these calculations in a computer algebra system, you should be aware of the fact that none of them know who to handle spherical and cylindrical coordinates directly. In order to compute these integrals, youll need to manually convert them (on paper is the easiest way) and write the integrals in polar coordinates where you multiply the desired function by the Jacobian from the change of variables.

#### 2 Center of Mass

The other part of this lab introduces the idea of the center of mass of an object. From a physical point of view, this is the point at which one could hang the object and it would balance evenly. One can calculate the center of mass by finding the moments in each of the coordinate directions and dividing each of them by the total mass. To compute thex-moment, we take the integral that we use to find the total mass, multiply the function on the inside byx, and carry out the same integral. That is, for our unit cube from before, the total mass is given by

`````` 1
``````
``````0
``````
##### 1
``````0
``````
##### 1
``````0
``````
``````(x,y,z)dx dy dz
``````
##### 1

and we can find thex-moment by

`````` 1
``````
``````0
``````
##### 1
``````0
``````
##### 1
``````0
``````
``````x(x,y,z)dx dy dz.
``````

The same goes for each of the other coordinate directions by changing the thing in front of the density toy orz repectively. Remember: if you want to change this integral into different coordinates, do so after multiplying byx,y, orzand add the Jacobian factor in as usual. To then find the center of mass x-coordinate, we divide the x-moment by the total mass. That is

``````COMx=
``````
##### 1
``````0
``````
##### 1
``````0
``````
##### 1
``````^0 x(x,y,z)dx dy dz
1
0
``````
##### 1
``````0
``````
##### 1
``````0 (x,y,z)dx dy dz
``````
##### .

You can do the same for each of theyandzcoordinates to find the full center of mass of the object.