How to Use Calculus Like a Physicist

Similar documents
Joint Probability Distributions and Random Samples (Devore Chapter Five)

25. Chain Rule. Now, f is a function of t only. Expand by multiplication:

MATH The Chain Rule Fall 2016 A vector function of a vector variable is a function F: R n R m. In practice, if x 1, x n is the input,

21-256: Partial differentiation

Math 212-Lecture 8. The chain rule with one independent variable

3 Algebraic Methods. we can differentiate both sides implicitly to obtain a differential equation involving x and y:

Chain Rule. MATH 311, Calculus III. J. Robert Buchanan. Spring Department of Mathematics

1 Implicit Differentiation

2.2 Graphs of Functions

PARTIAL DERIVATIVES AND THE MULTIVARIABLE CHAIN RULE

Lecture 7 - Separable Equations

Lecture 6: Backpropagation

Math 131, Lecture 20: The Chain Rule, continued

Slope Fields: Graphing Solutions Without the Solutions

Week 4: Differentiation for Functions of Several Variables

Lecture 10. (2) Functions of two variables. Partial derivatives. Dan Nichols February 27, 2018

Harmonic Oscillator with raising and lowering operators. We write the Schrödinger equation for the harmonic oscillator in one dimension as follows:

Definition 3 (Continuity). A function f is continuous at c if lim x c f(x) = f(c).

VANDERBILT UNIVERSITY. MATH 2300 MULTIVARIABLE CALCULUS Practice Test 1 Solutions

Parametric Equations, Function Composition and the Chain Rule: A Worksheet

Sometimes the domains X and Z will be the same, so this might be written:

MATH 353 LECTURE NOTES: WEEK 1 FIRST ORDER ODES

Calculus II. Calculus II tends to be a very difficult course for many students. There are many reasons for this.

Review for the First Midterm Exam

2. Theory of the Derivative

Lecture 7: Differential Equations

Partial Differential Equations Summary

MATH20411 PDEs and Vector Calculus B

DIFFERENTIAL EQUATIONS COURSE NOTES, LECTURE 2: TYPES OF DIFFERENTIAL EQUATIONS, SOLVING SEPARABLE ODES.

SYDE 112, LECTURE 7: Integration by Parts

Vectors and Coordinate Systems

INTEGRATION: THE FUNDAMENTAL THEOREM OF CALCULUS MR. VELAZQUEZ AP CALCULUS

4.9 Anti-derivatives. Definition. An anti-derivative of a function f is a function F such that F (x) = f (x) for all x.

MATH 250 TOPIC 13 INTEGRATION. 13B. Constant, Sum, and Difference Rules

Section 15.5: The Chain Rule. 1 Objectives. 2 Assignments. 3 Maple Commands. 1. Apply all forms of the chain rule. (3,5,9,11,13,19,21)

Expanding brackets and factorising

Main topics for the First Midterm

Lecture 13 - Wednesday April 29th

REVIEW OF DIFFERENTIAL CALCULUS

MATH 312 Section 2.4: Exact Differential Equations

5.9 Representations of Functions as a Power Series

Introduction and some preliminaries

On Cauchy s theorem and Green s theorem

Solutions to Math 41 Second Exam November 5, 2013

5.5. The Substitution Rule

f(x 0 + h) f(x 0 ) h slope of secant line = m sec

Coordinate systems and vectors in three spatial dimensions

Separable First-Order Equations

1 Partial differentiation and the chain rule

Coordinate Curves for Trajectories

Mathematics 102 Fall 1999 The formal rules of calculus The three basic rules The sum rule. The product rule. The composition rule.

Lagrange Multipliers

Algebra. Here are a couple of warnings to my students who may be here to get a copy of what happened on a day that you missed.

2 Analogies between addition and multiplication

CHAPTER 6 VECTOR CALCULUS. We ve spent a lot of time so far just looking at all the different ways you can graph

Math 111: Calculus. David Perkinson

Partial Fractions. June 27, In this section, we will learn to integrate another class of functions: the rational functions.

Predator - Prey Model Trajectories and the nonlinear conservation law

Sequences and infinite series

8. TRANSFORMING TOOL #1 (the Addition Property of Equality)

Math 600 Day 1: Review of advanced Calculus

Math Review ECON 300: Spring 2014 Benjamin A. Jones MATH/CALCULUS REVIEW

Vector calculus background

3.1 Derivative Formulas for Powers and Polynomials

Conceptual Explanations: Simultaneous Equations Distance, rate, and time

The Derivative of a Function

Terminology and notation

Linear Algebra for Beginners Open Doors to Great Careers. Richard Han

MATH 319, WEEK 2: Initial Value Problems, Existence/Uniqueness, First-Order Linear DEs

Math 101: Course Summary

FIRST-ORDER ORDINARY DIFFERENTIAL EQUATIONS I: Introduction and Analytic Methods David Levermore Department of Mathematics University of Maryland

Page 1. These are all fairly simple functions in that wherever the variable appears it is by itself. What about functions like the following, ( ) ( )

First-Order Ordinary Differntial Equations II: Autonomous Case. David Levermore Department of Mathematics University of Maryland.

Updated: January 16, 2016 Calculus II 7.4. Math 230. Calculus II. Brian Veitch Fall 2015 Northern Illinois University

Ideas from Vector Calculus Kurt Bryan

Contents. 2 Partial Derivatives. 2.1 Limits and Continuity. Calculus III (part 2): Partial Derivatives (by Evan Dummit, 2017, v. 2.

Math Refresher Course

CHAPTER 1. Review of Algebra

30. TRANSFORMING TOOL #1 (the Addition Property of Equality)

Finding local extrema and intervals of increase/decrease

Functions. Computers take inputs and produce outputs, just like functions in math! Mathematical functions can be expressed in two ways:

Math Lecture 4 Limit Laws

3 Applications of partial differentiation

MATH 280 Multivariate Calculus Fall Integrating a vector field over a surface

LB 220 Homework 4 Solutions

Unit #10 : Graphs of Antiderivatives; Substitution Integrals

1 Lesson 13: Methods of Integration

The Liapunov Method for Determining Stability (DRAFT)

The Relation between the Integral and the Derivative Graphs. Unit #10 : Graphs of Antiderivatives, Substitution Integrals

Math Practice Final - solutions

Math 21a Partial Derivatives Fall, 2016

Lecture 19: Solving linear ODEs + separable techniques for nonlinear ODE s

Introduction to Algebra: The First Week

CSC321 Lecture 6: Backpropagation

Predicting the future with Newton s Second Law

Algebra Year 10. Language

MSM120 1M1 First year mathematics for civil engineers Revision notes 4

Chapter 13 - Inverse Functions

Chapter 5: Integrals

Topic 7 Notes Jeremy Orloff

Transcription:

How to Use Calculus Like a Physicist Physics A300 Fall 2004 The purpose of these notes is to make contact between the abstract descriptions you may have seen in your calculus classes and the applications of mathematical methods to problems in Physics. 1 Solving Ordinary First-Order Differential Equations By Integration Often in Physics, one has an expression for the first time derivative of a quantity, along with its value at some initial time, and needs to find its value at all times. So for example, you may know ẋ(t) = at x(0) = x 0 (1.1a) (1.1b) One standard way to solve this problem is to take the indefinite integral of ẋ(t) to find the value of x(t) up to an additive constant, then use the initial condition to set that constant. So for example in the problem stated in (1.1), we would find x(t) = ẋ(t) dt = 1 2 at2 + C (1.2) and then set the constant C via which tells us x 0 = x(0) = C (1.3) x(t) = x 0 + 1 2 at2 (1.4) On the other hand, we could also solve the problem in one step with a definite integral, as follows. The Fundamental Theorems of Calculus tell us that for any t 1 and t 2, t2 t 1 ẋ(t) dt = x(t 2 ) x(t 1 ) (1.5) Copyright 2003-2004, John T. Whelan, and all that 1

or x(t 2 ) = x(t 1 ) + ẋ(t) dt (1.6) t 1 If we set t 1 to 0 (the time at which the initial condition is known), everything on the righthand side is given in the statement of the problem, e.g., (1.1), so we can integrate to find x(t 2 ) for any t 2. We d like to rename t 2 to t so that we can state the answer as x(t), but we should be a little careful, because the integration variable is alrea called t, and it s a no-no to have the same variable appear in the same expression as the integration variable of a definite integral and also outside the integral (or in its limits). So we rename the integration variable from t to t, which lets us rename t 2 to t, and obtain the general expression in the example problem, this becomes x(t) = x 0 + x(t) = x(0) + t 0 t2 t at dt = x 0 + 1 2 at 2 t 0 ẋ(t ) dt (1.7) 0 = x 0 + 1 2 at2 (1.8) as before. Both methods are valid, but the indefinite integral method saves you from having to define a lot of temporary integration constants. 2 Derivatives 2.1 Leibniz Notation Many math books define the derivative of a function f(x) with the notation f (x) = lim h 0 f(x + h) f(x) h (2.1) This is perfectly unambiguous, but conceals somewhat the physical nature of a derivative as a ratio of small changes. Thus it s sometimes useful to work with alternative notation, invented by Leibniz, which writes df = f f(x + x) f(x) (x) = lim x 0 x f = lim x 0 x where f = f(x + x) f(x) is the change in f(x) associated with a change in x. 2.2 Working With Differentials (2.2) The notation df represents the derivative, not the ratio of two numbers df and. However, it is often useful to manipulate it as though it were. In particular, we refer to as an infinitesimal change in x, and df = f(x+) f(x) is the corresponding infinitesimal change in f(x). This is really just a notational convenience, but it s something that makes it a lot easier to do implicit differentiation, and, in multi-variable calculus, to obtain relationships involving partial derivatives. 2

2.2.1 Example: Differentiating ln x by Implicit Differentiation To give an example of how using differentials simplifies things, consider the function which is implicitly defined by If we know that y = ln x (2.3) x = e y (2.4) d ey = e y (2.5) we can find d ln x by implicit differentiation. First, we take the differential of both sides of (2.4), and obtain = d(e y ) = e y = x (2.6) If we allow ourselves manipulate the differentials algebraically as though they were numbers, we can solve for = 1 (2.7) x which is indeed the derivative of ln x. There is some non-trivial mathematics behind showing that you can treat differentials in this way, but the important thing for us as Physicists is that it not only seems like a reasonable thing to do, it works. 2.2.2 Using Differentials in Multi-Variable Calculus If we have some physical quantity w which can be written as a function 1 f(x, y, z) of three variables x, y, and z, the three partial derivatives of f are defined as x = f f(x + x, y, z) f(x, y, z) x(x, y, z) = lim x 0 x y = f f(x, y + y, z) f(x, y, z) y(x, y, z) = lim y 0 y z = f f(x, y, z + z) f(x, y, z) z(x, y, z) = lim z 0 z ( ) )y,z, sometimes we ll write ( x y x,z held constant in the partial derivatives. (2.8a) (2.8b) (2.8c), and ( ), to emphasize which variables are being z x,y 1 In this section of the notes, I m being extra-explicit about using different letters for the same physical quantities depending on which set of variables they re being considered functions of. This is the Mathematician s way of doing things. In fact, as Physicists, we wouldn t normally bother with this, and would write w = w(x, y, z) or w(t) = w(x(t), y(t), z(t)) 3

Now, we can summarize the three partial derivatives in a single expression involving differentials, i.e., infinitesimal changes in the various variables. The basic idea is that if we make infinitesimal changes,, and in the variables x, y, and z, that will lead to an infinitesimal change dw = f(x +, y +, z + ) f(x, y, z) (2.9) Off the bat, we can t relate this to any of the partial derivatives, since all three variables are changing at once. But if we add and subtract the right terms, we can focus on one variable changing at a time: dw = f z(x+,y+,z) {}}{ f(x +, y +, z + ) f(x +, y +, z) + f(x +, y +, z) f(x +, y, z) }{{} f y(x+,y,z) + f(x +, y, z) f(x, y, z) }{{} f x(x,y,z) (2.10) Now the last term is just the partial derivative times the differential. The middle term x is nearly the partial derivative times, except it s evaluated at (x +, y, z) instead of y (x, y, z). In fact, f y (x +, y, z) f y (x, y, z) = f yx (x, y, z) (2.11) (where f yx is a second derivative), but if we use this fact, we see that f y (x +, y, z) = f y (x, y, z) + f yx (x, y, z) (2.12) We can drop the correction term because it contains two differentials, and one of the principal rules of this differential formalism is that anything that s the product of two differentials can be ignored. (The idea is that we will eventually divide everything by a single differential and then let all infinitesimal quantities go to zero, so anything with two infinitesimal factors will vanish even after we divide out one of them.) A similar argument allows us not to care about the argument of f z = and thus write z dw = f x (x, y, z) + f y (x, y, z) + f z (x, y, z) = + + (2.13) x y z Note that this lets us calculate all the partial derivatives of w at once : Suppose w = x 2 + yz + z 2. Then straightforward application of the chain and product rules fives us dw = d(x 2 ) + d(yz) + d(z 2 ) = 2x + z + y + 2z = 2x + z + (y + 2z) (2.14) from which we can read off the partial derivatives x = 2x y = z z = y + 2z 4 (2.15a) (2.15b) (2.15c)

2.3 The Chain Rule The chain rule as expressed by a mathematician is typically written as follows: If f = g h is the function defined by the composition of g and h, i.e., f(x) = g(h(x)) (2.16) then the derivative of f is given in terms of the derivatives of g and h by f (x) = g (h(x)) h (x) (2.17) Written that way, it s not exactly easy to remember. But let s rewrite it in Leibniz notation. First, for notational simplicity, let s define and Now in Leibniz notation, y = h(x) z = f(x) = g(h(x)) = g(y) = f (x) = h (x) = g (y) (2.18a) (2.18b) (2.19a) (2.19b) (2.19c) and the chain rule (2.17) becomes = (2.20) Again, the calculus-through-algebra outlook tells us that this is really obvious, since one can just cancel out the s. Note that our notation as Physicists is also simpler in that we don t need to define separate functions f(x) and g(y); we re usually interested more in the quantity z than in the functional form of its relationship to x or y. 2.4 The Chain Rule in Multi-Variable Calculus Note that the chain rule is not always as simple as straightforward algebra when functions can depend on more than one variable. Consider the function w = F (t) = f(x, y, z) = f(g(t), h(t), k(t)). Written as the function F (t), w depends only on one variable, so we can define an ordinary derivative dw dt = F (t) (2.21) 5

while, if we see it as a function f(x, y, z) of three variables, we have to define partial derivatives with respect to all three individually: x = f f(x + x, y, z) x(x, y, z) = lim x 0 x y = f f(x, y + y, z) y(x, y, z) = lim y 0 y z = f f(x, y, z + z) z(x, y, z) = lim z 0 z (2.22a) (2.22b) (2.22c) Of course x = g(t), y = h(t), and z = k(t) are all functions of one variable, so they have ordinary derivatives dt = g (t) dt = h (t) dt = k (t) (2.23a) (2.23b) (2.23c) So how does the chain rule apply to this multi-variable problem? We have to consider what happens when we make an infinitesimal change dt in t; we know that the corresponding infinitesimal change in w will be, by definition, dw = F (t + dt) F (t) = F (t) dt = dw dt dt (2.24) On the other hand, the change in t will lead to changes in x, y and z according to (2.23): = g (t) dt = h (t) dt = k (t) dt (2.25a) (2.25b) (2.25c) Substituting this into (2.13) gives dw = f x (g(t), h(t), k(t)) g (t) dt + f y (g(t), h(t), k(t)) h (t) dt + f z (g(t), h(t), k(t)) k (t) dt (2.26) and comparing this to (2.24) gives the multi-variable chain rule. A Mathematician would write this as the almost incomprehensible F (t) = f x (g(t), h(t), k(t)) g (t) + f y (g(t), h(t), k(t)) h (t) + f z (g(t), h(t), k(t)) k (t) (2.27) In Leibniz notation, however, this becomes dw dt = x dt + y dt + z dt (2.28) It s almost as though we ve divided (2.13) by dt. That s not really what we ve done, but it s a good way to remember the form of the equation. 6