## Calculus Without Tears## Synopsis of Mathematical Modeling and Computational Calculus II## The Finite Difference Method## 1. Introduction
Since the time of Newton the basic paradigm of mathematical physics and engineering has been the following:
The problem has always been step 3, as most differential equations do not have analytic solutions. Thus, the student takes a year of calculus in high school, and then a series of courses in college consisting of differential calculus, integral calculus, multi-variable calculus, vector calculus, and culminating in a course in differential equations. So far no physical systems have been analyzed, and the student is never told that most problems can't be solved using analytic calculus. The student proceeds to a course in Fourier analysis and the Laplace transform, followed by a course in linear systems analysis, and finally, a few weeks before graduation, real systems, linear ones that is, can be analyzed analytically. If a student takes an upper division or graduate course in dynamics, or astrorphysics, or material science, or electronics, or Maxwell's equations, or fluid dynamics, non-linear systems will be encountered, and he/she will be introduced to computational calculus, which is how most physics and engineering problems are solved today. See, for example, the online course Dynamics of Physical Systems, https://www.youtube.com/playlist?list=PLD074EEC1EBEFAEA5 , where computational calculus is introduced when it's time to solve problems, in lecture 20.
But, here is the thing, computational calculus is trivially easy and can be taught in high school. It doesn't require years of study, Euler's method, used in MMCC I, and its extension to partial differential equations, the finite difference method used in MMCC II, can be fully explained in an hour ! Then, its just a matter of practice, which is what we do in the MMCC books.
The finite difference method (FDM), applied to ordinary differential equations, is Euler's method, the method used in MMCC I. Given a differential equation
Euler's method substitutes an algebraic expression, essentially the expression defining the derivative, for the derivative in the differential equation, the substitution is
The FDM applied to a partial differential equation uses the following substitutions for the partial spatial derivatives in the differential equation
The salient properties of the FDM are that it is easy to learn, intuitively clear, works the same for every problem, and it is very powerful and can be used to solve a wide variety of problems.
We follow the basic paradigm for each project in the book, starting with the physical laws, and giving a derivation of the differential equation model in baby steps, striving for intuitive clarity and transparency. At that point the FDM substitutions are made in the model, and a MATLAB/OCTAVE/FREEMAT program is written to implement the computations. So, finally, exerything in the model is made explicit, in terms of additions, subtractions, multiplications, and divisions. Writing a program enables the student to see exactly how each component of the model affects other components and how it contributes to the total solution. In addition, by varying model and system parameters, the process can be studied for a variety of model characteristics, initial conditions and disturbance functions. The program gives the student a sense of complete mastery of the mathematical analysis of the physical process. MATLAB has excellent built-in graphing features, and the graphs below, with one exception, did not require any programming at all beyond computing the data to be graphed.
## 2. Heat Transfer
The physical law governing heat transfer is Fourier's Heat Transfer Law, which is
The differential equation model is derived from Fourier's Heat Transfer Law, for heat transfer in 2-D the model is
Now we make the FDM substitutions into the model, and compute.
## 3. The Wave Equation
The wave equation can be derived from a number of different physical laws, in this chapter it is derived from Newton's 2nd Law of Motion, F = MA. It is also derived from Maxwell's equations in the chapter on Maxwell's equations.
The differential equation model for the wave equation in 2-D is
## 4. Stress and Strain
The stress and strain model is derived from Newton's 2nd Law of Motion, and Hoooke's Law. Hooke's Law in 1-D is
the familiar spring law
The equilibrium model for stress is
Notes: Stress and strain tensors
## 5. Fluid Dynamics
The differential equation model for fluid motion, the Navier-Stokes equations, are derived from Newton's 2nd Law of Motion, the Reynold's Transport Theorem, which let's us apply Newton's 2nd law of motion to a control volume of fluid, and Newton's Law of Viscosity, which states that the shear stress is proportional to shear strain rate for fluids.
The derivation of the Navier-Stokes equations from the physical laws is given in complete detail, the Navier-Stokes equations are
## 6. Maxwell's Equations and Electromagnetic Radiation
Maxwell's equations follow directly from four simple experiments, their derivation is given in complete detail in the book.
Maxwell's 3rd and 4th equations in differential form are the model for electromagnetic radation, in 2-D they are in expanded form
## 7. Consistency, Stability, and Convergence
## Apppendices## I - FDM Substitutions## II - Introduction to MATLAB/OCTAVE/FREEMAT## III - Tensors## Answer Key - here |