Calculus I · Textbook draft · 16 minute reading

Functions, Measurements, and Change

Domains, units, average rates, and the algebra that an instantaneous rate will require.

Before you begin

  • Algebraic manipulation, graphs of elementary functions, and the coordinate plane.

Learning objectives

  • Determine domains before manipulating a formula.
  • Calculate and interpret a difference quotient with units.
  • Distinguish average speed, average velocity, and an instantaneous rate.

A position sensor records where a cart is at successive times. It can tell us how far the cart moved between two readings. A speedometer appears to answer a more demanding question: how fast the cart is moving at one instant. Dividing distance by elapsed time seems to require two instants. Calculus will make that tension precise rather than disguise it with a sufficiently small number.

For a deliberately simple model, let the cart’s position be s(t)=t2s(t)=t^2 metres, where tt is measured in seconds and t≥0t\geq0. The coefficient of t2t^2 therefore has units metres per second squared. The formula is a model, not a claim about every cart. Between t=2t=2 and t=5t=5, the displacement is 25−4=2125-4=21 metres and the elapsed time is 33 seconds. The average velocity is 77 metres per second. It does not follow that the cart moved at that velocity throughout the interval.

Functions include their domains

A real-valued function assigns exactly one real output to each allowed input. Its domain is part of its specification. The formulas x2x^2 on R\mathbb R and t2t^2 on [0,∞)[0,\infty) use the same algebra but represent different functions when domains matter.

Three restrictions recur throughout this book. A denominator cannot be zero. The argument of a real square root must be nonnegative. The argument of a real logarithm must be positive. For example,

f(x)=x+2x−1has domain[−2,1)∪(1,∞).f(x)=\frac{\sqrt{x+2}}{x-1} \quad\hbox{has domain}\quad [-2,1)\cup(1,\infty).

Writing x+2\sqrt{x+2} requires x≥−2x\geq-2; division requires x≠1x\ne1. Both restrictions apply. A graphing program that silently omits the forbidden point has not removed the restriction.

Composition also carries restrictions. If g(x)=log⁡xg(x)=\log x and f(u)=1/(u−2)f(u)=1/(u-2), then (f∘g)(x)=1/(log⁡x−2)(f\circ g)(x)=1/(\log x-2) requires x>0x>0 and x≠e2x\ne e^2. We must check the input to each operation, in the order in which it is performed.

The difference quotient

For distinct inputs aa and a+ha+h, the average rate of change is

f(a+h)−f(a)h,h≠0.\frac{f(a+h)-f(a)}h,\qquad h\ne0.

The numerator is the output change and the denominator the input change. On a graph, this is the slope of the line through (a,f(a))(a,f(a)) and (a+h,f(a+h))(a+h,f(a+h)), called a secant line. If the output is position and the input is time, its units are distance per time. If output is cost and input is production, the units are currency per item. A slope without its variable definitions can be mathematically correct and practically useless.

For s(t)=t2s(t)=t^2, expand before simplifying:

s(a+h)−s(a)h=a2+2ah+h2−a2h=2a+h(h≠0).\frac{s(a+h)-s(a)}h =\frac{a^2+2ah+h^2-a^2}h=2a+h\qquad(h\ne0).

At a=2a=2, intervals of length 11, 0.10.1, and 0.010.01 give average velocities 55, 4.14.1, and 4.014.01. Backward intervals use negative hh: h=−0.1h=-0.1 compares times 1.91.9 and 22, giving 3.93.9. Both directions suggest 44. The original quotient remains undefined at h=0h=0, however. The simplified expression describes its behavior where the quotient is defined; it does not authorize division by zero.

Direction matters

Average velocity is displacement divided by elapsed time. Average speed is total distance travelled divided by elapsed time. A person who walks three metres east and three metres west in four seconds has zero average velocity and average speed 6/4=1.56/4=1.5 metres per second. The endpoint positions alone determine displacement; they do not determine total distance.

For a graph that is a straight line f(x)=mx+bf(x)=mx+b, every secant slope is mm. For a curved graph the interval matters. Calculus asks whether there is a well-defined local rate as the interval contracts. It does not begin by assuming that every curve has one.

Algebraic preparation

The identity (u+v)2=u2+2uv+v2(u+v)^2=u^2+2uv+v^2 explains the cancellation above. Factoring and conjugates provide two more tools. Since x2−a2=(x−a)(x+a)x^2-a^2=(x-a)(x+a), a quotient can simplify away from x=ax=a. Since (x−a)(x+a)=x−a(\sqrt{x}-\sqrt a)(\sqrt{x}+\sqrt a)=x-a, multiplying by a conjugate can expose a hidden factor. In either case, preserve the original domain while manipulating the expression.

A useful check is to calculate the quotient at one ordinary permitted input before and after simplifying. Agreement at one input is not proof of an identity, but disagreement immediately exposes an error.

Exercises

  1. Determine the real domain of 9−x2/(x−2)\sqrt{9-x^2}/(x-2).
  2. For p(t)=3t2−2t+1p(t)=3t^2-2t+1 metres, calculate average velocity from t=1t=1 to t=3t=3 seconds.
  3. Simplify [p(a+h)−p(a)]/h[p(a+h)-p(a)]/h and state its restriction.
  4. A tank contains V(t)=100−4tV(t)=100-4t litres for 0≤t≤250\leq t\leq25 minutes. Interpret its average rate over any nonzero interval in this domain.
  5. Explain why cancelling x−1x-1 in (x2−1)/(x−1)(x^2-1)/(x-1) does not define the original function at 11.
  6. A car returns to its starting position after an hour. What can be concluded about its average velocity and average speed?
Worked solutions
  1. The square root requires −3≤x≤3-3\leq x\leq3 and the denominator excludes 22, giving [−3,2)∪(2,3][-3,2)\cup(2,3].
  2. p(1)=2p(1)=2 and p(3)=22p(3)=22, so the average is (22−2)/(3−1)=10(22-2)/(3-1)=10 metres per second.
  3. Expansion gives 6a+3h−26a+3h-2, valid for h≠0h\ne0 and permitted times. The terms 3a2−2a+13a^2-2a+1 cancel, leaving h(6a+3h−2)h(6a+3h-2).
  4. The rate is −4-4 litres per minute. The negative sign indicates loss of volume. The model stops when the tank empties; extrapolating to negative volume is outside its domain.
  5. The two expressions agree for x≠1x\ne1. The expression x+1x+1 has a value at 11 that the original quotient lacks. Extending a function is a separate definition.
  6. Average velocity is zero. Average speed is nonnegative and positive if any nonzero distance was travelled. Its value requires the total distance.