Back to table of contents1.3 Unit Conversion

1.3 Unit Conversion

Learning Objectives

By the end of this section, you will be able to:

It is often necessary to convert from one unit to another. For example, if you are reading a European cookbook, some quantities may be expressed in units of liters and you need to convert them to cups. Or perhaps you are reading walking directions from one location to another and you are interested in how many miles you will be walking. In this case, you may need to convert units of feet or meters to miles.

Let’s consider a simple example of how to convert units. Suppose we want to convert 80 m to kilometers. The first thing to do is to list the units you have and the units to which you want to convert. In this case, we have units in meters and we want to convert to kilometers. Next, we need to determine a conversion factor relating meters to kilometers. A conversion factor is a ratio that expresses how many of one unit are equal to another unit. For example, there are 12 in. in 1 ft, 1609 m in 1 mi, 100 cm in 1 m, 60 s in 1 min, and so on. Refer to Appendix B for a more complete list of conversion factors. In this case, we know that there are 1000 m in 1 km. Now we can set up our unit conversion. We write the units we have and then multiply them by the conversion factor so the units cancel out, as shown:

80m ×1km 1000m =0.080km.

Note that the unwanted meter unit cancels, leaving only the desired kilometer unit. You can use this method to convert between any type of unit. Now, the conversion of 80 m to kilometers is simply the use of a metric prefix, as we saw in the preceding section, so we can get the same answer just as easily by noting that

80m=8.0×101m=8.0×10−2km=0.080km,

since “kilo-” means 103 (see Table 1.2) and 1=−2+3. However, using conversion factors is handy when converting between units that are not metric or when converting between derived units, as the following examples illustrate.

Example 1.2

Converting Nonmetric Units to Metric

The distance from the university to home is 10 mi and it usually takes 20 min to drive this distance. Calculate the average speed in meters per second (m/s). (Note: Average speed is distance traveled divided by time of travel.)

Strategy

First we calculate the average speed using the given units, then we can get the average speed into the desired units by picking the correct conversion factors and multiplying by them. The correct conversion factors are those that cancel the unwanted units and leave the desired units in their place. In this case, we want to convert miles to meters, so we need to know the fact that there are 1609 m in 1 mi. We also want to convert minutes to seconds, so we use the conversion of 60 s in 1 min.

Solution

  1. Calculate average speed. Average speed is distance traveled divided by time of travel. (Take this definition as a given for now. Average speed and other motion concepts are covered in later chapters.) In equation form,
    Average speed=Distance Time .
  2. Substitute the given values for distance and time:
    Average speed=10mi 20min =0.50mi min .
  3. Convert miles per minute to meters per second by multiplying by the conversion factor that cancels miles and leave meters, and also by the conversion factor that cancels minutes and leave seconds:
    0.50mile min ×1609m 1mile ×1min 60s =(0.50)(1609) 60 m/s=13m/s.

Significance

Check the answer in the following ways:
  1. Be sure the units in the unit conversion cancel correctly. If the unit conversion factor was written upside down, the units do not cancel correctly in the equation. We see the “miles” in the numerator in 0.50 mi/min cancels the “mile” in the denominator in the first conversion factor. Also, the “min” in the denominator in 0.50 mi/min cancels the “min” in the numerator in the second conversion factor.
  2. Check that the units of the final answer are the desired units. The problem asked us to solve for average speed in units of meters per second and, after the cancellations, the only units left are a meter (m) in the numerator and a second (s) in the denominator, so we have indeed obtained these units.

Check Your Understanding 1.2

Light travels about 9 Pm in a year. Given that a year is about 3×107s, what is the speed of light in meters per second?

Example 1.3

Converting between Metric Units

The density of iron is 7.86g/cm3 under standard conditions. Convert this to kg/m3.

Strategy

We need to convert grams to kilograms and cubic centimeters to cubic meters. The conversion factors we need are 1kg=103g and 1cm=10−2m. However, we are dealing with cubic centimeters (cm3=cm×cm×cm), so we have to use the second conversion factor three times (that is, we need to cube it). The idea is still to multiply by the conversion factors in such a way that they cancel the units we want to get rid of and introduce the units we want to keep.

Solution

7.86g cm 3 ×kg 103g ×(cm 10−2m ) 3=7.86 (103)(10−6) kg/m3=7.86×103kg/m3

Significance

Remember, it’s always important to check the answer.
  1. Be sure to cancel the units in the unit conversion correctly. We see that the gram (“g”) in the numerator in 7.86 g/cm3 cancels the “g” in the denominator in the first conversion factor. Also, the three factors of “cm” in the denominator in 7.86 g/cm3 cancel with the three factors of “cm” in the numerator that we get by cubing the second conversion factor.
  2. Check that the units of the final answer are the desired units. The problem asked for us to convert to kilograms per cubic meter. After the cancellations just described, we see the only units we have left are “kg” in the numerator and three factors of “m” in the denominator (that is, one factor of “m” cubed, or “m3”). Therefore, the units on the final answer are correct.

Code Example 1.2

Determing the weight of olive oil.

Suppose you have 3 gallons of olive oil. You are tasked to determine how much it weighs, but you don't have a scale. What you do know is that the density of olive oil is about 0.92 g/ml. Find the weight of the olive oil in pounds.

Strategy

The equation that relates mass to volume and density is m=ρV, where ρ is the density. We can calculate the mass of the oil since we know the density and the volume. Since the formula requires that each variable have compatible units, we will first convert all of our values to SI units. Once we have SI units, we can find the mass, and convert that back to pound-mass.

Solution

We know there are 3.79 liters in a gallon, and 1000 liters in a cubic meter. We will use python to calculate what the volume is in cubic meters.

# convert volume to m^3 V = 3 # gallons V = V * 3.79 # convert to liters V = V / 1000 # convert to m^3 print(V)

The same can be done for the density. We need to convert grams per milliliter to kiligrams per cubic meter. We can replace grams with kiligrams by adding a factor of 103. Similarly, we can replace milliliters with liters by adding a factor of 103. But, since milliliters is on the bottom, and grams is on the top, these two added factors will cancel. We find that 1 kg/l = 1 g/ml. Now we just need to convert liters to cubic meters. We know that there are 1000 liters in a cubic meter. This means we can replace liters with cubic meters by adding a factor of 103, but since liters is on the bottom we need to divide by 103, making it 103. Remember that this can easily be done with scientific notation.

rho = 0.92e3 # now in kg/m^3 print(rho)

Now that we have volume and density in SI units, we can calculate the mass.

m = V*rho print(m) print(m*2.2) # mass in pounds we find that we have about 10.46 kg of oil. Since there are 2.2 pounds of mass for one kilogram, we can replace kg with lb by multiplying by 2.2. This gives us a weight of 23 lb.

Significance

A good practice is to put everything in SI units (or a consistent unit system) before plugging them into the equations. In python we can easily do this by converting our values from the start; multiplying variables by the appropriate values before using the variables to make calculations.

Check Your Understanding 1.3

We know from Figure 1.4 that the diameter of Earth is on the order of 107 m, so the order of magnitude of its surface area is 1014 m2. What is that in square kilometers (that is, km2)? (Try doing this both by converting 107 m to km and then squaring it and then by converting 1014 m2 directly to square kilometers. You should get the same answer both ways.)

Unit conversions may not seem very interesting, but not doing them can be costly. One famous example of this situation was seen with the Mars Climate Orbiter. This probe was launched by NASA on December 11, 1998. On September 23, 1999, while attempting to guide the probe into its planned orbit around Mars, NASA lost contact with it. Subsequent investigations showed a piece of software called SM_FORCES (or “small forces”) was recording thruster performance data in the English units of pound-force-seconds (lbf-s). However, other pieces of software that used these values for course corrections expected them to be recorded in the SI units of newton-seconds (N-s), as dictated in the software interface protocols. This error caused the probe to follow a very different trajectory from what NASA thought it was following, which most likely caused the probe either to burn up in the Martian atmosphere or to shoot out into space. This failure to pay attention to unit conversions cost hundreds of millions of dollars, not to mention all the time invested by the scientists and engineers who worked on the project.

Check Your Understanding 1.4

Given that 1 lbf (pound-force) is 4.45 N, were the numbers being output by SM_FORCES too big or too small?

Back to table of contents