<- makeFun(-23.44 * cos((360/365)*(n+10)) ~ n) dec_sun
15 Dimensions and units
Next time you’re at a family gathering with your 10-year-old cousin, give her the following math quiz.
- What’s 3 + 2?
- What’s 7 - 3?
- What’s 3 miles + 2 miles?
- What’s 3 miles + 2 kilometers?
- What’s 3 miles + 2 kilograms?
I don’t know your cousin, but I suspect she will have an easy time answering (a) and (b) correctly. As for (c), she might give the correct answer, “5 miles,” or just say “5.” If so, you will follow up with “5 what?” at which point she’ll respond, “miles.”
- is a bit harder. You might need to prompt her with the information that 1 kilometer is about 0.6 miles. Then, if she’s pretty smart, she’ll answer “4.2 miles.”
10-year-olds are pretty creative, so I’m not sure how she’ll answer (e). But if you ask your Ph.D. aunt, she’ll answer along the lines of “silly question,” or “there is no such thing.” That is true.
Consider these everyday quantities:
- 60 miles per hour: a typical speed for driving on a highway
- 2106 square feet: the in-bounds area for a court used for singles tennis.
- 355 cubic centimeters: the volume in a canned beverage (in the US).
- 2.5 gallons per minute: the US mandated maximum flow rate for water through a showerhead.
- 35 miles per gallon: a typical fuel economy for a small car in the US.
- 0.044 lbs per square foot: the body-mass index of Dwayne (“The Rock”) Johnson. In the more conventional units of kg per square meter, his BMI is 30.8.
How would you measure such things?
- We ordinarily use a speedometer to measure instantaneous car speed and police use a radar gun. But fundamentally, you measure the distance traveled and the time used and divide distance by time.
- Most people would rely on the internet for this information, but you would check your local court by measuring the width (27 feet is the standard) and the length of the court (78 feet). Multiply the two.
- Pour the beverage into a measuring cup and read off the volume. More geometrically, you could measure the circumference of the can (\(2 \pi r\)), square it (\(4 \pi^2 r^2\)), and divide by \(4 \pi\) to get the cross section area of the can. Then multiply that area by the height of the can.
- We don’t usually monitor water used in a shower. But if you need to, get a 5-gallon pail (the standard volume of the plastic pails used for so many purposes in construction), put it under the showerhead, and measure the time it takes to fill the pail. Divide the volume by the time.
- Record the mileage on the car’s odometer when you fill-up the car with gas. Drive. When you next get gas, measure the new odometer reading and the volume of gas you purchased. Divide the change in odometer reading by the gas volume. (In Europe, you would divide the gas volume by the change in odometer reading.)
- Weigh Dwayne. The scale is usually graduated in both pounds and kilograms: take your choice. Measure his height; the ruler-in-the-doorway method works well. Then divide his weight by the square of his height.
It makes sense to multiply and divide different types of quantities: feet, gallons, kilometers, kilograms, pounds, hours, etc. But you won’t ever see a quantity constructed by adding or subtracting miles and hours or gallons and square feet. You can square feet and cube centimeters, but can you take the square root of a gallon? Does it make sense to raise 2 to the power of 3 yards?
This chapter is about the mathematical structure of combining quantities; which kinds of mathematical operations are legitimate and which are not.
15.1 Mathematics of quantity
The first step in understanding the mathematics of quantity is to make an absolute distinction between two concepts that, in everyday life, are used interchangeably: dimension and unit.
Length is a dimension. Meters is a unit of length. We also measure length in microns, mm, cm, inches, feet, yards, kilometers, and miles, to say nothing of furlongs, fathoms, astronomical units (AU), and parsecs.
Time is a dimension. Seconds is a unit of time. We also measure time in micro-seconds, milliseconds, minutes, hours, days, weeks, months, years, decades, centuries, and millenia.
Mass is a dimension. Kilograms is a unit of mass.
Length, time, and mass are called fundamental dimensions. This is not because length is more important than area or volume. It is because you can construct area and volume by multiplying lengths together. This is evident when you consider units of area like square inches or cubic centimeters, but obscured in the names of units like acre, liter, gallon.
We use the notation L, T, and M to refer to the fundamental dimensions. Also useful are \(\Theta\) (“theta”) for temperature, S for money, and P for a count of organisms such as the population of the US or the size of a sheep herd.
The square brackets \([\) and \(]\) signify that we are looking at the dimension of the quantity inside the brackets. For instance,
- [1 yard] = L
- [1000 kg] = M
- [3 years] = T
- [10 \(\mu\) (microns)] = L.
Another example: the population of the US state Colorado is about 5.8 million people. The dimension of this quantity is P.
Application area 15.1 —Electrical current is another fundamental dimension.
We will not have many examples involving electro-magnetism. But for those with an interest, note that electrical current is a fundamental dimension often denoted I. Combine I with other fundamental dimensions to produce the dimension of other quantities, for instance:
- Voltage: M L2 T-3 I-1
- Magnetic field; M T^{-2} I
15.2 Compound dimensions
There are other dimensions: volume, force, pressure, energy, torque, velocity, acceleration, and such. These are called compound dimensions because we represent them as combinations of the fundamental dimensions, L, T, and M. The notation for these combinations involves multiplication and division. For instance:
- Volume is L \(\times\) L \(\times\) L \(=\) L\(^3\), as in “cubic centimeters”
- Velocity is L/T, as in “miles per hour”
- Force is M L/T\(^2\), which is obscure unless you remember Newton’s Second Law that \(\text{F} = \text{m}\,\text{a}\): “force equals mass times acceleration.” In the notation of dimension, mass is M, acceleration is L/T\(^2\). Multiply the two together and you get the dimension “force.”
Multiplication and division are used to construct a compound dimension from the fundamental dimensions L, T, and M.
Addition and subtraction are never used to form a compound dimension.
Much of the work in understanding dimensions involves overcoming the looseness of everyday speech. Remember the weight scale graduated in pounds and kilograms. The unit kilograms is a way of measuring M, but the unit of pounds is a way of measuring force: M L/T\(^2\).
Weight is not the same as mass. This makes no sense to most people and does not matter in everyday life. It is only when you venture off the surface of the Earth that the difference shows up. The Mars rover Perseverance weighs 1000 kg on Earth. It was weightless for most of its journey to Mars. After landing on Mars, Perseverence weighed just 380 kg. But the rover’s mass didn’t change at all.
Another source of confusion carried over from everyday life is that sometimes we measure the same quantity using different dimensions. You can measure a volume by weighing water; a gallon of water weighs 8 pounds; a liter of water has a mass of 1 kg. Serious bakers measure flour by weight; a casual baker uses a measuring cup. We can measure water volume with length because water has a (more-or-less) constant mass density. But 8 pounds of gasoline is considerably more than a gallon. It turns out that the density of flour varies substantially depending on how it is packed, humidity, etc. This is why it matters whether you weigh flour for baking or measure it by volume. You can measure time by the swing of a pendulum. To measure the same time successfully with different pendula they need to have the same length, not the same mass.
A unit is a conventional amount of a quantity of a given dimension. All lengths are the same dimensionally, but they can be measured with different conventions: inches, yards, meters, … Units for the same dimension can all be converted unambiguously one into the other. A meter is the same quantity of length as 39.3701 inches, a mile is the same length as 1609.34 meters. Liters and gallons are both units of volume (L\(^3\)): a gallon is the same as 3.78541 liters.
You will hear it said that a kilogram is 2.2 pounds. That is not strictly true. A kilogram has dimension M and a pound has dimension ML/T\(^2\). Quantities with different dimensions cannot be “equal” or even legitimately compared to one another. Unless you bring something else into the game that physically changes the situation, for instance, gravity (dimension of acceleration due to gravity (dimension \(\text{L}/\text{T}^2\)). The weight of a kilogram on the surface of the Earth is 2.2 pounds because gravitational acceleration is (almost) the same everywhere on the surface of the Earth.
It is also potentially confusing that sometimes different dimensions are used to get at the same idea. For instance, the same car that gets 35 miles / gallon in the US (dimension \(\text{L}/\text{L}^3 = 1/\text{L}^2\)) will use 6.7 liters per 100 kilometers (\(\text{L}^3 / L = \text{L}^2\)) in Europe. Same car. Same fuel. Different conventions using different dimensions.
Keeping track of the various compound dimensions can be tricky. For many people, it is easier to keep track of the physical relationships involved and use that knowledge to put together the dimensions appropriately. Often, the relationship can be described using specific calculus operations, so knowing dimensions and units helps you use calculus successfully.
Easy compound dimensions that you likely already know:
- [Area] \(= \text{L}^2\). Some corresponding units to remind you: “square feet”, “square miles”, “square centimeters.”
- [Volume] \(= \text{L}^3\). Units to remind you: “cubic centimeters”, “cubic feet”, “cubic yards.” (What landscapers informally call a “yard,” for instance “10 yards of topsoil” should properly be called “10 cubic-yards of topsoil.”)
- [Velocity] \(= \text{L}/\text{T}\). Units: “miles per hour,” “inches per second.”
- [Momentum] \(= \text{M}\text{L}/\text{T}\). Units: “kilogram meters per second.”
Anticipating that you will return to this section for reference, we’ve also added some dimensions that can be understood through the relevant calculus operations.
- [Acceleration] \(= \text{L}/\text{T}^2\). Units: “meters per second squared,” In calculus, acceleration is the derivative of velocity with respect to time, or, equivalently, the 2nd derivative of position with respect to time.
- [Force] \(= \text{M}\, \text{L}/\text{T}^2\) In calculus: force is the derivative of momentum with respect to time.
- [Energy] or [Work] \(= \text{M}\, \text{L}^2/\text{T}^2\) In calculus, energy is the integral of force with respect to length.
- [Power] \(= \text{M}\, \text{L}^2/\text{T}^3\) In the language of calculus, power is the derivative of energy with respect to time.
15.3 Arithmetic with dimensions
Recall the rules for arithmetic dimensioned quantities. We restate them briefly with the square-bracket notation for “the dimension of.” For instance, “the dimension of \(b\)” is written \([b]\). We also write \([1]\) to stand for the dimension of a pure number, that is, a quantity without dimension.
Operation | Result | Only if satisfies | Metaphor |
---|---|---|---|
Multiplication | \([a \times b] = [a] \times [b]\) | anything goes | promiscuous |
Division | \([a \div b] = [a] \div [b]\) | anything goes | promiscuous |
Addition | \([a + b] = [a]\) | \([a] = [b]\) | monogomous |
Subtraction | \([a - b] = [a]\) | \([a] = [b]\) | monogomous |
Trigonometric | \([\sin(a)] = [1]\) | \([a] = [1]\) | celibate |
Exponential | \([e^a] = [1]\) | \([a] = [1]\) (of course, \([e] = [1]\)) | celibate |
Power-law | \([b ^ a] = \underbrace{[b]\times[b]\times ...\times [b]}_{a\ \ \text{times}}\) | \([a] = [1]\) with \(a\) an integer | exponent celibate |
Square root | \([\sqrt{b}] = [c]\) | \([b] = [c\times c]\) | idiosyncratic |
Cube root | \([\sqrt[3]{b}] = [c]\) | \([b] = [c \times c \times c]\) | idiosyncratic |
Bump | \([\text{bump}(a)] = [1]\) | \([a] = [1]\) | celibate |
Sigmoid | \([\text{sigmoid}(a)] = [1]\) | \([a] = [1]\) | celibate |
15.4 Dimensionless numbers
In many STEM fields, worker use special, usually named quantities that are dimensionless. Being dimensionless is different from having no units. For instance, an angle is a dimensionless quantity (arc length divided by radius length) but is stated in units. For instance, 90 degrees is the same as \(\pi\) radians. (More obscurely, some fields use “grads.” A grad is one-hundredth of a right angle, that is, a little less than a degree.) Many people have heard of the “mach” and that 1 mach corresponds to the speed of sound. But speed has dimension—L/T, as in meters per second or miles per hour. And mach is a dimensionless quantity. How is mach constructed to be dimensionless and yet still be about speed?
Mach is actually a ratio of speeds, the speed of an object such as an airplane divided by the speed of sound. In the division, the dimensions of the two quantities cancel out to produce a quantity of dimension L/T / (L/T) = [1]. Dimensionless. Mach is useful in aerodynamics because the speed of an object is an important determiner of the pattern of flow through or around the object. It is simpler to describe the pattern of flow using rhw object’s speed relative to the speed of sound in the medium. This is why words like “supersonic” and “subsonic” (and even “transonic” and “hypersonic”) are often heard when talking about aircraft, missles, and meteoriods.
Only rarely do science workers invent a useful new dimensionless quantity, but this does sometimes happen and we all have a shared historical legacy of such inventions to build on. My goal here is to relate the motivation for dimensionless quantities.
Recall from Chapter 8 the framework we use for turning pattern-book functions into models of the real world. All the pattern-book functions take a pure number (dimensionless) as input and produce a pure number (dimensionless) as output. We used input scaling to translate between a dimensionful quantity (e.g. time, speed, density, and so on) and the dimensionless input needed for a pattern-book function. Similarly, we used output scaling to translate between the dimensionless output of a pattern-book function and the dimensional quantity that we want to model with the function. This is an important technique that you will use often.
But consider an alternative framework for doing things. You will not need this except in this demonstration, but it does serve to motivate why dimensionless quantities are so important. In this alternative approach, we stipulate that modeling functions will always take dimensionless inputs and produce a dimensionless output. Such a modeling function, let’s call our example \(g()\) will do any input scaling internally, perhaps by parameters hidden to the user. To create a dimensionful output, we’ll continue to use output scaling. So, a model constructed with a generic function of this sort will look like \(A g(x, y, z, ...) + B\). The output scaling parameters will always have the same dimensions and units as the quantity we want to model as the output. But we insist—within this alternative framework—that all inputs, \(x, y, z, ...\) be dimensionless.
For the sake of demonstration, let’s build a model in this framework that describes the motion of a pendulum. The output variable will be the period of the pendulum, that is, the time to complete a full cycle or, more realistically for a pendulum, to go through a complete back-and-forth motion (the amplitude of which is often decreasing in the familiar way as time goes by). Because of this choice, the period is one of the dimensionful quantities that are involved in the model.
- period \(p\), dimension T, units might be seconds.
But there are other dimensionful quantities that characterize a pendulum. Let’s list the main ones:
- length of the rod, \(r\), with dimension L, units might be meters
- mass of the bob at the end of the rod, \(m\), units might be kg
- the force of gravity on the bob, \(m g\), with units M L T-2. The quantity \(g\) is called the “acceleration due to gravity.” On Earth, the value of this is roughly 9.8 m/s2 (meters per second-squared). The force, as Newton defined, is mass times acceleration.
- the angle the pendulum swings through, \(\theta\).
As for (v), Galileo famously established, by measuring with his pulse the period of several swinging candelabras in Pisa Cathedral, some of which had a wide swing and others with a narrow swing, that \(\theta\) doesn’t enter into things. And, naturally, there are undoubtedly other quantities that influence the period of the pendulum such as air resistence, the Earth’s spin, and so on. For simplicity, we will ignore these as we start to build our model. Then, once we have a model to work with, we can use the techniques in Chapter 16 to see if the discrepancies between our model results and observations in the real world are so substantial that we need to take them into account. If not, the simple model will do.
In the input-scaling framework from Chapter 8, we would be tempted to write down the name and arguments of the model function, choose an appropriate pattern-book or composed function and then think about input scaling. That is, the model function of period might be defined as \[period(r, m, m g) \equiv \text{some function of } r, m, \text{and } g.\] But right now we are using the pure-number input framework: \[A\ g(x, y, z) + B\] where \(x\), \(y\) and \(z\) are dimensionless quantities.
The challenge is to figure out how to construct the dimensionless inputs (\(x, y, z\)) out of the dimensionful quantities that we can measure from a real-world pendulum on Earth.
The main way to create something of a new dimension is to multiply (or divide) things with the old dimensions. The things we are working with are
quantities: | \(\text{period}\) | \(r\) | \(m\) | \(m \ g\) |
---|---|---|---|---|
dimension: | T | L | M | M L T-2 |
Let’s get to work. To start, we’ll see what happens when we divide period by the rod length. The dimension of this will be T / L. That’s not dimensionless! Neither would be period times rod length or period times mass or period times gravitational force.
Perhaps there is no combination of the four quantities that will come out as dimensionless. Surprisingly, if this were the case it would be a hint that we have left an important quantity out of our model, or that we have included a quantity that doesn’t contribute. (This is an amazing power of dimensional analysis, to be able to check whether the set of input quantities we have selected is self-consistent!)
Systematic search reveals that there is a dimensionless quantity to be made by combining period, rod length, mass of the bob, and gravitational force \(m g\). This is
period2 \(\times\) gravitational force / (rod length \(\times\) mass)
Written out using fundamental dimensions, this is
(T2 \(\times\) M L / T2 ) / (L \(\times\) M) , or, rearranging, T2/T^2 \(\times\) M / M $L / L. That is, [1]: dimensionless.
This tells us that there can be only one dimensionless input to \(g()\). This dimensionless input must be
\[\frac{\text{period}^2 m\ g}{m\ r}\ \text{where } \left[\frac{\text{period}^2 m\ g}{m\ r}\right] = [1].\]
Since we create new dimensions by multiplying and dividing old ones, it’s the case that
\(\frac{\left[\text{period}\right]^2 [m]\ [g]}{[m]\ [r]} = [1].\)$
Re-arranging in the usual algebraic way, we have
\[\left[\text{period}\right]^2 = \frac{[r]}{[g]}\ \ \ \text{or }\ \ \left[period\right] = \sqrt{\frac{[r]}{[g]}}.\] Now that we know that only the single quantity \(\sqrt{[r] / [g]}\) is involved in making the period, it’s time to abandon the methodological scaffolding we set up for this model. We’ll say simply, “period must be a function of \(\sqrt{\frac{\strut r}{g}}\),” a formula you can find in many physics books. Remarkably, according to our dimensional analysis, the mass of the pendulum bob doesn’t make a difference to the period of the pendulum.
What is the function that takes \(\sqrt{[r] / [g]}\) as input and produces period as the output. We don’t know yet. There’s more work to do, along the lines of Chapter 7. Being on Earth, we can’t readily change the value of gravitational acceleration \(g\), but we can change the rod length easily. Make some measurements of the period for different rod lengths, plot the period versus \(\sqrt{r/g}\), and we’ll know what the function looks like. SPOILER ALERT: It turns out to be well approximated as a straight line, at least when our measurements are made with pendula swinging through a small angle.
There are dozens of named dimensionless quantities, usually called “numbers.” For instance, the Archimedes number, the Biot number, the Bond number. People who work with water, waves, and air—for instance, geophysicists, meteorologists, and people who design ships and airplanes—frequenly run into the Rossby number, the Reynolds number, and the Froude number.
15.5 Conversion: Flavors of 1
Numbers are dimensionless but not necessarily unitless. Failure to accept this distinction is one of the prime reasons people have trouble figuring out how to convert from one unit to another.
The number one is a favorite of elementary school students because its multiplication and division tables are completely simple. Anything times one, or anything divided by one, is simply that thing. Addition and subtraction are pretty simple, too, a matter of counting up or down.
When it comes to quantities, there is not just one one but many. And often they look nothing like the numeral 1. Some examples of 1 as a quantity:
\(\frac{180}{\pi} \frac{\text{degrees}}{\text{radians}}\)
\(0.621371 \frac{\text{mile}}{\text{kilometer}}\)
\(3.78541 \frac{\text{liter}}{\text{gallon}}\)
\(\frac{9}{5} \frac{^\circ F}{^\circ C}\)
\(\frac{1}{12} \frac{\text{dozen}}{\text{item}}\)
I like to call these and others different flavors of one.
In every one of the above examples, the dimension of the numerator matches the dimension of the denominator. The same is true when comparing feet and meters ([feet / meter] is L/L = [1]), or comparing cups and pints ([cups / pint] is \(\text{L}^3/\text{L}^3 = [1]\)) or comparing miles per hour and feet per second ([miles/hour / ft per sec] = L/T / L/T = [1]). Each of these quantities has units but it has no dimension.
It is helpful to think about conversion between units as a matter of multiplying by the appropriate flavor of 1. Such conversion will not change the dimension of the quantity but will render it in new units.
Example: Convert 100 feet-per-second into miles-per-hour. First, write the quantity to be converted as a fraction and alongside it, write the desired units after the conversion. In this case that will be \[100 \frac{\text{feet}}{\text{second}} \ \ \ \text{into} \ \ \ \frac{\text{miles}}{\text{hour}}\]
First, we will change feet into miles. This can be accomplished by multiplying by the flavor of one that has units miles-per-foot. Second, we will change seconds into hours. Again, a flavor of 1 is involved.
What number will give a flavor of one? One mile is 5280 feet, so \[\frac{1}{5280} \frac{\text{miles}}{\text{foot}}\] is a flavor of one.
Next, we need a flavor of one that will turn \(\frac{1}{\text{second}}\) into \(\frac{\text{1}}{\text{hour}}\). We can make use of a minute being 60 seconds, and an hour being 60 minutes. \[\underbrace{\frac{60\ \text{s}}{\text{minute}}}_\text{flavor of 1}\ \underbrace{\frac{60\ \text{minutes}}{\text{hour}}}_\text{flavor of 1} = \underbrace{3600\frac{\text{s}}{ \text{hour}}}_\text{flavor of 1}\]
Multiplying our carefully selected flavors of one by the initial quantity, we get \[ \underbrace{\frac{1}{5280} \frac{\text{mile}}{\text{foot}}}_\text{flavor of 1} \times \underbrace{3600 \frac{\text{s}}{\text{hour}}}_\text{flavor of 1} \times \underbrace{100 \frac{\text{feet}}{\text{s}}}_\text{original quantity} = 100 \frac{3600}{5280} \frac{\text{miles}}{\text{hour}} = 68.18 \frac{\text{miles}}{\text{hour}}\]
15.6 Dimensions and linear combinations
Low-order polynomials are a useful way of constructing model functions. For instance, suppose we want a model of the yield of corn in a field per inch of rain over the growing season, will call it corn(rain). The output will have units of bushels (of corn). The input will have units of inches (of rain). A second-order polynomial will be appropriate for reasons to be discussed in Chapter 24.
\[\text{corn(rain)} \equiv a_0 + a_1\, \text{rain} + \frac{1}{2} a_2\, \text{rain}^2\] Of course, the addition in the linear combination will only make sense if all three terms \(a_0\), \(a_1\,\text{rain}\), and \(\frac{1}{2}\, a_2\, \text{rain}^2/2\) have the same dimension. But \([\text{rain}] \neq [\text{rain}^2]\). In order for things to work out, the coefficients must themselves have dimension. We know the output of the function will have dimension \([\text{volume}] = \text{L}^3\). Thus, \([a_0] = \text{L}^3\).
\([a_1]\) must be different, because it has to combine with the \([\text{rain}] = \text{L}\) and produce \(\text{L}^3\). Thus, \([a_1] = \text{L}^2\).
Finally, \([a_2] = \text{L}\). Multiplying that by \([\text{rain}]^2\) will give the required \(\text{L}^3\)
Article accessed on May 30, 2021↩︎