Chapter 1 Notes: Mathematical Modeling, Numerical Methods, and Problem Solving
Chapter Objectives
Learning how mathematical models can be formulated on the basis of scientific principles to simulate the behavior of a simple physical system.
Understanding how numerical methods afford a means to generalize solutions in a manner that can be implemented on a digital computer.
Understanding the different types of conservation laws that lie beneath the models used in the various engineering disciplines and appreciating the difference between steady-state and dynamic solutions of these models.
You’ve Got a Problem: Modeling Free Fall
Problem setup: Predict jumper velocity during free fall; used to design bungee cord length and strength.
Framework: Use Newton’s Law: (In general, with gravity and drag, this leads to a velocity-dependent differential equation as shown later.)
Note on modeling progression: Start with basic Newtonian dynamics and extend to include drag forces to capture realistic motion.
A Simple Mathematical Model
A mathematical model can be broadly defined as a formulation or equation that expresses the essential features of a physical system or process in mathematical terms.
Models can be represented by a functional relationship between:
Dependent variables
Independent variables
Parameters
Forcing functions
Model Function
Dependent variable: a characteristic that reflects the system’s behavior or state (e.g., temperature of a room).
Independent variables: dimensions along which the system’s behavior is determined (e.g., time and space). Example: time t controlling temperature changes.
Parameters: constants reflecting the system’s properties or composition.
Forcing functions: external influences acting upon the system (e.g., environmental inputs).
An Example of a Mathematical Model
Newton’s second law: where F is the net force, m is mass, a is acceleration.
Recast by dividing by m:
Simple algebraic form makes some models solvable exactly. More complex models may require differential equations and calculus.
Terminal velocity example: use Newton’s second law to determine the motion of a falling body (e.g., a bungee jumper) and form a differential equation for acceleration:
The acceleration is the rate of change of velocity:
With gravity and drag, a differential equation emerges describing the motion.
Expressing the Net Force and Governing Equation
Forces in play near Earth:
Downward gravity: with g (9.81 m/s²).
Upward air resistance: where is the drag coefficient and v is velocity.
Net force (taking downward as positive for sign convention):
The equation of motion (Newton’s second law):
Key points:
Gravity provides a constant downward pull.
Air resistance increases with velocity (quadratic in v in this model).
The net force and acceleration depend on v, making the equation nonlinear.
Sign conventions are important; here, downward is taken as positive.
Values used in examples:
Gravity:
Drag coefficient: (given for examples, e.g., 0.25)
Analytical Solution to the Velocity Model
Consider the differential equation: with initial condition (v(0) = 0).
Analytical (closed-form) solution:
Characteristics:
This is an exact solution for the given ODE with the specified forcing term.
Terminal velocity (steady state) occurs when (dv/dt = 0):
Initial velocity is zero ((v(0)=0)).
Example 1.1: Analytical Solution to the Bungee Jumper Problem
Problem data (as in the example):
Mass: (), drag coefficient: () (units absorbed into the coefficient as appropriate).
Gravitational acceleration: ().
Analytical results:
Velocity after 10 s: approximately ().
Terminal velocity (as ()): approximately () (about 115.6 mph).
Calculation highlights:
Terminal velocity formula:
With given parameters, plug in values to obtain the terminal velocity.
Model Results
Numerical or analytical results can be graphed to visualize velocity vs. time for a given mass and drag coefficient.
For the 68.1 kg jumper with c_d = 0.25, the velocity curve approaches the terminal velocity over time.
Analytical or Closed-form solution vs. Numerical solution
The equation (1.9) represents an analytical, or closed-form, solution which precisely satisfies the original differential equation. While such exact solutions are ideal, many complex mathematical models cannot be solved analytically. In these instances, numerical solutions are employed to approximate the true solution directly on a computer. Therefore, numerical methods serve as essential alternatives when a closed-form solution is not available, providing a means to estimate the behavior of the system.
Numerical Modeling
Numerical methods reformulate the mathematical problem so it can be solved by logical and arithmetic operations (addition, subtraction, multiplication, and division).
Finite differences are used to approximate derivatives.
Definitions:
Differences in velocity:
Differences in time:
Velocity at initial time:
Velocity at a later time:
The derivative is approximated by:
This approximation becomes exact in the limit as
Euler’s Method
Substituting the finite difference approximation into the differential equation yields the update rule:
Solve for the next value of velocity:
In short: old value plus slope at the old point times the step size.
This is the Euler method (explicit, first-order).
Notation:
() denotes ().
Step size:
Numerical Example 1.2: Numerical Solution to the Bungee Jumper Problem
Problem statement: Use Eq. (1.12) to compute velocity with Euler’s method, with step size
Update formula used:
Given initial conditions: start at rest, so ().
Calculations:
At (): ()
At (): using () in the update, )
General takeaway: Euler’s method provides a straightforward, iterative way to approximate velocity with a chosen step size.
Numerical Results
Using Euler’s method with 2 s steps yields a trajectory that approximates the analytical solution; results improve as step size decreases.
Trade-off: smaller yields higher accuracy but more computational work.
Visual comparison typically shows numerical solution approaching the analytical curve as step size decreases.
Generalizing Model Principles
Beyond Newton's second law, primary organizational principles in engineering and science are conservation laws, which fundamentally describe how quantities change over time. For time-variable or transient computations, this change is expressed as increments minus decrements (). In steady-state conditions, where no net change occurs, this equation simplifies to zero (increases = decreases). Core conservation principles that form the basis for numerical models across various disciplines include the conservation of mass, momentum, charge, and energy.
Recap and Workflow
To recap, mathematical models translate physical phenomena into equations, requiring clear distinction between dependent and independent variables, parameters, and forcing functions. While analytical (closed-form) solutions provide exact results, their availability is limited, necessitating numerical methods to approximate solutions computationally. Euler's method serves as a fundamental numerical approach for first-order ordinary differential equations, where accuracy is improved by reducing the step size (), albeit at the cost of increased computation. This modeling framework, unified by conservation laws, applies to both transient (time-variable) and steady-state problems. The universal workflow for numerical modeling systematically guides this process: first, select a governing conservation law; then, formulate the mathematical model; next, choose a numerical scheme, discretize by approximating derivatives with finite differences, and define step sizes ( or ). The process continues iteratively on a computer (new = old + slope \times step) until a stopping criterion is met. Finally, validate the results against known solutions or benchmarks and refine the model by adjusting step sizes or employing higher-order methods for enhanced