|
Calculus Without TearsSynopsis of Volume 3 - Nature's Favorite FunctionsDifferentiating PolynomialsPolynomials are engineers' favorite functions because they are easy to calculate. First we complete our study of the calculus of polynomials. If p(t) = f(t)·g(t), then why doesn't p'(t) = f '(t)·g'(t)? Here's why: think of f(t)·g(t) as the area of a rectangle with width f(t) and height g(t). Then, as t increases from t to to
Thus, p'(t) = f(t)·g'(t) + g(t)·f '(t). This is the product rule for derivatives and can be used to easily determine the derivative for any power of t, and hence for any polynomial. Polynomial Approximation and Taylor's TheoremThe linear approximation to a function matches the value of the function and the 1st derivative of the function. A linear function is a degree 1 polynomial. The nth degree polynomial approximation to a function matches the value of the function and the 1st n derivatives of the function. The nth degree polynomial approximation to f(t) at t = 0 is given by
(Check that p(0) = f(0), p'(0) = f'(0), p''(0) = f''(0), etc.) Taylor's theorem gives a bound on the error of the approximation as t moves away from 0. Polynomial approximation and Taylor's theorem are important because they provide a method for calculating the values of transcendental functions (functions other than polynomials) like the exponential and trigonometric functions, as we show below. Quick proof of Taylor's theorem: the nth degree polynomial approximation p(t) to a function f(t) at t = 0 is constructed so that p(0) = f(0), p(i)(0) = f(i)(0) for i <= n. Let e(t) = f(t) - p(t), then e(i)(0) = 0 for i <= n, and e(n+1)(t) = f(n+1)(t). Suppose f(n+1)(t) < M for some interval 0 <= t <= h. Now, e(n)(0) = 0 and the rate of increase of e(n)(t) is < M, so e(n)(t) < M*t. And thus, e(n-1)(0) = 0 and the rate of increase of e(n-1)(t) is < M*t, so e(n-1)(t) < M*t2/2. And thus, e(n-2)(0) = 0 and the rate of increase of e(n-2)(t) is < M*t2/2, so e(n-2)(t) < (1/2)*M*t3/3. And so on, so that e(t) < (1/(n+1)!)*M*tn+1. Believe it or not the above is way simpler than anything you'll find in a textbook. Here's the country version of this proof: if your old hound's maximum acceleration is M, and he runs for t seconds, than at most he has reached a velocity of M*t, n'est pas? So, he has travelled at most (M*t)*t. Had it been the hound's maximum 'jerk' (rate of change of acceleration) that was M, then, by the same argument, the hound's max acceleration at time t would be M*t, the hounds max velocity M*t*t, and the hound's max distance M*t*t*t. This is the basic principle underlying Taylor's theorem. (It only takes a little refinement to get the denominator (n+1)! ). The Fundamental Theorem of CalculusThe Fundamental Theorem of Calculus (FTOC) is, succinctly,
If p'(t) is a step function, then the area corresponding to an integral of p'(t) is a sum of
The integral of p' equals the sum of the areas for each subinterval, and that equals the sum of the distances for each subinterval, and that equals p(t2) - p(t1). Thus, the FTOC is true when p'(t) is a step function Let p'(t) be any function with anti-derivative p(t), then a step function can be constructed so
Roots and RadicalsIt's easy to define the meaning of fractional exponents. For example, y1/2 is the square root of y, that is the number that when multiplied by itself equals y. Similarly, the cube root of y, y1/3, is the number that when multiplied by itself two times equals y. However, calculating the value of a fractional exponent is usually not so easy. 51/2=?. Here is a surprise: while we can't directly calculate most of the values for a function like p(t) = t1/2, we can differentiate the function. Note that if q(t) = t2, then q(p(t)) = t. Differentiate both sides, using the chain rule to differentiate the left side. Now with a hop, skip and jump we show that [t1/2]' = 1/2t-1/2. Similarly for t1/n for any positive integer n. Another use of the chain rule gives [tm/n]' = m/n tm/n -1 for any positive integers m and n. If we can't directly calculate values of fractional exponent functions (or exponentials or trig functions), how does our calculator do it? Read on. Exponentials and LogarithmsIf the exponent is the variable, we have an exponential function, e.g. p(t) = 10t is the base 10 exponential function. It's easy to show from the definition of a derivative that
The natural log function is the inverse of exp, that is ln(exp(t)) = t. We use the chain rule to show that the derivative of ln(t) is 1/t. We know the derivatives of all orders for 1/t, so we can construct polynomial approximations to ln. The values of exp and ln are calculated by using polynomial approximation. Ln and exp can then be used to calculate the values of fractional exponents. exp(t) is one of nature's favorite function because it 'looks like' its derivative, and that makes it a prime candidate to be a solution to the homogeneous differential equations that play a part in the analyses of most physical systems. We analyze first order systems occuring in mechanics and electrical circuit theory. Trigonometric FunctionsThe basics of plane trigonometry are covered in five lessons, with the goal of defining the sine and cosine functions, and deriving the trigonometric identity needed to differentiate them (sin(A + B) = sin(A)*cos(B) + cos(A)*sin(B)). Using this identity the derivative of sin(t) at t = a is the limit of (sin(A+h) - sin(A))/h =
Values of trig functions are calculated using polynomial approximation. We have sin'(t) = cos(t) and sin''(t) = -sin(t), so that the second derivative of sin(t) is a multiple of sin(t), and sin(t) is also a candidate solution for a homogeneous differential equation. We defer examples to the next chapter. Second Order SystemsLinear second order systems are used to model a wide variety of physical phenomena, and are basic building blocks of engineering analysis. The differential equation for a linear second order system can be written p''(t) + u*p'(t) + K*p(t) = f(t), with all the terms containing a derivative of p on the left side and the 'forcing function' f on the right. If the forcing function is replaced by 0 we have the homogeneous form of the equation; this equation characterizes the unforced motion of the system. It is 'homogeneous' because all the terms contain p or a derivative of p. Exponential and trig functions provide the solution, hence, they are nature's favorites, and they figure in almost every engineering analysis. Analyzing the spring mass assembly shown in the figure, we start with F=MA and let M=1 for simplicity.
In the case where the spring is strong, i.e., K2 - (u/2)2 > 0, the solution to the DE,
In the case where the spring isn't so strong, i.e., K2 - (u/2)2 < 0, the system doesn't oscillate and has a solution that is a sum of exponentials of the
To analyze the circuit in the diagram we use Kirchoff's voltage law, which states that the sum of
|