Foundations to Frontier
Tests
A. Mathematical Foundations › A13 Physics for Robotics and AI

Units, Dimensions and Scientific Notation

Every physical number has a unit, and units obey algebra. This topic covers the SI system and its seven base units, derived units such as the newton, joule and watt, unit conversion, scientific notation and significant figures. It then shows dimensional analysis as a power tool: catching wrong formulas instantly, and, through the Buckingham π theorem, finding the form of a law (pendulum period, aerodynamic drag) before doing any physics. In the research exercise you build a dimension-checked quantity type, derive the drag coefficient and Reynolds number as null-space vectors, and reproduce in a toy model the kind of unit error that destroyed the Mars Climate Orbiter.

Level 0: Foundation

★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.

Numbers need units

“The rover is 3 away” means nothing until you say 3 metres or 3 kilometres. A unit tells you what was measured, and the number says how many of that unit. Scientists across the world use the same set of units, the SI system: metres for length, kilograms for mass, seconds for time.

Physics also spans huge ranges of size, from protons to galaxies. Instead of writing 0.000 000 000 000 001 m, we write 1 × 10⁻¹⁵ m: scientific notation.

Scales and units: from protons to the universe, and formulas that can't be right
-15-10-50510152025
1 × 100 m · nearest landmark: quadrotor drone (≈ 1 m)
Each step of the slider multiplies the size by 10. A drone and the observable universe differ by 26 steps. Scientific notation (a × 10ⁿ) keeps such numbers readable, and float formats store them the same way (a8-1).
units of 2π √(L / g): s → a time: could be a period ✓
value with g = 9.81 m/s², m = 2 kg: 2.006 s
Dimensional analysis can't give the 2π, but it rules out most wrong formulas instantly: both sides of any physical equation must have the same units. Here L has units m, g has m·s⁻² and the bob's mass kg. The only way to build a time is √(L/g), and the mass can't appear at all.
Why engineers care

In 1999 NASA lost the Mars Climate Orbiter because one team’s software reported thruster impulses in pound-force seconds while the navigation team’s software expected newton seconds. The spacecraft flew too low into the Martian atmosphere (NASA Mishap Investigation Board, 1999). Unit discipline, consistent conventions and automatic dimension checks are basic safety practice in robotics and aerospace software.

📝 Quick check (Level 0)
0/3 answered
  1. 1. SI unit of length:
  2. 2. 1 × 10³ m equals…
  3. 3. The Mars Climate Orbiter was lost because of…

Level 1: Beginner

★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.

SI base and derived units

The seven base units are the metre (m), kilogram (kg), second (s), ampere (A), kelvin (K), mole (mol) and candela (cd). Since 2019 they are defined by fixing exact values of physical constants, such as the speed of light and Planck’s constant. Derived units combine them:

Quantity Unit In base units
force newton, N kg·m·s⁻²
energy, work joule, J = N·m kg·m²·s⁻²
power watt, W = J/s kg·m²·s⁻³
pressure pascal, Pa = N/m² kg·m⁻¹·s⁻²
charge coulomb, C = A·s A·s
voltage volt, V = W/A kg·m²·s⁻³·A⁻¹

Prefixes scale by powers of ten: nano (10⁻⁹), micro (10⁻⁶), milli (10⁻³), kilo (10³), mega (10⁶), giga (10⁹).

Scientific notation and significant figures

Write x=a×10nx = a\times10^n with 1≤∣a∣<101\le|a| < 10. Report as many significant figures as the measurement supports. For example, G ≈ 6.67 × 10⁻¹¹ m³·kg⁻¹·s⁻².

Converting units

Multiply by factors equal to 1: 36 kmh×1000 m1 km×1 h3600 s=10 ms36\ \tfrac{\text{km}}{\text h}\times\tfrac{1000\text{ m}}{1\text{ km}}\times\tfrac{1\text{ h}}{3600\text{ s}} = 10\ \tfrac{\text m}{\text s}.

📝 Quick check (Level 1)
0/3 answered
  1. 1. A newton in base units:
  2. 2. 36 km/h in m/s:
  3. 3. Significant figures in 0.004050:

Level 2: Intermediate

★★★☆☆ Intermediate⏱ 35 minUndergraduate students and practising engineers.

Dimensional analysis

Every quantity has a dimension: a vector of exponents over the base quantities (M, L, T, I, Θ, …). Equations must be dimensionally homogeneous. You can only add or compare like dimensions, and arguments of exp, log and sin must be dimensionless. This catches most algebra mistakes in derivations and code.

The Buckingham π theorem

If a law relates n variables involving k independent dimensions, it can be rewritten using n − k independent dimensionless groups (Buckingham, 1914). Finding the groups is linear algebra. The exponent vectors e with De = 0 span the null space of the dimension matrix D (a2-1-6).

  • Pendulum (T, L, g, m): one group, T2g/LT^2g/L. So T=CL/gT = C\sqrt{L/g}, and the mass can’t matter.
  • Drag (F, ρ, v, L, μ): two groups, the drag coefficient CD∝F/(ρv2L2)C_D\propto F/(\rho v^2L^2) and the Reynolds number Re=ρvL/μRe = \rho vL/\mu. So F=ρv2L2 f(Re)F = \rho v^2L^2\,f(Re). Wind tunnels rely on this: a scale model at the same Re behaves like the real vehicle.
🐍 Exercise 1: a dimension-checked quantity type
Implement a quantity class that tracks dimension vectors through ×, ÷ and powers and refuses to add mismatched dimensions. Use it to check N, J, W, Ohm's law and the pendulum period. Also implement scientific notation and rounding to significant figures.
📝 Quick check (Level 2)
0/3 answered
  1. 1. How many dimensionless groups for drag F(ρ, v, L, μ)?
  2. 2. Dimensional analysis shows a pendulum's period does not depend on…
  3. 3. The argument of exp( ) must be…

Level 3: Advanced

★★★★☆ Advanced⏱ 35 minGraduate level, with full derivations and proofs.

Why the mass drops out (a proof)

Suppose T=C LagbmcT = C\,L^ag^bm^c. Matching exponents of M, L and T gives c = 0, a + b = 0 and −2b = 1. So b=−12b = -\tfrac12, a=12a = \tfrac12 and c = 0: T=CL/gT = C\sqrt{L/g}. ∎ Physics (small-angle analysis) gives C = 2π.

Buckingham π as linear algebra

Let D be the k × n matrix whose columns are the dimension vectors. A product ∏xiei\prod x_i^{e_i} is dimensionless iff De=0De = 0. By rank–nullity there are n−rank⁡Dn - \operatorname{rank}D independent groups, and any physical law can be written as a relation among them. ∎ The groups are not unique; any basis of the null space works.

Similarity and scale models

Two flows with the same Re (and Mach number, and Froude number when gravity matters) are dynamically similar. A 1:10 model tested in the same fluid needs 10× the speed to match Re. This is impractical, so wind tunnels use pressurized or cryogenic gas.

Exercise 3.1: the Reynolds number of a drone arm

Air (ρ = 1.2 kg/m³, μ = 1.8 × 10⁻⁵ Pa·s) flows past a 0.5 m body at 10 m/s: Re=ρvL/μ≈3.3×105Re = \rho vL/\mu\approx3.3\times10^5. Inertia dominates viscosity.

📝 Quick check (Level 3)
0/3 answered
  1. 1. The number of π-groups equals…
  2. 2. Matching Re for a 1:10 scale model in the same fluid needs…
  3. 3. Dimensional analysis alone cannot determine…

Level 4: Expert

★★★★★ Expert⏱ 30 minResearchers: original papers and open problems.

Unit safety and similarity in practice

The exercise derives the drag law’s two groups (C_D and Re) as null-space vectors, and shows that the pendulum’s only group is T²g/L, with mass absent.

It then replays a Mars Climate Orbiter–style slip in a toy model. Small thruster firings are reported in lbf·s but read as N·s, so the navigation model sees 4.45× too little Δv. In the toy, 240 firings of 0.9 lbf·s on a 630 kg craft give a modeled 0.343 m/s against a true 1.525 m/s. Coasting 200 days in a straight line turns that 1.18 m/s discrepancy into about 20 000 km. The real error mechanism was subtler: the effect accumulated in the trajectory estimate during cruise. The orbiter’s actual closest approach was about 57 km above Mars, below the roughly 80 km it could survive (Mishap Investigation Board, 1999).

🐍 Exercise 2 (research): Buckingham π and a unit-slip post-mortem
Find dimensionless groups as the null space of the dimension matrix. Recover the drag coefficient and Reynolds number, and show that the pendulum's mass drops out. Then quantify, in a toy model, the Δv and position errors caused by reading lbf·s as N·s.

Units and scaling in AI, robotics and aerospace

  • Software: unit-aware types (Boost.Units, the Python pint library, F#’s units of measure), interface control documents, and a convention of SI internally with conversion only at the edges.
  • Robotics: ROS’s REP 103 fixes SI units and frame conventions across packages.
  • ML: nondimensionalize inputs. Physics-informed models work best on dimensionless variables, and feature scaling is the statistical cousin of this.
  • Aerospace testing: wind tunnels, drop towers and scaled flight tests all rest on similarity laws.

References

  1. BIPM (2019). The International System of Units (SI), 9th ed.
  2. E. Buckingham (1914). “On physically similar systems; illustrations of the use of dimensional equations.” Physical Review, 4.
  3. G. I. Barenblatt (2003). Scaling. Cambridge.
  4. NASA Mars Climate Orbiter Mishap Investigation Board (1999). Phase I Report.
  5. Open Robotics. REP 103: Standard Units of Measure and Coordinate Conventions.